From 1beba864f8520867f6f778d3276504a7162f9fdf Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Wed, 12 Feb 2025 14:07:11 +0000 Subject: [PATCH 01/40] !1806 Remove @Observed decorator for Arkoala classes --- arkoala/ets-plugin/src/ArkExpander.ts | 7 ++- arkoala/ets-plugin/src/Importer.ts | 4 +- arkoala/ets-plugin/src/ObservedResolver.ts | 54 +++++++++++++++++++ arkoala/ets-plugin/src/utils.ts | 26 +-------- .../test/golden/arkoala/ets/Rewrite.ts | 2 +- .../test/golden/arkoala/spec/@objectLink.ts | 2 +- .../arkoala/spec/@observed_@objectLink.ts | 2 +- .../golden/arkoala/spec/@propComplexType.ts | 2 +- .../spec/test/pages/import@Observed.ts | 2 +- .../test/golden/arkts/ets/Rewrite.ts | 1 - .../test/golden/arkts/spec/@objectLink.ts | 1 - .../arkts/spec/@observed_@objectLink.ts | 2 - .../golden/arkts/spec/@propComplexType.ts | 1 - .../arkts/spec/test/pages/import@Observed.ts | 1 - .../test/golden/koala/ets/PropertyDeps.ts | 2 +- .../test/golden/koala/ets/Rewrite.ts | 4 +- .../test/golden/koala/ets/Rewrite2.ts | 2 +- .../test/golden/koala/ets/Rewrite3.ts | 2 +- .../ets/arkoala-ability/@kit.AbilityKit.ts | 2 +- .../@ohos.app.ability.UIAbility.ts | 2 +- .../ets/arkoala-ability/ArkoalaAbility.ts | 2 +- .../ets/arkoala-ability/ArkoalaAbility2.ts | 2 +- .../koala/ets/arkoala-ability/EntryAbility.ts | 2 +- .../ets/arkoala-ability/EntryAbility2.ts | 2 +- .../ets/arkoala-ability/default-and-named.ts | 2 +- .../ets/builder-lambda/builder-lambda.ts | 2 +- .../koala/ets/ets-component-call/ets-call.ts | 2 +- .../user-function-declaration.ts | 2 +- .../koala/ets/state-class-property/class.ts | 2 +- .../test/golden/koala/ets/trailing-block.ts | 2 +- .../test/golden/koala/spec/@builder.ts | 2 +- .../test/golden/koala/spec/@builderParam.ts | 2 +- .../koala/spec/@builderWithComponent.ts | 2 +- .../golden/koala/spec/@builderWithForEach.ts | 2 +- .../golden/koala/spec/@builderWithLinkData.ts | 2 +- .../golden/koala/spec/@consume_@provide.ts | 2 +- .../test/golden/koala/spec/@customDialog.ts | 2 +- .../test/golden/koala/spec/@link.ts | 2 +- .../test/golden/koala/spec/@objectLink.ts | 4 +- .../koala/spec/@observed_@objectLink.ts | 4 +- .../test/golden/koala/spec/@preview.ts | 2 +- .../test/golden/koala/spec/@prop.ts | 2 +- .../golden/koala/spec/@propComplexType.ts | 4 +- .../test/golden/koala/spec/@state.ts | 2 +- .../test/golden/koala/spec/@storageLink.ts | 2 +- .../test/golden/koala/spec/@storageProp.ts | 2 +- .../test/golden/koala/spec/@styles.ts | 2 +- .../test/golden/koala/spec/@stylesExport.ts | 2 +- .../test/golden/koala/spec/@watch.ts | 2 +- .../test/golden/koala/spec/GridItem.ts | 2 +- .../test/golden/koala/spec/ListItem.ts | 2 +- .../golden/koala/spec/XComponentContainer.ts | 2 +- .../golden/koala/spec/animatableExtend.ts | 2 +- .../test/golden/koala/spec/animateTo.ts | 2 +- .../test/golden/koala/spec/appStorage.ts | 2 +- .../test/golden/koala/spec/button.ts | 2 +- .../golden/koala/spec/component_object.ts | 2 +- .../golden/koala/spec/custom_component.ts | 2 +- .../golden/koala/spec/decoratorKeyCheck.ts | 2 +- .../koala/spec/forEachSecondFunction.ts | 2 +- .../test/golden/koala/spec/forEachTwo.ts | 2 +- .../test/golden/koala/spec/foreach.ts | 2 +- .../golden/koala/spec/handleCustomBuilder.ts | 2 +- .../test/golden/koala/spec/id_if.ts | 2 +- .../ets-plugin/test/golden/koala/spec/if.ts | 2 +- .../golden/koala/spec/import@CustomDialog.ts | 2 +- .../test/golden/koala/spec/import@Observed.ts | 2 +- .../test/golden/koala/spec/importAllEts.ts | 2 +- .../test/golden/koala/spec/importEts.ts | 2 +- .../test/golden/koala/spec/importExportEts.ts | 2 +- .../golden/koala/spec/importExportNest.ts | 2 +- .../test/golden/koala/spec/importTs.ts | 2 +- .../test/golden/koala/spec/lazyforeach.ts | 2 +- .../test/golden/koala/spec/localStorage.ts | 2 +- .../golden/koala/spec/localStorageForBoth.ts | 2 +- .../golden/koala/spec/localStorageForRoute.ts | 2 +- .../koala/spec/localStorageForStorage.ts | 2 +- .../golden/koala/spec/longPressGesture.ts | 2 +- .../test/golden/koala/spec/pageTransition.ts | 2 +- .../test/golden/koala/spec/panGestrue.ts | 2 +- .../test/golden/koala/spec/pinchGesture.ts | 2 +- .../test/golden/koala/spec/recycle.ts | 2 +- .../koala/spec/recycle_extend_styles.ts | 2 +- .../koala/spec/recycle_function_array.ts | 2 +- .../test/golden/koala/spec/recycle_gesture.ts | 2 +- .../test/golden/koala/spec/recycle_reuseId.ts | 2 +- .../test/golden/koala/spec/rotationGesture.ts | 2 +- .../test/golden/koala/spec/swipeGesture.ts | 2 +- .../ets-plugin/test/golden/koala/spec/tab.ts | 2 +- .../test/golden/koala/spec/tapGesture.ts | 2 +- .../koala/spec/test/pages/AMDComponent.ts | 2 +- .../koala/spec/test/pages/BaseComponent.ts | 2 +- .../koala/spec/test/pages/DefaultComponent.ts | 2 +- .../koala/spec/test/pages/DivideComponent.ts | 2 +- .../koala/spec/test/pages/ExportComponent.ts | 2 +- .../koala/spec/test/pages/ExportNest.ts | 2 +- .../spec/test/pages/ExportStarComponent.ts | 2 +- .../koala/spec/test/pages/ImportNest.ts | 2 +- .../koala/spec/test/pages/ImportNestAll.ts | 2 +- .../koala/spec/test/pages/LinkComponent.ts | 2 +- .../spec/test/pages/NamespaceComponent.ts | 2 +- .../koala/spec/test/pages/TestComponent.ts | 2 +- .../golden/koala/spec/test/pages/TsModule.ts | 2 +- .../spec/test/pages/decoratorKeyCheck.ts | 2 +- .../spec/test/pages/import@ComponentConst.ts | 2 +- .../spec/test/pages/import@CustomDialog.ts | 2 +- .../koala/spec/test/pages/import@Observed.ts | 3 +- 107 files changed, 164 insertions(+), 138 deletions(-) create mode 100644 arkoala/ets-plugin/src/ObservedResolver.ts diff --git a/arkoala/ets-plugin/src/ArkExpander.ts b/arkoala/ets-plugin/src/ArkExpander.ts index 88df0994e..8441239c3 100644 --- a/arkoala/ets-plugin/src/ArkExpander.ts +++ b/arkoala/ets-plugin/src/ArkExpander.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 @@ -33,6 +33,7 @@ import { CallTransformer } from './CallTransformer' import { DebugVisitor } from './AbstractVisitor' import { LegacyCallTransformer } from './LegacyCallTransformer' import { AbilityTransformer } from './AbilityTransformer' +import { ObservedResolver } from "./ObservedResolver" interface ArkToKoOptions { trace?: boolean @@ -133,6 +134,7 @@ export function arkExpandFile( const nameCollector = new NameCollector(sourceFile, ctx, nameTable, issueTable) const dollarTransformer = new DollarTransformer(sourceFile, ctx, nameTable) const abilityTransformer = new AbilityTransformer(sourceFile, ctx, importer) + const observedResolver = new ObservedResolver(sourceFile, ctx, importer) nameCollector.visitor(sourceFile) @@ -147,8 +149,9 @@ export function arkExpandFile( const translatedStyle = styleTransformer.visitor(preprocessedEts) as ts.SourceFile const translatedStruct = structTransformer.visitor(translatedStyle) as ts.SourceFile const translatedAbility = abilityTransformer.visitor(translatedStruct) as ts.SourceFile + const resolvedObserved = observedResolver.visitor(translatedAbility) as ts.SourceFile - const finalStage = translatedAbility + const finalStage = resolvedObserved filterOutDiagnostics(sourceFile, nameTable, issueTable, extras) diff --git a/arkoala/ets-plugin/src/Importer.ts b/arkoala/ets-plugin/src/Importer.ts index cd37c6907..9cf566ace 100644 --- a/arkoala/ets-plugin/src/Importer.ts +++ b/arkoala/ets-plugin/src/Importer.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 @@ -150,8 +150,6 @@ function imports(kind: ArkUIImplementation): string[] { "Environment", "SubscribedAbstractProperty", "LocalStorage", - - "Observed", "$r", "$rawfile", "getContext", diff --git a/arkoala/ets-plugin/src/ObservedResolver.ts b/arkoala/ets-plugin/src/ObservedResolver.ts new file mode 100644 index 000000000..5a17fc31b --- /dev/null +++ b/arkoala/ets-plugin/src/ObservedResolver.ts @@ -0,0 +1,54 @@ +/* + * 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 ts from '@koalaui/ets-tsc' +import { AbstractVisitor } from './AbstractVisitor' +import { getDecorator } from './ApiUtils' +import { Importer } from './Importer' +import { dropDecorators } from './utils' + +export const ObservedDecorator = "Observed" + +export class ObservedResolver extends AbstractVisitor { + constructor( + sourceFile: ts.SourceFile, + ctx: ts.TransformationContext, + private importer: Importer, + ) { + super(sourceFile, ctx) + } + + visitor(beforeChildren: ts.Node): ts.Node { + const node = this.visitEachChild(beforeChildren) + if (ts.isClassDeclaration(node)) { + const decorator = getDecorator(node, ObservedDecorator) + if (decorator) { + if (this.importer.isArkts()) { + console.log("Warning: @Observed class decorator is not supported yet in arkts 2.0 app") + return ts.factory.updateClassDeclaration( + node, + dropDecorators(node.modifiers, ObservedDecorator), + node.name, + node.typeParameters, + node.heritageClauses, + node.members) + } + // add corresponding import for TypeScript-based implementations + this.importer.withCommonImport(ObservedDecorator) + } + } + return node + } +} diff --git a/arkoala/ets-plugin/src/utils.ts b/arkoala/ets-plugin/src/utils.ts index bfae99222..5ac9f4c70 100644 --- a/arkoala/ets-plugin/src/utils.ts +++ b/arkoala/ets-plugin/src/utils.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 @@ -356,30 +356,6 @@ export function isProvide(property: ts.PropertyDeclaration): boolean { return hasDecorator(property, ProvideDecorator) } -export function dropLink(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { - return dropDecorators(modifierLikes, LinkDecorator) -} - -export function dropProp(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { - return dropDecorators(modifierLikes, PropDecorator) -} - -export function dropObjectLink(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { - return dropDecorators(modifierLikes, ObjectLinkDecorator) -} - -export function dropWatch(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { - return dropDecorators(modifierLikes, WatchDecorator) -} - -export function dropConsume(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { - return dropDecorators(modifierLikes, ConsumeDecorator) -} - -export function dropProvide(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { - return dropDecorators(modifierLikes, ProvideDecorator) -} - export function dropBuilder(modifierLikes: readonly ts.ModifierLike[] | undefined): ts.ModifierLike[] | undefined { return dropDecorators(modifierLikes, BuilderDecorator) } diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts index 2739e0f80..418d16573 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts @@ -1,4 +1,4 @@ -import { AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, CustomDialogController, DialogAlignment, LocalStorage, MutableState, OnChange, SyncedProperty, bindCustomDialog, contextLocal, contextLocalStateOf, objectLinkState, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, CustomDialogController, DialogAlignment, LocalStorage, MutableState, Observed, OnChange, SyncedProperty, bindCustomDialog, contextLocal, contextLocalStateOf, objectLinkState, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; export class ArkEntryExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts index 471511396..619202016 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts @@ -1,4 +1,4 @@ -import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ForEach, LocalStorage, MutableState, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ForEach, LocalStorage, MutableState, Observed, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; var nextID: number = 0; @Observed diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts index f782e00c2..554d2fb4a 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts @@ -1,4 +1,4 @@ -import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, Observed, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let NextID: number = 0; @Observed diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts index c4915bc27..f738d1448 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts @@ -1,4 +1,4 @@ -import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, SyncedProperty, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, Observed, SyncedProperty, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; var nextID: number = 0; @Observed diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts index 8469fc17c..e1525c188 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts @@ -1,4 +1,4 @@ -import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, Observed } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts index 20ce680c9..49733cdc3 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts @@ -503,7 +503,6 @@ export class ArkCustomDialogControllerExampleComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts index 3aebde009..3a3d275ca 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts @@ -1,7 +1,7 @@ -import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { Observed, observableProxy } from "@koalaui/common"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { MutableState, OnChange, contextLocal } from "@koalaui/runtime"; -import { observableProxy } from "@koalaui/common"; export class ArkEntryExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite2.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite2.ts index 3037d71f7..9dd9a1a3c 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite2.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite2.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite3.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite3.ts index 79fb337aa..bf7aca71b 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite3.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite3.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; /* diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@kit.AbilityKit.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@kit.AbilityKit.ts index ae2447127..59b913e46 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@kit.AbilityKit.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@kit.AbilityKit.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; class UIAbility { } const Want = 1; diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts index ae2447127..59b913e46 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; class UIAbility { } const Want = 1; diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility.ts index afce462d7..dfade73be 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import UIAbility from "@ohos.app.ability.UIAbility"; export class ArkoalaAbility extends UIAbility { } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility2.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility2.ts index 6aa4c9981..8c8ffcf5e 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility2.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/ArkoalaAbility2.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { Want, AbilityConstant, UIAbility } from "@kit.AbilityKit"; export class ArkoalaAbility extends UIAbility { } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility.ts index 5fb9234e6..180000a20 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import UIAbility from "@ohos.app.ability.UIAbility"; export class EntryAbility extends UIAbility { } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility2.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility2.ts index a7623df23..28db6e3c5 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility2.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/EntryAbility2.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { Want, AbilityConstant, UIAbility } from "@kit.AbilityKit"; export class EntryAbility extends UIAbility { } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/default-and-named.ts b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/default-and-named.ts index a5382cf6d..ef24d82d1 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/default-and-named.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/arkoala-ability/default-and-named.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; // 0 import zzz, { Want } from "@ohos.app.ability.UIAbility"; // 1 diff --git a/arkoala/ets-plugin/test/golden/koala/ets/builder-lambda/builder-lambda.ts b/arkoala/ets-plugin/test/golden/koala/ets/builder-lambda/builder-lambda.ts index 86aeed5e2..8095e5fda 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/builder-lambda/builder-lambda.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/builder-lambda/builder-lambda.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* TODO: not yet implemented in the plugin */ // @AnimatableExtend class FooAttribute { diff --git a/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/ets-call.ts b/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/ets-call.ts index 0a892fdf0..23ec7556a 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/ets-call.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/ets-call.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts b/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts index 7595007a0..f89ee50b4 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/ets/state-class-property/class.ts b/arkoala/ets-plugin/test/golden/koala/ets/state-class-property/class.ts index e90d999f0..9fec03090 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/state-class-property/class.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/state-class-property/class.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { observableProxy } from "@koalaui/common"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. diff --git a/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts b/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts index 50147adef..3bf945d18 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; class ArkParentStructComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts index 06f7eec86..076e53a6a 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkFlex, ArkFlexComponent, ArkList, ArkListComponent, ArkListItem, ArkListItemComponent, ArkNavigation, ArkNavigationComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, Axis, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DragEvent, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, ResponseType, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAlign, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkFlex, ArkFlexComponent, ArkList, ArkListComponent, ArkListItem, ArkListItemComponent, ArkNavigation, ArkNavigationComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, Axis, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DragEvent, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, ResponseType, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAlign, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts index 5573617f3..c388b318a 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builderWithComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builderWithComponent.ts index a9fb2d6ff..d09a4af11 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builderWithComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builderWithComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; /** @memo */ function myBuilder() { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builderWithForEach.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builderWithForEach.ts index e58692b6f..b7914bc84 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builderWithForEach.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builderWithForEach.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builderWithLinkData.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builderWithLinkData.ts index 22f26f0d5..fa19ed5dc 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builderWithLinkData.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builderWithLinkData.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@consume_@provide.ts b/arkoala/ets-plugin/test/golden/koala/spec/@consume_@provide.ts index dd8e07ae1..1346f758b 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@consume_@provide.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@consume_@provide.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState, contextLocal } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts index 54ea0577c..6421236b7 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@link.ts b/arkoala/ets-plugin/test/golden/koala/spec/@link.ts index 122231762..0efaf48e3 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@link.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@link.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@objectLink.ts b/arkoala/ets-plugin/test/golden/koala/spec/@objectLink.ts index 87defb14f..de4b21917 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@objectLink.ts @@ -1,5 +1,5 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; -import { observableProxy } from "@koalaui/common"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { Observed, observableProxy } from "@koalaui/common"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; var nextID: number = 0; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@observed_@objectLink.ts b/arkoala/ets-plugin/test/golden/koala/spec/@observed_@objectLink.ts index 83e242ef6..c8c36b193 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@observed_@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@observed_@objectLink.ts @@ -1,5 +1,5 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; -import { observableProxy } from "@koalaui/common"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { Observed, observableProxy } from "@koalaui/common"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; let NextID: number = 0; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@preview.ts b/arkoala/ets-plugin/test/golden/koala/spec/@preview.ts index d7749bd3a..83ad8fe27 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@preview.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@preview.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkHomePreviewComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@prop.ts b/arkoala/ets-plugin/test/golden/koala/spec/@prop.ts index 1f4a2d20a..dc7220d59 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@prop.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@prop.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { observableProxy } from "@koalaui/common"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@propComplexType.ts b/arkoala/ets-plugin/test/golden/koala/spec/@propComplexType.ts index 770a4cf40..e4f517188 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@propComplexType.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@propComplexType.ts @@ -1,5 +1,5 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; -import { observableProxy } from "@koalaui/common"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { Observed, observableProxy } from "@koalaui/common"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; var nextID: number = 0; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@state.ts b/arkoala/ets-plugin/test/golden/koala/spec/@state.ts index d00ef32c6..e682447e1 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@state.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@state.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@storageLink.ts b/arkoala/ets-plugin/test/golden/koala/spec/@storageLink.ts index a0ff453ab..544766c9d 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@storageLink.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@storageLink.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@storageProp.ts b/arkoala/ets-plugin/test/golden/koala/spec/@storageProp.ts index 488a2cd88..a4891f0f4 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@storageProp.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@storageProp.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts b/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts index 94bb67403..932661888 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts b/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts index 8eb7befd7..e4f87bf7c 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@watch.ts b/arkoala/ets-plugin/test/golden/koala/spec/@watch.ts index baa7da551..f5666c493 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@watch.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@watch.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState, OnChange } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/GridItem.ts b/arkoala/ets-plugin/test/golden/koala/spec/GridItem.ts index 86ee71ab6..80588a2fd 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/GridItem.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/GridItem.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkGrid, ArkGridItem, ArkGridItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkGrid, ArkGridItem, ArkGridItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkParentViewComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/ListItem.ts b/arkoala/ets-plugin/test/golden/koala/spec/ListItem.ts index 4f429aab8..afa2bdaaf 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/ListItem.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/ListItem.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkParentViewComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts b/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts index 459c889d0..6d68d3d24 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkXComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, XComponentType, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkXComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, XComponentType, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkHomeComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts b/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts index b6ff4afa9..ea9db2294 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkPolyline, ArkPolylineComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkPolyline, ArkPolylineComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; function animatablePoints__Polyline(PolylineInstance: T, points: number): T { return PolylineInstance.strokeOpacity(points) diff --git a/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts b/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts index 9b58f5e66..a5093be3d 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, Color, Curve, CustomDialogController, DataChangeListener, Environment, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, PlayMode, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, TransitionType, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, Color, Curve, CustomDialogController, DataChangeListener, Environment, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, PlayMode, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, TransitionType, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/appStorage.ts b/arkoala/ets-plugin/test/golden/koala/spec/appStorage.ts index c329f8c35..598ca5704 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/appStorage.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/appStorage.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/button.ts b/arkoala/ets-plugin/test/golden/koala/spec/button.ts index 0a4747a4b..5f76a9182 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/button.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/button.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, ButtonType, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VerticalAlign, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, ButtonType, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VerticalAlign, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkButtonExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/component_object.ts b/arkoala/ets-plugin/test/golden/koala/spec/component_object.ts index f24a2526e..36e9f6ce8 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/component_object.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/component_object.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/custom_component.ts b/arkoala/ets-plugin/test/golden/koala/spec/custom_component.ts index a91c846ce..029f80ef6 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/custom_component.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/custom_component.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkMyComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/decoratorKeyCheck.ts b/arkoala/ets-plugin/test/golden/koala/spec/decoratorKeyCheck.ts index eec3b45b9..ebd47bef9 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/decoratorKeyCheck.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/decoratorKeyCheck.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState, contextLocal } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/forEachSecondFunction.ts b/arkoala/ets-plugin/test/golden/koala/spec/forEachSecondFunction.ts index f69dc7933..a6ba69cea 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/forEachSecondFunction.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/forEachSecondFunction.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/forEachTwo.ts b/arkoala/ets-plugin/test/golden/koala/spec/forEachTwo.ts index 9cf833508..e7a0ef0c9 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/forEachTwo.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/forEachTwo.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/foreach.ts b/arkoala/ets-plugin/test/golden/koala/spec/foreach.ts index 34f726e57..a4186b645 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/foreach.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/foreach.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkList, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkList, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts b/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts index 22d9cce9a..fb0dd372a 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, DragEvent, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, DragEvent, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; /** @memo */ function global() { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts b/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts index 0fb0db952..b6b48359f 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ArkXComponent, ArkXComponentComponent, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ArkXComponent, ArkXComponentComponent, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkMyComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/if.ts b/arkoala/ets-plugin/test/golden/koala/spec/if.ts index c2385ca4f..f8d977ef5 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/if.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/if.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts index ee19bb7ba..0f079c171 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/import@Observed.ts b/arkoala/ets-plugin/test/golden/koala/spec/import@Observed.ts index 6d0ce48cd..493b16579 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/import@Observed.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/import@Observed.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { observableProxy } from "@koalaui/common"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/importAllEts.ts b/arkoala/ets-plugin/test/golden/koala/spec/importAllEts.ts index 174ca3738..cf7f0e055 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/importAllEts.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/importAllEts.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts b/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts index ffb43427f..fea0aad85 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/importExportEts.ts b/arkoala/ets-plugin/test/golden/koala/spec/importExportEts.ts index 4a5f24dc9..9b72fe697 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/importExportEts.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/importExportEts.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/importExportNest.ts b/arkoala/ets-plugin/test/golden/koala/spec/importExportNest.ts index 442c1f611..d742f252c 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/importExportNest.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/importExportNest.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/importTs.ts b/arkoala/ets-plugin/test/golden/koala/spec/importTs.ts index a3d9633c3..fbc52e4e9 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/importTs.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/importTs.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/lazyforeach.ts b/arkoala/ets-plugin/test/golden/koala/spec/lazyforeach.ts index c15b25583..697f9449b 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/lazyforeach.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/lazyforeach.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkGridItem, ArkLazyGrid, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LazyForEach, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkGridItem, ArkLazyGrid, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LazyForEach, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class BasicDataSource implements IDataSource { private listeners: DataChangeListener[] = []; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/localStorage.ts b/arkoala/ets-plugin/test/golden/koala/spec/localStorage.ts index f98a0d360..b739255fd 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/localStorage.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/localStorage.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/localStorageForBoth.ts b/arkoala/ets-plugin/test/golden/koala/spec/localStorageForBoth.ts index 57716196b..0d8395073 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/localStorageForBoth.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/localStorageForBoth.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/localStorageForRoute.ts b/arkoala/ets-plugin/test/golden/koala/spec/localStorageForRoute.ts index af72445a1..3de314fd6 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/localStorageForRoute.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/localStorageForRoute.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; let route = 'pages/Index'; class ArkLocalStorageComponentComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/localStorageForStorage.ts b/arkoala/ets-plugin/test/golden/koala/spec/localStorageForStorage.ts index 548a958a4..ac34e2af1 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/localStorageForStorage.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/localStorageForStorage.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, StorageLinkState, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts index 3a870b5ab..26726967e 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts b/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts index d1f543ac1..3ebb53595 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkNavigator, ArkNavigatorComponent, ArkPageTransitionEnter, ArkPageTransitionEnterComponent, ArkPageTransitionExit, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Curve, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, NavigationType, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, RouteType, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkNavigator, ArkNavigatorComponent, ArkPageTransitionEnter, ArkPageTransitionEnterComponent, ArkPageTransitionExit, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Curve, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, NavigationType, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, RouteType, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts b/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts index 2bdc53822..26a20cda3 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts index ccb0618d8..8e2cd4c63 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts index a17da5bc7..cb60b7fa8 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkTabsComponent, ArkText, ArkTextComponent, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkTabsComponent, ArkText, ArkTextComponent, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts index 9020ceb14..328b631b0 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; function fancybut__Button(ButtonInstance: T, color: string | Color): T { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_function_array.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_function_array.ts index 81d90750e..fdd711373 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_function_array.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_function_array.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCircle, ArkCircleComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCircle, ArkCircleComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts index 8b4bb3823..2f55ef0aa 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; class ArkGestureTestComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts index cf11c9078..107a13118 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts index cf353a25f..596df8a66 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts index 3676e7037..10f35a8eb 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureEvent, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeDirection, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureEvent, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeDirection, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/tab.ts b/arkoala/ets-plugin/test/golden/koala/spec/tab.ts index a8701c54f..f6f9f0a5f 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/tab.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/tab.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, BarPosition, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, BarPosition, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkTabSimpleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts index 2a48401b1..812dab8f5 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/AMDComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/AMDComponent.ts index 9132dee10..d251e1a24 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/AMDComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/AMDComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; class ArkAMDComponentComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/BaseComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/BaseComponent.ts index bf21bd47c..4509b5493 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/BaseComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/BaseComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DefaultComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DefaultComponent.ts index 4991f5358..a986534ab 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DefaultComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DefaultComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; class ArkDefaultComponentComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts index e2c42c5cc..d76d3b10a 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportComponent.ts index bad51a425..aa5f18253 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; /* diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportNest.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportNest.ts index 01a4e8983..f58013c3b 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportNest.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportNest.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportStarComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportStarComponent.ts index c1a4dd45a..b1bc4d5ac 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportStarComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ExportStarComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNest.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNest.ts index 62e5c8231..334e743e5 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNest.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNest.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNestAll.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNestAll.ts index 3cd9f2030..d7be0da76 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNestAll.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/ImportNestAll.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/LinkComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/LinkComponent.ts index d880bbdb8..44733c647 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/LinkComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/LinkComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; /* diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/NamespaceComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/NamespaceComponent.ts index 678f39c0a..5515061b9 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/NamespaceComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/NamespaceComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; class ArkNamespaceComponent1Component extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts index 573392ba4..41c526c22 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; export class ArkTestComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TsModule.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TsModule.ts index 8d84d6b27..fc9a25501 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TsModule.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TsModule.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2020 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/decoratorKeyCheck.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/decoratorKeyCheck.ts index a35494f17..9a0d33b74 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/decoratorKeyCheck.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/decoratorKeyCheck.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@ComponentConst.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@ComponentConst.ts index bb69db9de..e62847663 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@ComponentConst.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@ComponentConst.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); 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 c234399ca..3f0441a65 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 @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ArkTextInput, ArkTextInputComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, FlexAlign, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ArkTextInput, ArkTextInputComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, FlexAlign, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; export class ArkCustomDialogExample1Component extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@Observed.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@Observed.ts index 848608afd..453dc69c7 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@Observed.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@Observed.ts @@ -1,4 +1,5 @@ -import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { Observed } from "@koalaui/common"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); -- Gitee From c91a6e8a9f9c0d5516b6d08abe560675d9fe516e Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Wed, 12 Feb 2025 14:51:52 +0000 Subject: [PATCH 02/40] !1813 Using interop-fatal instead of throw in tree.h * Using interop-fatal instead of throw in tree.h --- arkoala/framework/native/src/tree.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arkoala/framework/native/src/tree.h b/arkoala/framework/native/src/tree.h index 8a180b66a..42160f331 100644 --- a/arkoala/framework/native/src/tree.h +++ b/arkoala/framework/native/src/tree.h @@ -22,6 +22,8 @@ #include #include +#include "interop-types.h" + using std::string; const int UndefinedDimensionUnit = -1; @@ -160,7 +162,7 @@ struct TreeNode { auto it = std::find(_children.begin(), _children.end(), sibling); if (it == _children.end()) { fprintf(stderr, "insertChildAfter: sibling node %p not found among children\n", sibling); - throw "Error"; + INTEROP_FATAL("Error"); } auto next = std::next(it); _children.insert(next, node); @@ -183,7 +185,7 @@ struct TreeNode { auto it = std::find(_children.begin(), _children.end(), sibling); if (it == _children.end()) { fprintf(stderr, "insertChildBefore: sibling node %p not found among children\n", sibling); - throw "Error"; + INTEROP_FATAL("Error"); } _children.insert(it, node); node->setParent(this); -- Gitee From 4cd9e0b21a6b8397c4339aa3ed3cf75104177daa Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Wed, 12 Feb 2025 15:38:54 +0000 Subject: [PATCH 03/40] !1815 release-1.5.1 * release-1.5.1 --- 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 3e1ad720b..8e03717dc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.0 \ No newline at end of file +1.5.1 \ No newline at end of file diff --git a/arkoala/arkui-common/package.json b/arkoala/arkui-common/package.json index b281a26db..984585939 100644 --- a/arkoala/arkui-common/package.json +++ b/arkoala/arkui-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkui-common", - "version": "1.5.0+devel", + "version": "1.5.1+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -53,9 +53,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.0+devel", - "@koalaui/compat": "1.5.0+devel", - "@koalaui/runtime": "1.5.0+devel", + "@koalaui/common": "1.5.1+devel", + "@koalaui/compat": "1.5.1+devel", + "@koalaui/runtime": "1.5.1+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 6ce61a242..9c4c44f20 100644 --- a/arkoala/arkui/package.json +++ b/arkoala/arkui/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkoala-arkui", - "version": "1.5.0+devel", + "version": "1.5.1+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -45,10 +45,10 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.0+devel", - "@koalaui/runtime": "1.5.0+devel", + "@koalaui/common": "1.5.1+devel", + "@koalaui/runtime": "1.5.1+devel", "@koalaui/arkoala": "1.4.1+devel", - "@koalaui/arkui-common": "1.5.0+devel", + "@koalaui/arkui-common": "1.5.1+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 891a84e22..88ccac926 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-plugin", - "version": "1.5.0+devel", + "version": "1.5.1+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 f408f4497..aaf1ab090 100644 --- a/incremental/build-common/package.json +++ b/incremental/build-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/build-common", - "version": "1.5.0+devel", + "version": "1.5.1+devel", "description": "", "files": [ "tsconfig.json" diff --git a/incremental/common/package.json b/incremental/common/package.json index 0fe59c95f..9eea7ed2f 100644 --- a/incremental/common/package.json +++ b/incremental/common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/common", - "version": "1.5.0+devel", + "version": "1.5.1+devel", "description": "", "main": "build/lib/src/index.js", "types": "./index.d.ts", @@ -42,7 +42,7 @@ }, "keywords": [], "dependencies": { - "@koalaui/compat": "1.5.0+devel" + "@koalaui/compat": "1.5.1+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/compat/package.json b/incremental/compat/package.json index 7c6ae8b50..fb37cff5e 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compat", - "version": "1.5.0+devel", + "version": "1.5.1+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 62469d84f..a6fc77a62 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compiler-plugin", - "version": "1.5.0+devel", + "version": "1.5.1+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.0+devel" + "@koalaui/common": "1.5.1+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/incremental/harness/package.json b/incremental/harness/package.json index 9d3555e39..0570e168d 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/harness", - "version": "1.5.0+devel", + "version": "1.5.1+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.0+devel", - "@koalaui/compat": "1.5.0+devel" + "@koalaui/common": "1.5.1+devel", + "@koalaui/compat": "1.5.1+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index 1ec1f9750..3cae399f6 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/runtime", - "version": "1.5.0+devel", + "version": "1.5.1+devel", "description": "", "main": "./build/lib/src/index.js", "types": "./build/lib/src/index.d.ts", @@ -40,9 +40,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.0+devel", - "@koalaui/compat": "1.5.0+devel", - "@koalaui/harness": "1.5.0+devel" + "@koalaui/common": "1.5.1+devel", + "@koalaui/compat": "1.5.1+devel", + "@koalaui/harness": "1.5.1+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/interop/package.json b/interop/package.json index cabddf53c..dae22d080 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/interop", - "version": "1.5.0+devel", + "version": "1.5.1+devel", "description": "", "workspaces": [ "../incremental/build-common", @@ -57,7 +57,7 @@ "keywords": [], "dependencies": { "@types/node": "^18.0.0", - "@koalaui/common": "1.5.0+devel" + "@koalaui/common": "1.5.1+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", -- Gitee From 933cba623caf0ab724ed461c1fc9fb1da809eafb Mon Sep 17 00:00:00 2001 From: Pozdeev Pavel Date: Wed, 12 Feb 2025 15:44:45 +0000 Subject: [PATCH 04/40] !1816 For CJ generation * initial --- incremental-cj/runtime/cjpm.toml | 2 +- interop/src/cangjie/Finalizable.cj | 10 +++++++++- interop/src/cangjie/InteropTypes.cj | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/incremental-cj/runtime/cjpm.toml b/incremental-cj/runtime/cjpm.toml index 5af23c773..1eb7795b1 100644 --- a/incremental-cj/runtime/cjpm.toml +++ b/incremental-cj/runtime/cjpm.toml @@ -2,7 +2,7 @@ [package] cjc-version = "0.53.4" - compile-option = "../runtime/CallsiteKey.o" # other apps are also depend on this relative path + compile-option = "" # other apps are also depend on this relative path description = "Incremental Runtime" link-option = "" name = "KoalaRuntime" diff --git a/interop/src/cangjie/Finalizable.cj b/interop/src/cangjie/Finalizable.cj index 73f7c9f9f..555922042 100644 --- a/interop/src/cangjie/Finalizable.cj +++ b/interop/src/cangjie/Finalizable.cj @@ -22,4 +22,12 @@ public open class Finalizable { this.ptr = ptr this.finalizer = finalizer } -} \ No newline at end of file +} + +public abstract class MaterializedBase { + public var peer: Option = Option.None + + public func getPeer(): ?Finalizable { + return this.peer + } +} diff --git a/interop/src/cangjie/InteropTypes.cj b/interop/src/cangjie/InteropTypes.cj index a4679b852..1be75c021 100644 --- a/interop/src/cangjie/InteropTypes.cj +++ b/interop/src/cangjie/InteropTypes.cj @@ -17,6 +17,7 @@ package Interop import std.collection.* public type KPointer = UInt64 +public type KFloat = Float32 public type pointer = KPointer public type KInt = Int32 public type KStringPtr = String -- Gitee From 591622963db885acb5d1fc942fc19d1c37490d53 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 12 Feb 2025 16:28:11 +0000 Subject: [PATCH 05/40] !1817 Generate with 2.0.26 * Fix * Version * Update * Generate with 2.0.24 --- arkoala-arkts/arkui/src/ArkNavigation.ts | 6 +- .../src/generated/ArkAbilityComponent.ts | 10 +- .../ArkAbilityComponentInterfaces.ts | 2 +- .../ArkAccessibilityHoverEventMaterialized.ts | 3 +- .../generated/ArkActionSheetMaterialized.ts | 5 +- .../generated/ArkAlertDialogMaterialized.ts | 5 +- .../arkui/src/generated/ArkAlphabetIndexer.ts | 64 +- .../ArkAnimationExtenderInterfaces.ts | 8 +- .../ArkAnimationExtenderMaterialized.ts | 63 +- .../arkui/src/generated/ArkAnimator.ts | 37 +- .../src/generated/ArkAnimatorInterfaces.ts | 11 +- .../ArkAppearSymbolEffectMaterialized.ts | 82 + ...erfaces.ts => ArkArkuiCustomInterfaces.ts} | 0 ...faces.ts => ArkArkuiExternalInterfaces.ts} | 0 .../ArkBackgroundColorStyleMaterialized.ts | 60 + arkoala-arkts/arkui/src/generated/ArkBadge.ts | 4 +- .../src/generated/ArkBaseEventMaterialized.ts | 5 +- .../ArkBaseGestureEventMaterialized.ts | 3 +- .../ArkBaselineOffsetStyleMaterialized.ts | 67 + arkoala-arkts/arkui/src/generated/ArkBlank.ts | 6 +- .../ArkBounceSymbolEffectMaterialized.ts | 111 + .../arkui/src/generated/ArkButton.ts | 28 +- .../src/generated/ArkButtonInterfaces.ts | 2 +- .../arkui/src/generated/ArkCalendar.ts | 30 +- .../ArkCalendarControllerMaterialized.ts | 8 +- .../arkui/src/generated/ArkCalendarPicker.ts | 10 +- .../ArkCalendarPickerDialogMaterialized.ts | 5 +- .../arkui/src/generated/ArkCanvas.ts | 8 +- .../ArkCanvasGradientMaterialized.ts | 5 +- .../src/generated/ArkCanvasInterfaces.ts | 10 +- .../generated/ArkCanvasPathMaterialized.ts | 21 +- .../generated/ArkCanvasPatternMaterialized.ts | 5 +- .../ArkCanvasRendererMaterialized.ts | 76 +- ...ArkCanvasRenderingContext2DMaterialized.ts | 20 +- .../arkui/src/generated/ArkCheckbox.ts | 24 +- .../src/generated/ArkCheckboxInterfaces.ts | 2 +- .../arkui/src/generated/ArkCheckboxgroup.ts | 22 +- .../ArkChildrenMainSizeMaterialized.ts | 7 +- .../arkui/src/generated/ArkCircle.ts | 4 +- .../generated/ArkClickEventMaterialized.ts | 11 +- ...ClientAuthenticationHandlerMaterialized.ts | 9 +- .../generated/ArkColorFilterMaterialized.ts | 60 + .../arkui/src/generated/ArkColumn.ts | 12 +- .../arkui/src/generated/ArkColumnSplit.ts | 8 +- .../arkui/src/generated/ArkCommon.ts | 426 +- .../src/generated/ArkCommonInterfaces.ts | 54 +- .../arkui/src/generated/ArkComponent3d.ts | 18 +- .../src/generated/ArkComponent3dInterfaces.ts | 2 +- .../ArkConsoleMessageMaterialized.ts | 11 +- .../arkui/src/generated/ArkContainerSpan.ts | 6 +- .../generated/ArkContainerSpanInterfaces.ts | 2 +- .../src/generated/ArkContentSlotInterfaces.ts | 2 +- .../generated/ArkContextMenuMaterialized.ts | 5 +- .../ArkControllerHandlerMaterialized.ts | 5 +- .../arkui/src/generated/ArkCounter.ts | 12 +- .../ArkCustomDialogControllerMaterialized.ts | 7 +- .../generated/ArkCustomSpanMaterialized.ts | 9 +- .../arkui/src/generated/ArkDataPanel.ts | 21 +- .../src/generated/ArkDataPanelInterfaces.ts | 9 +- .../ArkDataResubmissionHandlerMaterialized.ts | 7 +- .../arkui/src/generated/ArkDatePicker.ts | 22 +- .../ArkDatePickerDialogMaterialized.ts | 5 +- .../ArkDecorationStyleMaterialized.ts | 83 + .../ArkDisappearSymbolEffectMaterialized.ts | 82 + .../arkui/src/generated/ArkDivider.ts | 12 +- .../src/generated/ArkDragEventMaterialized.ts | 35 +- .../generated/ArkDrawModifierMaterialized.ts | 11 +- .../generated/ArkDrawingCanvasMaterialized.ts | 5 +- .../ArkDrawingRenderingContextMaterialized.ts | 5 +- .../generated/ArkDynamicNodeMaterialized.ts | 5 +- .../ArkEditMenuOptionsMaterialized.ts | 7 +- .../arkui/src/generated/ArkEffectComponent.ts | 4 +- .../arkui/src/generated/ArkEllipse.ts | 4 +- .../src/generated/ArkEmbeddedComponent.ts | 10 +- .../ArkEmbeddedComponentInterfaces.ts | 2 +- .../generated/ArkEventEmulatorMaterialized.ts | 7 +- .../generated/ArkEventResultMaterialized.ts | 5 +- .../ArkEventTargetInfoMaterialized.ts | 5 +- .../ArkFileSelectorParamMaterialized.ts | 11 +- .../ArkFileSelectorResultMaterialized.ts | 5 +- arkoala-arkts/arkui/src/generated/ArkFlex.ts | 6 +- .../arkui/src/generated/ArkFlowItem.ts | 4 +- .../arkui/src/generated/ArkFolderStack.ts | 14 +- .../src/generated/ArkFolderStackInterfaces.ts | 2 +- .../arkui/src/generated/ArkFormComponent.ts | 24 +- .../generated/ArkFormComponentInterfaces.ts | 2 +- .../arkui/src/generated/ArkFormLink.ts | 4 +- .../src/generated/ArkFrameNodeMaterialized.ts | 31 +- .../ArkFrictionMotionMaterialized.ts | 53 + .../ArkFullScreenExitHandlerMaterialized.ts | 5 +- arkoala-arkts/arkui/src/generated/ArkGauge.ts | 31 +- .../arkui/src/generated/ArkGaugeInterfaces.ts | 9 +- .../generated/ArkGestureEventMaterialized.ts | 3 +- .../ArkGestureModifierMaterialized.ts | 5 +- .../ArkGestureRecognizerMaterialized.ts | 19 +- .../generated/ArkGestureStyleMaterialized.ts | 60 + .../ArkGlobalScopeCommonMaterialized.ts | 34 +- .../ArkGlobalScopeInspectorMaterialized.ts | 14 +- ...eOhosArkuiComponentSnapshotMaterialized.ts | 8 +- ...OhosArkuiPerformanceMonitorMaterialized.ts | 19 +- arkoala-arkts/arkui/src/generated/ArkGrid.ts | 70 +- .../arkui/src/generated/ArkGridCol.ts | 10 +- .../arkui/src/generated/ArkGridContainer.ts | 4 +- .../arkui/src/generated/ArkGridItem.ts | 26 +- .../arkui/src/generated/ArkGridRow.ts | 8 +- ...ArkHierarchicalSymbolEffectMaterialized.ts | 82 + .../generated/ArkHoverEventMaterialized.ts | 11 +- .../ArkHttpAuthHandlerMaterialized.ts | 9 +- .../arkui/src/generated/ArkHyperlink.ts | 6 +- .../src/generated/ArkICurveMaterialized.ts | 5 +- arkoala-arkts/arkui/src/generated/ArkImage.ts | 57 +- .../ArkImageAnalyzerControllerMaterialized.ts | 5 +- .../arkui/src/generated/ArkImageAnimator.ts | 30 +- .../ArkImageAttachmentMaterialized.ts | 89 + .../generated/ArkImageBitmapMaterialized.ts | 5 +- .../src/generated/ArkImageDataMaterialized.ts | 86 + .../arkui/src/generated/ArkImageInterfaces.ts | 11 +- .../arkui/src/generated/ArkImageSpan.ts | 19 +- .../src/generated/ArkImageSpanInterfaces.ts | 3 +- ...ndicatorComponentControllerMaterialized.ts | 9 +- .../src/generated/ArkIndicatorcomponent.ts | 16 +- .../ArkIsolatedComponentInterfaces.ts | 6 +- .../generated/ArkJsGeolocationMaterialized.ts | 5 +- .../src/generated/ArkJsResultMaterialized.ts | 9 +- .../src/generated/ArkKeyEventMaterialized.ts | 13 +- .../generated/ArkLayoutManagerMaterialized.ts | 13 +- .../ArkLazyForEachOpsMaterialized.ts | 13 +- .../generated/ArkLengthMetricsMaterialized.ts | 9 +- .../ArkLetterSpacingStyleMaterialized.ts | 67 + arkoala-arkts/arkui/src/generated/ArkLine.ts | 8 +- .../ArkLineHeightStyleMaterialized.ts | 67 + .../ArkLinearGradientMaterialized.ts | 61 + ...rkLinearIndicatorControllerMaterialized.ts | 11 +- .../arkui/src/generated/ArkLinearindicator.ts | 10 +- arkoala-arkts/arkui/src/generated/ArkList.ts | 74 +- .../arkui/src/generated/ArkListItem.ts | 22 +- .../arkui/src/generated/ArkListItemGroup.ts | 8 +- .../generated/ArkListScrollerMaterialized.ts | 11 +- .../arkui/src/generated/ArkLoadingProgress.ts | 10 +- .../generated/ArkLoadingProgressInterfaces.ts | 2 +- .../arkui/src/generated/ArkLocationButton.ts | 6 +- .../ArkLongPressGestureEventMaterialized.ts | 3 +- .../arkui/src/generated/ArkMarquee.ts | 22 +- .../src/generated/ArkMatrix2DMaterialized.ts | 15 +- .../generated/ArkMeasurableMaterialized.ts | 11 +- .../src/generated/ArkMediaCachedImage.ts | 4 +- arkoala-arkts/arkui/src/generated/ArkMenu.ts | 18 +- .../arkui/src/generated/ArkMenuItem.ts | 24 +- .../arkui/src/generated/ArkMenuItemGroup.ts | 4 +- .../generated/ArkMouseEventMaterialized.ts | 11 +- .../ArkMutableStyledStringMaterialized.ts | 25 +- .../arkui/src/generated/ArkNavDestination.ts | 42 +- .../ArkNavDestinationContextMaterialized.ts | 7 +- .../generated/ArkNavExtenderMaterialized.ts | 5 +- .../generated/ArkNavPathInfoMaterialized.ts | 158 + .../generated/ArkNavPathStackMaterialized.ts | 55 +- .../arkui/src/generated/ArkNavRouter.ts | 8 +- .../src/generated/ArkNavigationInterfaces.ts | 13 +- ...rkNavigationTransitionProxyMaterialized.ts | 9 +- .../arkui/src/generated/ArkNavigator.ts | 12 +- .../arkui/src/generated/ArkNodeContainer.ts | 6 +- .../generated/ArkNodeContainerInterfaces.ts | 2 +- .../ArkPanGestureEventMaterialized.ts | 3 +- .../ArkPanGestureOptionsMaterialized.ts | 12 +- .../generated/ArkPanRecognizerMaterialized.ts | 5 +- arkoala-arkts/arkui/src/generated/ArkPanel.ts | 34 +- .../ArkParagraphStyleMaterialized.ts | 115 + .../arkui/src/generated/ArkPasteButton.ts | 6 +- arkoala-arkts/arkui/src/generated/ArkPath.ts | 6 +- .../src/generated/ArkPath2DMaterialized.ts | 5 +- .../arkui/src/generated/ArkPatternLock.ts | 28 +- .../ArkPatternLockControllerMaterialized.ts | 7 +- .../ArkPermissionRequestMaterialized.ts | 11 +- .../ArkPinchGestureEventMaterialized.ts | 3 +- .../src/generated/ArkPixelMapMaterialized.ts | 7 +- .../generated/ArkPixelMapMockMaterialized.ts | 5 +- .../arkui/src/generated/ArkPluginComponent.ts | 8 +- .../arkui/src/generated/ArkPolygon.ts | 6 +- .../arkui/src/generated/ArkPolyline.ts | 6 +- .../arkui/src/generated/ArkProgress.ts | 19 +- .../src/generated/ArkProgressInterfaces.ts | 7 +- .../generated/ArkProgressMaskMaterialized.ts | 9 +- .../arkui/src/generated/ArkQrcode.ts | 10 +- arkoala-arkts/arkui/src/generated/ArkRadio.ts | 18 +- .../arkui/src/generated/ArkRadioInterfaces.ts | 2 +- .../arkui/src/generated/ArkRating.ts | 20 +- .../src/generated/ArkRatingInterfaces.ts | 2 +- arkoala-arkts/arkui/src/generated/ArkRect.ts | 10 +- .../arkui/src/generated/ArkRefresh.ts | 22 +- .../src/generated/ArkRelativeContainer.ts | 8 +- .../arkui/src/generated/ArkRemoteWindow.ts | 4 +- ...ArkRenderingContextSettingsMaterialized.ts | 81 + .../ArkReplaceSymbolEffectMaterialized.ts | 82 + .../arkui/src/generated/ArkRichEditor.ts | 62 +- ...ArkRichEditorBaseControllerMaterialized.ts | 23 +- .../ArkRichEditorControllerMaterialized.ts | 28 +- ...ditorStyledStringControllerMaterialized.ts | 11 +- .../arkui/src/generated/ArkRichText.ts | 8 +- .../arkui/src/generated/ArkRootScene.ts | 4 +- .../ArkRotationGestureEventMaterialized.ts | 3 +- arkoala-arkts/arkui/src/generated/ArkRow.ts | 12 +- .../arkui/src/generated/ArkRowSplit.ts | 6 +- .../arkui/src/generated/ArkSaveButton.ts | 6 +- .../ArkScaleSymbolEffectMaterialized.ts | 111 + .../arkui/src/generated/ArkScreen.ts | 4 +- .../ArkScreenCaptureHandlerMaterialized.ts | 9 +- .../arkui/src/generated/ArkScroll.ts | 44 +- .../arkui/src/generated/ArkScrollBar.ts | 6 +- .../src/generated/ArkScrollInterfaces.ts | 2 +- .../generated/ArkScrollMotionMaterialized.ts | 57 + .../ArkScrollableTargetInfoMaterialized.ts | 7 +- .../src/generated/ArkScrollerMaterialized.ts | 24 +- .../arkui/src/generated/ArkSearch.ts | 90 +- .../ArkSearchControllerMaterialized.ts | 9 +- .../src/generated/ArkSecurityComponent.ts | 48 +- .../arkui/src/generated/ArkSelect.ts | 58 +- .../src/generated/ArkSelectInterfaces.ts | 2 +- arkoala-arkts/arkui/src/generated/ArkShape.ts | 30 +- .../arkui/src/generated/ArkSidebar.ts | 32 +- .../arkui/src/generated/ArkSlider.ts | 57 +- .../src/generated/ArkSliderInterfaces.ts | 13 +- arkoala-arkts/arkui/src/generated/ArkSpan.ts | 30 +- .../generated/ArkSpringMotionMaterialized.ts | 57 + .../generated/ArkSpringPropMaterialized.ts | 53 + .../ArkSslErrorHandlerMaterialized.ts | 7 +- arkoala-arkts/arkui/src/generated/ArkStack.ts | 8 +- .../src/generated/ArkStaticComponents.ts | 2 +- .../arkui/src/generated/ArkStepper.ts | 20 +- .../arkui/src/generated/ArkStepperItem.ts | 10 +- .../ArkStyledStringControllerMaterialized.ts | 7 +- .../generated/ArkStyledStringInterfaces.ts | 54 +- .../generated/ArkStyledStringMaterialized.ts | 22 +- .../src/generated/ArkSubTabBarStyleBuilder.ts | 4 +- .../generated/ArkSubmitEventMaterialized.ts | 5 +- .../ArkSwipeGestureEventMaterialized.ts | 3 +- .../arkui/src/generated/ArkSwiper.ts | 62 +- ...wiperContentTransitionProxyMaterialized.ts | 5 +- .../ArkSwiperControllerMaterialized.ts | 11 +- .../arkui/src/generated/ArkSymbolSpan.ts | 14 +- .../src/generated/ArkSymbolSpanInterfaces.ts | 2 +- .../arkui/src/generated/ArkSymbolglyph.ts | 16 +- .../src/generated/ArkSymbolglyphInterfaces.ts | 20 - .../arkui/src/generated/ArkTabContent.ts | 10 +- ...rkTabContentTransitionProxyMaterialized.ts | 5 +- arkoala-arkts/arkui/src/generated/ArkTabs.ts | 58 +- .../ArkTabsControllerMaterialized.ts | 11 +- .../ArkTapGestureEventMaterialized.ts | 3 +- arkoala-arkts/arkui/src/generated/ArkText.ts | 86 +- .../arkui/src/generated/ArkTextArea.ts | 114 +- .../ArkTextAreaControllerMaterialized.ts | 9 +- .../ArkTextBaseControllerMaterialized.ts | 9 +- .../arkui/src/generated/ArkTextClock.ts | 26 +- .../ArkTextClockControllerMaterialized.ts | 7 +- .../src/generated/ArkTextClockInterfaces.ts | 2 +- .../src/generated/ArkTextCommonInterfaces.ts | 6 +- ...rkTextContentControllerBaseMaterialized.ts | 9 +- .../ArkTextControllerMaterialized.ts | 9 +- .../ArkTextEditControllerExMaterialized.ts | 13 +- .../arkui/src/generated/ArkTextInput.ts | 138 +- .../ArkTextInputControllerMaterialized.ts | 9 +- .../ArkTextMenuItemIdMaterialized.ts | 7 +- .../arkui/src/generated/ArkTextPicker.ts | 38 +- .../ArkTextPickerDialogMaterialized.ts | 5 +- .../ArkTextShadowStyleMaterialized.ts | 75 + .../ArkTextStyleStyledStringMaterialized.ts | 106 + .../arkui/src/generated/ArkTextTimer.ts | 22 +- .../ArkTextTimerControllerMaterialized.ts | 9 +- .../src/generated/ArkTextTimerInterfaces.ts | 2 +- .../arkui/src/generated/ArkTimePicker.ts | 26 +- .../ArkTimePickerDialogMaterialized.ts | 5 +- .../src/generated/ArkTimePickerInterfaces.ts | 2 +- .../arkui/src/generated/ArkToggle.ts | 20 +- .../src/generated/ArkToggleInterfaces.ts | 2 +- .../generated/ArkTouchEventMaterialized.ts | 20 +- .../ArkTransitionEffectMaterialized.ts | 19 +- .../generated/ArkUICommonEventMaterialized.ts | 26 +- .../ArkUIExtensionProxyMaterialized.ts | 16 +- .../src/generated/ArkUiExtensionComponent.ts | 18 +- .../ArkUiExtensionComponentInterfaces.ts | 4 +- .../generated/ArkUnifiedDataMaterialized.ts | 7 +- .../arkui/src/generated/ArkUnitsInterfaces.ts | 6 +- .../src/generated/ArkUrlStyleMaterialized.ts | 63 + arkoala-arkts/arkui/src/generated/ArkVideo.ts | 38 +- .../ArkVideoControllerMaterialized.ts | 17 +- .../src/generated/ArkViewMaterialized.ts | 5 +- .../arkui/src/generated/ArkWaterFlow.ts | 32 +- .../ArkWaterFlowSectionsMaterialized.ts | 13 +- arkoala-arkts/arkui/src/generated/ArkWeb.ts | 244 +- .../ArkWebContextMenuParamMaterialized.ts | 31 +- .../ArkWebContextMenuResultMaterialized.ts | 15 +- .../generated/ArkWebControllerMaterialized.ts | 42 +- .../src/generated/ArkWebCookieMaterialized.ts | 7 +- .../ArkWebKeyboardControllerMaterialized.ts | 13 +- .../ArkWebResourceErrorMaterialized.ts | 7 +- .../ArkWebResourceRequestMaterialized.ts | 15 +- .../ArkWebResourceResponseMaterialized.ts | 33 +- .../ArkWebviewControllerMaterialized.ts | 9 +- .../arkui/src/generated/ArkWindowScene.ts | 6 +- .../src/generated/ArkWithThemeInterfaces.ts | 2 +- .../ArkXComponentControllerMaterialized.ts | 30 +- .../arkui/src/generated/ArkXcomponent.ts | 12 +- .../arkui/src/generated/EnumsImpl.ts | 2 +- .../arkui/src/generated/GlobalScope.ts | 4 +- .../src/generated/SyntheticDeclarations.ts | 472 +- .../arkts/ArkUIGeneratedNativeModule.ts | 169 +- .../arkui/src/generated/arkts/type_check.ts | 71 +- arkoala-arkts/arkui/src/generated/index.ts | 30 +- .../arkui/src/generated/peer_events.ts | 768 +- .../peers/ArkAbilityComponentPeer.ts | 4 +- .../generated/peers/ArkAlphabetIndexerPeer.ts | 6 +- .../src/generated/peers/ArkAnimatorPeer.ts | 27 +- .../arkui/src/generated/peers/ArkBadgePeer.ts | 2 +- .../arkui/src/generated/peers/ArkBlankPeer.ts | 2 +- .../src/generated/peers/ArkButtonPeer.ts | 2 +- .../src/generated/peers/ArkCalendarPeer.ts | 2 +- .../generated/peers/ArkCalendarPickerPeer.ts | 2 +- .../src/generated/peers/ArkCanvasPeer.ts | 2 +- .../src/generated/peers/ArkCheckboxPeer.ts | 6 +- .../generated/peers/ArkCheckboxgroupPeer.ts | 6 +- .../src/generated/peers/ArkCirclePeer.ts | 2 +- .../src/generated/peers/ArkColumnPeer.ts | 2 +- .../src/generated/peers/ArkColumnSplitPeer.ts | 2 +- .../src/generated/peers/ArkCommonPeer.ts | 103 +- .../src/generated/peers/ArkComponent3dPeer.ts | 2 +- .../generated/peers/ArkContainerSpanPeer.ts | 2 +- .../src/generated/peers/ArkCounterPeer.ts | 2 +- .../src/generated/peers/ArkDataPanelPeer.ts | 17 +- .../src/generated/peers/ArkDatePickerPeer.ts | 6 +- .../src/generated/peers/ArkDividerPeer.ts | 2 +- .../generated/peers/ArkEffectComponentPeer.ts | 2 +- .../src/generated/peers/ArkEllipsePeer.ts | 2 +- .../peers/ArkEmbeddedComponentPeer.ts | 4 +- .../arkui/src/generated/peers/ArkFlexPeer.ts | 2 +- .../src/generated/peers/ArkFlowItemPeer.ts | 2 +- .../src/generated/peers/ArkFolderStackPeer.ts | 2 +- .../generated/peers/ArkFormComponentPeer.ts | 2 +- .../src/generated/peers/ArkFormLinkPeer.ts | 2 +- .../arkui/src/generated/peers/ArkGaugePeer.ts | 29 +- .../src/generated/peers/ArkGridColPeer.ts | 2 +- .../generated/peers/ArkGridContainerPeer.ts | 2 +- .../src/generated/peers/ArkGridItemPeer.ts | 6 +- .../arkui/src/generated/peers/ArkGridPeer.ts | 2 +- .../src/generated/peers/ArkGridRowPeer.ts | 2 +- .../src/generated/peers/ArkHyperlinkPeer.ts | 2 +- .../generated/peers/ArkImageAnimatorPeer.ts | 2 +- .../arkui/src/generated/peers/ArkImagePeer.ts | 5 +- .../src/generated/peers/ArkImageSpanPeer.ts | 5 +- .../peers/ArkIndicatorcomponentPeer.ts | 2 +- .../arkui/src/generated/peers/ArkLinePeer.ts | 2 +- .../generated/peers/ArkLinearindicatorPeer.ts | 2 +- .../generated/peers/ArkListItemGroupPeer.ts | 2 +- .../src/generated/peers/ArkListItemPeer.ts | 6 +- .../arkui/src/generated/peers/ArkListPeer.ts | 2 +- .../generated/peers/ArkLoadingProgressPeer.ts | 2 +- .../generated/peers/ArkLocationButtonPeer.ts | 2 +- .../src/generated/peers/ArkMarqueePeer.ts | 2 +- .../peers/ArkMediaCachedImagePeer.ts | 2 +- .../generated/peers/ArkMenuItemGroupPeer.ts | 2 +- .../src/generated/peers/ArkMenuItemPeer.ts | 6 +- .../arkui/src/generated/peers/ArkMenuPeer.ts | 2 +- .../generated/peers/ArkNavDestinationPeer.ts | 2 +- .../src/generated/peers/ArkNavRouterPeer.ts | 2 +- .../src/generated/peers/ArkNavigatorPeer.ts | 2 +- .../generated/peers/ArkNodeContainerPeer.ts | 4 +- .../arkui/src/generated/peers/ArkPanelPeer.ts | 6 +- .../src/generated/peers/ArkPasteButtonPeer.ts | 2 +- .../arkui/src/generated/peers/ArkPathPeer.ts | 2 +- .../src/generated/peers/ArkPatternLockPeer.ts | 2 +- .../generated/peers/ArkPluginComponentPeer.ts | 2 +- .../src/generated/peers/ArkPolygonPeer.ts | 2 +- .../src/generated/peers/ArkPolylinePeer.ts | 2 +- .../src/generated/peers/ArkProgressPeer.ts | 15 +- .../src/generated/peers/ArkQrcodePeer.ts | 2 +- .../arkui/src/generated/peers/ArkRadioPeer.ts | 6 +- .../src/generated/peers/ArkRatingPeer.ts | 6 +- .../arkui/src/generated/peers/ArkRectPeer.ts | 2 +- .../src/generated/peers/ArkRefreshPeer.ts | 6 +- .../peers/ArkRelativeContainerPeer.ts | 2 +- .../generated/peers/ArkRemoteWindowPeer.ts | 2 +- .../src/generated/peers/ArkRichEditorPeer.ts | 2 +- .../src/generated/peers/ArkRichTextPeer.ts | 2 +- .../src/generated/peers/ArkRootScenePeer.ts | 2 +- .../arkui/src/generated/peers/ArkRowPeer.ts | 2 +- .../src/generated/peers/ArkRowSplitPeer.ts | 2 +- .../src/generated/peers/ArkSaveButtonPeer.ts | 2 +- .../src/generated/peers/ArkScreenPeer.ts | 2 +- .../src/generated/peers/ArkScrollBarPeer.ts | 2 +- .../src/generated/peers/ArkScrollPeer.ts | 14 +- .../src/generated/peers/ArkSearchPeer.ts | 6 +- .../peers/ArkSecurityComponentPeer.ts | 2 +- .../src/generated/peers/ArkSelectPeer.ts | 10 +- .../arkui/src/generated/peers/ArkShapePeer.ts | 2 +- .../src/generated/peers/ArkSidebarPeer.ts | 6 +- .../src/generated/peers/ArkSliderPeer.ts | 19 +- .../arkui/src/generated/peers/ArkSpanPeer.ts | 2 +- .../arkui/src/generated/peers/ArkStackPeer.ts | 2 +- .../peers/ArkStaticComponentsPeer.ts | 2 +- .../src/generated/peers/ArkStepperItemPeer.ts | 2 +- .../src/generated/peers/ArkStepperPeer.ts | 6 +- .../src/generated/peers/ArkSwiperPeer.ts | 6 +- .../src/generated/peers/ArkSymbolSpanPeer.ts | 2 +- .../src/generated/peers/ArkSymbolglyphPeer.ts | 2 +- .../src/generated/peers/ArkTabContentPeer.ts | 2 +- .../arkui/src/generated/peers/ArkTabsPeer.ts | 6 +- .../src/generated/peers/ArkTextAreaPeer.ts | 6 +- .../src/generated/peers/ArkTextClockPeer.ts | 2 +- .../src/generated/peers/ArkTextInputPeer.ts | 6 +- .../arkui/src/generated/peers/ArkTextPeer.ts | 2 +- .../src/generated/peers/ArkTextPickerPeer.ts | 10 +- .../src/generated/peers/ArkTextTimerPeer.ts | 2 +- .../src/generated/peers/ArkTimePickerPeer.ts | 6 +- .../src/generated/peers/ArkTogglePeer.ts | 6 +- .../peers/ArkUiExtensionComponentPeer.ts | 4 +- .../arkui/src/generated/peers/ArkVideoPeer.ts | 2 +- .../src/generated/peers/ArkWaterFlowPeer.ts | 2 +- .../arkui/src/generated/peers/ArkWebPeer.ts | 2 +- .../src/generated/peers/ArkWindowScenePeer.ts | 2 +- .../src/generated/peers/ArkXcomponentPeer.ts | 2 +- .../peers/CallbackDeserializeCall.ts | 4 +- .../arkui/src/generated/peers/CallbackKind.ts | 2 +- .../arkui/src/generated/peers/Deserializer.ts | 2010 ++- .../arkui/src/generated/peers/Serializer.ts | 3911 +++-- .../arkui/src/generated/ts/type_check.ts | 224 +- .../arkui/src/peers/ArkNavigationPeer.ts | 8 +- arkoala-arkts/arkui/types/index-full.d.ts | 177 +- .../user/src/ets/pages/homePage/main.ets | 4 +- arkoala/arkui-types/index-full.d.ts | 162 +- arkoala/arkui/src/ArkAbilityComponent.ts | 8 +- .../ArkAccessibilityHoverEventMaterialized.ts | 2 +- .../arkui/src/ArkActionSheetMaterialized.ts | 4 +- .../arkui/src/ArkAlertDialogMaterialized.ts | 4 +- arkoala/arkui/src/ArkAlphabetIndexer.ts | 66 +- .../src/ArkAnimationExtenderInterfaces.ts | 10 +- .../src/ArkAnimationExtenderMaterialized.ts | 62 +- arkoala/arkui/src/ArkAnimator.ts | 36 +- arkoala/arkui/src/ArkAnimatorInterfaces.ts | 10 +- .../src/ArkAppearSymbolEffectMaterialized.ts | 83 + .../ArkBackgroundColorStyleMaterialized.ts | 62 + arkoala/arkui/src/ArkBadge.ts | 4 +- arkoala/arkui/src/ArkBaseEventMaterialized.ts | 4 +- .../src/ArkBaseGestureEventMaterialized.ts | 2 +- .../src/ArkBaselineOffsetStyleMaterialized.ts | 70 + arkoala/arkui/src/ArkBlank.ts | 6 +- .../src/ArkBounceSymbolEffectMaterialized.ts | 112 + arkoala/arkui/src/ArkButton.ts | 28 +- arkoala/arkui/src/ArkCalendar.ts | 30 +- .../src/ArkCalendarControllerMaterialized.ts | 6 +- arkoala/arkui/src/ArkCalendarPicker.ts | 10 +- .../ArkCalendarPickerDialogMaterialized.ts | 4 +- arkoala/arkui/src/ArkCanvas.ts | 12 +- .../src/ArkCanvasGradientMaterialized.ts | 4 +- arkoala/arkui/src/ArkCanvasInterfaces.ts | 12 +- .../arkui/src/ArkCanvasPathMaterialized.ts | 20 +- .../arkui/src/ArkCanvasPatternMaterialized.ts | 4 +- .../src/ArkCanvasRendererMaterialized.ts | 75 +- ...ArkCanvasRenderingContext2DMaterialized.ts | 20 +- arkoala/arkui/src/ArkCheckbox.ts | 26 +- arkoala/arkui/src/ArkCheckboxgroup.ts | 24 +- .../src/ArkChildrenMainSizeMaterialized.ts | 6 +- arkoala/arkui/src/ArkCircle.ts | 4 +- .../arkui/src/ArkClickEventMaterialized.ts | 9 +- ...ClientAuthenticationHandlerMaterialized.ts | 8 +- .../arkui/src/ArkColorFilterMaterialized.ts | 61 + arkoala/arkui/src/ArkColumn.ts | 12 +- arkoala/arkui/src/ArkColumnSplit.ts | 8 +- arkoala/arkui/src/ArkCommon.ts | 407 +- arkoala/arkui/src/ArkCommonInterfaces.ts | 42 +- arkoala/arkui/src/ArkComponent3d.ts | 18 +- arkoala/arkui/src/ArkComponent3dInterfaces.ts | 2 +- .../src/ArkConsoleMessageMaterialized.ts | 10 +- arkoala/arkui/src/ArkContainerSpan.ts | 6 +- arkoala/arkui/src/ArkContentSlotInterfaces.ts | 2 +- .../arkui/src/ArkContextMenuMaterialized.ts | 4 +- .../src/ArkControllerHandlerMaterialized.ts | 4 +- arkoala/arkui/src/ArkCounter.ts | 12 +- .../ArkCustomDialogControllerMaterialized.ts | 6 +- .../arkui/src/ArkCustomSpanMaterialized.ts | 8 +- arkoala/arkui/src/ArkDataPanel.ts | 21 +- arkoala/arkui/src/ArkDataPanelInterfaces.ts | 7 +- .../ArkDataResubmissionHandlerMaterialized.ts | 6 +- arkoala/arkui/src/ArkDatePicker.ts | 24 +- .../src/ArkDatePickerDialogMaterialized.ts | 4 +- .../src/ArkDecorationStyleMaterialized.ts | 84 + .../ArkDisappearSymbolEffectMaterialized.ts | 83 + arkoala/arkui/src/ArkDivider.ts | 12 +- arkoala/arkui/src/ArkDragEventMaterialized.ts | 34 +- .../arkui/src/ArkDrawModifierMaterialized.ts | 10 +- .../arkui/src/ArkDrawingCanvasMaterialized.ts | 4 +- .../ArkDrawingRenderingContextMaterialized.ts | 4 +- .../arkui/src/ArkDynamicNodeMaterialized.ts | 4 +- .../src/ArkEditMenuOptionsMaterialized.ts | 6 +- arkoala/arkui/src/ArkEffectComponent.ts | 4 +- arkoala/arkui/src/ArkEllipse.ts | 4 +- arkoala/arkui/src/ArkEmbeddedComponent.ts | 8 +- .../arkui/src/ArkEventEmulatorMaterialized.ts | 6 +- .../arkui/src/ArkEventResultMaterialized.ts | 4 +- .../src/ArkEventTargetInfoMaterialized.ts | 4 +- .../src/ArkFileSelectorParamMaterialized.ts | 10 +- .../src/ArkFileSelectorResultMaterialized.ts | 4 +- arkoala/arkui/src/ArkFlex.ts | 6 +- arkoala/arkui/src/ArkFlowItem.ts | 4 +- arkoala/arkui/src/ArkFolderStack.ts | 14 +- arkoala/arkui/src/ArkFolderStackInterfaces.ts | 2 +- arkoala/arkui/src/ArkFormComponent.ts | 24 +- arkoala/arkui/src/ArkFormLink.ts | 4 +- arkoala/arkui/src/ArkFrameNodeMaterialized.ts | 30 +- .../src/ArkFrictionMotionMaterialized.ts | 54 + .../ArkFullScreenExitHandlerMaterialized.ts | 4 +- arkoala/arkui/src/ArkGauge.ts | 28 +- arkoala/arkui/src/ArkGaugeInterfaces.ts | 4 +- .../arkui/src/ArkGestureEventMaterialized.ts | 2 +- .../src/ArkGestureModifierMaterialized.ts | 4 +- .../src/ArkGestureRecognizerMaterialized.ts | 18 +- .../arkui/src/ArkGestureStyleMaterialized.ts | 67 + .../src/ArkGlobalScopeCommonMaterialized.ts | 32 +- .../ArkGlobalScopeInspectorMaterialized.ts | 12 +- ...eOhosArkuiComponentSnapshotMaterialized.ts | 4 +- ...OhosArkuiPerformanceMonitorMaterialized.ts | 16 +- arkoala/arkui/src/ArkGrid.ts | 70 +- arkoala/arkui/src/ArkGridCol.ts | 10 +- arkoala/arkui/src/ArkGridContainer.ts | 4 +- arkoala/arkui/src/ArkGridItem.ts | 28 +- arkoala/arkui/src/ArkGridRow.ts | 8 +- ...ArkHierarchicalSymbolEffectMaterialized.ts | 83 + .../arkui/src/ArkHoverEventMaterialized.ts | 9 +- .../src/ArkHttpAuthHandlerMaterialized.ts | 8 +- arkoala/arkui/src/ArkHyperlink.ts | 6 +- arkoala/arkui/src/ArkICurveMaterialized.ts | 4 +- arkoala/arkui/src/ArkImage.ts | 63 +- .../ArkImageAnalyzerControllerMaterialized.ts | 4 +- arkoala/arkui/src/ArkImageAnimator.ts | 30 +- .../src/ArkImageAttachmentMaterialized.ts | 93 + .../arkui/src/ArkImageBitmapMaterialized.ts | 4 +- arkoala/arkui/src/ArkImageDataMaterialized.ts | 87 + arkoala/arkui/src/ArkImageInterfaces.ts | 11 +- arkoala/arkui/src/ArkImageSpan.ts | 19 +- arkoala/arkui/src/ArkImageSpanInterfaces.ts | 3 +- ...ndicatorComponentControllerMaterialized.ts | 8 +- arkoala/arkui/src/ArkIndicatorcomponent.ts | 16 +- .../src/ArkIsolatedComponentInterfaces.ts | 4 +- .../arkui/src/ArkJsGeolocationMaterialized.ts | 4 +- arkoala/arkui/src/ArkJsResultMaterialized.ts | 8 +- arkoala/arkui/src/ArkKeyEventMaterialized.ts | 11 +- .../arkui/src/ArkLayoutManagerMaterialized.ts | 10 +- .../src/ArkLazyForEachOpsMaterialized.ts | 10 +- .../arkui/src/ArkLengthMetricsMaterialized.ts | 6 +- .../src/ArkLetterSpacingStyleMaterialized.ts | 70 + arkoala/arkui/src/ArkLine.ts | 8 +- .../src/ArkLineHeightStyleMaterialized.ts | 70 + .../src/ArkLinearGradientMaterialized.ts | 63 + ...rkLinearIndicatorControllerMaterialized.ts | 10 +- arkoala/arkui/src/ArkLinearindicator.ts | 10 +- arkoala/arkui/src/ArkList.ts | 74 +- arkoala/arkui/src/ArkListItem.ts | 24 +- arkoala/arkui/src/ArkListItemGroup.ts | 8 +- .../arkui/src/ArkListScrollerMaterialized.ts | 10 +- arkoala/arkui/src/ArkLoadingProgress.ts | 10 +- arkoala/arkui/src/ArkLocationButton.ts | 6 +- .../ArkLongPressGestureEventMaterialized.ts | 2 +- arkoala/arkui/src/ArkMarquee.ts | 22 +- arkoala/arkui/src/ArkMatrix2DMaterialized.ts | 14 +- .../arkui/src/ArkMeasurableMaterialized.ts | 10 +- arkoala/arkui/src/ArkMediaCachedImage.ts | 7 +- .../src/ArkMediaCachedImageInterfaces.ts | 3 +- arkoala/arkui/src/ArkMenu.ts | 18 +- arkoala/arkui/src/ArkMenuItem.ts | 26 +- arkoala/arkui/src/ArkMenuItemGroup.ts | 4 +- .../arkui/src/ArkMouseEventMaterialized.ts | 9 +- .../src/ArkMutableStyledStringMaterialized.ts | 29 +- arkoala/arkui/src/ArkNavDestination.ts | 45 +- .../ArkNavDestinationContextMaterialized.ts | 7 +- .../arkui/src/ArkNavDestinationInterfaces.ts | 3 +- .../arkui/src/ArkNavExtenderMaterialized.ts | 7 +- .../arkui/src/ArkNavPathInfoMaterialized.ts | 158 + .../arkui/src/ArkNavPathStackMaterialized.ts | 53 +- arkoala/arkui/src/ArkNavRouter.ts | 8 +- arkoala/arkui/src/ArkNavigationInterfaces.ts | 9 +- ...rkNavigationTransitionProxyMaterialized.ts | 8 +- arkoala/arkui/src/ArkNavigator.ts | 12 +- arkoala/arkui/src/ArkNodeContainer.ts | 4 +- .../src/ArkPanGestureEventMaterialized.ts | 2 +- .../src/ArkPanGestureOptionsMaterialized.ts | 10 +- .../arkui/src/ArkPanRecognizerMaterialized.ts | 4 +- arkoala/arkui/src/ArkPanel.ts | 36 +- .../src/ArkParagraphStyleMaterialized.ts | 121 + arkoala/arkui/src/ArkPasteButton.ts | 6 +- arkoala/arkui/src/ArkPath.ts | 6 +- arkoala/arkui/src/ArkPath2DMaterialized.ts | 4 +- arkoala/arkui/src/ArkPatternLock.ts | 28 +- .../ArkPatternLockControllerMaterialized.ts | 6 +- .../src/ArkPermissionRequestMaterialized.ts | 10 +- .../src/ArkPinchGestureEventMaterialized.ts | 2 +- arkoala/arkui/src/ArkPixelMapMaterialized.ts | 6 +- .../arkui/src/ArkPixelMapMockMaterialized.ts | 4 +- arkoala/arkui/src/ArkPluginComponent.ts | 8 +- arkoala/arkui/src/ArkPolygon.ts | 6 +- arkoala/arkui/src/ArkPolyline.ts | 6 +- arkoala/arkui/src/ArkProgress.ts | 18 +- arkoala/arkui/src/ArkProgressInterfaces.ts | 4 +- .../arkui/src/ArkProgressMaskMaterialized.ts | 8 +- arkoala/arkui/src/ArkQrcode.ts | 10 +- arkoala/arkui/src/ArkRadio.ts | 20 +- arkoala/arkui/src/ArkRating.ts | 22 +- arkoala/arkui/src/ArkRect.ts | 10 +- arkoala/arkui/src/ArkRefresh.ts | 24 +- arkoala/arkui/src/ArkRelativeContainer.ts | 8 +- arkoala/arkui/src/ArkRemoteWindow.ts | 4 +- ...ArkRenderingContextSettingsMaterialized.ts | 82 + .../src/ArkReplaceSymbolEffectMaterialized.ts | 83 + arkoala/arkui/src/ArkRichEditor.ts | 65 +- ...ArkRichEditorBaseControllerMaterialized.ts | 22 +- .../ArkRichEditorControllerMaterialized.ts | 29 +- arkoala/arkui/src/ArkRichEditorInterfaces.ts | 3 +- ...ditorStyledStringControllerMaterialized.ts | 13 +- arkoala/arkui/src/ArkRichText.ts | 8 +- arkoala/arkui/src/ArkRootScene.ts | 4 +- .../ArkRotationGestureEventMaterialized.ts | 2 +- arkoala/arkui/src/ArkRow.ts | 12 +- arkoala/arkui/src/ArkRowSplit.ts | 6 +- arkoala/arkui/src/ArkSaveButton.ts | 6 +- .../src/ArkScaleSymbolEffectMaterialized.ts | 112 + arkoala/arkui/src/ArkScreen.ts | 4 +- .../ArkScreenCaptureHandlerMaterialized.ts | 8 +- arkoala/arkui/src/ArkScroll.ts | 45 +- arkoala/arkui/src/ArkScrollBar.ts | 6 +- arkoala/arkui/src/ArkScrollInterfaces.ts | 2 +- .../arkui/src/ArkScrollMotionMaterialized.ts | 58 + .../ArkScrollableTargetInfoMaterialized.ts | 6 +- arkoala/arkui/src/ArkScrollerMaterialized.ts | 22 +- arkoala/arkui/src/ArkSearch.ts | 92 +- .../src/ArkSearchControllerMaterialized.ts | 8 +- arkoala/arkui/src/ArkSecurityComponent.ts | 48 +- arkoala/arkui/src/ArkSelect.ts | 62 +- arkoala/arkui/src/ArkShape.ts | 30 +- arkoala/arkui/src/ArkSidebar.ts | 34 +- arkoala/arkui/src/ArkSlider.ts | 58 +- arkoala/arkui/src/ArkSliderInterfaces.ts | 4 +- arkoala/arkui/src/ArkSpan.ts | 30 +- .../arkui/src/ArkSpringMotionMaterialized.ts | 58 + .../arkui/src/ArkSpringPropMaterialized.ts | 54 + .../src/ArkSslErrorHandlerMaterialized.ts | 6 +- arkoala/arkui/src/ArkStack.ts | 8 +- arkoala/arkui/src/ArkStaticComponents.ts | 2 +- arkoala/arkui/src/ArkStepper.ts | 22 +- arkoala/arkui/src/ArkStepperItem.ts | 10 +- .../ArkStyledStringControllerMaterialized.ts | 11 +- .../arkui/src/ArkStyledStringInterfaces.ts | 54 +- .../arkui/src/ArkStyledStringMaterialized.ts | 25 +- arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts | 4 +- .../arkui/src/ArkSubmitEventMaterialized.ts | 4 +- .../src/ArkSwipeGestureEventMaterialized.ts | 2 +- arkoala/arkui/src/ArkSwiper.ts | 64 +- ...wiperContentTransitionProxyMaterialized.ts | 4 +- .../src/ArkSwiperControllerMaterialized.ts | 10 +- arkoala/arkui/src/ArkSymbolSpan.ts | 14 +- arkoala/arkui/src/ArkSymbolglyph.ts | 16 +- arkoala/arkui/src/ArkSymbolglyphInterfaces.ts | 20 - arkoala/arkui/src/ArkTabContent.ts | 10 +- ...rkTabContentTransitionProxyMaterialized.ts | 4 +- arkoala/arkui/src/ArkTabs.ts | 60 +- .../src/ArkTabsControllerMaterialized.ts | 10 +- .../src/ArkTapGestureEventMaterialized.ts | 2 +- arkoala/arkui/src/ArkText.ts | 89 +- arkoala/arkui/src/ArkTextArea.ts | 116 +- .../src/ArkTextAreaControllerMaterialized.ts | 8 +- .../src/ArkTextBaseControllerMaterialized.ts | 8 +- arkoala/arkui/src/ArkTextClock.ts | 26 +- .../src/ArkTextClockControllerMaterialized.ts | 6 +- arkoala/arkui/src/ArkTextCommonInterfaces.ts | 9 +- ...rkTextContentControllerBaseMaterialized.ts | 8 +- .../src/ArkTextControllerMaterialized.ts | 13 +- .../ArkTextEditControllerExMaterialized.ts | 12 +- arkoala/arkui/src/ArkTextInput.ts | 140 +- .../src/ArkTextInputControllerMaterialized.ts | 8 +- arkoala/arkui/src/ArkTextInterfaces.ts | 3 +- .../src/ArkTextMenuItemIdMaterialized.ts | 6 +- arkoala/arkui/src/ArkTextPicker.ts | 42 +- .../src/ArkTextPickerDialogMaterialized.ts | 4 +- .../src/ArkTextShadowStyleMaterialized.ts | 78 + .../ArkTextStyleStyledStringMaterialized.ts | 109 + arkoala/arkui/src/ArkTextTimer.ts | 22 +- .../src/ArkTextTimerControllerMaterialized.ts | 8 +- arkoala/arkui/src/ArkTimePicker.ts | 28 +- .../src/ArkTimePickerDialogMaterialized.ts | 4 +- arkoala/arkui/src/ArkTimePickerInterfaces.ts | 2 +- arkoala/arkui/src/ArkToggle.ts | 22 +- .../arkui/src/ArkTouchEventMaterialized.ts | 18 +- .../src/ArkTransitionEffectMaterialized.ts | 18 +- .../arkui/src/ArkUICommonEventMaterialized.ts | 24 +- .../src/ArkUIExtensionProxyMaterialized.ts | 14 +- .../arkui/src/ArkUIGeneratedNativeModule.ts | 1001 +- .../src/ArkUIGeneratedNativeModuleEmpty.ts | 524 +- arkoala/arkui/src/ArkUiExtensionComponent.ts | 16 +- .../src/ArkUiExtensionComponentInterfaces.ts | 2 +- .../arkui/src/ArkUnifiedDataMaterialized.ts | 6 +- arkoala/arkui/src/ArkUnitsInterfaces.ts | 6 +- arkoala/arkui/src/ArkUrlStyleMaterialized.ts | 64 + arkoala/arkui/src/ArkVideo.ts | 38 +- .../src/ArkVideoControllerMaterialized.ts | 16 +- arkoala/arkui/src/ArkViewMaterialized.ts | 4 +- arkoala/arkui/src/ArkWaterFlow.ts | 32 +- .../src/ArkWaterFlowSectionsMaterialized.ts | 12 +- arkoala/arkui/src/ArkWeb.ts | 244 +- .../src/ArkWebContextMenuParamMaterialized.ts | 30 +- .../ArkWebContextMenuResultMaterialized.ts | 14 +- .../arkui/src/ArkWebControllerMaterialized.ts | 40 +- arkoala/arkui/src/ArkWebCookieMaterialized.ts | 6 +- .../ArkWebKeyboardControllerMaterialized.ts | 12 +- .../src/ArkWebResourceErrorMaterialized.ts | 6 +- .../src/ArkWebResourceRequestMaterialized.ts | 14 +- .../src/ArkWebResourceResponseMaterialized.ts | 32 +- .../src/ArkWebviewControllerMaterialized.ts | 6 +- arkoala/arkui/src/ArkWindowScene.ts | 6 +- arkoala/arkui/src/ArkWithThemeInterfaces.ts | 2 +- .../ArkXComponentControllerMaterialized.ts | 28 +- arkoala/arkui/src/ArkXcomponent.ts | 12 +- arkoala/arkui/src/EnumsImpl.ts | 2 +- arkoala/arkui/src/MaterializedBase.ts | 2 +- arkoala/arkui/src/SyntheticDeclarations.ts | 17 +- arkoala/arkui/src/index.ts | 3 +- arkoala/arkui/src/peer_events.ts | 989 +- .../src/peers/ArkAbilityComponentPeer.ts | 2 +- .../arkui/src/peers/ArkAlphabetIndexerPeer.ts | 6 +- arkoala/arkui/src/peers/ArkAnimatorPeer.ts | 6 +- arkoala/arkui/src/peers/ArkBadgePeer.ts | 2 +- arkoala/arkui/src/peers/ArkBlankPeer.ts | 2 +- arkoala/arkui/src/peers/ArkButtonPeer.ts | 2 +- arkoala/arkui/src/peers/ArkCalendarPeer.ts | 2 +- .../arkui/src/peers/ArkCalendarPickerPeer.ts | 2 +- arkoala/arkui/src/peers/ArkCanvasPeer.ts | 6 +- arkoala/arkui/src/peers/ArkCheckboxPeer.ts | 6 +- .../arkui/src/peers/ArkCheckboxgroupPeer.ts | 6 +- arkoala/arkui/src/peers/ArkCirclePeer.ts | 2 +- arkoala/arkui/src/peers/ArkColumnPeer.ts | 2 +- arkoala/arkui/src/peers/ArkColumnSplitPeer.ts | 2 +- arkoala/arkui/src/peers/ArkCommonPeer.ts | 28 +- arkoala/arkui/src/peers/ArkComponent3dPeer.ts | 2 +- .../arkui/src/peers/ArkContainerSpanPeer.ts | 2 +- arkoala/arkui/src/peers/ArkCounterPeer.ts | 2 +- arkoala/arkui/src/peers/ArkDataPanelPeer.ts | 17 +- arkoala/arkui/src/peers/ArkDatePickerPeer.ts | 6 +- arkoala/arkui/src/peers/ArkDividerPeer.ts | 2 +- .../arkui/src/peers/ArkEffectComponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkEllipsePeer.ts | 2 +- .../src/peers/ArkEmbeddedComponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkFlexPeer.ts | 2 +- arkoala/arkui/src/peers/ArkFlowItemPeer.ts | 2 +- arkoala/arkui/src/peers/ArkFolderStackPeer.ts | 2 +- .../arkui/src/peers/ArkFormComponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkFormLinkPeer.ts | 2 +- arkoala/arkui/src/peers/ArkGaugePeer.ts | 26 +- arkoala/arkui/src/peers/ArkGridColPeer.ts | 2 +- .../arkui/src/peers/ArkGridContainerPeer.ts | 2 +- arkoala/arkui/src/peers/ArkGridItemPeer.ts | 6 +- arkoala/arkui/src/peers/ArkGridPeer.ts | 2 +- arkoala/arkui/src/peers/ArkGridRowPeer.ts | 2 +- arkoala/arkui/src/peers/ArkHyperlinkPeer.ts | 2 +- .../arkui/src/peers/ArkImageAnimatorPeer.ts | 2 +- arkoala/arkui/src/peers/ArkImagePeer.ts | 15 +- arkoala/arkui/src/peers/ArkImageSpanPeer.ts | 9 +- .../src/peers/ArkIndicatorcomponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkLinePeer.ts | 2 +- .../arkui/src/peers/ArkLinearindicatorPeer.ts | 2 +- .../arkui/src/peers/ArkListItemGroupPeer.ts | 2 +- arkoala/arkui/src/peers/ArkListItemPeer.ts | 6 +- arkoala/arkui/src/peers/ArkListPeer.ts | 2 +- .../arkui/src/peers/ArkLoadingProgressPeer.ts | 2 +- .../arkui/src/peers/ArkLocationButtonPeer.ts | 2 +- arkoala/arkui/src/peers/ArkMarqueePeer.ts | 2 +- .../src/peers/ArkMediaCachedImagePeer.ts | 7 +- .../arkui/src/peers/ArkMenuItemGroupPeer.ts | 2 +- arkoala/arkui/src/peers/ArkMenuItemPeer.ts | 8 +- arkoala/arkui/src/peers/ArkMenuPeer.ts | 2 +- .../arkui/src/peers/ArkNavDestinationPeer.ts | 7 +- arkoala/arkui/src/peers/ArkNavRouterPeer.ts | 2 +- arkoala/arkui/src/peers/ArkNavigatorPeer.ts | 2 +- .../arkui/src/peers/ArkNodeContainerPeer.ts | 2 +- arkoala/arkui/src/peers/ArkPanelPeer.ts | 6 +- arkoala/arkui/src/peers/ArkPasteButtonPeer.ts | 2 +- arkoala/arkui/src/peers/ArkPathPeer.ts | 2 +- arkoala/arkui/src/peers/ArkPatternLockPeer.ts | 2 +- .../arkui/src/peers/ArkPluginComponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkPolygonPeer.ts | 2 +- arkoala/arkui/src/peers/ArkPolylinePeer.ts | 2 +- arkoala/arkui/src/peers/ArkProgressPeer.ts | 14 +- arkoala/arkui/src/peers/ArkQrcodePeer.ts | 2 +- arkoala/arkui/src/peers/ArkRadioPeer.ts | 6 +- arkoala/arkui/src/peers/ArkRatingPeer.ts | 6 +- arkoala/arkui/src/peers/ArkRectPeer.ts | 2 +- arkoala/arkui/src/peers/ArkRefreshPeer.ts | 6 +- .../src/peers/ArkRelativeContainerPeer.ts | 2 +- .../arkui/src/peers/ArkRemoteWindowPeer.ts | 2 +- arkoala/arkui/src/peers/ArkRichEditorPeer.ts | 5 +- arkoala/arkui/src/peers/ArkRichTextPeer.ts | 2 +- arkoala/arkui/src/peers/ArkRootScenePeer.ts | 2 +- arkoala/arkui/src/peers/ArkRowPeer.ts | 2 +- arkoala/arkui/src/peers/ArkRowSplitPeer.ts | 2 +- arkoala/arkui/src/peers/ArkSaveButtonPeer.ts | 2 +- arkoala/arkui/src/peers/ArkScreenPeer.ts | 2 +- arkoala/arkui/src/peers/ArkScrollBarPeer.ts | 2 +- arkoala/arkui/src/peers/ArkScrollPeer.ts | 14 +- arkoala/arkui/src/peers/ArkSearchPeer.ts | 8 +- .../src/peers/ArkSecurityComponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkSelectPeer.ts | 10 +- arkoala/arkui/src/peers/ArkShapePeer.ts | 2 +- arkoala/arkui/src/peers/ArkSidebarPeer.ts | 6 +- arkoala/arkui/src/peers/ArkSliderPeer.ts | 18 +- arkoala/arkui/src/peers/ArkSpanPeer.ts | 2 +- arkoala/arkui/src/peers/ArkStackPeer.ts | 2 +- .../src/peers/ArkStaticComponentsPeer.ts | 2 +- arkoala/arkui/src/peers/ArkStepperItemPeer.ts | 2 +- arkoala/arkui/src/peers/ArkStepperPeer.ts | 6 +- arkoala/arkui/src/peers/ArkSwiperPeer.ts | 6 +- arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts | 2 +- arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts | 2 +- arkoala/arkui/src/peers/ArkTabContentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkTabsPeer.ts | 6 +- arkoala/arkui/src/peers/ArkTextAreaPeer.ts | 6 +- arkoala/arkui/src/peers/ArkTextClockPeer.ts | 2 +- arkoala/arkui/src/peers/ArkTextInputPeer.ts | 6 +- arkoala/arkui/src/peers/ArkTextPeer.ts | 5 +- arkoala/arkui/src/peers/ArkTextPickerPeer.ts | 10 +- arkoala/arkui/src/peers/ArkTextTimerPeer.ts | 2 +- arkoala/arkui/src/peers/ArkTimePickerPeer.ts | 6 +- arkoala/arkui/src/peers/ArkTogglePeer.ts | 6 +- .../src/peers/ArkUiExtensionComponentPeer.ts | 2 +- arkoala/arkui/src/peers/ArkVideoPeer.ts | 2 +- arkoala/arkui/src/peers/ArkWaterFlowPeer.ts | 2 +- arkoala/arkui/src/peers/ArkWebPeer.ts | 2 +- arkoala/arkui/src/peers/ArkWindowScenePeer.ts | 2 +- arkoala/arkui/src/peers/ArkXcomponentPeer.ts | 2 +- .../src/peers/CallbackDeserializeCall.ts | 18 +- arkoala/arkui/src/peers/CallbackKind.ts | 1 - arkoala/arkui/src/peers/Deserializer.ts | 1491 +- arkoala/arkui/src/peers/Serializer.ts | 2367 ++- arkoala/arkui/src/shared/generated-utils.ts | 35 +- .../native/src/generated/Serializers.h | 14099 +++++++++------- .../native/src/generated/all_events.cc | 824 +- .../src/generated/arkoala_api_generated.h | 3352 ++-- .../native/src/generated/bridge_custom.cc | 3 - .../native/src/generated/bridge_generated.cc | 1832 +- .../generated/callback_deserialize_call.cc | 40 +- .../src/generated/callback_managed_caller.cc | 3808 ++--- .../native/src/generated/dummy_impl.cc | 3484 +++- .../native/src/generated/real_impl.cc | 2773 ++- .../src/generated/ArkUINativeModule.ts | 2 +- .../src/generated/ArkUINativeModuleEmpty.ts | 2 +- arkoala/tools/peer-generator/package.json | 6 +- 848 files changed, 36632 insertions(+), 22940 deletions(-) create mode 100644 arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts rename arkoala-arkts/arkui/src/generated/{ArkArkui-customInterfaces.ts => ArkArkuiCustomInterfaces.ts} (100%) rename arkoala-arkts/arkui/src/generated/{ArkArkui-externalInterfaces.ts => ArkArkuiExternalInterfaces.ts} (100%) create mode 100644 arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts create mode 100644 arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts create mode 100644 arkoala/arkui/src/ArkColorFilterMaterialized.ts create mode 100644 arkoala/arkui/src/ArkDecorationStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts create mode 100644 arkoala/arkui/src/ArkFrictionMotionMaterialized.ts create mode 100644 arkoala/arkui/src/ArkGestureStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts create mode 100644 arkoala/arkui/src/ArkImageAttachmentMaterialized.ts create mode 100644 arkoala/arkui/src/ArkImageDataMaterialized.ts create mode 100644 arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkLinearGradientMaterialized.ts create mode 100644 arkoala/arkui/src/ArkNavPathInfoMaterialized.ts create mode 100644 arkoala/arkui/src/ArkParagraphStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts create mode 100644 arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts create mode 100644 arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts create mode 100644 arkoala/arkui/src/ArkScrollMotionMaterialized.ts create mode 100644 arkoala/arkui/src/ArkSpringMotionMaterialized.ts create mode 100644 arkoala/arkui/src/ArkSpringPropMaterialized.ts create mode 100644 arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts create mode 100644 arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts create mode 100644 arkoala/arkui/src/ArkUrlStyleMaterialized.ts diff --git a/arkoala-arkts/arkui/src/ArkNavigation.ts b/arkoala-arkts/arkui/src/ArkNavigation.ts index 03acc8f3f..738866674 100644 --- a/arkoala-arkts/arkui/src/ArkNavigation.ts +++ b/arkoala-arkts/arkui/src/ArkNavigation.ts @@ -17,10 +17,10 @@ import { contextLocalScope, MutableState, NodeAttach, remember, rememberMutableS import { runtimeType, RuntimeType } from "@koalaui/interop" import { ArkCommonMethodComponent } from "./generated/ArkCommon" import { ArkNavigationPeer } from "./peers/ArkNavigationPeer" -import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavPathInfo, PopInfo, LaunchMode, NavigationOptions, NavBar, NavigationOperation, InterceptionShowCallback, NavigationMode, InterceptionModeCallback, NavigationInterception, NavigationInterface, ToolbarItemStatus, ToolbarItem, BarStyle, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition } from "./generated/ArkNavigationInterfaces" +import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationOperation, NavigationMode, ToolbarItem, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition } from "./generated/ArkNavigationInterfaces" import { Resource } from "./generated/ArkResourceInterfaces" -import { CustomBuilder, SymbolGlyphModifier, BlurStyle, CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./generated/ArkCommonInterfaces" -import { Length, ResourceStr, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage } from "./generated/ArkUnitsInterfaces" +import { CustomBuilder, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./generated/ArkCommonInterfaces" +import { Length, ResourceStr, Dimension } from "./generated/ArkUnitsInterfaces" import { NavPathStack } from "./generated/ArkNavPathStackMaterialized" import { PixelMap } from "./generated/ArkPixelMapMaterialized" import { PathData } from "./handwritten/ArkNavPathStack" diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts index 34d0802be..68352d5ce 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -27,14 +27,14 @@ import { UseEventsProperties } from "./use_properties" import { CommonMethod } from "./ArkCommonInterfaces" import { AbilityComponentAttribute } from "./ArkAbilityComponentInterfaces" import { Callback_Void, Literal_Want_want } from "./SyntheticDeclarations" -import { Want } from "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" /** @memo:stable */ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkAbilityComponentPeer { return (this.peer as ArkAbilityComponentPeer) } /** @memo */ - setAbilityComponentOptions(value: Literal_Want_want): this { + public setAbilityComponentOptions(value: Literal_Want_want): this { if (this.checkPriority("setAbilityComponentOptions")) { const value_casted = value as (Literal_Want_want) this.getPeer()?.setAbilityComponentOptionsAttribute(value_casted) @@ -43,7 +43,7 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onConnect(value: (() => void)): this { + public onConnect(value: (() => void)): this { if (this.checkPriority("onConnect")) { const value_casted = value as ((() => void)) this.getPeer()?.onConnectAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDisconnect(value: (() => void)): this { + public onDisconnect(value: (() => void)): this { if (this.checkPriority("onDisconnect")) { const value_casted = value as ((() => void)) this.getPeer()?.onDisconnectAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts index c0e472418..fc9f52eb4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts @@ -20,7 +20,7 @@ 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 { Want } from "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" export type AbilityComponentInterface = (value: Literal_Want_want) => AbilityComponentAttribute; export interface AbilityComponentAttribute extends CommonMethod { diff --git a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index 9e591ef2f..53977fb7b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -18,14 +18,13 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" -import { INTERFACE_AccessibilityHoverEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface AccessibilityHoverEvent { type: AccessibilityHoverType diff --git a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts index dd6742dea..9ac404174 100644 --- a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ActionSheetOptions } from "./ArkActionSheetInterfaces" -import { INTERFACE_ActionSheet } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ActionSheet implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class ActionSheet implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ActionSheet_getFinalizer() } - static show(value: ActionSheetOptions): undefined { + public static show(value: ActionSheetOptions): undefined { const value_casted = value as (ActionSheetOptions) return ActionSheet.show_serialize(value_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts index cb32c99fa..e64cd1df3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./ArkAlertDialogInterfaces" -import { INTERFACE_AlertDialog } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class AlertDialog implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class AlertDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._AlertDialog_getFinalizer() } - static show(value: AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions): undefined { + public static show(value: AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions): undefined { const value_casted = value as (AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions) return AlertDialog.show_serialize(value_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts index 855c69cc7..538f150e3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return (this.peer as ArkAlphabetIndexerPeer) } /** @memo */ - setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { + public setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { if (this.checkPriority("setAlphabetIndexerOptions")) { const options_casted = options as (AlphabetIndexerOptions) this.getPeer()?.setAlphabetIndexerOptionsAttribute(options_casted) @@ -43,7 +43,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelected(value: ((index: number) => void)): this { + public onSelected(value: ((index: number) => void)): this { if (this.checkPriority("onSelected")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onSelectedAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupColor(value: ResourceColor): this { + public popupColor(value: ResourceColor): this { if (this.checkPriority("popupColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupColorAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupBackground(value: ResourceColor): this { + public popupBackground(value: ResourceColor): this { if (this.checkPriority("popupBackground")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupBackgroundAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupSelectedColor(value: ResourceColor): this { + public popupSelectedColor(value: ResourceColor): this { if (this.checkPriority("popupSelectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupSelectedColorAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupUnselectedColor(value: ResourceColor): this { + public popupUnselectedColor(value: ResourceColor): this { if (this.checkPriority("popupUnselectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupUnselectedColorAttribute(value_casted) @@ -115,7 +115,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupItemBackgroundColor(value: ResourceColor): this { + public popupItemBackgroundColor(value: ResourceColor): this { if (this.checkPriority("popupItemBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupItemBackgroundColorAttribute(value_casted) @@ -124,7 +124,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - usingPopup(value: boolean): this { + public usingPopup(value: boolean): this { if (this.checkPriority("usingPopup")) { const value_casted = value as (boolean) this.getPeer()?.usingPopupAttribute(value_casted) @@ -133,7 +133,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedFont(value: Font): this { + public selectedFont(value: Font): this { if (this.checkPriority("selectedFont")) { const value_casted = value as (Font) this.getPeer()?.selectedFontAttribute(value_casted) @@ -142,7 +142,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupFont(value: Font): this { + public popupFont(value: Font): this { if (this.checkPriority("popupFont")) { const value_casted = value as (Font) this.getPeer()?.popupFontAttribute(value_casted) @@ -151,7 +151,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupItemFont(value: Font): this { + public popupItemFont(value: Font): this { if (this.checkPriority("popupItemFont")) { const value_casted = value as (Font) this.getPeer()?.popupItemFontAttribute(value_casted) @@ -160,7 +160,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - itemSize(value: string | number): this { + public itemSize(value: string | number): this { if (this.checkPriority("itemSize")) { const value_casted = value as (string | number) this.getPeer()?.itemSizeAttribute(value_casted) @@ -169,7 +169,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -178,7 +178,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: OnAlphabetIndexerSelectCallback): this { + public onSelect(value: OnAlphabetIndexerSelectCallback): this { if (this.checkPriority("onSelect")) { const value_casted = value as (OnAlphabetIndexerSelectCallback) this.getPeer()?.onSelectAttribute(value_casted) @@ -187,7 +187,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback): this { + public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback): this { if (this.checkPriority("onRequestPopupData")) { const value_casted = value as (OnAlphabetIndexerRequestPopupDataCallback) this.getPeer()?.onRequestPopupDataAttribute(value_casted) @@ -196,7 +196,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback): this { + public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback): this { if (this.checkPriority("onPopupSelect")) { const value_casted = value as (OnAlphabetIndexerPopupSelectCallback) this.getPeer()?.onPopupSelectAttribute(value_casted) @@ -205,7 +205,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: number): this { + public selected(value: number): this { if (this.checkPriority("selected")) { const value_casted = value as (number) this.getPeer()?.selectedAttribute(value_casted) @@ -214,7 +214,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupPosition(value: Position): this { + public popupPosition(value: Position): this { if (this.checkPriority("popupPosition")) { const value_casted = value as (Position) this.getPeer()?.popupPositionAttribute(value_casted) @@ -223,7 +223,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoCollapse(value: boolean): this { + public autoCollapse(value: boolean): this { if (this.checkPriority("autoCollapse")) { const value_casted = value as (boolean) this.getPeer()?.autoCollapseAttribute(value_casted) @@ -232,7 +232,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupItemBorderRadius(value: number): this { + public popupItemBorderRadius(value: number): this { if (this.checkPriority("popupItemBorderRadius")) { const value_casted = value as (number) this.getPeer()?.popupItemBorderRadiusAttribute(value_casted) @@ -241,7 +241,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - itemBorderRadius(value: number): this { + public itemBorderRadius(value: number): this { if (this.checkPriority("itemBorderRadius")) { const value_casted = value as (number) this.getPeer()?.itemBorderRadiusAttribute(value_casted) @@ -250,7 +250,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupBackgroundBlurStyle(value: BlurStyle): this { + public popupBackgroundBlurStyle(value: BlurStyle): this { if (this.checkPriority("popupBackgroundBlurStyle")) { const value_casted = value as (BlurStyle) this.getPeer()?.popupBackgroundBlurStyleAttribute(value_casted) @@ -259,7 +259,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupTitleBackground(value: ResourceColor): this { + public popupTitleBackground(value: ResourceColor): this { if (this.checkPriority("popupTitleBackground")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupTitleBackgroundAttribute(value_casted) @@ -268,7 +268,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -277,7 +277,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignStyle(value: IndexerAlign, offset?: Length): this { + public alignStyle(value: IndexerAlign, offset?: Length): this { if (this.checkPriority("alignStyle")) { const value_casted = value as (IndexerAlign) const offset_casted = offset as (Length | undefined) @@ -287,10 +287,10 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((index: number) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderInterfaces.ts index 1518fb496..49c471ace 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderInterfaces.ts @@ -25,10 +25,10 @@ export type Callback_Extender_OnProgress = (value: float32) => void; export type Callback_Extender_OnFinish = () => void; export interface DoubleAnimationParam { propertyName: string; - startValue: number; - endValue: number; - duration: number; - delay: number; + startValue: float32; + endValue: float32; + duration: int32; + delay: int32; curve: Curve | string | ICurve; onProgress?: Callback_Extender_OnProgress; onFinish?: Callback_Extender_OnFinish; diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 54a5d01ab..79734c88f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -16,16 +16,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { AnimateParam } from "./ArkCommonInterfaces" +import { AnimateParam, TranslateOptions } from "./ArkCommonInterfaces" import { DoubleAnimationParam } from "./ArkAnimationExtenderInterfaces" -import { INTERFACE_AnimationExtender } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class AnimationExtender implements MaterializedBase { peer?: Finalizable | undefined @@ -46,48 +45,58 @@ export class AnimationExtender implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._AnimationExtender_getFinalizer() } - static SetClipRect(peer: KPointer, left: number, top: number, right: number, bottom: number): void { - const peer_casted = peer as (KPointer) - const left_casted = left as (number) - const top_casted = top as (number) - const right_casted = right as (number) - const bottom_casted = bottom as (number) - AnimationExtender.SetClipRect_serialize(peer_casted, left_casted, top_casted, right_casted, bottom_casted) + public static SetClipRect(node: KPointer, x: float32, y: float32, width: float32, height: float32): void { + const node_casted = node as (KPointer) + const x_casted = x as (float32) + const y_casted = y as (float32) + const width_casted = width as (float32) + const height_casted = height as (float32) + AnimationExtender.SetClipRect_serialize(node_casted, x_casted, y_casted, width_casted, height_casted) return } - static OpenImplicitAnimation(peer: KPointer, param: AnimateParam): void { - const peer_casted = peer as (KPointer) + public static OpenImplicitAnimation(param: AnimateParam): void { const param_casted = param as (AnimateParam) - AnimationExtender.OpenImplicitAnimation_serialize(peer_casted, param_casted) + AnimationExtender.OpenImplicitAnimation_serialize(param_casted) return } - static CloseImplicitAnimation(node: KPointer): void { - const node_casted = node as (KPointer) - AnimationExtender.CloseImplicitAnimation_serialize(node_casted) + public static CloseImplicitAnimation(): void { + AnimationExtender.CloseImplicitAnimation_serialize() return } - static StartDoubleAnimation(peer: KPointer, param: DoubleAnimationParam): void { - const peer_casted = peer as (KPointer) + public static StartDoubleAnimation(node: KPointer, param: DoubleAnimationParam): void { + const node_casted = node as (KPointer) const param_casted = param as (DoubleAnimationParam) - AnimationExtender.StartDoubleAnimation_serialize(peer_casted, param_casted) + AnimationExtender.StartDoubleAnimation_serialize(node_casted, param_casted) return } - private static SetClipRect_serialize(peer: KPointer, left: number, top: number, right: number, bottom: number): void { - ArkUIGeneratedNativeModule._AnimationExtender_SetClipRect(peer, left, top, right, bottom) + public static AnimationTranslate(node: KPointer, options: TranslateOptions): void { + const node_casted = node as (KPointer) + const options_casted = options as (TranslateOptions) + AnimationExtender.AnimationTranslate_serialize(node_casted, options_casted) + return } - private static OpenImplicitAnimation_serialize(peer: KPointer, param: AnimateParam): void { + private static SetClipRect_serialize(node: KPointer, x: float32, y: float32, width: float32, height: float32): void { + ArkUIGeneratedNativeModule._AnimationExtender_SetClipRect(node, x, y, width, height) + } + private static OpenImplicitAnimation_serialize(param: AnimateParam): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeAnimateParam(param) - ArkUIGeneratedNativeModule._AnimationExtender_OpenImplicitAnimation(peer, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AnimationExtender_OpenImplicitAnimation(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private static CloseImplicitAnimation_serialize(node: KPointer): void { - ArkUIGeneratedNativeModule._AnimationExtender_CloseImplicitAnimation(node) + private static CloseImplicitAnimation_serialize(): void { + ArkUIGeneratedNativeModule._AnimationExtender_CloseImplicitAnimation() } - private static StartDoubleAnimation_serialize(peer: KPointer, param: DoubleAnimationParam): void { + private static StartDoubleAnimation_serialize(node: KPointer, param: DoubleAnimationParam): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeDoubleAnimationParam(param) - ArkUIGeneratedNativeModule._AnimationExtender_StartDoubleAnimation(peer, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AnimationExtender_StartDoubleAnimation(node, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private static AnimationTranslate_serialize(node: KPointer, options: TranslateOptions): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeTranslateOptions(options) + ArkUIGeneratedNativeModule._AnimationExtender_AnimationTranslate(node, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts index 87a8802e0..0ecf58d9b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,8 +25,9 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" import { UseEventsProperties } from "./use_properties" import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion } from "./ArkAnimatorInterfaces" +import { AnimatorAttribute } from "./ArkAnimatorInterfaces" import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { SpringMotion } from "./ArkSpringMotionMaterialized" import { Callback_Void, Callback_Number_Void } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkAnimatorComponent extends ArkCommonMethodComponent { @@ -34,7 +35,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkAnimatorPeer) } /** @memo */ - setAnimatorOptions(value: string): this { + public setAnimatorOptions(value: string): this { if (this.checkPriority("setAnimatorOptions")) { const value_casted = value as (string) this.getPeer()?.setAnimatorOptionsAttribute(value_casted) @@ -43,7 +44,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - state(value: AnimationStatus): this { + public state(value: AnimationStatus): this { if (this.checkPriority("state")) { const value_casted = value as (AnimationStatus) this.getPeer()?.stateAttribute(value_casted) @@ -52,7 +53,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - duration(value: number): this { + public duration(value: number): this { if (this.checkPriority("duration")) { const value_casted = value as (number) this.getPeer()?.durationAttribute(value_casted) @@ -61,7 +62,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - curve(value: Curve): this { + public curve(value: Curve): this { if (this.checkPriority("curve")) { const value_casted = value as (Curve) this.getPeer()?.curveAttribute(value_casted) @@ -70,7 +71,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - delay(value: number): this { + public delay(value: number): this { if (this.checkPriority("delay")) { const value_casted = value as (number) this.getPeer()?.delayAttribute(value_casted) @@ -79,7 +80,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillMode(value: FillMode): this { + public fillMode(value: FillMode): this { if (this.checkPriority("fillMode")) { const value_casted = value as (FillMode) this.getPeer()?.fillModeAttribute(value_casted) @@ -88,7 +89,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - iterations(value: number): this { + public iterations(value: number): this { if (this.checkPriority("iterations")) { const value_casted = value as (number) this.getPeer()?.iterationsAttribute(value_casted) @@ -97,7 +98,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - playMode(value: PlayMode): this { + public playMode(value: PlayMode): this { if (this.checkPriority("playMode")) { const value_casted = value as (PlayMode) this.getPeer()?.playModeAttribute(value_casted) @@ -106,16 +107,16 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - motion(value: SpringMotion | FrictionMotion | ScrollMotion): this { + public motion(value: SpringMotion): this { if (this.checkPriority("motion")) { - const value_casted = value as (SpringMotion | FrictionMotion | ScrollMotion) + const value_casted = value as (SpringMotion) this.getPeer()?.motionAttribute(value_casted) return this } return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onStartAttribute(value_casted) @@ -124,7 +125,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPause(value: (() => void)): this { + public onPause(value: (() => void)): this { if (this.checkPriority("onPause")) { const value_casted = value as ((() => void)) this.getPeer()?.onPauseAttribute(value_casted) @@ -133,7 +134,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRepeat(value: (() => void)): this { + public onRepeat(value: (() => void)): this { if (this.checkPriority("onRepeat")) { const value_casted = value as ((() => void)) this.getPeer()?.onRepeatAttribute(value_casted) @@ -142,7 +143,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCancel(value: (() => void)): this { + public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) this.getPeer()?.onCancelAttribute(value_casted) @@ -151,7 +152,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) this.getPeer()?.onFinishAttribute(value_casted) @@ -160,7 +161,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFrame(value: ((index: number) => void)): this { + public onFrame(value: ((index: number) => void)): this { if (this.checkPriority("onFrame")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onFrameAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts index b79c98191..4bc0842d0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts @@ -21,15 +21,8 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { CommonMethod } from "./ArkCommonInterfaces" import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { SpringMotion } from "./ArkSpringMotionMaterialized" import { Callback_Void, Callback_Number_Void } from "./SyntheticDeclarations" -export interface SpringProp { -} -export interface SpringMotion { -} -export interface FrictionMotion { -} -export interface ScrollMotion { -} export type AnimatorInterface = (value: string) => AnimatorAttribute; export interface AnimatorAttribute extends CommonMethod { state: AnimationStatus; @@ -39,7 +32,7 @@ export interface AnimatorAttribute extends CommonMethod { fillMode: FillMode; iterations: number; playMode: PlayMode; - motion: SpringMotion | FrictionMotion | ScrollMotion; + motion: SpringMotion; onStart: (() => void); onPause: (() => void); onRepeat: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts new file mode 100644 index 000000000..cad049b50 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -0,0 +1,82 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope | undefined { + return this.getScope() + } + set scope(scope: EffectScope | undefined) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + static ctor(scope?: EffectScope): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let scope_type : int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type as int32) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = (scope as EffectScope) + thisSerializer.writeInt32((scope_value.valueOf() as int32)) + } + const retval = ArkUIGeneratedNativeModule._AppearSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope) { + const ctorPtr : KPointer = AppearSymbolEffect.ctor(scope) + this.peer = new Finalizable(ctorPtr, AppearSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._AppearSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this.setScope_serialize(scope_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._AppearSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + 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/ArkArkui-customInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkArkuiCustomInterfaces.ts similarity index 100% rename from arkoala-arkts/arkui/src/generated/ArkArkui-customInterfaces.ts rename to arkoala-arkts/arkui/src/generated/ArkArkuiCustomInterfaces.ts diff --git a/arkoala-arkts/arkui/src/generated/ArkArkui-externalInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkArkuiExternalInterfaces.ts similarity index 100% rename from arkoala-arkts/arkui/src/generated/ArkArkui-externalInterfaces.ts rename to arkoala-arkts/arkui/src/generated/ArkArkuiExternalInterfaces.ts diff --git a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts new file mode 100644 index 000000000..b03958918 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -0,0 +1,60 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BackgroundColorStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get textBackgroundStyle(): TextBackgroundStyle { + throw new Error("Not implemented") + } + static ctor(textBackgroundStyle: TextBackgroundStyle): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeTextBackgroundStyle(textBackgroundStyle) + const retval = ArkUIGeneratedNativeModule._BackgroundColorStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(textBackgroundStyle?: TextBackgroundStyle) { + if (((textBackgroundStyle) !== (undefined))) + { + const ctorPtr : KPointer = BackgroundColorStyle.ctor(textBackgroundStyle) + this.peer = new Finalizable(ctorPtr, BackgroundColorStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 0658d6e47..bcae313ed 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBadge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBadge.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkBadgeComponent extends ArkCommonMethodComponent { return (this.peer as ArkBadgePeer) } /** @memo */ - setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { + public setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { if (this.checkPriority("setBadgeOptions")) { const value_type = runtimeType(value) if ((TypeChecker.isBadgeParamWithNumber(value, false, false))) { diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts index 82fbccd49..0c93faed7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" -import { INTERFACE_BaseEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface BaseEvent { target: EventTarget @@ -118,7 +117,7 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._BaseEvent_getFinalizer() } - getModifierKeyState(keys: Array): boolean { + public getModifierKeyState(keys: Array): boolean { const keys_casted = keys as (Array) return this.getModifierKeyState_serialize(keys_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index fbb40d738..33dc02f00 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -18,14 +18,13 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" -import { INTERFACE_BaseGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface BaseGestureEvent { fingerList: Array diff --git a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts new file mode 100644 index 000000000..b277873cd --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BaselineOffsetStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get baselineOffset(): number { + return this.getBaselineOffset() + } + static ctor(value: LengthMetrics): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeLengthMetrics(value) + const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: LengthMetrics) { + if (((value) !== (undefined))) + { + const ctorPtr : KPointer = BaselineOffsetStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, BaselineOffsetStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._BaselineOffsetStyle_getFinalizer() + } + private getBaselineOffset(): number { + return this.getBaselineOffset_serialize() + } + private getBaselineOffset_serialize(): number { + const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_getBaselineOffset(this.peer!.ptr) + 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 84ce47c9f..81cda3540 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlank.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlank.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkBlankComponent extends ArkCommonMethodComponent { return (this.peer as ArkBlankPeer) } /** @memo */ - setBlankOptions(min?: number | string): this { + public setBlankOptions(min?: number | string): this { if (this.checkPriority("setBlankOptions")) { const min_casted = min as (number | string | undefined) this.getPeer()?.setBlankOptionsAttribute(min_casted) @@ -41,7 +41,7 @@ export class ArkBlankComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts new file mode 100644 index 000000000..23a2ed49a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -0,0 +1,111 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope | undefined { + return this.getScope() + } + set scope(scope: EffectScope | undefined) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + get direction(): EffectDirection | undefined { + return this.getDirection() + } + set direction(direction: EffectDirection | undefined) { + const direction_NonNull = (direction as EffectDirection) + this.setDirection(direction_NonNull) + } + static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let scope_type : int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type as int32) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = (scope as EffectScope) + thisSerializer.writeInt32((scope_value.valueOf() as int32)) + } + let direction_type : int32 = RuntimeType.UNDEFINED + direction_type = runtimeType(direction) + thisSerializer.writeInt8(direction_type as int32) + if ((RuntimeType.UNDEFINED) != (direction_type)) { + const direction_value = (direction as EffectDirection) + thisSerializer.writeInt32((direction_value.valueOf() as int32)) + } + const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope, direction?: EffectDirection) { + const ctorPtr : KPointer = BounceSymbolEffect.ctor(scope, direction) + this.peer = new Finalizable(ctorPtr, BounceSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._BounceSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this.setScope_serialize(scope_casted) + return + } + private getDirection(): EffectDirection { + return this.getDirection_serialize() + } + private setDirection(direction: EffectDirection): void { + const direction_casted = direction as (EffectDirection) + this.setDirection_serialize(direction_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + ArkUIGeneratedNativeModule._BounceSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + } + private getDirection_serialize(): EffectDirection { + const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_getDirection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setDirection_serialize(direction: EffectDirection): void { + 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 8d56a5ebb..78dc84723 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return (this.peer as ArkButtonPeer) } /** @memo */ - setButtonOptions(label?: ButtonOptions | ResourceStr, options?: ButtonOptions): this { + public setButtonOptions(label?: ButtonOptions | ResourceStr, options?: ButtonOptions): this { if (this.checkPriority("setButtonOptions")) { const label_type = runtimeType(label) const options_type = runtimeType(options) @@ -58,7 +58,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: ButtonType): this { + public type(value: ButtonType): this { if (this.checkPriority("type")) { const value_casted = value as (ButtonType) this.getPeer()?.typeAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stateEffect(value: boolean): this { + public stateEffect(value: boolean): this { if (this.checkPriority("stateEffect")) { const value_casted = value as (boolean) this.getPeer()?.stateEffectAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - buttonStyle(value: ButtonStyleMode): this { + public buttonStyle(value: ButtonStyleMode): this { if (this.checkPriority("buttonStyle")) { const value_casted = value as (ButtonStyleMode) this.getPeer()?.buttonStyleAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controlSize(value: ControlSize): this { + public controlSize(value: ControlSize): this { if (this.checkPriority("controlSize")) { const value_casted = value as (ControlSize) this.getPeer()?.controlSizeAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - role(value: ButtonRole): this { + public role(value: ButtonRole): this { if (this.checkPriority("role")) { const value_casted = value as (ButtonRole) this.getPeer()?.roleAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -148,7 +148,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -157,7 +157,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - labelStyle(value: LabelStyle): this { + public labelStyle(value: LabelStyle): this { if (this.checkPriority("labelStyle")) { const value_casted = value as (LabelStyle) this.getPeer()?.labelStyleAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts index e721a016a..ffb36b82b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts @@ -82,6 +82,6 @@ export interface ButtonAttribute extends CommonMethod { fontWeight: number | FontWeight | string; fontStyle: FontStyle; fontFamily: string | Resource; - contentModifier: ContentModifier; + contentModifier: ContentModifier; labelStyle: LabelStyle; } diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts index baee8e23f..2349affe2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkCalendarComponent extends ComponentBase { return (this.peer as ArkCalendarPeer) } /** @memo */ - setCalendarOptions(value: Type_CalendarInterface_value): this { + public setCalendarOptions(value: Type_CalendarInterface_value): this { if (this.checkPriority("setCalendarOptions")) { const value_casted = value as (Type_CalendarInterface_value) this.getPeer()?.setCalendarOptionsAttribute(value_casted) @@ -42,7 +42,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - showLunar(value: boolean): this { + public showLunar(value: boolean): this { if (this.checkPriority("showLunar")) { const value_casted = value as (boolean) this.getPeer()?.showLunarAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - showHoliday(value: boolean): this { + public showHoliday(value: boolean): this { if (this.checkPriority("showHoliday")) { const value_casted = value as (boolean) this.getPeer()?.showHolidayAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - needSlide(value: boolean): this { + public needSlide(value: boolean): this { if (this.checkPriority("needSlide")) { const value_casted = value as (boolean) this.getPeer()?.needSlideAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - startOfWeek(value: number): this { + public startOfWeek(value: number): this { if (this.checkPriority("startOfWeek")) { const value_casted = value as (number) this.getPeer()?.startOfWeekAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - offDays(value: number): this { + public offDays(value: number): this { if (this.checkPriority("offDays")) { const value_casted = value as (number) this.getPeer()?.offDaysAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - direction(value: Axis): this { + public direction(value: Axis): this { if (this.checkPriority("direction")) { const value_casted = value as (Axis) this.getPeer()?.directionAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - currentDayStyle(value: CurrentDayStyle): this { + public currentDayStyle(value: CurrentDayStyle): this { if (this.checkPriority("currentDayStyle")) { const value_casted = value as (CurrentDayStyle) this.getPeer()?.currentDayStyleAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - nonCurrentDayStyle(value: NonCurrentDayStyle): this { + public nonCurrentDayStyle(value: NonCurrentDayStyle): this { if (this.checkPriority("nonCurrentDayStyle")) { const value_casted = value as (NonCurrentDayStyle) this.getPeer()?.nonCurrentDayStyleAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - todayStyle(value: TodayStyle): this { + public todayStyle(value: TodayStyle): this { if (this.checkPriority("todayStyle")) { const value_casted = value as (TodayStyle) this.getPeer()?.todayStyleAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - weekStyle(value: WeekStyle): this { + public weekStyle(value: WeekStyle): this { if (this.checkPriority("weekStyle")) { const value_casted = value as (WeekStyle) this.getPeer()?.weekStyleAttribute(value_casted) @@ -132,7 +132,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - workStateStyle(value: WorkStateStyle): this { + public workStateStyle(value: WorkStateStyle): this { if (this.checkPriority("workStateStyle")) { const value_casted = value as (WorkStateStyle) this.getPeer()?.workStateStyleAttribute(value_casted) @@ -141,7 +141,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - onSelectChange(value: ((event: CalendarSelectedDate) => void)): this { + public onSelectChange(value: ((event: CalendarSelectedDate) => void)): this { if (this.checkPriority("onSelectChange")) { const value_casted = value as (((event: CalendarSelectedDate) => void)) this.getPeer()?.onSelectChangeAttribute(value_casted) @@ -150,7 +150,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - onRequestData(value: ((event: CalendarRequestedData) => void)): this { + public onRequestData(value: ((event: CalendarRequestedData) => void)): this { if (this.checkPriority("onRequestData")) { const value_casted = value as (((event: CalendarRequestedData) => void)) this.getPeer()?.onRequestDataAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts index 37ee3253a..6f56f43ad 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -16,14 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Literal_Number_day_month_year, INTERFACE_CalendarController } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CalendarController implements MaterializedBase { peer?: Finalizable | undefined @@ -41,10 +41,10 @@ export class CalendarController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CalendarController_getFinalizer() } - backToToday(): undefined { + public backToToday(): undefined { return this.backToToday_serialize() } - goTo(value: Literal_Number_day_month_year): undefined { + public goTo(value: Literal_Number_day_month_year): undefined { const value_casted = value as (Literal_Number_day_month_year) return this.goTo_serialize(value_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts index 78c0195f0..de783d7ec 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkCalendarPickerPeer) } /** @memo */ - setCalendarPickerOptions(options?: CalendarOptions): this { + public setCalendarPickerOptions(options?: CalendarOptions): this { if (this.checkPriority("setCalendarPickerOptions")) { const options_casted = options as (CalendarOptions | undefined) this.getPeer()?.setCalendarPickerOptionsAttribute(options_casted) @@ -43,7 +43,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: Date) => void)): this { + public onChange(value: ((parameter: Date) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: Date) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - edgeAlign(alignType: CalendarAlign, offset?: Offset): this { + public edgeAlign(alignType: CalendarAlign, offset?: Offset): this { if (this.checkPriority("edgeAlign")) { const alignType_casted = alignType as (CalendarAlign) const offset_casted = offset as (Offset | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index 661b472a1..70f501a1a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CalendarDialogOptions } from "./ArkCalendarPickerInterfaces" -import { INTERFACE_CalendarPickerDialog } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CalendarPickerDialog implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class CalendarPickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CalendarPickerDialog_getFinalizer() } - static show(options?: CalendarDialogOptions): void { + public static show(options?: CalendarDialogOptions): void { const options_casted = options as (CalendarDialogOptions | undefined) CalendarPickerDialog.show_serialize(options_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts index 37e046f6d..eb36d2837 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { return (this.peer as ArkCanvasPeer) } /** @memo */ - setCanvasOptions(context?: CanvasRenderingContext2D | DrawingRenderingContext | CanvasRenderingContext2D | DrawingRenderingContext | undefined, imageAIOptions?: ImageAIOptions): this { + public setCanvasOptions(context?: CanvasRenderingContext2D | DrawingRenderingContext | CanvasRenderingContext2D | DrawingRenderingContext | undefined, imageAIOptions?: ImageAIOptions): this { if (this.checkPriority("setCanvasOptions")) { const context_type = runtimeType(context) const imageAIOptions_type = runtimeType(imageAIOptions) @@ -56,7 +56,7 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: VoidCallback): this { + public onReady(value: VoidCallback): this { if (this.checkPriority("onReady")) { const value_casted = value as (VoidCallback) this.getPeer()?.onReadyAttribute(value_casted) @@ -65,7 +65,7 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts index 6f3e7b903..786d0b06b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_CanvasGradient } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CanvasGradient implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class CanvasGradient implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasGradient_getFinalizer() } - addColorStop(offset: number, color: string): void { + public addColorStop(offset: number, color: string): void { const offset_casted = offset as (number) const color_casted = color as (string) this.addColorStop_serialize(offset_casted, color_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts index 193bb5235..0201ba956 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.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 { LengthMetricsUnit, VoidCallback } from "./ArkUnitsInterfaces" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" import { ImageAIOptions } from "./ArkImageCommonInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" +import { VoidCallback } from "./ArkUnitsInterfaces" export type CanvasFillRule = string; export type CanvasLineCap = string; export type CanvasLineJoin = string; @@ -46,14 +46,6 @@ export interface TextMetrics { width: number; height: number; } -export interface ImageData { - data: NativeBuffer; - height: number; - width: number; -} -export interface RenderingContextSettings { - antialias?: boolean; -} export interface Size { width: number; height: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts index 0d2eba6c4..7c0260f97 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_CanvasPath } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CanvasPath implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class CanvasPath implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasPath_getFinalizer() } - arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { + public arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { const x_casted = x as (number) const y_casted = y as (number) const radius_casted = radius as (number) @@ -51,7 +50,7 @@ export class CanvasPath implements MaterializedBase { this.arc_serialize(x_casted, y_casted, radius_casted, startAngle_casted, endAngle_casted, counterclockwise_casted) return } - arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void { + public arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void { const x1_casted = x1 as (number) const y1_casted = y1 as (number) const x2_casted = x2 as (number) @@ -60,7 +59,7 @@ export class CanvasPath implements MaterializedBase { this.arcTo_serialize(x1_casted, y1_casted, x2_casted, y2_casted, radius_casted) return } - bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void { + public bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void { const cp1x_casted = cp1x as (number) const cp1y_casted = cp1y as (number) const cp2x_casted = cp2x as (number) @@ -70,11 +69,11 @@ export class CanvasPath implements MaterializedBase { this.bezierCurveTo_serialize(cp1x_casted, cp1y_casted, cp2x_casted, cp2y_casted, x_casted, y_casted) return } - closePath(): void { + public closePath(): void { this.closePath_serialize() return } - ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { + public ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { const x_casted = x as (number) const y_casted = y as (number) const radiusX_casted = radiusX as (number) @@ -86,19 +85,19 @@ export class CanvasPath implements MaterializedBase { this.ellipse_serialize(x_casted, y_casted, radiusX_casted, radiusY_casted, rotation_casted, startAngle_casted, endAngle_casted, counterclockwise_casted) return } - lineTo(x: number, y: number): void { + public lineTo(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this.lineTo_serialize(x_casted, y_casted) return } - moveTo(x: number, y: number): void { + public moveTo(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this.moveTo_serialize(x_casted, y_casted) return } - quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void { + public quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void { const cpx_casted = cpx as (number) const cpy_casted = cpy as (number) const x_casted = x as (number) @@ -106,7 +105,7 @@ export class CanvasPath implements MaterializedBase { this.quadraticCurveTo_serialize(cpx_casted, cpy_casted, x_casted, y_casted) return } - rect(x: number, y: number, w: number, h: number): void { + public rect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts index 71bb20bcc..87e3a24bf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" -import { INTERFACE_CanvasPattern } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface CanvasPattern { setTransform(transform: Matrix2D): void @@ -45,7 +44,7 @@ export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasPattern_getFinalizer() } - setTransform(transform?: Matrix2D): void { + public setTransform(transform?: Matrix2D): void { const transform_casted = transform as (Matrix2D | undefined) this.setTransform_serialize(transform_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts index c01bc02fc..44c5b72f9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -19,19 +19,19 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" -import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics } from "./ArkCanvasInterfaces" +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 { INTERFACE_CanvasRenderer } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CanvasRenderer extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined @@ -170,7 +170,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderer_getFinalizer() } - drawImage(image: ImageBitmap | PixelMap, sx: number, sy: number, sw?: number, sh?: number, dx?: number, dy?: number, dw?: number, dh?: number): void { + public drawImage(image: ImageBitmap | PixelMap, sx: number, sy: number, sw?: number, sh?: number, dx?: number, dy?: number, dw?: number, dh?: number): void { const image_type = runtimeType(image) const sx_type = runtimeType(sx) const sy_type = runtimeType(sy) @@ -211,11 +211,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - beginPath(): void { + public beginPath(): void { this.beginPath_serialize() return } - clip(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { + 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)))) { @@ -231,7 +231,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - fill(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { + 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)))) { @@ -247,7 +247,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - stroke(path?: Path2D): void { + public stroke(path?: Path2D): void { const path_type = runtimeType(path) if ((((RuntimeType.UNDEFINED == path_type)))) { this.stroke0_serialize() @@ -260,19 +260,19 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient { + public createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient { const x0_casted = x0 as (number) const y0_casted = y0 as (number) const x1_casted = x1 as (number) const y1_casted = y1 as (number) return this.createLinearGradient_serialize(x0_casted, y0_casted, x1_casted, y1_casted) } - createPattern(image: ImageBitmap, repetition?: string): CanvasPattern | undefined { + public createPattern(image: ImageBitmap, repetition?: string): CanvasPattern | undefined { const image_casted = image as (ImageBitmap) const repetition_casted = repetition as (string | undefined) return this.createPattern_serialize(image_casted, repetition_casted) } - createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient { + public createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient { const x0_casted = x0 as (number) const y0_casted = y0 as (number) const r0_casted = r0 as (number) @@ -281,13 +281,13 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const r1_casted = r1 as (number) return this.createRadialGradient_serialize(x0_casted, y0_casted, r0_casted, x1_casted, y1_casted, r1_casted) } - createConicGradient(startAngle: number, x: number, y: number): CanvasGradient { + public createConicGradient(startAngle: number, x: number, y: number): CanvasGradient { const startAngle_casted = startAngle as (number) const x_casted = x as (number) const y_casted = y as (number) return this.createConicGradient_serialize(startAngle_casted, x_casted, y_casted) } - createImageData(sw: ImageData | number, sh?: number): ImageData { + 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)))) { @@ -301,21 +301,21 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - getImageData(sx: number, sy: number, sw: number, sh: number): ImageData { + public getImageData(sx: number, sy: number, sw: number, sh: number): ImageData { const sx_casted = sx as (number) const sy_casted = sy as (number) const sw_casted = sw as (number) const sh_casted = sh as (number) return this.getImageData_serialize(sx_casted, sy_casted, sw_casted, sh_casted) } - getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap { + public getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap { const sx_casted = sx as (number) const sy_casted = sy as (number) const sw_casted = sw as (number) const sh_casted = sh as (number) return this.getPixelMap_serialize(sx_casted, sy_casted, sw_casted, sh_casted) } - putImageData(imagedata: ImageData, dx: number | string, dy: number | string, dirtyX?: number | string, dirtyY?: number | string, dirtyWidth?: number | string, dirtyHeight?: number | string): void { + public putImageData(imagedata: ImageData, dx: number | string, dy: number | string, dirtyX?: number | string, dirtyY?: number | string, dirtyWidth?: number | string, dirtyHeight?: number | string): void { const imagedata_type = runtimeType(imagedata) const dx_type = runtimeType(dx) const dy_type = runtimeType(dy) @@ -343,15 +343,15 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - getLineDash(): Array { + public getLineDash(): Array { return this.getLineDash_serialize() } - setLineDash(segments: Array): void { + public setLineDash(segments: Array): void { const segments_casted = segments as (Array) this.setLineDash_serialize(segments_casted) return } - clearRect(x: number, y: number, w: number, h: number): void { + public clearRect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) @@ -359,7 +359,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.clearRect_serialize(x_casted, y_casted, w_casted, h_casted) return } - fillRect(x: number, y: number, w: number, h: number): void { + public fillRect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) @@ -367,7 +367,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.fillRect_serialize(x_casted, y_casted, w_casted, h_casted) return } - strokeRect(x: number, y: number, w: number, h: number): void { + public strokeRect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) @@ -375,15 +375,15 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.strokeRect_serialize(x_casted, y_casted, w_casted, h_casted) return } - restore(): void { + public restore(): void { this.restore_serialize() return } - save(): void { + public save(): void { this.save_serialize() return } - fillText(text: string, x: number, y: number, maxWidth?: number): void { + public fillText(text: string, x: number, y: number, maxWidth?: number): void { const text_casted = text as (string) const x_casted = x as (number) const y_casted = y as (number) @@ -391,11 +391,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.fillText_serialize(text_casted, x_casted, y_casted, maxWidth_casted) return } - measureText(text: string): TextMetrics { + public measureText(text: string): TextMetrics { const text_casted = text as (string) return this.measureText_serialize(text_casted) } - strokeText(text: string, x: number, y: number, maxWidth?: number): void { + public strokeText(text: string, x: number, y: number, maxWidth?: number): void { const text_casted = text as (string) const x_casted = x as (number) const y_casted = y as (number) @@ -403,25 +403,25 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.strokeText_serialize(text_casted, x_casted, y_casted, maxWidth_casted) return } - getTransform(): Matrix2D { + public getTransform(): Matrix2D { return this.getTransform_serialize() } - resetTransform(): void { + public resetTransform(): void { this.resetTransform_serialize() return } - rotate(angle: number): void { + public rotate(angle: number): void { const angle_casted = angle as (number) this.rotate_serialize(angle_casted) return } - scale(x: number, y: number): void { + public scale(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this.scale_serialize(x_casted, y_casted) return } - setTransform(a?: Matrix2D | undefined | number, b?: number, c?: number, d?: number, e?: number, f?: number): void { + public setTransform(a?: Matrix2D | undefined | number, b?: number, c?: number, d?: number, e?: number, f?: number): void { const a_type = runtimeType(a) const b_type = runtimeType(b) const c_type = runtimeType(c) @@ -445,7 +445,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - transform(a: number, b: number, c: number, d: number, e: number, f: number): void { + public transform(a: number, b: number, c: number, d: number, e: number, f: number): void { const a_casted = a as (number) const b_casted = b as (number) const c_casted = c as (number) @@ -455,31 +455,31 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.transform_serialize(a_casted, b_casted, c_casted, d_casted, e_casted, f_casted) return } - translate(x: number, y: number): void { + public translate(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this.translate_serialize(x_casted, y_casted) return } - setPixelMap(value?: PixelMap): void { + public setPixelMap(value?: PixelMap): void { const value_casted = value as (PixelMap | undefined) this.setPixelMap_serialize(value_casted) return } - transferFromImageBitmap(bitmap: ImageBitmap): void { + public transferFromImageBitmap(bitmap: ImageBitmap): void { const bitmap_casted = bitmap as (ImageBitmap) this.transferFromImageBitmap_serialize(bitmap_casted) return } - saveLayer(): void { + public saveLayer(): void { this.saveLayer_serialize() return } - restoreLayer(): void { + public restoreLayer(): void { this.restoreLayer_serialize() return } - reset(): void { + public reset(): void { this.reset_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index 125e0740b..efbd855c9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -18,17 +18,17 @@ import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" import { FrameNode, FrameNodeInternal } from "./ArkFrameNodeMaterialized" -import { RenderingContextSettings } from "./ArkCanvasInterfaces" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" -import { Callback_Void, INTERFACE_CanvasRenderingContext2D } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { peer?: Finalizable | undefined @@ -65,35 +65,35 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderingContext2D_getFinalizer() } - toDataURL(type?: string, quality?: number): string { + public toDataURL(type?: string, quality?: number): string { const type_casted = type as (string | undefined) const quality_casted = quality as (number | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } - startImageAnalyzer(config: ImageAnalyzerConfig): Promise { + public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { const config_casted = config as (ImageAnalyzerConfig) return this.startImageAnalyzer_serialize(config_casted) } - stopImageAnalyzer(): void { + public stopImageAnalyzer(): void { this.stopImageAnalyzer_serialize() return } - onOnAttach(callback_: (() => void)): void { + public onOnAttach(callback_: (() => void)): void { const callback__casted = callback_ as ((() => void)) this.onOnAttach_serialize(callback__casted) return } - offOnAttach(callback_?: (() => void)): void { + public offOnAttach(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this.offOnAttach_serialize(callback__casted) return } - onOnDetach(callback_: (() => void)): void { + public onOnDetach(callback_: (() => void)): void { const callback__casted = callback_ as ((() => void)) this.onOnDetach_serialize(callback__casted) return } - offOnDetach(callback_?: (() => void)): void { + public offOnDetach(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this.offOnDetach_serialize(callback__casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts index 387897016..3b29cb385 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return (this.peer as ArkCheckboxPeer) } /** @memo */ - setCheckboxOptions(options?: CheckboxOptions): this { + public setCheckboxOptions(options?: CheckboxOptions): this { if (this.checkPriority("setCheckboxOptions")) { const options_casted = options as (CheckboxOptions | undefined) this.getPeer()?.setCheckboxOptionsAttribute(options_casted) @@ -44,7 +44,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - select(value: boolean): this { + public select(value: boolean): this { if (this.checkPriority("select")) { const value_casted = value as (boolean) this.getPeer()?.selectAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shape(value: CheckBoxShape): this { + public shape(value: CheckBoxShape): this { if (this.checkPriority("shape")) { const value_casted = value as (CheckBoxShape) this.getPeer()?.shapeAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - unselectedColor(value: ResourceColor): this { + public unselectedColor(value: ResourceColor): this { if (this.checkPriority("unselectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.unselectedColorAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mark(value: MarkStyle): this { + public mark(value: MarkStyle): this { if (this.checkPriority("mark")) { const value_casted = value as (MarkStyle) this.getPeer()?.markAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: OnCheckboxChangeCallback): this { + public onChange(value: OnCheckboxChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnCheckboxChangeCallback) this.getPeer()?.onChangeAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -107,10 +107,10 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_select(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_select")) { + public _onChangeEvent_select(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_select")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_selectAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts index f89ed7483..bec975959 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts @@ -42,5 +42,5 @@ export interface CheckboxAttribute extends CommonMethod { unselectedColor: ResourceColor; mark: MarkStyle; onChange: OnCheckboxChangeCallback; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts index d48129246..164497925 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return (this.peer as ArkCheckboxGroupPeer) } /** @memo */ - setCheckboxGroupOptions(options?: CheckboxGroupOptions): this { + public setCheckboxGroupOptions(options?: CheckboxGroupOptions): this { if (this.checkPriority("setCheckboxGroupOptions")) { const options_casted = options as (CheckboxGroupOptions | undefined) this.getPeer()?.setCheckboxGroupOptionsAttribute(options_casted) @@ -44,7 +44,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectAll(value: boolean): this { + public selectAll(value: boolean): this { if (this.checkPriority("selectAll")) { const value_casted = value as (boolean) this.getPeer()?.selectAllAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - unselectedColor(value: ResourceColor): this { + public unselectedColor(value: ResourceColor): this { if (this.checkPriority("unselectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.unselectedColorAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mark(value: MarkStyle): this { + public mark(value: MarkStyle): this { if (this.checkPriority("mark")) { const value_casted = value as (MarkStyle) this.getPeer()?.markAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: OnCheckboxGroupChangeCallback): this { + public onChange(value: OnCheckboxGroupChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnCheckboxGroupChangeCallback) this.getPeer()?.onChangeAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - checkboxShape(value: CheckBoxShape): this { + public checkboxShape(value: CheckBoxShape): this { if (this.checkPriority("checkboxShape")) { const value_casted = value as (CheckBoxShape) this.getPeer()?.checkboxShapeAttribute(value_casted) @@ -98,10 +98,10 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selectAll(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selectAll")) { + public _onChangeEvent_selectAll(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selectAll")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_selectAllAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectAllAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index 0a33678a2..bd5c468a6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_ChildrenMainSize } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ChildrenMainSize implements MaterializedBase { peer?: Finalizable | undefined @@ -50,14 +49,14 @@ export class ChildrenMainSize implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ChildrenMainSize_getFinalizer() } - splice(start: number, deleteCount?: number, childrenSize?: Array): void { + public splice(start: number, deleteCount?: number, childrenSize?: Array): void { const start_casted = start as (number) const deleteCount_casted = deleteCount as (number | undefined) const childrenSize_casted = childrenSize as (Array | undefined) this.splice_serialize(start_casted, deleteCount_casted, childrenSize_casted) return } - update(index: number, childSize: number): void { + public update(index: number, childSize: number): void { const index_casted = index as (number) const childSize_casted = childSize as (number) this.update_serialize(index_casted, childSize_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkCircle.ts b/arkoala-arkts/arkui/src/generated/ArkCircle.ts index 118acdf56..50a3e0a46 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircle.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkCircleComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkCirclePeer) } /** @memo */ - setCircleOptions(value?: CircleOptions): this { + public setCircleOptions(value?: CircleOptions): this { if (this.checkPriority("setCircleOptions")) { const value_casted = value as (CircleOptions | undefined) this.getPeer()?.setCircleOptionsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts index 584aa83e8..7d215e899 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 { Callback_Void, INTERFACE_ClickEvent } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface ClickEvent { displayX: number @@ -172,6 +172,9 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize this.setY_serialize(y_casted) return } + private getPreventDefault(): (() => void) { + return this.getPreventDefault_serialize() + } private setPreventDefault(preventDefault: (() => void)): void { const preventDefault_casted = preventDefault as ((() => void)) this.setPreventDefault_serialize(preventDefault_casted) @@ -233,6 +236,10 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize private setY_serialize(y: number): void { ArkUIGeneratedNativeModule._ClickEvent_setY(this.peer!.ptr, y) } + private getPreventDefault_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getPreventDefault(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setPreventDefault_serialize(preventDefault: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(preventDefault) diff --git a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index e7be31054..5f325ce81 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_ClientAuthenticationHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ClientAuthenticationHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class ClientAuthenticationHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ClientAuthenticationHandler_getFinalizer() } - confirm(priKeyFile: string, certChainFile?: string): void { + public confirm(priKeyFile: string, certChainFile?: string): void { const priKeyFile_type = runtimeType(priKeyFile) const certChainFile_type = runtimeType(certChainFile) if ((((RuntimeType.UNDEFINED == certChainFile_type)))) { @@ -57,11 +56,11 @@ export class ClientAuthenticationHandler implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - cancel(): void { + public cancel(): void { this.cancel_serialize() return } - ignore(): void { + public ignore(): void { this.ignore_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts new file mode 100644 index 000000000..04dcbd8d8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -0,0 +1,60 @@ +/* + * 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, NativeBuffer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +import { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ColorFilter implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(value: Array): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element : number = value[i] + thisSerializer.writeNumber(value_element) + } + const retval = ArkUIGeneratedNativeModule._ColorFilter_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: Array) { + if (((value) !== (undefined))) + { + const ctorPtr : KPointer = ColorFilter.ctor(value) + this.peer = new Finalizable(ctorPtr, ColorFilter.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 e60d441a9..2a4b23551 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumn.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumn.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return (this.peer as ArkColumnPeer) } /** @memo */ - setColumnOptions(options?: ColumnOptions): this { + public setColumnOptions(options?: ColumnOptions): this { if (this.checkPriority("setColumnOptions")) { const options_casted = options as (ColumnOptions | undefined) this.getPeer()?.setColumnOptionsAttribute(options_casted) @@ -41,7 +41,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignItems(value: HorizontalAlign): this { + public alignItems(value: HorizontalAlign): this { if (this.checkPriority("alignItems")) { const value_casted = value as (HorizontalAlign) this.getPeer()?.alignItemsAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - justifyContent(value: FlexAlign): this { + public justifyContent(value: FlexAlign): this { if (this.checkPriority("justifyContent")) { const value_casted = value as (FlexAlign) this.getPeer()?.justifyContentAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - reverse(value?: boolean): this { + public reverse(value?: boolean): this { if (this.checkPriority("reverse")) { const value_casted = value as (boolean | undefined) this.getPeer()?.reverseAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts index 8365de44e..878b1d633 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { return (this.peer as ArkColumnSplitPeer) } /** @memo */ - setColumnSplitOptions(): this { + public setColumnSplitOptions(): this { if (this.checkPriority("setColumnSplitOptions")) { this.getPeer()?.setColumnSplitOptionsAttribute() return this @@ -39,7 +39,7 @@ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { return this } /** @memo */ - resizeable(value: boolean): this { + public resizeable(value: boolean): this { if (this.checkPriority("resizeable")) { const value_casted = value as (boolean) this.getPeer()?.resizeableAttribute(value_casted) @@ -48,7 +48,7 @@ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: ColumnSplitDividerStyle): this { + public divider(value?: ColumnSplitDividerStyle): this { if (this.checkPriority("divider")) { const value_casted = value as (ColumnSplitDividerStyle | undefined) this.getPeer()?.dividerAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkCommon.ts b/arkoala-arkts/arkui/src/generated/ArkCommon.ts index 92b37808d..82cb77118 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommon.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -39,10 +39,6 @@ import { KeyEvent } from "./ArkKeyEventMaterialized" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { DragEvent } from "./ArkDragEventMaterialized" -import { CircleAttribute } from "./ArkCircleInterfaces" -import { EllipseAttribute } from "./ArkEllipseInterfaces" -import { PathAttribute } from "./ArkPathInterfaces" -import { RectAttribute } from "./ArkRectInterfaces" import { ProgressMask } from "./ArkProgressMaskMaterialized" import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" @@ -56,7 +52,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return (this.peer as ArkCommonMethodPeer) } /** @memo */ - width(value: Length): this { + public width(value: Length): this { if (this.checkPriority("width")) { const value_casted = value as (Length) this.getPeer()?.widthAttribute(value_casted) @@ -65,7 +61,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - height(value: Length): this { + public height(value: Length): this { if (this.checkPriority("height")) { const value_casted = value as (Length) this.getPeer()?.heightAttribute(value_casted) @@ -74,7 +70,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - drawModifier(value?: DrawModifier): this { + public drawModifier(value?: DrawModifier): this { if (this.checkPriority("drawModifier")) { const value_casted = value as (DrawModifier | undefined) this.getPeer()?.drawModifierAttribute(value_casted) @@ -83,7 +79,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - responseRegion(value: Array | Rectangle): this { + public responseRegion(value: Array | Rectangle): this { if (this.checkPriority("responseRegion")) { const value_casted = value as (Array | Rectangle) this.getPeer()?.responseRegionAttribute(value_casted) @@ -92,7 +88,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - mouseResponseRegion(value: Array | Rectangle): this { + public mouseResponseRegion(value: Array | Rectangle): this { if (this.checkPriority("mouseResponseRegion")) { const value_casted = value as (Array | Rectangle) this.getPeer()?.mouseResponseRegionAttribute(value_casted) @@ -101,7 +97,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - size(value: SizeOptions): this { + public size(value: SizeOptions): this { if (this.checkPriority("size")) { const value_casted = value as (SizeOptions) this.getPeer()?.sizeAttribute(value_casted) @@ -110,7 +106,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - constraintSize(value: ConstraintSizeOptions): this { + public constraintSize(value: ConstraintSizeOptions): this { if (this.checkPriority("constraintSize")) { const value_casted = value as (ConstraintSizeOptions) this.getPeer()?.constraintSizeAttribute(value_casted) @@ -119,7 +115,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - touchable(value: boolean): this { + public touchable(value: boolean): this { if (this.checkPriority("touchable")) { const value_casted = value as (boolean) this.getPeer()?.touchableAttribute(value_casted) @@ -128,7 +124,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - hitTestBehavior(value: HitTestMode): this { + public hitTestBehavior(value: HitTestMode): this { if (this.checkPriority("hitTestBehavior")) { const value_casted = value as (HitTestMode) this.getPeer()?.hitTestBehaviorAttribute(value_casted) @@ -137,7 +133,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onChildTouchTest(value: ((value: Array) => TouchResult)): this { + public onChildTouchTest(value: ((value: Array) => TouchResult)): this { if (this.checkPriority("onChildTouchTest")) { const value_casted = value as (((value: Array) => TouchResult)) this.getPeer()?.onChildTouchTestAttribute(value_casted) @@ -146,7 +142,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - layoutWeight(value: number | string): this { + public layoutWeight(value: number | string): this { if (this.checkPriority("layoutWeight")) { const value_casted = value as (number | string) this.getPeer()?.layoutWeightAttribute(value_casted) @@ -155,7 +151,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - chainWeight(value: ChainWeightOptions): this { + public chainWeight(value: ChainWeightOptions): this { if (this.checkPriority("chainWeight")) { const value_casted = value as (ChainWeightOptions) this.getPeer()?.chainWeightAttribute(value_casted) @@ -164,7 +160,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - padding(value: Padding | Length | LocalizedPadding): this { + public padding(value: Padding | Length | LocalizedPadding): this { if (this.checkPriority("padding")) { const value_casted = value as (Padding | Length | LocalizedPadding) this.getPeer()?.paddingAttribute(value_casted) @@ -173,7 +169,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding): this { + public safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding): this { if (this.checkPriority("safeAreaPadding")) { const value_casted = value as (Padding | LengthMetrics | LocalizedPadding) this.getPeer()?.safeAreaPaddingAttribute(value_casted) @@ -182,7 +178,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - margin(value: Margin | Length | LocalizedMargin): this { + public margin(value: Margin | Length | LocalizedMargin): this { if (this.checkPriority("margin")) { const value_casted = value as (Margin | Length | LocalizedMargin) this.getPeer()?.marginAttribute(value_casted) @@ -191,7 +187,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -200,7 +196,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - pixelRound(value: PixelRoundPolicy): this { + public pixelRound(value: PixelRoundPolicy): this { if (this.checkPriority("pixelRound")) { const value_casted = value as (PixelRoundPolicy) this.getPeer()?.pixelRoundAttribute(value_casted) @@ -209,7 +205,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImageSize(value: SizeOptions | ImageSize): this { + public backgroundImageSize(value: SizeOptions | ImageSize): this { if (this.checkPriority("backgroundImageSize")) { const value_casted = value as (SizeOptions | ImageSize) this.getPeer()?.backgroundImageSizeAttribute(value_casted) @@ -218,7 +214,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImagePosition(value: Position | Alignment): this { + public backgroundImagePosition(value: Position | Alignment): this { if (this.checkPriority("backgroundImagePosition")) { const value_casted = value as (Position | Alignment) this.getPeer()?.backgroundImagePositionAttribute(value_casted) @@ -227,7 +223,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundEffect(value: BackgroundEffectOptions): this { + public backgroundEffect(value: BackgroundEffectOptions): this { if (this.checkPriority("backgroundEffect")) { const value_casted = value as (BackgroundEffectOptions) this.getPeer()?.backgroundEffectAttribute(value_casted) @@ -236,7 +232,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImageResizable(value: ResizableOptions): this { + public backgroundImageResizable(value: ResizableOptions): this { if (this.checkPriority("backgroundImageResizable")) { const value_casted = value as (ResizableOptions) this.getPeer()?.backgroundImageResizableAttribute(value_casted) @@ -245,7 +241,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundEffect(value: ForegroundEffectOptions): this { + public foregroundEffect(value: ForegroundEffectOptions): this { if (this.checkPriority("foregroundEffect")) { const value_casted = value as (ForegroundEffectOptions) this.getPeer()?.foregroundEffectAttribute(value_casted) @@ -254,7 +250,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - visualEffect(value: VisualEffect): this { + public visualEffect(value: VisualEffect): this { if (this.checkPriority("visualEffect")) { const value_casted = value as (VisualEffect) this.getPeer()?.visualEffectAttribute(value_casted) @@ -263,7 +259,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundFilter(value: Filter): this { + public backgroundFilter(value: Filter): this { if (this.checkPriority("backgroundFilter")) { const value_casted = value as (Filter) this.getPeer()?.backgroundFilterAttribute(value_casted) @@ -272,7 +268,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundFilter(value: Filter): this { + public foregroundFilter(value: Filter): this { if (this.checkPriority("foregroundFilter")) { const value_casted = value as (Filter) this.getPeer()?.foregroundFilterAttribute(value_casted) @@ -281,7 +277,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - compositingFilter(value: Filter): this { + public compositingFilter(value: Filter): this { if (this.checkPriority("compositingFilter")) { const value_casted = value as (Filter) this.getPeer()?.compositingFilterAttribute(value_casted) @@ -290,7 +286,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - opacity(value: number | Resource): this { + public opacity(value: number | Resource): this { if (this.checkPriority("opacity")) { const value_casted = value as (number | Resource) this.getPeer()?.opacityAttribute(value_casted) @@ -299,7 +295,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - border(value: BorderOptions): this { + public border(value: BorderOptions): this { if (this.checkPriority("border")) { const value_casted = value as (BorderOptions) this.getPeer()?.borderAttribute(value_casted) @@ -308,7 +304,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderStyle(value: BorderStyle | EdgeStyles): this { + public borderStyle(value: BorderStyle | EdgeStyles): this { if (this.checkPriority("borderStyle")) { const value_casted = value as (BorderStyle | EdgeStyles) this.getPeer()?.borderStyleAttribute(value_casted) @@ -317,7 +313,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths): this { + public borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths): this { if (this.checkPriority("borderWidth")) { const value_casted = value as (Length | EdgeWidths | LocalizedEdgeWidths) this.getPeer()?.borderWidthAttribute(value_casted) @@ -326,7 +322,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { + public borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { if (this.checkPriority("borderColor")) { const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors) this.getPeer()?.borderColorAttribute(value_casted) @@ -335,7 +331,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses): this { + public borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses): this { if (this.checkPriority("borderRadius")) { const value_casted = value as (Length | BorderRadiuses | LocalizedBorderRadiuses) this.getPeer()?.borderRadiusAttribute(value_casted) @@ -344,7 +340,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderImage(value: BorderImageOption): this { + public borderImage(value: BorderImageOption): this { if (this.checkPriority("borderImage")) { const value_casted = value as (BorderImageOption) this.getPeer()?.borderImageAttribute(value_casted) @@ -353,7 +349,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outline(value: OutlineOptions): this { + public outline(value: OutlineOptions): this { if (this.checkPriority("outline")) { const value_casted = value as (OutlineOptions) this.getPeer()?.outlineAttribute(value_casted) @@ -362,7 +358,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this { + public outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this { if (this.checkPriority("outlineStyle")) { const value_casted = value as (OutlineStyle | EdgeOutlineStyles) this.getPeer()?.outlineStyleAttribute(value_casted) @@ -371,7 +367,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineWidth(value: Dimension | EdgeOutlineWidths): this { + public outlineWidth(value: Dimension | EdgeOutlineWidths): this { if (this.checkPriority("outlineWidth")) { const value_casted = value as (Dimension | EdgeOutlineWidths) this.getPeer()?.outlineWidthAttribute(value_casted) @@ -380,7 +376,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { + public outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { if (this.checkPriority("outlineColor")) { const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors) this.getPeer()?.outlineColorAttribute(value_casted) @@ -389,7 +385,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineRadius(value: Dimension | OutlineRadiuses): this { + public outlineRadius(value: Dimension | OutlineRadiuses): this { if (this.checkPriority("outlineRadius")) { const value_casted = value as (Dimension | OutlineRadiuses) this.getPeer()?.outlineRadiusAttribute(value_casted) @@ -398,7 +394,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundColor(value: ResourceColor | ColoringStrategy): this { + public foregroundColor(value: ResourceColor | ColoringStrategy): this { if (this.checkPriority("foregroundColor")) { const value_casted = value as (ResourceColor | ColoringStrategy) this.getPeer()?.foregroundColorAttribute(value_casted) @@ -407,7 +403,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onClick(event: ((event: ClickEvent) => void), distanceThreshold?: number): this { + public onClick(event: ((event: ClickEvent) => void), distanceThreshold?: number): this { if (this.checkPriority("onClick")) { const event_type = runtimeType(event) const distanceThreshold_type = runtimeType(distanceThreshold) @@ -427,7 +423,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onHover(value: ((isHover: boolean,event: HoverEvent) => void)): this { + public onHover(value: ((isHover: boolean,event: HoverEvent) => void)): this { if (this.checkPriority("onHover")) { const value_casted = value as (((isHover: boolean,event: HoverEvent) => void)) this.getPeer()?.onHoverAttribute(value_casted) @@ -436,7 +432,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAccessibilityHover(value: AccessibilityCallback): this { + public onAccessibilityHover(value: AccessibilityCallback): this { if (this.checkPriority("onAccessibilityHover")) { const value_casted = value as (AccessibilityCallback) this.getPeer()?.onAccessibilityHoverAttribute(value_casted) @@ -445,7 +441,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - hoverEffect(value: HoverEffect): this { + public hoverEffect(value: HoverEffect): this { if (this.checkPriority("hoverEffect")) { const value_casted = value as (HoverEffect) this.getPeer()?.hoverEffectAttribute(value_casted) @@ -454,7 +450,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onMouse(value: ((event: MouseEvent) => void)): this { + public onMouse(value: ((event: MouseEvent) => void)): this { if (this.checkPriority("onMouse")) { const value_casted = value as (((event: MouseEvent) => void)) this.getPeer()?.onMouseAttribute(value_casted) @@ -463,7 +459,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onTouch(value: ((event: TouchEvent) => void)): this { + public onTouch(value: ((event: TouchEvent) => void)): this { if (this.checkPriority("onTouch")) { const value_casted = value as (((event: TouchEvent) => void)) this.getPeer()?.onTouchAttribute(value_casted) @@ -472,7 +468,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onKeyEvent(value: ((event: KeyEvent) => void)): this { + public onKeyEvent(value: ((event: KeyEvent) => void)): this { if (this.checkPriority("onKeyEvent")) { const value_casted = value as (((event: KeyEvent) => void)) this.getPeer()?.onKeyEventAttribute(value_casted) @@ -481,7 +477,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onKeyPreIme(value: ((parameter: KeyEvent) => boolean)): this { + public onKeyPreIme(value: ((parameter: KeyEvent) => boolean)): this { if (this.checkPriority("onKeyPreIme")) { const value_casted = value as (((parameter: KeyEvent) => boolean)) this.getPeer()?.onKeyPreImeAttribute(value_casted) @@ -490,7 +486,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusable(value: boolean): this { + public focusable(value: boolean): this { if (this.checkPriority("focusable")) { const value_casted = value as (boolean) this.getPeer()?.focusableAttribute(value_casted) @@ -499,7 +495,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onFocus(value: (() => void)): this { + public onFocus(value: (() => void)): this { if (this.checkPriority("onFocus")) { const value_casted = value as ((() => void)) this.getPeer()?.onFocusAttribute(value_casted) @@ -508,7 +504,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onBlur(value: (() => void)): this { + public onBlur(value: (() => void)): this { if (this.checkPriority("onBlur")) { const value_casted = value as ((() => void)) this.getPeer()?.onBlurAttribute(value_casted) @@ -517,7 +513,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - tabIndex(value: number): this { + public tabIndex(value: number): this { if (this.checkPriority("tabIndex")) { const value_casted = value as (number) this.getPeer()?.tabIndexAttribute(value_casted) @@ -526,7 +522,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - defaultFocus(value: boolean): this { + public defaultFocus(value: boolean): this { if (this.checkPriority("defaultFocus")) { const value_casted = value as (boolean) this.getPeer()?.defaultFocusAttribute(value_casted) @@ -535,7 +531,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - groupDefaultFocus(value: boolean): this { + public groupDefaultFocus(value: boolean): this { if (this.checkPriority("groupDefaultFocus")) { const value_casted = value as (boolean) this.getPeer()?.groupDefaultFocusAttribute(value_casted) @@ -544,7 +540,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusOnTouch(value: boolean): this { + public focusOnTouch(value: boolean): this { if (this.checkPriority("focusOnTouch")) { const value_casted = value as (boolean) this.getPeer()?.focusOnTouchAttribute(value_casted) @@ -553,7 +549,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusBox(value: FocusBoxStyle): this { + public focusBox(value: FocusBoxStyle): this { if (this.checkPriority("focusBox")) { const value_casted = value as (FocusBoxStyle) this.getPeer()?.focusBoxAttribute(value_casted) @@ -562,7 +558,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - animation(value: AnimateParam): this { + public animation(value: AnimateParam): this { if (this.checkPriority("animation")) { const value_casted = value as (AnimateParam) this.getPeer()?.animationAttribute(value_casted) @@ -571,7 +567,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - transition(effect: TransitionOptions | TransitionEffect | TransitionEffect, onFinish?: TransitionFinishCallback): this { + public transition(effect: TransitionOptions | TransitionEffect | TransitionEffect, onFinish?: TransitionFinishCallback): this { if (this.checkPriority("transition")) { const effect_type = runtimeType(effect) const onFinish_type = runtimeType(onFinish) @@ -591,7 +587,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - motionBlur(value: MotionBlurOptions): this { + public motionBlur(value: MotionBlurOptions): this { if (this.checkPriority("motionBlur")) { const value_casted = value as (MotionBlurOptions) this.getPeer()?.motionBlurAttribute(value_casted) @@ -600,7 +596,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - brightness(value: number): this { + public brightness(value: number): this { if (this.checkPriority("brightness")) { const value_casted = value as (number) this.getPeer()?.brightnessAttribute(value_casted) @@ -609,7 +605,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - contrast(value: number): this { + public contrast(value: number): this { if (this.checkPriority("contrast")) { const value_casted = value as (number) this.getPeer()?.contrastAttribute(value_casted) @@ -618,7 +614,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - grayscale(value: number): this { + public grayscale(value: number): this { if (this.checkPriority("grayscale")) { const value_casted = value as (number) this.getPeer()?.grayscaleAttribute(value_casted) @@ -627,7 +623,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - colorBlend(value: Color | string | Resource): this { + public colorBlend(value: Color | string | Resource): this { if (this.checkPriority("colorBlend")) { const value_casted = value as (Color | string | Resource) this.getPeer()?.colorBlendAttribute(value_casted) @@ -636,7 +632,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - saturate(value: number): this { + public saturate(value: number): this { if (this.checkPriority("saturate")) { const value_casted = value as (number) this.getPeer()?.saturateAttribute(value_casted) @@ -645,7 +641,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sepia(value: number): this { + public sepia(value: number): this { if (this.checkPriority("sepia")) { const value_casted = value as (number) this.getPeer()?.sepiaAttribute(value_casted) @@ -654,7 +650,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - invert(value: number | InvertOptions): this { + public invert(value: number | InvertOptions): this { if (this.checkPriority("invert")) { const value_casted = value as (number | InvertOptions) this.getPeer()?.invertAttribute(value_casted) @@ -663,7 +659,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - hueRotate(value: number | string): this { + public hueRotate(value: number | string): this { if (this.checkPriority("hueRotate")) { const value_casted = value as (number | string) this.getPeer()?.hueRotateAttribute(value_casted) @@ -672,7 +668,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - useShadowBatching(value: boolean): this { + public useShadowBatching(value: boolean): this { if (this.checkPriority("useShadowBatching")) { const value_casted = value as (boolean) this.getPeer()?.useShadowBatchingAttribute(value_casted) @@ -681,7 +677,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - useEffect(useEffect: boolean, effectType?: EffectType): this { + public useEffect(useEffect: boolean, effectType?: EffectType): this { if (this.checkPriority("useEffect")) { const useEffect_type = runtimeType(useEffect) const effectType_type = runtimeType(effectType) @@ -701,7 +697,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - renderGroup(value: boolean): this { + public renderGroup(value: boolean): this { if (this.checkPriority("renderGroup")) { const value_casted = value as (boolean) this.getPeer()?.renderGroupAttribute(value_casted) @@ -710,7 +706,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - freeze(value: boolean): this { + public freeze(value: boolean): this { if (this.checkPriority("freeze")) { const value_casted = value as (boolean) this.getPeer()?.freezeAttribute(value_casted) @@ -719,7 +715,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - translate(value: TranslateOptions): this { + public translate(value: TranslateOptions): this { if (this.checkPriority("translate")) { const value_casted = value as (TranslateOptions) this.getPeer()?.translateAttribute(value_casted) @@ -728,7 +724,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - scale(value: ScaleOptions): this { + public scale(value: ScaleOptions): this { if (this.checkPriority("scale")) { const value_casted = value as (ScaleOptions) this.getPeer()?.scaleAttribute(value_casted) @@ -737,7 +733,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gridSpan(value: number): this { + public gridSpan(value: number): this { if (this.checkPriority("gridSpan")) { const value_casted = value as (number) this.getPeer()?.gridSpanAttribute(value_casted) @@ -746,7 +742,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gridOffset(value: number): this { + public gridOffset(value: number): this { if (this.checkPriority("gridOffset")) { const value_casted = value as (number) this.getPeer()?.gridOffsetAttribute(value_casted) @@ -755,7 +751,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - rotate(value: RotateOptions): this { + public rotate(value: RotateOptions): this { if (this.checkPriority("rotate")) { const value_casted = value as (RotateOptions) this.getPeer()?.rotateAttribute(value_casted) @@ -764,7 +760,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - transform(value: Object): this { + public transform(value: Object): this { if (this.checkPriority("transform")) { const value_casted = value as (Object) this.getPeer()?.transformAttribute(value_casted) @@ -773,7 +769,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAppear(value: (() => void)): this { + public onAppear(value: (() => void)): this { if (this.checkPriority("onAppear")) { const value_casted = value as ((() => void)) this.getPeer()?.onAppearAttribute(value_casted) @@ -782,7 +778,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDisAppear(value: (() => void)): this { + public onDisAppear(value: (() => void)): this { if (this.checkPriority("onDisAppear")) { const value_casted = value as ((() => void)) this.getPeer()?.onDisAppearAttribute(value_casted) @@ -791,7 +787,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAttach(value: (() => void)): this { + public onAttach(value: (() => void)): this { if (this.checkPriority("onAttach")) { const value_casted = value as ((() => void)) this.getPeer()?.onAttachAttribute(value_casted) @@ -800,7 +796,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDetach(value: (() => void)): this { + public onDetach(value: (() => void)): this { if (this.checkPriority("onDetach")) { const value_casted = value as ((() => void)) this.getPeer()?.onDetachAttribute(value_casted) @@ -809,7 +805,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAreaChange(value: ((oldValue: Area,newValue: Area) => void)): this { + public onAreaChange(value: ((oldValue: Area,newValue: Area) => void)): this { if (this.checkPriority("onAreaChange")) { const value_casted = value as (((oldValue: Area,newValue: Area) => void)) this.getPeer()?.onAreaChangeAttribute(value_casted) @@ -818,7 +814,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - visibility(value: Visibility): this { + public visibility(value: Visibility): this { if (this.checkPriority("visibility")) { const value_casted = value as (Visibility) this.getPeer()?.visibilityAttribute(value_casted) @@ -827,7 +823,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - flexGrow(value: number): this { + public flexGrow(value: number): this { if (this.checkPriority("flexGrow")) { const value_casted = value as (number) this.getPeer()?.flexGrowAttribute(value_casted) @@ -836,7 +832,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - flexShrink(value: number): this { + public flexShrink(value: number): this { if (this.checkPriority("flexShrink")) { const value_casted = value as (number) this.getPeer()?.flexShrinkAttribute(value_casted) @@ -845,7 +841,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - flexBasis(value: number | string): this { + public flexBasis(value: number | string): this { if (this.checkPriority("flexBasis")) { const value_casted = value as (number | string) this.getPeer()?.flexBasisAttribute(value_casted) @@ -854,7 +850,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - alignSelf(value: ItemAlign): this { + public alignSelf(value: ItemAlign): this { if (this.checkPriority("alignSelf")) { const value_casted = value as (ItemAlign) this.getPeer()?.alignSelfAttribute(value_casted) @@ -863,7 +859,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - displayPriority(value: number): this { + public displayPriority(value: number): this { if (this.checkPriority("displayPriority")) { const value_casted = value as (number) this.getPeer()?.displayPriorityAttribute(value_casted) @@ -872,7 +868,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - zIndex(value: number): this { + public zIndex(value: number): this { if (this.checkPriority("zIndex")) { const value_casted = value as (number) this.getPeer()?.zIndexAttribute(value_casted) @@ -881,7 +877,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - direction(value: Direction): this { + public direction(value: Direction): this { if (this.checkPriority("direction")) { const value_casted = value as (Direction) this.getPeer()?.directionAttribute(value_casted) @@ -890,7 +886,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - align(value: Alignment): this { + public align(value: Alignment): this { if (this.checkPriority("align")) { const value_casted = value as (Alignment) this.getPeer()?.alignAttribute(value_casted) @@ -899,7 +895,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - position(value: Position | Edges | LocalizedEdges): this { + public position(value: Position | Edges | LocalizedEdges): this { if (this.checkPriority("position")) { const value_casted = value as (Position | Edges | LocalizedEdges) this.getPeer()?.positionAttribute(value_casted) @@ -908,7 +904,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - markAnchor(value: Position | LocalizedPosition): this { + public markAnchor(value: Position | LocalizedPosition): this { if (this.checkPriority("markAnchor")) { const value_casted = value as (Position | LocalizedPosition) this.getPeer()?.markAnchorAttribute(value_casted) @@ -917,7 +913,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - offset(value: Position | Edges | LocalizedEdges): this { + public offset(value: Position | Edges | LocalizedEdges): this { if (this.checkPriority("offset")) { const value_casted = value as (Position | Edges | LocalizedEdges) this.getPeer()?.offsetAttribute(value_casted) @@ -926,7 +922,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - enabled(value: boolean): this { + public enabled(value: boolean): this { if (this.checkPriority("enabled")) { const value_casted = value as (boolean) this.getPeer()?.enabledAttribute(value_casted) @@ -935,7 +931,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - useSizeType(value: Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs): this { + public useSizeType(value: Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs): this { if (this.checkPriority("useSizeType")) { const value_casted = value as (Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs) this.getPeer()?.useSizeTypeAttribute(value_casted) @@ -944,7 +940,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { + 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))) { @@ -962,7 +958,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - aspectRatio(value: number): this { + public aspectRatio(value: number): this { if (this.checkPriority("aspectRatio")) { const value_casted = value as (number) this.getPeer()?.aspectRatioAttribute(value_casted) @@ -971,7 +967,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clickEffect(value?: ClickEffect): this { + public clickEffect(value?: ClickEffect): this { if (this.checkPriority("clickEffect")) { const value_casted = value as (ClickEffect | undefined) this.getPeer()?.clickEffectAttribute(value_casted) @@ -980,7 +976,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo)): this { + public onDragStart(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo)): this { if (this.checkPriority("onDragStart")) { const value_casted = value as (((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo)) this.getPeer()?.onDragStartAttribute(value_casted) @@ -989,7 +985,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragEnter(value: ((event: DragEvent,extraParams?: string) => void)): this { + public onDragEnter(value: ((event: DragEvent,extraParams?: string) => void)): this { if (this.checkPriority("onDragEnter")) { const value_casted = value as (((event: DragEvent,extraParams?: string) => void)) this.getPeer()?.onDragEnterAttribute(value_casted) @@ -998,7 +994,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragMove(value: ((event: DragEvent,extraParams?: string) => void)): this { + public onDragMove(value: ((event: DragEvent,extraParams?: string) => void)): this { if (this.checkPriority("onDragMove")) { const value_casted = value as (((event: DragEvent,extraParams?: string) => void)) this.getPeer()?.onDragMoveAttribute(value_casted) @@ -1007,7 +1003,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragLeave(value: ((event: DragEvent,extraParams?: string) => void)): this { + public onDragLeave(value: ((event: DragEvent,extraParams?: string) => void)): this { if (this.checkPriority("onDragLeave")) { const value_casted = value as (((event: DragEvent,extraParams?: string) => void)) this.getPeer()?.onDragLeaveAttribute(value_casted) @@ -1016,7 +1012,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDrop(value: ((event: DragEvent,extraParams?: string) => void)): this { + public onDrop(value: ((event: DragEvent,extraParams?: string) => void)): this { if (this.checkPriority("onDrop")) { const value_casted = value as (((event: DragEvent,extraParams?: string) => void)) this.getPeer()?.onDropAttribute(value_casted) @@ -1025,7 +1021,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragEnd(value: ((event: DragEvent,extraParams?: string) => void)): this { + public onDragEnd(value: ((event: DragEvent,extraParams?: string) => void)): this { if (this.checkPriority("onDragEnd")) { const value_casted = value as (((event: DragEvent,extraParams?: string) => void)) this.getPeer()?.onDragEndAttribute(value_casted) @@ -1034,7 +1030,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - allowDrop(value?: Array): this { + public allowDrop(value?: Array): this { if (this.checkPriority("allowDrop")) { const value_casted = value as (Array | undefined) this.getPeer()?.allowDropAttribute(value_casted) @@ -1043,7 +1039,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - draggable(value: boolean): this { + public draggable(value: boolean): this { if (this.checkPriority("draggable")) { const value_casted = value as (boolean) this.getPeer()?.draggableAttribute(value_casted) @@ -1052,7 +1048,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - dragPreview(value: CustomBuilder | DragItemInfo | string): this { + public dragPreview(value: CustomBuilder | DragItemInfo | string): this { if (this.checkPriority("dragPreview")) { const value_casted = value as (CustomBuilder | DragItemInfo | string) this.getPeer()?.dragPreviewAttribute(value_casted) @@ -1061,7 +1057,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onPreDrag(value: ((parameter: PreDragStatus) => void)): this { + public onPreDrag(value: ((parameter: PreDragStatus) => void)): this { if (this.checkPriority("onPreDrag")) { const value_casted = value as (((parameter: PreDragStatus) => void)) this.getPeer()?.onPreDragAttribute(value_casted) @@ -1070,7 +1066,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - linearGradient(value: Type_CommonMethod_linearGradient_value): this { + public linearGradient(value: Type_CommonMethod_linearGradient_value): this { if (this.checkPriority("linearGradient")) { const value_casted = value as (Type_CommonMethod_linearGradient_value) this.getPeer()?.linearGradientAttribute(value_casted) @@ -1079,7 +1075,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sweepGradient(value: Type_CommonMethod_sweepGradient_value): this { + public sweepGradient(value: Type_CommonMethod_sweepGradient_value): this { if (this.checkPriority("sweepGradient")) { const value_casted = value as (Type_CommonMethod_sweepGradient_value) this.getPeer()?.sweepGradientAttribute(value_casted) @@ -1088,7 +1084,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - radialGradient(value: Type_CommonMethod_radialGradient_value): this { + public radialGradient(value: Type_CommonMethod_radialGradient_value): this { if (this.checkPriority("radialGradient")) { const value_casted = value as (Type_CommonMethod_radialGradient_value) this.getPeer()?.radialGradientAttribute(value_casted) @@ -1097,7 +1093,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - motionPath(value: MotionPathOptions): this { + public motionPath(value: MotionPathOptions): this { if (this.checkPriority("motionPath")) { const value_casted = value as (MotionPathOptions) this.getPeer()?.motionPathAttribute(value_casted) @@ -1106,7 +1102,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - shadow(value: ShadowOptions | ShadowStyle): this { + public shadow(value: ShadowOptions | ShadowStyle): this { if (this.checkPriority("shadow")) { const value_casted = value as (ShadowOptions | ShadowStyle) this.getPeer()?.shadowAttribute(value_casted) @@ -1115,16 +1111,16 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clip(value: boolean | boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this { + public clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) - if ((((RuntimeType.BOOLEAN == value_type)))) { - const value_casted = value as (boolean) + 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.OBJECT) == (value_type)) && (TypeChecker.isCircleAttribute(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEllipseAttribute(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPathAttribute(value, false))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isRectAttribute(value, false, false, false))))) { - const value_casted = value as (boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) + if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + const value_casted = value as (boolean | undefined) this.getPeer()?.clip1Attribute(value_casted) return this } @@ -1133,7 +1129,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clipShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { + public clipShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { if (this.checkPriority("clipShape")) { const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape) this.getPeer()?.clipShapeAttribute(value_casted) @@ -1142,16 +1138,16 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - mask(value: ProgressMask | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this { + public mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isProgressMask(value)))) { - const value_casted = value as (ProgressMask) + 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)) && (TypeChecker.isCircleAttribute(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEllipseAttribute(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPathAttribute(value, false))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isRectAttribute(value, false, false, false))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isProgressMask(value))))) { - const value_casted = value as (CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask) + if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask1Attribute(value_casted) return this } @@ -1160,7 +1156,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - maskShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { + public maskShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { if (this.checkPriority("maskShape")) { const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape) this.getPeer()?.maskShapeAttribute(value_casted) @@ -1169,7 +1165,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - key(value: string): this { + public key(value: string): this { if (this.checkPriority("key")) { const value_casted = value as (string) this.getPeer()?.keyAttribute(value_casted) @@ -1178,7 +1174,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - id(value: string): this { + public id(value: string): this { if (this.checkPriority("id")) { const value_casted = value as (string) this.getPeer()?.idAttribute(value_casted) @@ -1187,7 +1183,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - geometryTransition(id: string, options?: GeometryTransitionOptions): this { + public geometryTransition(id: string, options?: GeometryTransitionOptions): this { if (this.checkPriority("geometryTransition")) { const id_type = runtimeType(id) const options_type = runtimeType(options) @@ -1207,7 +1203,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - stateStyles(value: StateStyles): this { + public stateStyles(value: StateStyles): this { if (this.checkPriority("stateStyles")) { const value_casted = value as (StateStyles) this.getPeer()?.stateStylesAttribute(value_casted) @@ -1216,7 +1212,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - restoreId(value: number): this { + public restoreId(value: number): this { if (this.checkPriority("restoreId")) { const value_casted = value as (number) this.getPeer()?.restoreIdAttribute(value_casted) @@ -1225,7 +1221,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sphericalEffect(value: number): this { + public sphericalEffect(value: number): this { if (this.checkPriority("sphericalEffect")) { const value_casted = value as (number) this.getPeer()?.sphericalEffectAttribute(value_casted) @@ -1234,7 +1230,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - lightUpEffect(value: number): this { + public lightUpEffect(value: number): this { if (this.checkPriority("lightUpEffect")) { const value_casted = value as (number) this.getPeer()?.lightUpEffectAttribute(value_casted) @@ -1243,7 +1239,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - pixelStretchEffect(value: PixelStretchEffectOptions): this { + public pixelStretchEffect(value: PixelStretchEffectOptions): this { if (this.checkPriority("pixelStretchEffect")) { const value_casted = value as (PixelStretchEffectOptions) this.getPeer()?.pixelStretchEffectAttribute(value_casted) @@ -1252,7 +1248,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityGroup(isGroup: boolean, accessibilityOptions?: AccessibilityOptions): this { + public accessibilityGroup(isGroup: boolean, accessibilityOptions?: AccessibilityOptions): this { if (this.checkPriority("accessibilityGroup")) { const isGroup_type = runtimeType(isGroup) const accessibilityOptions_type = runtimeType(accessibilityOptions) @@ -1272,7 +1268,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityText(value: string | Resource): this { + public accessibilityText(value: string | Resource): this { if (this.checkPriority("accessibilityText")) { const value_type = runtimeType(value) if ((((RuntimeType.STRING == value_type)))) { @@ -1290,7 +1286,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityTextHint(value: string): this { + public accessibilityTextHint(value: string): this { if (this.checkPriority("accessibilityTextHint")) { const value_casted = value as (string) this.getPeer()?.accessibilityTextHintAttribute(value_casted) @@ -1299,7 +1295,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityDescription(value: string | Resource): this { + public accessibilityDescription(value: string | Resource): this { if (this.checkPriority("accessibilityDescription")) { const value_type = runtimeType(value) if ((((RuntimeType.STRING == value_type)))) { @@ -1317,7 +1313,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityLevel(value: string): this { + public accessibilityLevel(value: string): this { if (this.checkPriority("accessibilityLevel")) { const value_casted = value as (string) this.getPeer()?.accessibilityLevelAttribute(value_casted) @@ -1326,7 +1322,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityVirtualNode(value: CustomBuilder): this { + public accessibilityVirtualNode(value: CustomBuilder): this { if (this.checkPriority("accessibilityVirtualNode")) { const value_casted = value as (CustomBuilder) this.getPeer()?.accessibilityVirtualNodeAttribute(value_casted) @@ -1335,7 +1331,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityChecked(value: boolean): this { + public accessibilityChecked(value: boolean): this { if (this.checkPriority("accessibilityChecked")) { const value_casted = value as (boolean) this.getPeer()?.accessibilityCheckedAttribute(value_casted) @@ -1344,7 +1340,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilitySelected(value: boolean): this { + public accessibilitySelected(value: boolean): this { if (this.checkPriority("accessibilitySelected")) { const value_casted = value as (boolean) this.getPeer()?.accessibilitySelectedAttribute(value_casted) @@ -1353,7 +1349,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - obscured(value: Array): this { + public obscured(value: Array): this { if (this.checkPriority("obscured")) { const value_casted = value as (Array) this.getPeer()?.obscuredAttribute(value_casted) @@ -1362,7 +1358,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - reuseId(value: string): this { + public reuseId(value: string): this { if (this.checkPriority("reuseId")) { const value_casted = value as (string) this.getPeer()?.reuseIdAttribute(value_casted) @@ -1371,7 +1367,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - renderFit(value: RenderFit): this { + public renderFit(value: RenderFit): this { if (this.checkPriority("renderFit")) { const value_casted = value as (RenderFit) this.getPeer()?.renderFitAttribute(value_casted) @@ -1380,7 +1376,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gestureModifier(value: GestureModifier): this { + public gestureModifier(value: GestureModifier): this { if (this.checkPriority("gestureModifier")) { const value_casted = value as (GestureModifier) this.getPeer()?.gestureModifierAttribute(value_casted) @@ -1389,7 +1385,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundBrightness(value: BackgroundBrightnessOptions): this { + public backgroundBrightness(value: BackgroundBrightnessOptions): this { if (this.checkPriority("backgroundBrightness")) { const value_casted = value as (BackgroundBrightnessOptions) this.getPeer()?.backgroundBrightnessAttribute(value_casted) @@ -1398,7 +1394,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult)): this { + public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult)): this { if (this.checkPriority("onGestureJudgeBegin")) { const value_casted = value as (((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult)) this.getPeer()?.onGestureJudgeBeginAttribute(value_casted) @@ -1407,7 +1403,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback, exposeInnerGesture?: boolean): this { + public onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback, exposeInnerGesture?: boolean): this { if (this.checkPriority("onGestureRecognizerJudgeBegin")) { const callback__type = runtimeType(callback_) const exposeInnerGesture_type = runtimeType(exposeInnerGesture) @@ -1427,7 +1423,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback): this { + public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback): this { if (this.checkPriority("shouldBuiltInRecognizerParallelWith")) { const value_casted = value as (ShouldBuiltInRecognizerParallelWithCallback) this.getPeer()?.shouldBuiltInRecognizerParallelWithAttribute(value_casted) @@ -1436,7 +1432,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - monopolizeEvents(value: boolean): this { + public monopolizeEvents(value: boolean): this { if (this.checkPriority("monopolizeEvents")) { const value_casted = value as (boolean) this.getPeer()?.monopolizeEventsAttribute(value_casted) @@ -1445,7 +1441,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onTouchIntercept(value: ((parameter: TouchEvent) => HitTestMode)): this { + public onTouchIntercept(value: ((parameter: TouchEvent) => HitTestMode)): this { if (this.checkPriority("onTouchIntercept")) { const value_casted = value as (((parameter: TouchEvent) => HitTestMode)) this.getPeer()?.onTouchInterceptAttribute(value_casted) @@ -1454,7 +1450,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onSizeChange(value: SizeChangeCallback): this { + public onSizeChange(value: SizeChangeCallback): this { if (this.checkPriority("onSizeChange")) { const value_casted = value as (SizeChangeCallback) this.getPeer()?.onSizeChangeAttribute(value_casted) @@ -1463,7 +1459,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - customProperty(name: string, value?: Object): this { + public customProperty(name: string, value?: Object): this { if (this.checkPriority("customProperty")) { const name_casted = name as (string) const value_casted = value as (Object | undefined) @@ -1473,7 +1469,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - expandSafeArea(types?: Array, edges?: Array): this { + public expandSafeArea(types?: Array, edges?: Array): this { if (this.checkPriority("expandSafeArea")) { const types_casted = types as (Array | undefined) const edges_casted = edges as (Array | undefined) @@ -1483,7 +1479,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - background(builder: CustomBuilder, options?: Literal_Alignment_align): this { + public background(builder: CustomBuilder, options?: Literal_Alignment_align): this { if (this.checkPriority("background")) { const builder_casted = builder as (CustomBuilder) const options_casted = options as (Literal_Alignment_align | undefined) @@ -1493,7 +1489,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImage(src: ResourceStr | PixelMap, repeat?: ImageRepeat): this { + public backgroundImage(src: ResourceStr | PixelMap, repeat?: ImageRepeat): this { if (this.checkPriority("backgroundImage")) { const src_casted = src as (ResourceStr | PixelMap) const repeat_casted = repeat as (ImageRepeat | undefined) @@ -1503,7 +1499,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this { + public backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this { if (this.checkPriority("backgroundBlurStyle")) { const value_casted = value as (BlurStyle) const options_casted = options as (BackgroundBlurStyleOptions | undefined) @@ -1513,7 +1509,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this { + public foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this { if (this.checkPriority("foregroundBlurStyle")) { const value_casted = value as (BlurStyle) const options_casted = options as (ForegroundBlurStyleOptions | undefined) @@ -1523,7 +1519,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusScopeId(id: string, isGroup?: boolean, arrowStepOut?: boolean): this { + public focusScopeId(id: string, isGroup?: boolean, arrowStepOut?: boolean): this { if (this.checkPriority("focusScopeId")) { const id_type = runtimeType(id) const isGroup_type = runtimeType(isGroup) @@ -1546,7 +1542,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusScopePriority(scopeId: string, priority?: FocusPriority): this { + public focusScopePriority(scopeId: string, priority?: FocusPriority): this { if (this.checkPriority("focusScopePriority")) { const scopeId_casted = scopeId as (string) const priority_casted = priority as (FocusPriority | undefined) @@ -1556,7 +1552,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gesture(gesture: GestureType, mask?: GestureMask): this { + public gesture(gesture: GestureType, mask?: GestureMask): this { if (this.checkPriority("gesture")) { const gesture_casted = gesture as (GestureType) const mask_casted = mask as (GestureMask | undefined) @@ -1566,7 +1562,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - priorityGesture(gesture: GestureType, mask?: GestureMask): this { + public priorityGesture(gesture: GestureType, mask?: GestureMask): this { if (this.checkPriority("priorityGesture")) { const gesture_casted = gesture as (GestureType) const mask_casted = mask as (GestureMask | undefined) @@ -1576,7 +1572,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - parallelGesture(gesture: GestureType, mask?: GestureMask): this { + public parallelGesture(gesture: GestureType, mask?: GestureMask): this { if (this.checkPriority("parallelGesture")) { const gesture_casted = gesture as (GestureType) const mask_casted = mask as (GestureMask | undefined) @@ -1586,7 +1582,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - blur(value: number, options?: BlurOptions): this { + public blur(value: number, options?: BlurOptions): this { if (this.checkPriority("blur")) { const value_casted = value as (number) const options_casted = options as (BlurOptions | undefined) @@ -1596,7 +1592,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - linearGradientBlur(value: number, options: LinearGradientBlurOptions): this { + public linearGradientBlur(value: number, options: LinearGradientBlurOptions): this { if (this.checkPriority("linearGradientBlur")) { const value_casted = value as (number) const options_casted = options as (LinearGradientBlurOptions) @@ -1606,7 +1602,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - systemBarEffect(): this { + public systemBarEffect(): this { if (this.checkPriority("systemBarEffect")) { this.getPeer()?.systemBarEffectAttribute() return this @@ -1614,7 +1610,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backdropBlur(value: number, options?: BlurOptions): this { + public backdropBlur(value: number, options?: BlurOptions): this { if (this.checkPriority("backdropBlur")) { const value_casted = value as (number) const options_casted = options as (BlurOptions | undefined) @@ -1624,7 +1620,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sharedTransition(id: string, options?: sharedTransitionOptions): this { + public sharedTransition(id: string, options?: sharedTransitionOptions): this { if (this.checkPriority("sharedTransition")) { const id_casted = id as (string) const options_casted = options as (sharedTransitionOptions | undefined) @@ -1634,7 +1630,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - chainMode(direction: Axis, style: ChainStyle): this { + public chainMode(direction: Axis, style: ChainStyle): this { if (this.checkPriority("chainMode")) { const direction_casted = direction as (Axis) const style_casted = style as (ChainStyle) @@ -1644,7 +1640,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this { + public dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this { if (this.checkPriority("dragPreviewOptions")) { const value_casted = value as (DragPreviewOptions) const options_casted = options as (DragInteractionOptions | undefined) @@ -1654,7 +1650,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - overlay(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): this { + public overlay(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): this { if (this.checkPriority("overlay")) { const value_casted = value as (string | CustomBuilder | ComponentContent) const options_casted = options as (OverlayOptions | undefined) @@ -1664,7 +1660,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - blendMode(value: BlendMode, type?: BlendApplyType): this { + public blendMode(value: BlendMode, type?: BlendApplyType): this { if (this.checkPriority("blendMode")) { const value_casted = value as (BlendMode) const type_casted = type as (BlendApplyType | undefined) @@ -1674,7 +1670,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - advancedBlendMode(effect: BlendMode | Blender, type?: BlendApplyType): this { + public advancedBlendMode(effect: BlendMode | Blender, type?: BlendApplyType): this { if (this.checkPriority("advancedBlendMode")) { const effect_casted = effect as (BlendMode | Blender) const type_casted = type as (BlendApplyType | undefined) @@ -1684,7 +1680,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this { + public bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this { if (this.checkPriority("bindPopup")) { const show_casted = show as (boolean) const popup_casted = popup as (PopupOptions | CustomPopupOptions) @@ -1694,7 +1690,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindMenu(isShow: Array | CustomBuilder | boolean, content?: MenuOptions | undefined | Array | CustomBuilder, options?: MenuOptions): this { + public bindMenu(isShow: Array | CustomBuilder | boolean, content?: MenuOptions | undefined | Array | CustomBuilder, options?: MenuOptions): this { if (this.checkPriority("bindMenu")) { const isShow_type = runtimeType(isShow) const content_type = runtimeType(content) @@ -1717,7 +1713,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindContextMenu(content: CustomBuilder | boolean, responseType: ResponseType | CustomBuilder, options?: ContextMenuOptions): this { + public bindContextMenu(content: CustomBuilder | boolean, responseType: ResponseType | CustomBuilder, options?: ContextMenuOptions): this { if (this.checkPriority("bindContextMenu")) { const content_type = runtimeType(content) const responseType_type = runtimeType(responseType) @@ -1741,7 +1737,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindContentCover(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition | undefined | ContentCoverOptions | undefined): this { + public bindContentCover(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition | undefined | ContentCoverOptions | undefined): this { if (this.checkPriority("bindContentCover")) { const isShow_type = runtimeType(isShow) const builder_type = runtimeType(builder) @@ -1765,7 +1761,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindSheet(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): this { + public bindSheet(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): this { if (this.checkPriority("bindSheet")) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) @@ -1776,7 +1772,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onVisibleAreaChange(ratios: Array, event: VisibleAreaChangeCallback): this { + public onVisibleAreaChange(ratios: Array, event: VisibleAreaChangeCallback): this { if (this.checkPriority("onVisibleAreaChange")) { const ratios_casted = ratios as (Array) const event_casted = event as (VisibleAreaChangeCallback) @@ -1786,7 +1782,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - keyboardShortcut(value: string | FunctionKey, keys: Array, action?: (() => void)): this { + public keyboardShortcut(value: string | FunctionKey, keys: Array, action?: (() => void)): this { if (this.checkPriority("keyboardShortcut")) { const value_casted = value as (string | FunctionKey) const keys_casted = keys as (Array) @@ -1808,7 +1804,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return (this.peer as ArkCommonShapeMethodPeer) } /** @memo */ - stroke(value: ResourceColor): this { + public stroke(value: ResourceColor): this { if (this.checkPriority("stroke")) { const value_casted = value as (ResourceColor) this.getPeer()?.strokeAttribute(value_casted) @@ -1817,7 +1813,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fill(value: ResourceColor): this { + public fill(value: ResourceColor): this { if (this.checkPriority("fill")) { const value_casted = value as (ResourceColor) this.getPeer()?.fillAttribute(value_casted) @@ -1826,7 +1822,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashOffset(value: number | string): this { + public strokeDashOffset(value: number | string): this { if (this.checkPriority("strokeDashOffset")) { const value_casted = value as (number | string) this.getPeer()?.strokeDashOffsetAttribute(value_casted) @@ -1835,7 +1831,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineCap(value: LineCapStyle): this { + public strokeLineCap(value: LineCapStyle): this { if (this.checkPriority("strokeLineCap")) { const value_casted = value as (LineCapStyle) this.getPeer()?.strokeLineCapAttribute(value_casted) @@ -1844,7 +1840,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineJoin(value: LineJoinStyle): this { + public strokeLineJoin(value: LineJoinStyle): this { if (this.checkPriority("strokeLineJoin")) { const value_casted = value as (LineJoinStyle) this.getPeer()?.strokeLineJoinAttribute(value_casted) @@ -1853,7 +1849,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeMiterLimit(value: number | string): this { + public strokeMiterLimit(value: number | string): this { if (this.checkPriority("strokeMiterLimit")) { const value_casted = value as (number | string) this.getPeer()?.strokeMiterLimitAttribute(value_casted) @@ -1862,7 +1858,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeOpacity(value: number | string | Resource): this { + public strokeOpacity(value: number | string | Resource): this { if (this.checkPriority("strokeOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.strokeOpacityAttribute(value_casted) @@ -1871,7 +1867,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillOpacity(value: number | string | Resource): this { + public fillOpacity(value: number | string | Resource): this { if (this.checkPriority("fillOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fillOpacityAttribute(value_casted) @@ -1880,7 +1876,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: Length): this { + public strokeWidth(value: Length): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (Length) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -1889,7 +1885,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - antiAlias(value: boolean): this { + public antiAlias(value: boolean): this { if (this.checkPriority("antiAlias")) { const value_casted = value as (boolean) this.getPeer()?.antiAliasAttribute(value_casted) @@ -1898,7 +1894,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashArray(value: Array): this { + public strokeDashArray(value: Array): this { if (this.checkPriority("strokeDashArray")) { const value_casted = value as (Array) this.getPeer()?.strokeDashArrayAttribute(value_casted) @@ -1917,7 +1913,7 @@ export class ArkCommonComponent extends ArkCommonMethodComponent { return (this.peer as ArkCommonPeer) } /** @memo */ - setCommonOptions(): this { + public setCommonOptions(): this { if (this.checkPriority("setCommonOptions")) { this.getPeer()?.setCommonOptionsAttribute() return this @@ -1954,7 +1950,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return (this.peer as ArkScrollableCommonMethodPeer) } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -1963,7 +1959,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - scrollBarColor(value: Color | number | string): this { + public scrollBarColor(value: Color | number | string): this { if (this.checkPriority("scrollBarColor")) { const value_casted = value as (Color | number | string) this.getPeer()?.scrollBarColorAttribute(value_casted) @@ -1972,7 +1968,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - scrollBarWidth(value: number | string): this { + public scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) this.getPeer()?.scrollBarWidthAttribute(value_casted) @@ -1981,7 +1977,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -1990,7 +1986,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -1999,7 +1995,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -2008,7 +2004,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onScroll(value: ((first: number,last: number) => void)): this { + public onScroll(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onScrollAttribute(value_casted) @@ -2017,7 +2013,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onWillScroll(value?: ScrollOnWillScrollCallback): this { + public onWillScroll(value?: ScrollOnWillScrollCallback): this { if (this.checkPriority("onWillScroll")) { const value_casted = value as (ScrollOnWillScrollCallback | undefined) this.getPeer()?.onWillScrollAttribute(value_casted) @@ -2026,16 +2022,16 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onDidScroll(value?: ScrollOnScrollCallback): this { + public onDidScroll(value: ScrollOnScrollCallback): this { if (this.checkPriority("onDidScroll")) { - const value_casted = value as (ScrollOnScrollCallback | undefined) + const value_casted = value as (ScrollOnScrollCallback) this.getPeer()?.onDidScrollAttribute(value_casted) return this } return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachStartAttribute(value_casted) @@ -2044,7 +2040,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachEndAttribute(value_casted) @@ -2053,7 +2049,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onScrollStart(value: (() => void)): this { + public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollStartAttribute(value_casted) @@ -2062,7 +2058,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onScrollStop(value: (() => void)): this { + public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollStopAttribute(value_casted) @@ -2071,7 +2067,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - flingSpeedLimit(value: number): this { + public flingSpeedLimit(value: number): this { if (this.checkPriority("flingSpeedLimit")) { const value_casted = value as (number) this.getPeer()?.flingSpeedLimitAttribute(value_casted) @@ -2080,7 +2076,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - clipContent(value: ContentClipMode | RectShape): this { + public clipContent(value: ContentClipMode | RectShape): this { if (this.checkPriority("clipContent")) { const value_casted = value as (ContentClipMode | RectShape) this.getPeer()?.clipContentAttribute(value_casted) @@ -2089,7 +2085,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const edgeEffect_casted = edgeEffect as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) @@ -2099,7 +2095,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - fadingEdge(enabled?: boolean, options?: FadingEdgeOptions): this { + public fadingEdge(enabled?: boolean, options?: FadingEdgeOptions): this { if (this.checkPriority("fadingEdge")) { const enabled_casted = enabled as (boolean | undefined) const options_casted = options as (FadingEdgeOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts index c052eda9f..7a22bdc90 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts @@ -40,10 +40,6 @@ import { TouchEvent } from "./ArkTouchEventMaterialized" import { KeyEvent } from "./ArkKeyEventMaterialized" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { DragEvent } from "./ArkDragEventMaterialized" -import { CircleAttribute } from "./ArkCircleInterfaces" -import { EllipseAttribute } from "./ArkEllipseInterfaces" -import { PathAttribute } from "./ArkPathInterfaces" -import { RectAttribute } from "./ArkRectInterfaces" import { ProgressMask } from "./ArkProgressMaskMaterialized" import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" @@ -68,7 +64,7 @@ export interface ProvideOptions { export interface AnimatableArithmetic { } export interface Context { - __ContextStub: string; + _ContextStub: string; } export interface Configuration { colorMode: string; @@ -433,10 +429,10 @@ export enum DragBehavior { MOVE = 1 } export interface Summary { - __SummaryStub: string; + _SummaryStub: string; } export interface UniformDataType { - __UniformDataTypeStub: string; + _UniformDataTypeStub: string; } export enum DragResult { DRAG_SUCCESSFUL = 0, @@ -482,7 +478,7 @@ export enum BlendApplyType { OFFSCREEN = 1 } export interface IntentionCode { - __IntentionCodeStub: string; + _IntentionCodeStub: string; } export interface BindOptions { backgroundColor?: ResourceColor; @@ -714,7 +710,7 @@ export interface ContentModifier { } export interface CommonConfiguration { enabled: boolean; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } export enum OutlineStyle { SOLID = 0, @@ -733,10 +729,10 @@ export enum MenuPolicy { SHOW = 2 } export interface ImageModifier { - __ImageModifierStub: string; + _ImageModifierStub: string; } export interface SymbolGlyphModifier { - __SymbolGlyphModifierStub: string; + _SymbolGlyphModifierStub: string; } export interface DragPreviewOptions { mode?: DragPreviewMode | Array; @@ -754,16 +750,16 @@ export interface InvertOptions { thresholdRange: number; } export interface CircleShape { - __CircleShapeStub: string; + _CircleShapeStub: string; } export interface EllipseShape { - __EllipseShapeStub: string; + _EllipseShapeStub: string; } export interface PathShape { - __PathShapeStub: string; + _PathShapeStub: string; } export interface RectShape { - __RectShapeStub: string; + _RectShapeStub: string; } export interface CommonMethod { width: Length; @@ -880,10 +876,10 @@ export interface CommonMethod { radialGradient: Type_CommonMethod_radialGradient_value; motionPath: MotionPathOptions; shadow: ShadowOptions | ShadowStyle; - clip: boolean; + clip: boolean | undefined; clipShape: CircleShape | EllipseShape | PathShape | RectShape; - mask: ProgressMask; + mask: ProgressMask | undefined; maskShape: CircleShape | EllipseShape | PathShape | RectShape; key: string; @@ -907,7 +903,7 @@ export interface CommonMethod { obscured: Array; reuseId: string; renderFit: RenderFit; - attributeModifier: AttributeModifier; + attributeModifier: AttributeModifier; gestureModifier: GestureModifier; backgroundBrightness: BackgroundBrightnessOptions; onGestureJudgeBegin: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult); @@ -1009,34 +1005,34 @@ export interface SizeResult { export interface MeasureResult extends SizeResult { } export interface NavDestinationInfo { - __NavDestinationInfoStub: string; + _NavDestinationInfoStub: string; } export interface NavigationInfo { - __NavigationInfoStub: string; + _NavigationInfoStub: string; } export interface RouterPageInfo { - __RouterPageInfoStub: string; + _RouterPageInfoStub: string; } export interface UIContext { - __UIContextStub: string; + _UIContextStub: string; } export interface DrawContext { - __DrawContextStub: string; + _DrawContextStub: string; } export interface VisualEffect { - __VisualEffectStub: string; + _VisualEffectStub: string; } export interface Filter { - __FilterStub: string; + _FilterStub: string; } export interface Blender { - __BlenderStub: string; + _BlenderStub: string; } export interface ComponentContent { - __ComponentContentStub: string; + _ComponentContentStub: string; } export interface Theme { - __ThemeStub: string; + _ThemeStub: string; } export interface RectResult { x: number; @@ -1063,7 +1059,7 @@ export interface ScrollableCommonMethod extends CommonMethod { friction: number | Resource; onScroll: ((first: number,last: number) => void); onWillScroll: ScrollOnWillScrollCallback | undefined; - onDidScroll: ScrollOnScrollCallback | undefined; + onDidScroll: ScrollOnScrollCallback; onReachStart: (() => void); onReachEnd: (() => void); onScrollStart: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts index 9094a8b80..46aabb87f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return (this.peer as ArkComponent3DPeer) } /** @memo */ - setComponent3DOptions(sceneOptions?: SceneOptions): this { + public setComponent3DOptions(sceneOptions?: SceneOptions): this { if (this.checkPriority("setComponent3DOptions")) { const sceneOptions_casted = sceneOptions as (SceneOptions | undefined) this.getPeer()?.setComponent3DOptionsAttribute(sceneOptions_casted) @@ -41,7 +41,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - environment(value: ResourceStr): this { + public environment(value: ResourceStr): this { if (this.checkPriority("environment")) { const value_casted = value as (ResourceStr) this.getPeer()?.environmentAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shader(value: ResourceStr): this { + public shader(value: ResourceStr): this { if (this.checkPriority("shader")) { const value_casted = value as (ResourceStr) this.getPeer()?.shaderAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shaderImageTexture(value: ResourceStr): this { + public shaderImageTexture(value: ResourceStr): this { if (this.checkPriority("shaderImageTexture")) { const value_casted = value as (ResourceStr) this.getPeer()?.shaderImageTextureAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shaderInputBuffer(value: Array): this { + public shaderInputBuffer(value: Array): this { if (this.checkPriority("shaderInputBuffer")) { const value_casted = value as (Array) this.getPeer()?.shaderInputBufferAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderWidth(value: Dimension): this { + public renderWidth(value: Dimension): this { if (this.checkPriority("renderWidth")) { const value_casted = value as (Dimension) this.getPeer()?.renderWidthAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderHeight(value: Dimension): this { + public renderHeight(value: Dimension): this { if (this.checkPriority("renderHeight")) { const value_casted = value as (Dimension) this.getPeer()?.renderHeightAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customRender(uri: ResourceStr, selfRenderUpdate: boolean): this { + public customRender(uri: ResourceStr, selfRenderUpdate: boolean): this { if (this.checkPriority("customRender")) { const uri_casted = uri as (ResourceStr) const selfRenderUpdate_casted = selfRenderUpdate as (boolean) diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts index bb7c2656b..ed35bfcaa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts @@ -22,7 +22,7 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { ResourceStr, Dimension } from "./ArkUnitsInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" export interface Scene { - __SceneStub: string; + _SceneStub: string; } export enum ModelType { TEXTURE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts index 2802be7bd..eec7f6d43 100644 --- a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { MessageLevel } from "./ArkWebInterfaces" -import { INTERFACE_ConsoleMessage } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ConsoleMessage implements MaterializedBase { peer?: Finalizable | undefined @@ -45,16 +44,16 @@ export class ConsoleMessage implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ConsoleMessage_getFinalizer() } - getMessage(): string { + public getMessage(): string { return this.getMessage_serialize() } - getSourceId(): string { + public getSourceId(): string { return this.getSourceId_serialize() } - getLineNumber(): number { + public getLineNumber(): number { return this.getLineNumber_serialize() } - getMessageLevel(): MessageLevel { + public getMessageLevel(): MessageLevel { return this.getMessageLevel_serialize() } private getMessage_serialize(): string { diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts index 25e47f643..686686bf5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkContainerSpanComponent extends ComponentBase { return (this.peer as ArkContainerSpanPeer) } /** @memo */ - setContainerSpanOptions(): this { + public setContainerSpanOptions(): this { if (this.checkPriority("setContainerSpanOptions")) { this.getPeer()?.setContainerSpanOptionsAttribute() return this @@ -39,7 +39,7 @@ export class ArkContainerSpanComponent extends ComponentBase { return this } /** @memo */ - textBackgroundStyle(value: TextBackgroundStyle): this { + public textBackgroundStyle(value: TextBackgroundStyle): this { if (this.checkPriority("textBackgroundStyle")) { const value_casted = value as (TextBackgroundStyle) this.getPeer()?.textBackgroundStyleAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts index f8450436b..47e49e2ad 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts @@ -24,5 +24,5 @@ import { AttributeModifier } from "./../handwritten" export type ContainerSpanInterface = () => ContainerSpanAttribute; export interface ContainerSpanAttribute { textBackgroundStyle: TextBackgroundStyle; - attributeModifier: AttributeModifier; + attributeModifier: AttributeModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts index 29d68c1e6..49ca3564a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" export interface Content { - __ContentStub: string; + _ContentStub: string; } export interface ContentSlotAttribute { } diff --git a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts index 5eaaaf03a..6d57b5972 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_ContextMenu } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ContextMenu implements MaterializedBase { peer?: Finalizable | undefined @@ -44,7 +43,7 @@ export class ContextMenu implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ContextMenu_getFinalizer() } - static close(): undefined { + public static close(): undefined { return ContextMenu.close_serialize() } private static close_serialize(): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts index 6f709d97f..e761e8c4a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" -import { INTERFACE_ControllerHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ControllerHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -42,7 +41,7 @@ export class ControllerHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ControllerHandler_getFinalizer() } - setWebController(controller: WebviewController): void { + public setWebController(controller: WebviewController): void { const controller_casted = controller as (WebviewController) this.setWebController_serialize(controller_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkCounter.ts b/arkoala-arkts/arkui/src/generated/ArkCounter.ts index 1ad8ae7c7..ec93cb823 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCounter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCounter.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return (this.peer as ArkCounterPeer) } /** @memo */ - setCounterOptions(): this { + public setCounterOptions(): this { if (this.checkPriority("setCounterOptions")) { this.getPeer()?.setCounterOptionsAttribute() return this @@ -41,7 +41,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInc(value: VoidCallback): this { + public onInc(value: VoidCallback): this { if (this.checkPriority("onInc")) { const value_casted = value as (VoidCallback) this.getPeer()?.onIncAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDec(value: VoidCallback): this { + public onDec(value: VoidCallback): this { if (this.checkPriority("onDec")) { const value_casted = value as (VoidCallback) this.getPeer()?.onDecAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableDec(value: boolean): this { + public enableDec(value: boolean): this { if (this.checkPriority("enableDec")) { const value_casted = value as (boolean) this.getPeer()?.enableDecAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableInc(value: boolean): this { + public enableInc(value: boolean): this { if (this.checkPriority("enableInc")) { const value_casted = value as (boolean) this.getPeer()?.enableIncAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index d2ce37df1..e578dd70c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" -import { INTERFACE_CustomDialogController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CustomDialogController implements MaterializedBase { peer?: Finalizable | undefined @@ -48,10 +47,10 @@ export class CustomDialogController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CustomDialogController_getFinalizer() } - open(): undefined { + public open(): undefined { return this.open_serialize() } - close(): undefined { + public close(): undefined { return this.close_serialize() } private open_serialize(): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts index d26ac7c56..6b5146ad7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -18,14 +18,13 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" -import { INTERFACE_CustomSpan } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class CustomSpan implements MaterializedBase { peer?: Finalizable | undefined @@ -43,17 +42,17 @@ export class CustomSpan implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CustomSpan_getFinalizer() } - onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + public onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { const measureInfo_casted = measureInfo as (CustomSpanMeasureInfo) return this.onMeasure_serialize(measureInfo_casted) } - onDraw(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { + public onDraw(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const context_casted = context as (DrawContext) const drawInfo_casted = drawInfo as (CustomSpanDrawInfo) this.onDraw_serialize(context_casted, drawInfo_casted) return } - invalidate(): void { + public invalidate(): void { this.invalidate_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts index 09435d9cc..de3a63874 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -24,15 +24,16 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { DataPanelAttribute, LinearGradient_data_panel, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./ArkDataPanelInterfaces" +import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./ArkDataPanelInterfaces" import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" /** @memo:stable */ export class ArkDataPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkDataPanelPeer { return (this.peer as ArkDataPanelPeer) } /** @memo */ - setDataPanelOptions(options: DataPanelOptions): this { + public setDataPanelOptions(options: DataPanelOptions): this { if (this.checkPriority("setDataPanelOptions")) { const options_casted = options as (DataPanelOptions) this.getPeer()?.setDataPanelOptionsAttribute(options_casted) @@ -41,7 +42,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - closeEffect(value: boolean): this { + public closeEffect(value: boolean): this { if (this.checkPriority("closeEffect")) { const value_casted = value as (boolean) this.getPeer()?.closeEffectAttribute(value_casted) @@ -50,16 +51,16 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - valueColors(value: Array): this { + public valueColors(value: Array): this { if (this.checkPriority("valueColors")) { - const value_casted = value as (Array) + const value_casted = value as (Array) this.getPeer()?.valueColorsAttribute(value_casted) return this } return this } /** @memo */ - trackBackgroundColor(value: ResourceColor): this { + public trackBackgroundColor(value: ResourceColor): this { if (this.checkPriority("trackBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.trackBackgroundColorAttribute(value_casted) @@ -68,7 +69,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: Length): this { + public strokeWidth(value: Length): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (Length) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -77,7 +78,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackShadow(value: DataPanelShadowOptions): this { + public trackShadow(value: DataPanelShadowOptions): this { if (this.checkPriority("trackShadow")) { const value_casted = value as (DataPanelShadowOptions) this.getPeer()?.trackShadowAttribute(value_casted) @@ -86,7 +87,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts index 198ed129c..d68028ed5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts @@ -21,6 +21,7 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { ResourceColor, Length } from "./ArkUnitsInterfaces" import { MultiShadowOptions, CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" export enum DataPanelType { LINE = 0, Line = 0, @@ -31,10 +32,8 @@ export interface ColorStop { color: ResourceColor; offset: Length; } -export interface LinearGradient_data_panel { -} export interface DataPanelShadowOptions extends MultiShadowOptions { - colors?: Array; + colors?: Array; } export interface DataPanelOptions { values: Array; @@ -48,9 +47,9 @@ export interface DataPanelConfiguration extends CommonConfiguration { closeEffect: boolean; - valueColors: Array; + valueColors: Array; trackBackgroundColor: ResourceColor; strokeWidth: Length; trackShadow: DataPanelShadowOptions; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index 607124115..b8268eb95 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_DataResubmissionHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class DataResubmissionHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -41,11 +40,11 @@ export class DataResubmissionHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DataResubmissionHandler_getFinalizer() } - resend(): void { + public resend(): void { this.resend_serialize() return } - cancel(): void { + public cancel(): void { this.cancel_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts index 77dbd9947..69b30f3cf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkDatePickerPeer) } /** @memo */ - setDatePickerOptions(options?: DatePickerOptions): this { + public setDatePickerOptions(options?: DatePickerOptions): this { if (this.checkPriority("setDatePickerOptions")) { const options_casted = options as (DatePickerOptions | undefined) this.getPeer()?.setDatePickerOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lunar(value: boolean): this { + public lunar(value: boolean): this { if (this.checkPriority("lunar")) { const value_casted = value as (boolean) this.getPeer()?.lunarAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disappearTextStyle(value: PickerTextStyle): this { + public disappearTextStyle(value: PickerTextStyle): this { if (this.checkPriority("disappearTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.disappearTextStyleAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedTextStyle(value: PickerTextStyle): this { + public selectedTextStyle(value: PickerTextStyle): this { if (this.checkPriority("selectedTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.selectedTextStyleAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: DatePickerResult) => void)): this { + public onChange(value: ((value: DatePickerResult) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: DatePickerResult) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDateChange(value: ((parameter: Date) => void)): this { + public onDateChange(value: ((parameter: Date) => void)): this { if (this.checkPriority("onDateChange")) { const value_casted = value as (((parameter: Date) => void)) this.getPeer()?.onDateChangeAttribute(value_casted) @@ -96,10 +96,10 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: Date) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: Date) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: Date) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index b87c88493..358fc4eb6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { DatePickerDialogOptions } from "./ArkDatePickerInterfaces" -import { INTERFACE_DatePickerDialog } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class DatePickerDialog implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class DatePickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DatePickerDialog_getFinalizer() } - static show(options?: DatePickerDialogOptions): undefined { + public static show(options?: DatePickerDialogOptions): undefined { const options_casted = options as (DatePickerDialogOptions | undefined) return DatePickerDialog.show_serialize(options_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts new file mode 100644 index 000000000..90f3e8550 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -0,0 +1,83 @@ +/* + * 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 { TextDecorationType, TextDecorationStyle, Color } from "./ArkEnumsInterfaces" +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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DecorationStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get type(): TextDecorationType { + return this.getType() + } + get color(): ResourceColor | undefined { + throw new Error("Not implemented") + } + get style(): TextDecorationStyle | undefined { + return this.getStyle() + } + static ctor(value: DecorationStyleInterface): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeDecorationStyleInterface(value) + const retval = ArkUIGeneratedNativeModule._DecorationStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: DecorationStyleInterface) { + if (((value) !== (undefined))) + { + const ctorPtr : KPointer = DecorationStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, DecorationStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DecorationStyle_getFinalizer() + } + private getType(): TextDecorationType { + return this.getType_serialize() + } + private getStyle(): TextDecorationStyle { + return this.getStyle_serialize() + } + private getType_serialize(): TextDecorationType { + const retval = ArkUIGeneratedNativeModule._DecorationStyle_getType(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getStyle_serialize(): TextDecorationStyle { + const retval = ArkUIGeneratedNativeModule._DecorationStyle_getStyle(this.peer!.ptr) + 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/ArkDisappearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts new file mode 100644 index 000000000..b2a78b8ce --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -0,0 +1,82 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope | undefined { + return this.getScope() + } + set scope(scope: EffectScope | undefined) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + static ctor(scope?: EffectScope): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let scope_type : int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type as int32) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = (scope as EffectScope) + thisSerializer.writeInt32((scope_value.valueOf() as int32)) + } + const retval = ArkUIGeneratedNativeModule._DisappearSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope) { + const ctorPtr : KPointer = DisappearSymbolEffect.ctor(scope) + this.peer = new Finalizable(ctorPtr, DisappearSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DisappearSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this.setScope_serialize(scope_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._DisappearSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + 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 4ef8206dd..dc283d6d2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDivider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDivider.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return (this.peer as ArkDividerPeer) } /** @memo */ - setDividerOptions(): this { + public setDividerOptions(): this { if (this.checkPriority("setDividerOptions")) { this.getPeer()?.setDividerOptionsAttribute() return this @@ -41,7 +41,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: number | string): this { + public strokeWidth(value: number | string): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (number | string) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineCap(value: LineCapStyle): this { + public lineCap(value: LineCapStyle): this { if (this.checkPriority("lineCap")) { const value_casted = value as (LineCapStyle) this.getPeer()?.lineCapAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts index f0f3a9e59..eecb46d61 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts @@ -18,14 +18,13 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" -import { INTERFACE_DragEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface DragEvent { dragBehavior: DragBehavior @@ -75,56 +74,56 @@ export class DragEventInternal implements MaterializedBase,DragEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DragEvent_getFinalizer() } - getDisplayX(): number { + public getDisplayX(): number { return this.getDisplayX_serialize() } - getDisplayY(): number { + public getDisplayY(): number { return this.getDisplayY_serialize() } - getWindowX(): number { + public getWindowX(): number { return this.getWindowX_serialize() } - getWindowY(): number { + public getWindowY(): number { return this.getWindowY_serialize() } - getX(): number { + public getX(): number { return this.getX_serialize() } - getY(): number { + public getY(): number { return this.getY_serialize() } - setData(unifiedData: UnifiedData): void { + public setData(unifiedData: UnifiedData): void { const unifiedData_casted = unifiedData as (UnifiedData) this.setData_serialize(unifiedData_casted) return } - getData(): UnifiedData { + public getData(): UnifiedData { return this.getData_serialize() } - getSummary(): Summary { + public getSummary(): Summary { return this.getSummary_serialize() } - setResult(dragResult: DragResult): void { + public setResult(dragResult: DragResult): void { const dragResult_casted = dragResult as (DragResult) this.setResult_serialize(dragResult_casted) return } - getResult(): DragResult { + public getResult(): DragResult { return this.getResult_serialize() } - getPreviewRect(): Rectangle { + public getPreviewRect(): Rectangle { return this.getPreviewRect_serialize() } - getVelocityX(): number { + public getVelocityX(): number { return this.getVelocityX_serialize() } - getVelocityY(): number { + public getVelocityY(): number { return this.getVelocityY_serialize() } - getVelocity(): number { + public getVelocity(): number { return this.getVelocity_serialize() } - getModifierKeyState(keys: Array): boolean { + public getModifierKeyState(keys: Array): boolean { const keys_casted = keys as (Array) return this.getModifierKeyState_serialize(keys_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts index be4cca396..8edf5d387 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { DrawContext } from "./ArkCommonInterfaces" -import { INTERFACE_DrawModifier } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class DrawModifier implements MaterializedBase { peer?: Finalizable | undefined @@ -42,22 +41,22 @@ export class DrawModifier implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DrawModifier_getFinalizer() } - drawBehind(drawContext: DrawContext): void { + public drawBehind(drawContext: DrawContext): void { const drawContext_casted = drawContext as (DrawContext) this.drawBehind_serialize(drawContext_casted) return } - drawContent(drawContext: DrawContext): void { + public drawContent(drawContext: DrawContext): void { const drawContext_casted = drawContext as (DrawContext) this.drawContent_serialize(drawContext_casted) return } - drawFront(drawContext: DrawContext): void { + public drawFront(drawContext: DrawContext): void { const drawContext_casted = drawContext as (DrawContext) this.drawFront_serialize(drawContext_casted) return } - invalidate(): void { + public invalidate(): void { this.invalidate_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index ccda1aa88..ef12425fa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { INTERFACE_DrawingCanvas } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class DrawingCanvas implements MaterializedBase { peer?: Finalizable | undefined @@ -48,7 +47,7 @@ export class DrawingCanvas implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DrawingCanvas_getFinalizer() } - drawRect(left: number, top: number, right: number, bottom: number): void { + public drawRect(left: number, top: number, right: number, bottom: number): void { const left_casted = left as (number) const top_casted = top as (number) const right_casted = right as (number) diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index 89d01d142..c12f2fd48 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -19,14 +19,13 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { INTERFACE_DrawingRenderingContext } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class DrawingRenderingContext implements MaterializedBase { peer?: Finalizable | undefined @@ -59,7 +58,7 @@ export class DrawingRenderingContext implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DrawingRenderingContext_getFinalizer() } - invalidate(): void { + public invalidate(): void { this.invalidate_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts index b68600334..fc6717541 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { OnMoveHandler } from "./ArkCommonInterfaces" -import { INTERFACE_DynamicNode } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class DynamicNode implements MaterializedBase { peer?: Finalizable | undefined @@ -42,7 +41,7 @@ export class DynamicNode implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DynamicNode_getFinalizer() } - onMove(handler?: OnMoveHandler): T { + public onMove(handler?: OnMoveHandler): T { const handler_casted = handler as (OnMoveHandler | undefined) return this.onMove_serialize(handler_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index 6d20e8305..6f65849b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" -import { INTERFACE_EditMenuOptions } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface EditMenuOptions { onCreateMenu(menuItems: Array): Array @@ -46,11 +45,11 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EditMenuOptions_getFinalizer() } - onCreateMenu(menuItems: Array): Array { + public onCreateMenu(menuItems: Array): Array { const menuItems_casted = menuItems as (Array) return this.onCreateMenu_serialize(menuItems_casted) } - onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean { + public onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean { const menuItem_casted = menuItem as (TextMenuItem) const range_casted = range as (TextRange) return this.onMenuItemClick_serialize(menuItem_casted, range_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts index bb695b3f0..1f2f53d89 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkEffectComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkEffectComponentPeer) } /** @memo */ - setEffectComponentOptions(): this { + public setEffectComponentOptions(): this { if (this.checkPriority("setEffectComponentOptions")) { this.getPeer()?.setEffectComponentOptionsAttribute() return this diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts index ca5adcbe9..251c01dbb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkEllipseComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkEllipsePeer) } /** @memo */ - setEllipseOptions(options?: EllipseOptions): this { + public setEllipseOptions(options?: EllipseOptions): this { if (this.checkPriority("setEllipseOptions")) { const options_casted = options as (EllipseOptions | undefined) this.getPeer()?.setEllipseOptionsAttribute(options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts index 0245fd92c..fe284ccf4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -28,7 +28,7 @@ import { CommonMethod } from "./ArkCommonInterfaces" import { EmbeddedComponentAttribute, TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { Callback_TerminationInfo_Void } from "./SyntheticDeclarations" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" -import { Want } from "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" import { EmbeddedType } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { @@ -36,7 +36,7 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkEmbeddedComponentPeer) } /** @memo */ - setEmbeddedComponentOptions(loader: Want, type: EmbeddedType): this { + public setEmbeddedComponentOptions(loader: Want, type: EmbeddedType): this { if (this.checkPriority("setEmbeddedComponentOptions")) { const loader_casted = loader as (Want) const type_casted = type as (EmbeddedType) @@ -46,7 +46,7 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTerminated(value: ((parameter: TerminationInfo) => void)): this { + public onTerminated(value: ((parameter: TerminationInfo) => void)): this { if (this.checkPriority("onTerminated")) { const value_casted = value as (((parameter: TerminationInfo) => void)) this.getPeer()?.onTerminatedAttribute(value_casted) @@ -55,7 +55,7 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ErrorCallback): this { + public onError(value: ErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts index 3a9c048c6..4c70aaf80 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts @@ -19,7 +19,7 @@ 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 "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" import { EmbeddedType } from "./ArkEnumsInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" import { Callback_TerminationInfo_Void } from "./SyntheticDeclarations" diff --git a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 091ea058e..04169d4ba 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" -import { INTERFACE_EventEmulator } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class EventEmulator implements MaterializedBase { peer?: Finalizable | undefined @@ -45,13 +44,13 @@ export class EventEmulator implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EventEmulator_getFinalizer() } - static emitClickEvent(node: KPointer, event: ClickEvent): void { + public static emitClickEvent(node: KPointer, event: ClickEvent): void { const node_casted = node as (KPointer) const event_casted = event as (ClickEvent) EventEmulator.emitClickEvent_serialize(node_casted, event_casted) return } - static emitTextInputEvent(node: KPointer, text: string): void { + public static emitTextInputEvent(node: KPointer, text: string): void { const node_casted = node as (KPointer) const text_casted = text as (string) EventEmulator.emitTextInputEvent_serialize(node_casted, text_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts index fdd781951..7df3a441d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_EventResult } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class EventResult implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class EventResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EventResult_getFinalizer() } - setGestureEventResult(result: boolean): void { + public setGestureEventResult(result: boolean): void { const result_casted = result as (boolean) this.setGestureEventResult_serialize(result_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index 0a9df0895..6d36d78ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_EventTargetInfo } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class EventTargetInfo implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EventTargetInfo_getFinalizer() } - getId(): string { + public getId(): string { return this.getId_serialize() } private getId_serialize(): string { diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index e402121d5..d74707bdd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { FileSelectorMode } from "./ArkWebInterfaces" -import { INTERFACE_FileSelectorParam } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class FileSelectorParam implements MaterializedBase { peer?: Finalizable | undefined @@ -42,16 +41,16 @@ export class FileSelectorParam implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FileSelectorParam_getFinalizer() } - getTitle(): string { + public getTitle(): string { return this.getTitle_serialize() } - getMode(): FileSelectorMode { + public getMode(): FileSelectorMode { return this.getMode_serialize() } - getAcceptType(): Array { + public getAcceptType(): Array { return this.getAcceptType_serialize() } - isCapture(): boolean { + public isCapture(): boolean { return this.isCapture_serialize() } private getTitle_serialize(): string { diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index 44297c4f7..c175d67d0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_FileSelectorResult } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class FileSelectorResult implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class FileSelectorResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FileSelectorResult_getFinalizer() } - handleFileList(fileList: Array): void { + public handleFileList(fileList: Array): void { const fileList_casted = fileList as (Array) this.handleFileList_serialize(fileList_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkFlex.ts b/arkoala-arkts/arkui/src/generated/ArkFlex.ts index 3512a8e82..f2a24bad5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlex.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlex.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkFlexComponent extends ArkCommonMethodComponent { return (this.peer as ArkFlexPeer) } /** @memo */ - setFlexOptions(value?: FlexOptions): this { + public setFlexOptions(value?: FlexOptions): this { if (this.checkPriority("setFlexOptions")) { const value_casted = value as (FlexOptions | undefined) this.getPeer()?.setFlexOptionsAttribute(value_casted) @@ -40,7 +40,7 @@ export class ArkFlexComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts index 9c36f7159..0d6ce4a72 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkFlowItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkFlowItemPeer) } /** @memo */ - setFlowItemOptions(): this { + public setFlowItemOptions(): this { if (this.checkPriority("setFlowItemOptions")) { this.getPeer()?.setFlowItemOptionsAttribute() return this diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts index 00c11808f..3d1cab28a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return (this.peer as ArkFolderStackPeer) } /** @memo */ - setFolderStackOptions(options?: FolderStackOptions): this { + public setFolderStackOptions(options?: FolderStackOptions): this { if (this.checkPriority("setFolderStackOptions")) { const options_casted = options as (FolderStackOptions | undefined) this.getPeer()?.setFolderStackOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignContent(value: Alignment): this { + public alignContent(value: Alignment): this { if (this.checkPriority("alignContent")) { const value_casted = value as (Alignment) this.getPeer()?.alignContentAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFolderStateChange(value: OnFoldStatusChangeCallback): this { + public onFolderStateChange(value: OnFoldStatusChangeCallback): this { if (this.checkPriority("onFolderStateChange")) { const value_casted = value as (OnFoldStatusChangeCallback) this.getPeer()?.onFolderStateChangeAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHoverStatusChange(value: OnHoverStatusChangeCallback): this { + public onHoverStatusChange(value: OnHoverStatusChangeCallback): this { if (this.checkPriority("onHoverStatusChange")) { const value_casted = value as (OnHoverStatusChangeCallback) this.getPeer()?.onHoverStatusChangeAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnimation(value: boolean): this { + public enableAnimation(value: boolean): this { if (this.checkPriority("enableAnimation")) { const value_casted = value as (boolean) this.getPeer()?.enableAnimationAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoHalfFold(value: boolean): this { + public autoHalfFold(value: boolean): this { if (this.checkPriority("autoHalfFold")) { const value_casted = value as (boolean) this.getPeer()?.autoHalfFoldAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts index a9c826c0a..d2a1bfe6b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts @@ -22,7 +22,7 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { FoldStatus, Alignment, AppRotation } from "./ArkEnumsInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" export interface WindowStatusType { - __WindowStatusTypeStub: string; + _WindowStatusTypeStub: string; } export interface FolderStackOptions { upperItems?: Array; diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts index a49cd175a..88703eb92 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkFormComponentPeer) } /** @memo */ - setFormComponentOptions(value: FormInfo): this { + public setFormComponentOptions(value: FormInfo): this { if (this.checkPriority("setFormComponentOptions")) { const value_casted = value as (FormInfo) this.getPeer()?.setFormComponentOptionsAttribute(value_casted) @@ -44,7 +44,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - size(value: SizeOptions): this { + public size(value: SizeOptions): this { if (this.checkPriority("size")) { const value_casted = value as (SizeOptions) this.getPeer()?.sizeAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - moduleName(value: string): this { + public moduleName(value: string): this { if (this.checkPriority("moduleName")) { const value_casted = value as (string) this.getPeer()?.moduleNameAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dimension(value: FormDimension): this { + public dimension(value: FormDimension): this { if (this.checkPriority("dimension")) { const value_casted = value as (FormDimension) this.getPeer()?.dimensionAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - allowUpdate(value: boolean): this { + public allowUpdate(value: boolean): this { if (this.checkPriority("allowUpdate")) { const value_casted = value as (boolean) this.getPeer()?.allowUpdateAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - visibility(value: Visibility): this { + public visibility(value: Visibility): this { if (this.checkPriority("visibility")) { const value_casted = value as (Visibility) this.getPeer()?.visibilityAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAcquired(value: ((parameter: FormCallbackInfo) => void)): this { + public onAcquired(value: ((parameter: FormCallbackInfo) => void)): this { if (this.checkPriority("onAcquired")) { const value_casted = value as (((parameter: FormCallbackInfo) => void)) this.getPeer()?.onAcquiredAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ((info: Literal_Number_errcode_String_msg) => void)): this { + public onError(value: ((info: Literal_Number_errcode_String_msg) => void)): this { if (this.checkPriority("onError")) { const value_casted = value as (((info: Literal_Number_errcode_String_msg) => void)) this.getPeer()?.onErrorAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRouter(value: ((info: object) => void)): this { + public onRouter(value: ((info: object) => void)): this { if (this.checkPriority("onRouter")) { const value_casted = value as (((info: object) => void)) this.getPeer()?.onRouterAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onUninstall(value: ((parameter: FormCallbackInfo) => void)): this { + public onUninstall(value: ((parameter: FormCallbackInfo) => void)): this { if (this.checkPriority("onUninstall")) { const value_casted = value as (((parameter: FormCallbackInfo) => void)) this.getPeer()?.onUninstallAttribute(value_casted) @@ -125,7 +125,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLoad(value: (() => void)): this { + public onLoad(value: (() => void)): this { if (this.checkPriority("onLoad")) { const value_casted = value as ((() => void)) this.getPeer()?.onLoadAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts index 4265c22dc..f21e9af63 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts @@ -19,7 +19,7 @@ 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 "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" import { SizeOptions } from "./ArkUnitsInterfaces" import { Visibility } from "./ArkEnumsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts index ba433b845..3e12da492 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkFormLinkComponent extends ArkCommonMethodComponent { return (this.peer as ArkFormLinkPeer) } /** @memo */ - setFormLinkOptions(options: FormLinkOptions): this { + public setFormLinkOptions(options: FormLinkOptions): this { if (this.checkPriority("setFormLinkOptions")) { const options_casted = options as (FormLinkOptions) this.getPeer()?.setFormLinkOptionsAttribute(options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts index df263e991..db81f25e4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -18,14 +18,13 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position } from "./ArkUnitsInterfaces" -import { INTERFACE_FrameNode } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class FrameNode implements MaterializedBase { peer?: Finalizable | undefined @@ -49,56 +48,56 @@ export class FrameNode implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FrameNode_getFinalizer() } - isModifiable(): boolean { + public isModifiable(): boolean { return this.isModifiable_serialize() } - appendChild(node: FrameNode): void { + public appendChild(node: FrameNode): void { const node_casted = node as (FrameNode) this.appendChild_serialize(node_casted) return } - insertChildAfter(child: FrameNode, sibling: FrameNode): void { + public insertChildAfter(child: FrameNode, sibling: FrameNode): void { const child_casted = child as (FrameNode) const sibling_casted = sibling as (FrameNode) this.insertChildAfter_serialize(child_casted, sibling_casted) return } - removeChild(node: FrameNode): void { + public removeChild(node: FrameNode): void { const node_casted = node as (FrameNode) this.removeChild_serialize(node_casted) return } - clearChildren(): void { + public clearChildren(): void { this.clearChildren_serialize() return } - getChild(index: number): FrameNode { + public getChild(index: number): FrameNode { const index_casted = index as (number) return this.getChild_serialize(index_casted) } - getFirstChild(): FrameNode { + public getFirstChild(): FrameNode { return this.getFirstChild_serialize() } - getNextSibling(): FrameNode { + public getNextSibling(): FrameNode { return this.getNextSibling_serialize() } - getPreviousSibling(): FrameNode { + public getPreviousSibling(): FrameNode { return this.getPreviousSibling_serialize() } - getParent(): FrameNode { + public getParent(): FrameNode { return this.getParent_serialize() } - getChildrenCount(): int32 { + public getChildrenCount(): int32 { return this.getChildrenCount_serialize() } - dispose(): void { + public dispose(): void { this.dispose_serialize() return } - getOpacity(): number { + public getOpacity(): number { return this.getOpacity_serialize() } - getPositionToWindowWithTransform(): Position { + public getPositionToWindowWithTransform(): Position { return this.getPositionToWindowWithTransform_serialize() } private isModifiable_serialize(): boolean { diff --git a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts new file mode 100644 index 000000000..db1c43c8d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.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 { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +import { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FrictionMotion implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(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) + this.peer = new Finalizable(ctorPtr, FrictionMotion.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 76e413b49..9c8289047 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_FullScreenExitHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class FullScreenExitHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class FullScreenExitHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FullScreenExitHandler_getFinalizer() } - exitFullScreen(): void { + public exitFullScreen(): void { this.exitFullScreen_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkGauge.ts b/arkoala-arkts/arkui/src/generated/ArkGauge.ts index cc5374640..9cf6af95d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGauge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGauge.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -24,17 +24,18 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, LinearGradient_common, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" +import { CommonMethod, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./ArkGaugeInterfaces" import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Tuple_Union_ResourceColor_LinearGradient_common_Number } from "./SyntheticDeclarations" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkGaugeComponent extends ArkCommonMethodComponent { getPeer(): ArkGaugePeer { return (this.peer as ArkGaugePeer) } /** @memo */ - setGaugeOptions(options: GaugeOptions): this { + public setGaugeOptions(options: GaugeOptions): this { if (this.checkPriority("setGaugeOptions")) { const options_casted = options as (GaugeOptions) this.getPeer()?.setGaugeOptionsAttribute(options_casted) @@ -43,7 +44,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - value(value: number): this { + public value(value: number): this { if (this.checkPriority("value")) { const value_casted = value as (number) this.getPeer()?.valueAttribute(value_casted) @@ -52,7 +53,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - startAngle(value: number): this { + public startAngle(value: number): this { if (this.checkPriority("startAngle")) { const value_casted = value as (number) this.getPeer()?.startAngleAttribute(value_casted) @@ -61,7 +62,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - endAngle(value: number): this { + public endAngle(value: number): this { if (this.checkPriority("endAngle")) { const value_casted = value as (number) this.getPeer()?.endAngleAttribute(value_casted) @@ -70,16 +71,16 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - colors(value: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>): this { + public colors(value: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>): this { if (this.checkPriority("colors")) { - const value_casted = value as (ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>) + const value_casted = value as (ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>) this.getPeer()?.colorsAttribute(value_casted) return this } return this } /** @memo */ - strokeWidth(value: Length): this { + public strokeWidth(value: Length): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (Length) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -88,7 +89,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - description(value: CustomBuilder): this { + public description(value: CustomBuilder): this { if (this.checkPriority("description")) { const value_casted = value as (CustomBuilder) this.getPeer()?.descriptionAttribute(value_casted) @@ -97,7 +98,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackShadow(value: GaugeShadowOptions): this { + public trackShadow(value: GaugeShadowOptions): this { if (this.checkPriority("trackShadow")) { const value_casted = value as (GaugeShadowOptions) this.getPeer()?.trackShadowAttribute(value_casted) @@ -106,7 +107,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicator(value: GaugeIndicatorOptions): this { + public indicator(value: GaugeIndicatorOptions): this { if (this.checkPriority("indicator")) { const value_casted = value as (GaugeIndicatorOptions) this.getPeer()?.indicatorAttribute(value_casted) @@ -115,7 +116,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value?: boolean): this { + public privacySensitive(value?: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean | undefined) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -124,7 +125,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts index ec21ce408..3fa9695a6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts @@ -19,9 +19,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 { MultiShadowOptions, CommonConfiguration, CommonMethod, LinearGradient_common, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" +import { MultiShadowOptions, CommonConfiguration, CommonMethod, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" import { ResourceStr, Dimension, ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Tuple_Union_ResourceColor_LinearGradient_common_Number } from "./SyntheticDeclarations" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" export interface GaugeOptions { value: number; min?: number; @@ -43,11 +44,11 @@ export interface GaugeAttribute extends CommonMethod { value: number; startAngle: number; endAngle: number; - colors: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>; + colors: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>; strokeWidth: Length; description: CustomBuilder; trackShadow: GaugeShadowOptions; indicator: GaugeIndicatorOptions; privacySensitive: boolean | undefined; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts index 1496ddffc..d2a8cd42d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -18,14 +18,13 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" -import { INTERFACE_GestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface GestureEvent { repeat: boolean diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts index 03bbb3fda..6218d5abc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { UIGestureEvent } from "./ArkCommonInterfaces" -import { INTERFACE_GestureModifier } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface GestureModifier { applyGesture(event: UIGestureEvent): void @@ -45,7 +44,7 @@ export class GestureModifierInternal implements MaterializedBase,GestureModifier static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureModifier_getFinalizer() } - applyGesture(event: UIGestureEvent): void { + public applyGesture(event: UIGestureEvent): void { const event_casted = event as (UIGestureEvent) this.applyGesture_serialize(event_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index b7e3e0564..0c7ee4457 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -19,14 +19,13 @@ import { GestureControl_GestureType } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { INTERFACE_GestureRecognizer } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined @@ -44,30 +43,30 @@ export class GestureRecognizer implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureRecognizer_getFinalizer() } - getTag(): string { + public getTag(): string { return this.getTag_serialize() } - getType(): GestureControl_GestureType { + public getType(): GestureControl_GestureType { return this.getType_serialize() } - isBuiltIn(): boolean { + public isBuiltIn(): boolean { return this.isBuiltIn_serialize() } - setEnabled(isEnabled: boolean): void { + public setEnabled(isEnabled: boolean): void { const isEnabled_casted = isEnabled as (boolean) this.setEnabled_serialize(isEnabled_casted) return } - isEnabled(): boolean { + public isEnabled(): boolean { return this.isEnabled_serialize() } - getState(): GestureRecognizerState { + public getState(): GestureRecognizerState { return this.getState_serialize() } - getEventTargetInfo(): EventTargetInfo { + public getEventTargetInfo(): EventTargetInfo { return this.getEventTargetInfo_serialize() } - isValid(): boolean { + public isValid(): boolean { return this.isValid_serialize() } private getTag_serialize(): string { diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts new file mode 100644 index 000000000..0f2f82c49 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -0,0 +1,60 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GestureStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(value?: GestureStyleInterface): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let value_type : int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeGestureStyleInterface(value_value) + } + const retval = ArkUIGeneratedNativeModule._GestureStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: GestureStyleInterface) { + const ctorPtr : KPointer = GestureStyle.ctor(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/ArkGlobalScopeCommonMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts index 08cd4ca33..0c82e0a8e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts @@ -19,81 +19,81 @@ import { Context, AnimateParam } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { Callback_Void } from "./SyntheticDeclarations" -import { PointerStyle } from "./ArkArkui-customInterfaces" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class GlobalScope_common { - static getContext(component?: Object): Context { + public static getContext(component?: Object): Context { const component_casted = component as (Object | undefined) return GlobalScope_common.getContext_serialize(component_casted) } - static postCardAction(component: Object, action: Object): void { + 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 } - static dollar_r(value: string, params: Array): Resource { + 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) } - static dollar_rawfile(value: string): Resource { + public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) return GlobalScope_common.dollar_rawfile_serialize(value_casted) } - static animateTo(value: AnimateParam, event: (() => void)): void { + 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 } - static animateToImmediately(value: AnimateParam, event: (() => void)): void { + 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 } - static vp2px(value: number): number { + public static vp2px(value: number): number { const value_casted = value as (number) return GlobalScope_common.vp2px_serialize(value_casted) } - static px2vp(value: number): number { + public static px2vp(value: number): number { const value_casted = value as (number) return GlobalScope_common.px2vp_serialize(value_casted) } - static fp2px(value: number): number { + public static fp2px(value: number): number { const value_casted = value as (number) return GlobalScope_common.fp2px_serialize(value_casted) } - static px2fp(value: number): number { + public static px2fp(value: number): number { const value_casted = value as (number) return GlobalScope_common.px2fp_serialize(value_casted) } - static lpx2px(value: number): number { + public static lpx2px(value: number): number { const value_casted = value as (number) return GlobalScope_common.lpx2px_serialize(value_casted) } - static px2lpx(value: number): number { + public static px2lpx(value: number): number { const value_casted = value as (number) return GlobalScope_common.px2lpx_serialize(value_casted) } - static requestFocus(value: string): boolean { + public static requestFocus(value: string): boolean { const value_casted = value as (string) return GlobalScope_common.requestFocus_serialize(value_casted) } - static setCursor(value: PointerStyle): void { + public static setCursor(value: PointerStyle): void { const value_casted = value as (PointerStyle) GlobalScope_common.setCursor_serialize(value_casted) return } - static restoreDefault(): void { + public static restoreDefault(): void { GlobalScope_common.restoreDefault_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts index da2c54018..33d98cb44 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts @@ -16,33 +16,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Callback_String_Void } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class GlobalScope_inspector { - static getInspectorNodes(): Object { + public static getInspectorNodes(): Object { return GlobalScope_inspector.getInspectorNodes_serialize() } - static getInspectorNodeById(id: number): Object { + public static getInspectorNodeById(id: number): Object { const id_casted = id as (number) return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) } - static registerVsyncCallback(callback_: ((info: string) => void)): void { + public static registerVsyncCallback(callback_: ((info: string) => void)): void { const callback__casted = callback_ as (((info: string) => void)) GlobalScope_inspector.registerVsyncCallback_serialize(callback__casted) return } - static unregisterVsyncCallback(): void { + public static unregisterVsyncCallback(): void { GlobalScope_inspector.unregisterVsyncCallback_serialize() return } - static setAppBgColor(value: string): void { + public static setAppBgColor(value: string): void { const value_casted = value as (string) GlobalScope_inspector.setAppBgColor_serialize(value_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index f653bd7a0..657dd6ebc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -16,16 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { AsyncCallback_image_PixelMap_Void, INTERFACE_GlobalScope_ohos_arkui_componentSnapshot } from "./SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void } from "./SyntheticDeclarations" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { SnapshotOptions } from "./ArkArkui-externalInterfaces" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBase { peer?: Finalizable | undefined @@ -46,7 +46,7 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_componentSnapshot_getFinalizer() } - static get(id: string, callback: ((result: PixelMap) => void), options?: SnapshotOptions): void { + public static get(id: string, callback: ((result: PixelMap) => void), options?: SnapshotOptions): void { const id_casted = id as (string) const callback_casted = callback as (((result: PixelMap) => void)) const options_casted = options as (SnapshotOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 5dfd2e554..64a2e2c24 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -16,15 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkui-externalInterfaces" -import { INTERFACE_GlobalScope_ohos_arkui_performanceMonitor } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBase { peer?: Finalizable | undefined @@ -45,23 +44,23 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_getFinalizer() } - static begin(scene: string, startInputType: PerfMonitorActionType, note?: string): void { + public static begin(scene: string, startInputType: PerfMonitorActionType, note?: string): void { const scene_casted = scene as (string) const startInputType_casted = startInputType as (PerfMonitorActionType) const note_casted = note as (string | undefined) GlobalScope_ohos_arkui_performanceMonitor.begin_serialize(scene_casted, startInputType_casted, note_casted) return } - static end(scene: string): void { + public static end(scene: string): void { const scene_casted = scene as (string) GlobalScope_ohos_arkui_performanceMonitor.end_serialize(scene_casted) return } - static recordInputEventTime(type: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { - const type_casted = type as (PerfMonitorActionType) + public static recordInputEventTime(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { + const actionType_casted = actionType as (PerfMonitorActionType) const sourceType_casted = sourceType as (PerfMonitorSourceType) const time_casted = time as (number) - GlobalScope_ohos_arkui_performanceMonitor.recordInputEventTime_serialize(type_casted, sourceType_casted, time_casted) + GlobalScope_ohos_arkui_performanceMonitor.recordInputEventTime_serialize(actionType_casted, sourceType_casted, time_casted) return } private static begin_serialize(scene: string, startInputType: PerfMonitorActionType, note?: string): void { @@ -79,8 +78,8 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa private static end_serialize(scene: string): void { ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_end(scene) } - private static recordInputEventTime_serialize(type: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { - ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime((type.valueOf() as int32), (sourceType.valueOf() as int32), time) + private static recordInputEventTime_serialize(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { + ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime((actionType.valueOf() as int32), (sourceType.valueOf() as int32), time) } } export class GlobalScope_ohos_arkui_performanceMonitorInternal { diff --git a/arkoala-arkts/arkui/src/generated/ArkGrid.ts b/arkoala-arkts/arkui/src/generated/ArkGrid.ts index 96e64bf6c..bbdeedf91 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGrid.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGrid.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkGridPeer) } /** @memo */ - setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { + public setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { if (this.checkPriority("setGridOptions")) { const scroller_casted = scroller as (Scroller | undefined) const layoutOptions_casted = layoutOptions as (GridLayoutOptions | undefined) @@ -48,7 +48,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsTemplate(value: string): this { + public columnsTemplate(value: string): this { if (this.checkPriority("columnsTemplate")) { const value_casted = value as (string) this.getPeer()?.columnsTemplateAttribute(value_casted) @@ -57,7 +57,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsTemplate(value: string): this { + public rowsTemplate(value: string): this { if (this.checkPriority("rowsTemplate")) { const value_casted = value as (string) this.getPeer()?.rowsTemplateAttribute(value_casted) @@ -66,7 +66,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsGap(value: Length): this { + public columnsGap(value: Length): this { if (this.checkPriority("columnsGap")) { const value_casted = value as (Length) this.getPeer()?.columnsGapAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsGap(value: Length): this { + public rowsGap(value: Length): this { if (this.checkPriority("rowsGap")) { const value_casted = value as (Length) this.getPeer()?.rowsGapAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarWidth(value: number | string): this { + public scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) this.getPeer()?.scrollBarWidthAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarColor(value: Color | number | string): this { + public scrollBarColor(value: Color | number | string): this { if (this.checkPriority("scrollBarColor")) { const value_casted = value as (Color | number | string) this.getPeer()?.scrollBarColorAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -111,7 +111,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute)): this { + public onScrollBarUpdate(value: ((index: number,offset: number) => ComputedBarAttribute)): this { if (this.checkPriority("onScrollBarUpdate")) { const value_casted = value as (((index: number,offset: number) => ComputedBarAttribute)) this.getPeer()?.onScrollBarUpdateAttribute(value_casted) @@ -120,7 +120,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollIndex(value: ((first: number,last: number) => void)): this { + public onScrollIndex(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onScrollIndexAttribute(value_casted) @@ -129,7 +129,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cachedCount(count: number, show?: boolean): this { + public cachedCount(count: number, show?: boolean): this { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) @@ -149,7 +149,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - editMode(value: boolean): this { + public editMode(value: boolean): this { if (this.checkPriority("editMode")) { const value_casted = value as (boolean) this.getPeer()?.editModeAttribute(value_casted) @@ -158,7 +158,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - multiSelectable(value: boolean): this { + public multiSelectable(value: boolean): this { if (this.checkPriority("multiSelectable")) { const value_casted = value as (boolean) this.getPeer()?.multiSelectableAttribute(value_casted) @@ -167,7 +167,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - maxCount(value: number): this { + public maxCount(value: number): this { if (this.checkPriority("maxCount")) { const value_casted = value as (number) this.getPeer()?.maxCountAttribute(value_casted) @@ -176,7 +176,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - minCount(value: number): this { + public minCount(value: number): this { if (this.checkPriority("minCount")) { const value_casted = value as (number) this.getPeer()?.minCountAttribute(value_casted) @@ -185,7 +185,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cellLength(value: number): this { + public cellLength(value: number): this { if (this.checkPriority("cellLength")) { const value_casted = value as (number) this.getPeer()?.cellLengthAttribute(value_casted) @@ -194,7 +194,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - layoutDirection(value: GridDirection): this { + public layoutDirection(value: GridDirection): this { if (this.checkPriority("layoutDirection")) { const value_casted = value as (GridDirection) this.getPeer()?.layoutDirectionAttribute(value_casted) @@ -203,7 +203,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - supportAnimation(value: boolean): this { + public supportAnimation(value: boolean): this { if (this.checkPriority("supportAnimation")) { const value_casted = value as (boolean) this.getPeer()?.supportAnimationAttribute(value_casted) @@ -212,7 +212,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragStart(value: ((event: ItemDragInfo,itemIndex: number) => CustomBuilder)): this { + public onItemDragStart(value: ((event: ItemDragInfo,itemIndex: number) => CustomBuilder)): this { if (this.checkPriority("onItemDragStart")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number) => CustomBuilder)) this.getPeer()?.onItemDragStartAttribute(value_casted) @@ -221,7 +221,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { + public onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { if (this.checkPriority("onItemDragEnter")) { const value_casted = value as (((event: ItemDragInfo) => void)) this.getPeer()?.onItemDragEnterAttribute(value_casted) @@ -230,7 +230,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void)): this { + public onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void)): this { if (this.checkPriority("onItemDragMove")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void)) this.getPeer()?.onItemDragMoveAttribute(value_casted) @@ -239,7 +239,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void)): this { + public onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void)): this { if (this.checkPriority("onItemDragLeave")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number) => void)) this.getPeer()?.onItemDragLeaveAttribute(value_casted) @@ -248,7 +248,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void)): this { + public onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void)): this { if (this.checkPriority("onItemDrop")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void)) this.getPeer()?.onItemDropAttribute(value_casted) @@ -257,7 +257,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -266,7 +266,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -275,7 +275,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -284,7 +284,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - alignItems(value?: GridItemAlignment): this { + public alignItems(value?: GridItemAlignment): this { if (this.checkPriority("alignItems")) { const value_casted = value as (GridItemAlignment | undefined) this.getPeer()?.alignItemsAttribute(value_casted) @@ -293,7 +293,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((first: number,last: number) => void)): this { + public onScroll(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onScrollAttribute(value_casted) @@ -302,7 +302,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachStartAttribute(value_casted) @@ -311,7 +311,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachEndAttribute(value_casted) @@ -320,7 +320,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStart(value: (() => void)): this { + public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollStartAttribute(value_casted) @@ -329,7 +329,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStop(value: (() => void)): this { + public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollStopAttribute(value_casted) @@ -338,7 +338,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain)): this { + public onScrollFrameBegin(value: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain)): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number,state: ScrollState) => Literal_Number_offsetRemain)) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) @@ -347,7 +347,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const value_casted = value as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts index d61b186b7..4ab569d07 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return (this.peer as ArkGridColPeer) } /** @memo */ - setGridColOptions(option?: GridColOptions): this { + public setGridColOptions(option?: GridColOptions): this { if (this.checkPriority("setGridColOptions")) { const option_casted = option as (GridColOptions | undefined) this.getPeer()?.setGridColOptionsAttribute(option_casted) @@ -40,7 +40,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return this } /** @memo */ - span(value: number | GridColColumnOption): this { + public span(value: number | GridColColumnOption): this { if (this.checkPriority("span")) { const value_casted = value as (number | GridColColumnOption) this.getPeer()?.spanAttribute(value_casted) @@ -49,7 +49,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return this } /** @memo */ - gridColOffset(value: number | GridColColumnOption): this { + public gridColOffset(value: number | GridColColumnOption): this { if (this.checkPriority("gridColOffset")) { const value_casted = value as (number | GridColColumnOption) this.getPeer()?.gridColOffsetAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return this } /** @memo */ - order(value: number | GridColColumnOption): this { + public order(value: number | GridColColumnOption): this { if (this.checkPriority("order")) { const value_casted = value as (number | GridColColumnOption) this.getPeer()?.orderAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts index 23130c3e6..2b9e743b1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkGridContainerComponent extends ArkColumnComponent { return (this.peer as ArkGridContainerPeer) } /** @memo */ - setGridContainerOptions(value?: GridContainerOptions): this { + public setGridContainerOptions(value?: GridContainerOptions): this { if (this.checkPriority("setGridContainerOptions")) { const value_casted = value as (GridContainerOptions | undefined) this.getPeer()?.setGridContainerOptionsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts index 1fd170e66..605b9b530 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkGridItemPeer) } /** @memo */ - setGridItemOptions(value?: GridItemOptions): this { + public setGridItemOptions(value?: GridItemOptions): this { if (this.checkPriority("setGridItemOptions")) { const value_casted = value as (GridItemOptions | undefined) this.getPeer()?.setGridItemOptionsAttribute(value_casted) @@ -42,7 +42,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - rowStart(value: number): this { + public rowStart(value: number): this { if (this.checkPriority("rowStart")) { const value_casted = value as (number) this.getPeer()?.rowStartAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - rowEnd(value: number): this { + public rowEnd(value: number): this { if (this.checkPriority("rowEnd")) { const value_casted = value as (number) this.getPeer()?.rowEndAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - columnStart(value: number): this { + public columnStart(value: number): this { if (this.checkPriority("columnStart")) { const value_casted = value as (number) this.getPeer()?.columnStartAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - columnEnd(value: number): this { + public columnEnd(value: number): this { if (this.checkPriority("columnEnd")) { const value_casted = value as (number) this.getPeer()?.columnEndAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - forceRebuild(value: boolean): this { + public forceRebuild(value: boolean): this { if (this.checkPriority("forceRebuild")) { const value_casted = value as (boolean) this.getPeer()?.forceRebuildAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectable(value: boolean): this { + public selectable(value: boolean): this { if (this.checkPriority("selectable")) { const value_casted = value as (boolean) this.getPeer()?.selectableAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: boolean): this { + public selected(value: boolean): this { if (this.checkPriority("selected")) { const value_casted = value as (boolean) this.getPeer()?.selectedAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((parameter: boolean) => void)): this { + public onSelect(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onSelectAttribute(value_casted) @@ -114,10 +114,10 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts index c281bdf24..78d26006f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { return (this.peer as ArkGridRowPeer) } /** @memo */ - setGridRowOptions(option?: GridRowOptions): this { + public setGridRowOptions(option?: GridRowOptions): this { if (this.checkPriority("setGridRowOptions")) { const option_casted = option as (GridRowOptions | undefined) this.getPeer()?.setGridRowOptionsAttribute(option_casted) @@ -43,7 +43,7 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBreakpointChange(value: ((breakpoints: string) => void)): this { + public onBreakpointChange(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onBreakpointChange")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onBreakpointChangeAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignItems(value: ItemAlign): this { + public alignItems(value: ItemAlign): this { if (this.checkPriority("alignItems")) { const value_casted = value as (ItemAlign) this.getPeer()?.alignItemsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts new file mode 100644 index 000000000..6c90c2b20 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -0,0 +1,82 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get fillStyle(): EffectFillStyle | undefined { + return this.getFillStyle() + } + set fillStyle(fillStyle: EffectFillStyle | undefined) { + const fillStyle_NonNull = (fillStyle as EffectFillStyle) + this.setFillStyle(fillStyle_NonNull) + } + static ctor(fillStyle?: EffectFillStyle): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let fillStyle_type : int32 = RuntimeType.UNDEFINED + fillStyle_type = runtimeType(fillStyle) + thisSerializer.writeInt8(fillStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (fillStyle_type)) { + const fillStyle_value = (fillStyle as EffectFillStyle) + thisSerializer.writeInt32((fillStyle_value.valueOf() as int32)) + } + const retval = ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(fillStyle?: EffectFillStyle) { + const ctorPtr : KPointer = HierarchicalSymbolEffect.ctor(fillStyle) + this.peer = new Finalizable(ctorPtr, HierarchicalSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_getFinalizer() + } + private getFillStyle(): EffectFillStyle { + return this.getFillStyle_serialize() + } + private setFillStyle(fillStyle: EffectFillStyle): void { + const fillStyle_casted = fillStyle as (EffectFillStyle) + this.setFillStyle_serialize(fillStyle_casted) + return + } + private getFillStyle_serialize(): EffectFillStyle { + const retval = ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_getFillStyle(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setFillStyle_serialize(fillStyle: EffectFillStyle): void { + 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 7aeb63fb0..a8e47ac22 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 { Callback_Void, INTERFACE_HoverEvent } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface HoverEvent { stopPropagation: (() => void) @@ -52,11 +52,18 @@ export class HoverEventInternal extends BaseEventInternal implements Materialize static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._HoverEvent_getFinalizer() } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this.setStopPropagation_serialize(stopPropagation_casted) return } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) diff --git a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index f7be8df92..c79016df9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_HttpAuthHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class HttpAuthHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -41,16 +40,16 @@ export class HttpAuthHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._HttpAuthHandler_getFinalizer() } - confirm(userName: string, password: string): boolean { + public confirm(userName: string, password: string): boolean { const userName_casted = userName as (string) const password_casted = password as (string) return this.confirm_serialize(userName_casted, password_casted) } - cancel(): void { + public cancel(): void { this.cancel_serialize() return } - isHttpAuthInfoSaved(): boolean { + public isHttpAuthInfoSaved(): boolean { return this.isHttpAuthInfoSaved_serialize() } private confirm_serialize(userName: string, password: string): boolean { diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts index fdca62c34..c0d2ca49c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { return (this.peer as ArkHyperlinkPeer) } /** @memo */ - setHyperlinkOptions(address: string | Resource, content?: string | Resource): this { + public setHyperlinkOptions(address: string | Resource, content?: string | Resource): this { if (this.checkPriority("setHyperlinkOptions")) { const address_casted = address as (string | Resource) const content_casted = content as (string | Resource | undefined) @@ -43,7 +43,7 @@ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: Color | number | string | Resource): this { + public color(value: Color | number | string | Resource): this { if (this.checkPriority("color")) { const value_casted = value as (Color | number | string | Resource) this.getPeer()?.colorAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts index 9e851fc65..291f2a77b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_ICurve } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface ICurve { interpolate(fraction: number): number @@ -44,7 +43,7 @@ export class ICurveInternal implements MaterializedBase,ICurve { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ICurve_getFinalizer() } - interpolate(fraction: number): number { + public interpolate(fraction: number): number { const fraction_casted = fraction as (number) return this.interpolate_serialize(fraction_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkImage.ts b/arkoala-arkts/arkui/src/generated/ArkImage.ts index 92eb191dd..ba04bbf65 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImage.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -28,8 +28,9 @@ import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" import { ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResizableOptions, ResolutionQuality, DrawableDescriptor, ImageContent } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceColor, ColorFilter, ResourceStr } from "./ArkUnitsInterfaces" +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 */ @@ -38,7 +39,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return (this.peer as ArkImagePeer) } /** @memo */ - setImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | ImageContent, imageAIOptions?: ImageAIOptions): this { + public setImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | ImageContent, imageAIOptions?: ImageAIOptions): this { if (this.checkPriority("setImageOptions")) { const src_type = runtimeType(src) const imageAIOptions_type = runtimeType(imageAIOptions) @@ -63,7 +64,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alt(value: string | Resource | PixelMap): this { + public alt(value: string | Resource | PixelMap): this { if (this.checkPriority("alt")) { const value_casted = value as (string | Resource | PixelMap) this.getPeer()?.altAttribute(value_casted) @@ -72,7 +73,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - matchTextDirection(value: boolean): this { + public matchTextDirection(value: boolean): this { if (this.checkPriority("matchTextDirection")) { const value_casted = value as (boolean) this.getPeer()?.matchTextDirectionAttribute(value_casted) @@ -81,7 +82,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fitOriginalSize(value: boolean): this { + public fitOriginalSize(value: boolean): this { if (this.checkPriority("fitOriginalSize")) { const value_casted = value as (boolean) this.getPeer()?.fitOriginalSizeAttribute(value_casted) @@ -90,7 +91,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillColor(value: ResourceColor): this { + public fillColor(value: ResourceColor): this { if (this.checkPriority("fillColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fillColorAttribute(value_casted) @@ -99,7 +100,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - objectFit(value: ImageFit): this { + public objectFit(value: ImageFit): this { if (this.checkPriority("objectFit")) { const value_casted = value as (ImageFit) this.getPeer()?.objectFitAttribute(value_casted) @@ -108,7 +109,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - objectRepeat(value: ImageRepeat): this { + public objectRepeat(value: ImageRepeat): this { if (this.checkPriority("objectRepeat")) { const value_casted = value as (ImageRepeat) this.getPeer()?.objectRepeatAttribute(value_casted) @@ -117,7 +118,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoResize(value: boolean): this { + public autoResize(value: boolean): this { if (this.checkPriority("autoResize")) { const value_casted = value as (boolean) this.getPeer()?.autoResizeAttribute(value_casted) @@ -126,7 +127,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderMode(value: ImageRenderMode): this { + public renderMode(value: ImageRenderMode): this { if (this.checkPriority("renderMode")) { const value_casted = value as (ImageRenderMode) this.getPeer()?.renderModeAttribute(value_casted) @@ -135,7 +136,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dynamicRangeMode(value: DynamicRangeMode): this { + public dynamicRangeMode(value: DynamicRangeMode): this { if (this.checkPriority("dynamicRangeMode")) { const value_casted = value as (DynamicRangeMode) this.getPeer()?.dynamicRangeModeAttribute(value_casted) @@ -144,7 +145,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - interpolation(value: ImageInterpolation): this { + public interpolation(value: ImageInterpolation): this { if (this.checkPriority("interpolation")) { const value_casted = value as (ImageInterpolation) this.getPeer()?.interpolationAttribute(value_casted) @@ -153,7 +154,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sourceSize(value: ImageSourceSize): this { + public sourceSize(value: ImageSourceSize): this { if (this.checkPriority("sourceSize")) { const value_casted = value as (ImageSourceSize) this.getPeer()?.sourceSizeAttribute(value_casted) @@ -162,7 +163,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - syncLoad(value: boolean): this { + public syncLoad(value: boolean): this { if (this.checkPriority("syncLoad")) { const value_casted = value as (boolean) this.getPeer()?.syncLoadAttribute(value_casted) @@ -171,7 +172,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - colorFilter(value: ColorFilter | DrawingColorFilter): this { + public colorFilter(value: ColorFilter | DrawingColorFilter): this { if (this.checkPriority("colorFilter")) { const value_casted = value as (ColorFilter | DrawingColorFilter) this.getPeer()?.colorFilterAttribute(value_casted) @@ -180,7 +181,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -189,7 +190,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - draggable(value: boolean): this { + public draggable(value: boolean): this { if (this.checkPriority("draggable")) { const value_casted = value as (boolean) this.getPeer()?.draggableAttribute(value_casted) @@ -198,7 +199,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) @@ -207,7 +208,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - edgeAntialiasing(value: number): this { + public edgeAntialiasing(value: number): this { if (this.checkPriority("edgeAntialiasing")) { const value_casted = value as (number) this.getPeer()?.edgeAntialiasingAttribute(value_casted) @@ -216,7 +217,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onComplete(value: ((event?: Type_ImageAttribute_onComplete_callback_event) => void)): this { + public onComplete(value: ((event?: Type_ImageAttribute_onComplete_callback_event) => void)): this { if (this.checkPriority("onComplete")) { const value_casted = value as (((event?: Type_ImageAttribute_onComplete_callback_event) => void)) this.getPeer()?.onCompleteAttribute(value_casted) @@ -225,7 +226,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ImageErrorCallback): this { + public onError(value: ImageErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ImageErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) @@ -234,7 +235,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) this.getPeer()?.onFinishAttribute(value_casted) @@ -243,7 +244,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) @@ -252,7 +253,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - analyzerConfig(value: ImageAnalyzerConfig): this { + public analyzerConfig(value: ImageAnalyzerConfig): this { if (this.checkPriority("analyzerConfig")) { const value_casted = value as (ImageAnalyzerConfig) this.getPeer()?.analyzerConfigAttribute(value_casted) @@ -261,7 +262,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - resizable(value: ResizableOptions): this { + public resizable(value: ResizableOptions): this { if (this.checkPriority("resizable")) { const value_casted = value as (ResizableOptions) this.getPeer()?.resizableAttribute(value_casted) @@ -270,7 +271,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value: boolean): this { + public privacySensitive(value: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -279,7 +280,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enhancedImageQuality(value: ResolutionQuality): this { + public enhancedImageQuality(value: ResolutionQuality): this { if (this.checkPriority("enhancedImageQuality")) { const value_casted = value as (ResolutionQuality) this.getPeer()?.enhancedImageQualityAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index 476ad3140..9ba90ec57 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { INTERFACE_ImageAnalyzerController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ImageAnalyzerController implements MaterializedBase { peer?: Finalizable | undefined @@ -42,7 +41,7 @@ export class ImageAnalyzerController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ImageAnalyzerController_getFinalizer() } - getImageAnalyzerSupportTypes(): Array { + public getImageAnalyzerSupportTypes(): Array { return this.getImageAnalyzerSupportTypes_serialize() } private getImageAnalyzerSupportTypes_serialize(): Array { diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts index 3377d5f85..800537920 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkImageAnimatorPeer) } /** @memo */ - setImageAnimatorOptions(): this { + public setImageAnimatorOptions(): this { if (this.checkPriority("setImageAnimatorOptions")) { this.getPeer()?.setImageAnimatorOptionsAttribute() return this @@ -42,7 +42,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - images(value: Array): this { + public images(value: Array): this { if (this.checkPriority("images")) { const value_casted = value as (Array) this.getPeer()?.imagesAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - state(value: AnimationStatus): this { + public state(value: AnimationStatus): this { if (this.checkPriority("state")) { const value_casted = value as (AnimationStatus) this.getPeer()?.stateAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - duration(value: number): this { + public duration(value: number): this { if (this.checkPriority("duration")) { const value_casted = value as (number) this.getPeer()?.durationAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - reverse(value: boolean): this { + public reverse(value: boolean): this { if (this.checkPriority("reverse")) { const value_casted = value as (boolean) this.getPeer()?.reverseAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fixedSize(value: boolean): this { + public fixedSize(value: boolean): this { if (this.checkPriority("fixedSize")) { const value_casted = value as (boolean) this.getPeer()?.fixedSizeAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - preDecode(value: number): this { + public preDecode(value: number): this { if (this.checkPriority("preDecode")) { const value_casted = value as (number) this.getPeer()?.preDecodeAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillMode(value: FillMode): this { + public fillMode(value: FillMode): this { if (this.checkPriority("fillMode")) { const value_casted = value as (FillMode) this.getPeer()?.fillModeAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - iterations(value: number): this { + public iterations(value: number): this { if (this.checkPriority("iterations")) { const value_casted = value as (number) this.getPeer()?.iterationsAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onStartAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPause(value: (() => void)): this { + public onPause(value: (() => void)): this { if (this.checkPriority("onPause")) { const value_casted = value as ((() => void)) this.getPeer()?.onPauseAttribute(value_casted) @@ -132,7 +132,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRepeat(value: (() => void)): this { + public onRepeat(value: (() => void)): this { if (this.checkPriority("onRepeat")) { const value_casted = value as ((() => void)) this.getPeer()?.onRepeatAttribute(value_casted) @@ -141,7 +141,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCancel(value: (() => void)): this { + public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) this.getPeer()?.onCancelAttribute(value_casted) @@ -150,7 +150,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) this.getPeer()?.onFinishAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts new file mode 100644 index 000000000..f9c80cb60 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -0,0 +1,89 @@ +/* + * 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 { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageAttachment implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get value(): PixelMap { + throw new Error("Not implemented") + } + get size(): SizeOptions | undefined { + throw new Error("Not implemented") + } + get verticalAlign(): ImageSpanAlignment | undefined { + return this.getVerticalAlign() + } + get objectFit(): ImageFit | undefined { + return this.getObjectFit() + } + get layoutStyle(): ImageAttachmentLayoutStyle | undefined { + throw new Error("Not implemented") + } + static ctor(value: ImageAttachmentInterface): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeImageAttachmentInterface(value) + const retval = ArkUIGeneratedNativeModule._ImageAttachment_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: ImageAttachmentInterface) { + if (((value) !== (undefined))) + { + const ctorPtr : KPointer = ImageAttachment.ctor(value) + this.peer = new Finalizable(ctorPtr, ImageAttachment.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ImageAttachment_getFinalizer() + } + private getVerticalAlign(): ImageSpanAlignment { + return this.getVerticalAlign_serialize() + } + private getObjectFit(): ImageFit { + return this.getObjectFit_serialize() + } + private getVerticalAlign_serialize(): ImageSpanAlignment { + const retval = ArkUIGeneratedNativeModule._ImageAttachment_getVerticalAlign(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getObjectFit_serialize(): ImageFit { + const retval = ArkUIGeneratedNativeModule._ImageAttachment_getObjectFit(this.peer!.ptr) + 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 380bba1ac..a841afa7c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -18,14 +18,13 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { INTERFACE_ImageBitmap } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ImageBitmap implements MaterializedBase { peer?: Finalizable | undefined @@ -52,7 +51,7 @@ export class ImageBitmap implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ImageBitmap_getFinalizer() } - close(): void { + public close(): void { this.close_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts new file mode 100644 index 000000000..6813a9b88 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts @@ -0,0 +1,86 @@ +/* + * 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 { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +import { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageData implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get data(): NativeBuffer { + throw new Error("Not implemented") + } + get height(): number { + return this.getHeight() + } + get width(): number { + return this.getWidth() + } + static ctor(width: number, height: number, data?: NativeBuffer): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let data_type : int32 = RuntimeType.UNDEFINED + data_type = runtimeType(data) + thisSerializer.writeInt8(data_type as int32) + if ((RuntimeType.UNDEFINED) != (data_type)) { + const data_value = data! + thisSerializer.writeBuffer(data_value) + } + const retval = ArkUIGeneratedNativeModule._ImageData_ctor(width, height, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(width?: number, height?: number, data?: NativeBuffer) { + if (((width) !== (undefined)) && ((height) !== (undefined)) && ((data) !== (undefined))) + { + const ctorPtr : KPointer = ImageData.ctor(width, height, data) + this.peer = new Finalizable(ctorPtr, ImageData.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ImageData_getFinalizer() + } + private getHeight(): number { + return this.getHeight_serialize() + } + private getWidth(): number { + return this.getWidth_serialize() + } + private getHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ImageData_getHeight(this.peer!.ptr) + return retval + } + private getWidth_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ImageData_getWidth(this.peer!.ptr) + 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 5185ed4fe..2cb64442a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts @@ -20,23 +20,24 @@ 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, ColorFilter, EdgeWidths } from "./ArkUnitsInterfaces" +import { ResourceStr, ResourceColor, EdgeWidths } from "./ArkUnitsInterfaces" import { ImageAIOptions, ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" 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" export interface DrawableDescriptor { - __DrawableDescriptorStub: string; + _DrawableDescriptorStub: string; } export interface DrawingColorFilter { - __DrawingColorFilterStub: string; + _DrawingColorFilterStub: string; } export interface ResolutionQuality { - __ResolutionQualityStub: string; + _ResolutionQualityStub: string; } export interface DrawingLattice { - __DrawingLatticeStub: string; + _DrawingLatticeStub: string; } export enum ImageRenderMode { ORIGINAL = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts index 58da45c4f..c2a248d1f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -27,16 +27,17 @@ import { UseEventsProperties } from "./use_properties" import { BaseSpan } from "./ArkSpanInterfaces" import { ImageSpanAttribute, ImageCompleteCallback } from "./ArkImageSpanInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" -import { ColorFilter, ResourceStr } from "./ArkUnitsInterfaces" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" +import { ResourceStr } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkImageSpanComponent extends ArkBaseSpanComponent { getPeer(): ArkImageSpanPeer { return (this.peer as ArkImageSpanPeer) } /** @memo */ - setImageSpanOptions(value: ResourceStr | PixelMap): this { + public setImageSpanOptions(value: ResourceStr | PixelMap): this { if (this.checkPriority("setImageSpanOptions")) { const value_casted = value as (ResourceStr | PixelMap) this.getPeer()?.setImageSpanOptionsAttribute(value_casted) @@ -45,7 +46,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - verticalAlign(value: ImageSpanAlignment): this { + public verticalAlign(value: ImageSpanAlignment): this { if (this.checkPriority("verticalAlign")) { const value_casted = value as (ImageSpanAlignment) this.getPeer()?.verticalAlignAttribute(value_casted) @@ -54,7 +55,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - colorFilter(value: ColorFilter | DrawingColorFilter): this { + public colorFilter(value: ColorFilter | DrawingColorFilter): this { if (this.checkPriority("colorFilter")) { const value_casted = value as (ColorFilter | DrawingColorFilter) this.getPeer()?.colorFilterAttribute(value_casted) @@ -63,7 +64,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - objectFit(value: ImageFit): this { + public objectFit(value: ImageFit): this { if (this.checkPriority("objectFit")) { const value_casted = value as (ImageFit) this.getPeer()?.objectFitAttribute(value_casted) @@ -72,7 +73,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - onComplete(value: ImageCompleteCallback): this { + public onComplete(value: ImageCompleteCallback): this { if (this.checkPriority("onComplete")) { const value_casted = value as (ImageCompleteCallback) this.getPeer()?.onCompleteAttribute(value_casted) @@ -81,7 +82,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - onError(value: ImageErrorCallback): this { + public onError(value: ImageErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ImageErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) @@ -90,7 +91,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - alt(value: PixelMap): this { + public alt(value: PixelMap): this { if (this.checkPriority("alt")) { const value_casted = value as (PixelMap) this.getPeer()?.altAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts index 8669b7e6e..e51a7774e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts @@ -19,10 +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 { ResourceStr, ColorFilter } from "./ArkUnitsInterfaces" +import { ResourceStr } from "./ArkUnitsInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { BaseSpan } from "./ArkSpanInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" export type ImageSpanInterface = (value: ResourceStr | PixelMap) => ImageSpanAttribute; export interface ImageSpanAttribute extends BaseSpan { diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index 5b31f1dba..1bae20eb4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_IndicatorComponentController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class IndicatorComponentController implements MaterializedBase { peer?: Finalizable | undefined @@ -41,15 +40,15 @@ export class IndicatorComponentController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._IndicatorComponentController_getFinalizer() } - showNext(): void { + public showNext(): void { this.showNext_serialize() return } - showPrevious(): void { + public showPrevious(): void { this.showPrevious_serialize() return } - changeIndex(index: number, useAnimation?: boolean): void { + public changeIndex(index: number, useAnimation?: boolean): void { const index_casted = index as (number) const useAnimation_casted = useAnimation as (boolean | undefined) this.changeIndex_serialize(index_casted, useAnimation_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts index 4254727f2..706f3e618 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkIndicatorComponentPeer) } /** @memo */ - setIndicatorComponentOptions(controller?: IndicatorComponentController): this { + public setIndicatorComponentOptions(controller?: IndicatorComponentController): this { if (this.checkPriority("setIndicatorComponentOptions")) { const controller_casted = controller as (IndicatorComponentController | undefined) this.getPeer()?.setIndicatorComponentOptionsAttribute(controller_casted) @@ -45,7 +45,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - initialIndex(value: number): this { + public initialIndex(value: number): this { if (this.checkPriority("initialIndex")) { const value_casted = value as (number) this.getPeer()?.initialIndexAttribute(value_casted) @@ -54,7 +54,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - count(value: number): this { + public count(value: number): this { if (this.checkPriority("count")) { const value_casted = value as (number) this.getPeer()?.countAttribute(value_casted) @@ -63,7 +63,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - style(value: DotIndicator | DigitIndicator): this { + public style(value: DotIndicator | DigitIndicator): this { if (this.checkPriority("style")) { const value_casted = value as (DotIndicator | DigitIndicator) this.getPeer()?.styleAttribute(value_casted) @@ -72,7 +72,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onChangeAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts index b7837c33b..426f43fe9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts @@ -19,13 +19,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 { Want } from "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" export interface ErrorCallback { - __ErrorCallbackStub: string; + _ErrorCallbackStub: string; } export interface RestrictedWorker { - __RestrictedWorkerStub: string; + _RestrictedWorkerStub: string; } export interface IsolatedOptions { want: Want; diff --git a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts index 414bc77c8..bad3ca31d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_JsGeolocation } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class JsGeolocation implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class JsGeolocation implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._JsGeolocation_getFinalizer() } - invoke(origin: string, allow: boolean, retain: boolean): void { + public invoke(origin: string, allow: boolean, retain: boolean): void { const origin_casted = origin as (string) const allow_casted = allow as (boolean) const retain_casted = retain as (boolean) diff --git a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts index 9f8209c31..5e1a9f69b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_JsResult } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class JsResult implements MaterializedBase { peer?: Finalizable | undefined @@ -41,15 +40,15 @@ export class JsResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._JsResult_getFinalizer() } - handleCancel(): void { + public handleCancel(): void { this.handleCancel_serialize() return } - handleConfirm(): void { + public handleConfirm(): void { this.handleConfirm_serialize() return } - handlePromptConfirm(result: string): void { + public handlePromptConfirm(result: string): void { const result_casted = result as (string) this.handlePromptConfirm_serialize(result_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts index bd54f6c76..0b055cfa2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { KeyType, KeySource } from "./ArkEnumsInterfaces" -import { Callback_Void, INTERFACE_KeyEvent } from "./SyntheticDeclarations" +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" @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface KeyEvent { type: KeyType @@ -117,7 +117,7 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._KeyEvent_getFinalizer() } - getModifierKeyState(keys: Array): boolean { + public getModifierKeyState(keys: Array): boolean { const keys_casted = keys as (Array) return this.getModifierKeyState_serialize(keys_casted) } @@ -177,6 +177,9 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { this.setTimestamp_serialize(timestamp_casted) return } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this.setStopPropagation_serialize(stopPropagation_casted) @@ -255,6 +258,10 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { private setTimestamp_serialize(timestamp: number): void { ArkUIGeneratedNativeModule._KeyEvent_setTimestamp(this.peer!.ptr, timestamp) } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) diff --git a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts index 0c5813c74..07fd63e5d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -17,15 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PositionWithAffinity, LineMetrics, TextRange, TextBox } from "./ArkTextCommonInterfaces" -import { RectWidthStyle, RectHeightStyle } from "./ArkArkui-externalInterfaces" -import { INTERFACE_LayoutManager } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface LayoutManager { getLineCount(): number @@ -49,19 +48,19 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LayoutManager_getFinalizer() } - getLineCount(): number { + public getLineCount(): number { return this.getLineCount_serialize() } - getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity { + public getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity { const x_casted = x as (number) const y_casted = y as (number) return this.getGlyphPositionAtCoordinate_serialize(x_casted, y_casted) } - getLineMetrics(lineNumber: number): LineMetrics { + public getLineMetrics(lineNumber: number): LineMetrics { const lineNumber_casted = lineNumber as (number) return this.getLineMetrics_serialize(lineNumber_casted) } - getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { + public getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const range_casted = range as (TextRange) const widthStyle_casted = widthStyle as (RectWidthStyle) const heightStyle_casted = heightStyle as (RectHeightStyle) diff --git a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index eb6608128..ad0a742f9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -16,15 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Callback_RangeUpdate } from "./ArkArkui-customInterfaces" -import { INTERFACE_LazyForEachOps } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class LazyForEachOps implements MaterializedBase { peer?: Finalizable | undefined @@ -45,26 +44,26 @@ export class LazyForEachOps implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LazyForEachOps_getFinalizer() } - static NeedMoreElements(node: KPointer, mark: KPointer, direction: int32): KPointer { + public static NeedMoreElements(node: KPointer, mark: KPointer, direction: int32): KPointer { const node_casted = node as (KPointer) const mark_casted = mark as (KPointer) const direction_casted = direction as (int32) return LazyForEachOps.NeedMoreElements_serialize(node_casted, mark_casted, direction_casted) } - static OnRangeUpdate(node: KPointer, totalCount: int32, updater: Callback_RangeUpdate): void { + public static OnRangeUpdate(node: KPointer, totalCount: int32, updater: Callback_RangeUpdate): void { const node_casted = node as (KPointer) const totalCount_casted = totalCount as (int32) const updater_casted = updater as (Callback_RangeUpdate) LazyForEachOps.OnRangeUpdate_serialize(node_casted, totalCount_casted, updater_casted) return } - static SetCurrentIndex(node: KPointer, index: int32): void { + public static SetCurrentIndex(node: KPointer, index: int32): void { const node_casted = node as (KPointer) const index_casted = index as (int32) LazyForEachOps.SetCurrentIndex_serialize(node_casted, index_casted) return } - static Prepare(node: KPointer): void { + public static Prepare(node: KPointer): void { const node_casted = node as (KPointer) LazyForEachOps.Prepare_serialize(node_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts index 00c800cf4..5d2579f6c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -16,16 +16,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { LengthUnit } from "./ArkArkui-externalInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { INTERFACE_LengthMetrics } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class LengthMetrics implements MaterializedBase { peer?: Finalizable | undefined @@ -58,11 +57,11 @@ export class LengthMetrics implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LengthMetrics_getFinalizer() } - static px(value: number): LengthMetrics { + public static px(value: number): LengthMetrics { const value_casted = value as (number) return LengthMetrics.px_serialize(value_casted) } - static resource(value: Resource): LengthMetrics { + public static resource(value: Resource): LengthMetrics { const value_casted = value as (Resource) return LengthMetrics.resource_serialize(value_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts new file mode 100644 index 000000000..8208b6b7c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LetterSpacingStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get letterSpacing(): number { + return this.getLetterSpacing() + } + static ctor(value: LengthMetrics): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeLengthMetrics(value) + const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: LengthMetrics) { + if (((value) !== (undefined))) + { + const ctorPtr : KPointer = LetterSpacingStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, LetterSpacingStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LetterSpacingStyle_getFinalizer() + } + private getLetterSpacing(): number { + return this.getLetterSpacing_serialize() + } + private getLetterSpacing_serialize(): number { + const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_getLetterSpacing(this.peer!.ptr) + 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 7d215b9c7..90acaa160 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLine.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLine.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkLineComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkLinePeer) } /** @memo */ - setLineOptions(options?: LineOptions): this { + public setLineOptions(options?: LineOptions): this { if (this.checkPriority("setLineOptions")) { const options_casted = options as (LineOptions | undefined) this.getPeer()?.setLineOptionsAttribute(options_casted) @@ -41,7 +41,7 @@ export class ArkLineComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - startPoint(value: Array): this { + public startPoint(value: Array): this { if (this.checkPriority("startPoint")) { const value_casted = value as (Array) this.getPeer()?.startPointAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkLineComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - endPoint(value: Array): this { + public endPoint(value: Array): this { if (this.checkPriority("endPoint")) { const value_casted = value as (Array) this.getPeer()?.endPointAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts new file mode 100644 index 000000000..afe1b2a6f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LineHeightStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get lineHeight(): number { + return this.getLineHeight() + } + static ctor(lineHeight: LengthMetrics): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeLengthMetrics(lineHeight) + const retval = ArkUIGeneratedNativeModule._LineHeightStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(lineHeight?: LengthMetrics) { + if (((lineHeight) !== (undefined))) + { + const ctorPtr : KPointer = LineHeightStyle.ctor(lineHeight) + this.peer = new Finalizable(ctorPtr, LineHeightStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LineHeightStyle_getFinalizer() + } + private getLineHeight(): number { + return this.getLineHeight_serialize() + } + private getLineHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._LineHeightStyle_getLineHeight(this.peer!.ptr) + 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/ArkLinearGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts new file mode 100644 index 000000000..d9ee08eb5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -0,0 +1,61 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LinearGradient implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(colorStops: Array): KPointer { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeInt32(colorStops.length as int32) + for (let i = 0; i < colorStops.length; i++) { + const colorStops_element : ColorStop = colorStops[i] + thisSerializer.writeColorStop(colorStops_element) + } + const retval = ArkUIGeneratedNativeModule._LinearGradient_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(colorStops?: Array) { + if (((colorStops) !== (undefined))) + { + const ctorPtr : KPointer = LinearGradient.ctor(colorStops) + this.peer = new Finalizable(ctorPtr, LinearGradient.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 5887c2c88..61a4ae87f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" -import { INTERFACE_LinearIndicatorController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class LinearIndicatorController implements MaterializedBase { peer?: Finalizable | undefined @@ -42,22 +41,22 @@ export class LinearIndicatorController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LinearIndicatorController_getFinalizer() } - setProgress(index: number, progress: number): void { + public setProgress(index: number, progress: number): void { const index_casted = index as (number) const progress_casted = progress as (number) this.setProgress_serialize(index_casted, progress_casted) return } - start(options?: LinearIndicatorStartOptions): void { + public start(options?: LinearIndicatorStartOptions): void { const options_casted = options as (LinearIndicatorStartOptions | undefined) this.start_serialize(options_casted) return } - pause(): void { + public pause(): void { this.pause_serialize() return } - stop(): void { + public stop(): void { this.stop_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts index a248538a3..89bced58c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkLinearIndicatorPeer) } /** @memo */ - setLinearIndicatorOptions(count?: number, controller?: LinearIndicatorController): this { + public setLinearIndicatorOptions(count?: number, controller?: LinearIndicatorController): this { if (this.checkPriority("setLinearIndicatorOptions")) { const count_casted = count as (number | undefined) const controller_casted = controller as (LinearIndicatorController | undefined) @@ -42,7 +42,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorStyle(value?: LinearIndicatorStyle): this { + public indicatorStyle(value?: LinearIndicatorStyle): this { if (this.checkPriority("indicatorStyle")) { const value_casted = value as (LinearIndicatorStyle | undefined) this.getPeer()?.indicatorStyleAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorLoop(value?: boolean): this { + public indicatorLoop(value?: boolean): this { if (this.checkPriority("indicatorLoop")) { const value_casted = value as (boolean | undefined) this.getPeer()?.indicatorLoopAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value?: OnLinearIndicatorChangeCallback): this { + public onChange(value?: OnLinearIndicatorChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnLinearIndicatorChangeCallback | undefined) this.getPeer()?.onChangeAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkList.ts b/arkoala-arkts/arkui/src/generated/ArkList.ts index e4d164383..262d40525 100644 --- a/arkoala-arkts/arkui/src/generated/ArkList.ts +++ b/arkoala-arkts/arkui/src/generated/ArkList.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -37,7 +37,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkListPeer) } /** @memo */ - setListOptions(options?: ListOptions): this { + public setListOptions(options?: ListOptions): this { if (this.checkPriority("setListOptions")) { const options_casted = options as (ListOptions | undefined) this.getPeer()?.setListOptionsAttribute(options_casted) @@ -46,7 +46,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - alignListItem(value: ListItemAlign): this { + public alignListItem(value: ListItemAlign): this { if (this.checkPriority("alignListItem")) { const value_casted = value as (ListItemAlign) this.getPeer()?.alignListItemAttribute(value_casted) @@ -55,7 +55,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - listDirection(value: Axis): this { + public listDirection(value: Axis): this { if (this.checkPriority("listDirection")) { const value_casted = value as (Axis) this.getPeer()?.listDirectionAttribute(value_casted) @@ -64,7 +64,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -73,7 +73,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - contentStartOffset(value: number): this { + public contentStartOffset(value: number): this { if (this.checkPriority("contentStartOffset")) { const value_casted = value as (number) this.getPeer()?.contentStartOffsetAttribute(value_casted) @@ -82,7 +82,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - contentEndOffset(value: number): this { + public contentEndOffset(value: number): this { if (this.checkPriority("contentEndOffset")) { const value_casted = value as (number) this.getPeer()?.contentEndOffsetAttribute(value_casted) @@ -91,7 +91,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - divider(value?: ListDividerOptions): this { + public divider(value?: ListDividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (ListDividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -100,7 +100,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - editMode(value: boolean): this { + public editMode(value: boolean): this { if (this.checkPriority("editMode")) { const value_casted = value as (boolean) this.getPeer()?.editModeAttribute(value_casted) @@ -109,7 +109,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - multiSelectable(value: boolean): this { + public multiSelectable(value: boolean): this { if (this.checkPriority("multiSelectable")) { const value_casted = value as (boolean) this.getPeer()?.multiSelectableAttribute(value_casted) @@ -118,7 +118,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cachedCount(count: number, show?: boolean): this { + public cachedCount(count: number, show?: boolean): this { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) @@ -138,7 +138,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - chainAnimation(value: boolean): this { + public chainAnimation(value: boolean): this { if (this.checkPriority("chainAnimation")) { const value_casted = value as (boolean) this.getPeer()?.chainAnimationAttribute(value_casted) @@ -147,7 +147,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - chainAnimationOptions(value: ChainAnimationOptions): this { + public chainAnimationOptions(value: ChainAnimationOptions): this { if (this.checkPriority("chainAnimationOptions")) { const value_casted = value as (ChainAnimationOptions) this.getPeer()?.chainAnimationOptionsAttribute(value_casted) @@ -156,7 +156,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - sticky(value: StickyStyle): this { + public sticky(value: StickyStyle): this { if (this.checkPriority("sticky")) { const value_casted = value as (StickyStyle) this.getPeer()?.stickyAttribute(value_casted) @@ -165,7 +165,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollSnapAlign(value: ScrollSnapAlign): this { + public scrollSnapAlign(value: ScrollSnapAlign): this { if (this.checkPriority("scrollSnapAlign")) { const value_casted = value as (ScrollSnapAlign) this.getPeer()?.scrollSnapAlignAttribute(value_casted) @@ -174,7 +174,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -183,7 +183,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -192,7 +192,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -201,7 +201,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - childrenMainSize(value: ChildrenMainSize): this { + public childrenMainSize(value: ChildrenMainSize): this { if (this.checkPriority("childrenMainSize")) { const value_casted = value as (ChildrenMainSize) this.getPeer()?.childrenMainSizeAttribute(value_casted) @@ -210,7 +210,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - maintainVisibleContentPosition(value: boolean): this { + public maintainVisibleContentPosition(value: boolean): this { if (this.checkPriority("maintainVisibleContentPosition")) { const value_casted = value as (boolean) this.getPeer()?.maintainVisibleContentPositionAttribute(value_casted) @@ -219,7 +219,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((first: number,last: number) => void)): this { + public onScroll(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onScrollAttribute(value_casted) @@ -228,7 +228,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollIndex(value: ((start: number,end: number,center: number) => void)): this { + public onScrollIndex(value: ((start: number,end: number,center: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((start: number,end: number,center: number) => void)) this.getPeer()?.onScrollIndexAttribute(value_casted) @@ -237,7 +237,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback): this { + public onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback): this { if (this.checkPriority("onScrollVisibleContentChange")) { const value_casted = value as (OnScrollVisibleContentChangeCallback) this.getPeer()?.onScrollVisibleContentChangeAttribute(value_casted) @@ -246,7 +246,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachStartAttribute(value_casted) @@ -255,7 +255,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachEndAttribute(value_casted) @@ -264,7 +264,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStart(value: (() => void)): this { + public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollStartAttribute(value_casted) @@ -273,7 +273,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStop(value: (() => void)): this { + public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollStopAttribute(value_casted) @@ -282,7 +282,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDelete(value: ((index: number) => boolean)): this { + public onItemDelete(value: ((index: number) => boolean)): this { if (this.checkPriority("onItemDelete")) { const value_casted = value as (((index: number) => boolean)) this.getPeer()?.onItemDeleteAttribute(value_casted) @@ -291,7 +291,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemMove(value: ((from: number,to: number) => boolean)): this { + public onItemMove(value: ((from: number,to: number) => boolean)): this { if (this.checkPriority("onItemMove")) { const value_casted = value as (((from: number,to: number) => boolean)) this.getPeer()?.onItemMoveAttribute(value_casted) @@ -300,7 +300,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragStart(value: ((event: ItemDragInfo,itemIndex: number) => CustomBuilder)): this { + public onItemDragStart(value: ((event: ItemDragInfo,itemIndex: number) => CustomBuilder)): this { if (this.checkPriority("onItemDragStart")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number) => CustomBuilder)) this.getPeer()?.onItemDragStartAttribute(value_casted) @@ -309,7 +309,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { + public onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { if (this.checkPriority("onItemDragEnter")) { const value_casted = value as (((event: ItemDragInfo) => void)) this.getPeer()?.onItemDragEnterAttribute(value_casted) @@ -318,7 +318,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void)): this { + public onItemDragMove(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void)): this { if (this.checkPriority("onItemDragMove")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void)) this.getPeer()?.onItemDragMoveAttribute(value_casted) @@ -327,7 +327,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void)): this { + public onItemDragLeave(value: ((event: ItemDragInfo,itemIndex: number) => void)): this { if (this.checkPriority("onItemDragLeave")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number) => void)) this.getPeer()?.onItemDragLeaveAttribute(value_casted) @@ -336,7 +336,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void)): this { + public onItemDrop(value: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void)): this { if (this.checkPriority("onItemDrop")) { const value_casted = value as (((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void)) this.getPeer()?.onItemDropAttribute(value_casted) @@ -345,7 +345,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain)): this { + public onScrollFrameBegin(value: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain)): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number,state: ScrollState) => Literal_Number_offsetRemain)) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) @@ -354,7 +354,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - lanes(value: number | LengthConstrain, gutter?: Dimension): this { + public lanes(value: number | LengthConstrain, gutter?: Dimension): this { if (this.checkPriority("lanes")) { const value_casted = value as (number | LengthConstrain) const gutter_casted = gutter as (Dimension | undefined) @@ -364,7 +364,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const value_casted = value as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkListItem.ts b/arkoala-arkts/arkui/src/generated/ArkListItem.ts index 39da4e85e..8e760b8ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkListItemPeer) } /** @memo */ - setListItemOptions(value?: ListItemOptions | undefined | string | undefined): this { + 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)))) { @@ -51,7 +51,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sticky(value: Sticky): this { + public sticky(value: Sticky): this { if (this.checkPriority("sticky")) { const value_casted = value as (Sticky) this.getPeer()?.stickyAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editable(value: boolean | EditMode): this { + public editable(value: boolean | EditMode): this { if (this.checkPriority("editable")) { const value_casted = value as (boolean | EditMode) this.getPeer()?.editableAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectable(value: boolean): this { + public selectable(value: boolean): this { if (this.checkPriority("selectable")) { const value_casted = value as (boolean) this.getPeer()?.selectableAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: boolean): this { + public selected(value: boolean): this { if (this.checkPriority("selected")) { const value_casted = value as (boolean) this.getPeer()?.selectedAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - swipeAction(value: SwipeActionOptions): this { + public swipeAction(value: SwipeActionOptions): this { if (this.checkPriority("swipeAction")) { const value_casted = value as (SwipeActionOptions) this.getPeer()?.swipeActionAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((parameter: boolean) => void)): this { + public onSelect(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onSelectAttribute(value_casted) @@ -105,10 +105,10 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts index d88d5da2b..1722d3280 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { return (this.peer as ArkListItemGroupPeer) } /** @memo */ - setListItemGroupOptions(options?: ListItemGroupOptions): this { + public setListItemGroupOptions(options?: ListItemGroupOptions): this { if (this.checkPriority("setListItemGroupOptions")) { const options_casted = options as (ListItemGroupOptions | undefined) this.getPeer()?.setListItemGroupOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: ListDividerOptions): this { + public divider(value?: ListDividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (ListDividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - childrenMainSize(value: ChildrenMainSize): this { + public childrenMainSize(value: ChildrenMainSize): this { if (this.checkPriority("childrenMainSize")) { const value_casted = value as (ChildrenMainSize) this.getPeer()?.childrenMainSizeAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts index 81b2ad8f4..4958d2188 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -20,14 +20,13 @@ import { Scroller, ScrollerInternal } from "./ArkScrollerMaterialized" import { RectResult } from "./ArkCommonInterfaces" import { ScrollAlign } from "./ArkScrollInterfaces" import { CloseSwipeActionOptions, VisibleListContentInfo } from "./ArkListInterfaces" -import { INTERFACE_ListScroller } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ListScroller extends Scroller implements MaterializedBase { peer?: Finalizable | undefined @@ -46,12 +45,12 @@ export class ListScroller extends Scroller implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ListScroller_getFinalizer() } - getItemRectInGroup(index: number, indexInGroup: number): RectResult { + public getItemRectInGroup(index: number, indexInGroup: number): RectResult { const index_casted = index as (number) const indexInGroup_casted = indexInGroup as (number) return this.getItemRectInGroup_serialize(index_casted, indexInGroup_casted) } - scrollToItemInGroup(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { + public scrollToItemInGroup(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const index_casted = index as (number) const indexInGroup_casted = indexInGroup as (number) const smooth_casted = smooth as (boolean | undefined) @@ -59,12 +58,12 @@ export class ListScroller extends Scroller implements MaterializedBase { this.scrollToItemInGroup_serialize(index_casted, indexInGroup_casted, smooth_casted, align_casted) return } - closeAllSwipeActions(options?: CloseSwipeActionOptions): void { + public closeAllSwipeActions(options?: CloseSwipeActionOptions): void { const options_casted = options as (CloseSwipeActionOptions | undefined) this.closeAllSwipeActions_serialize(options_casted) return } - getVisibleListContentInfo(x: number, y: number): VisibleListContentInfo { + public getVisibleListContentInfo(x: number, y: number): VisibleListContentInfo { const x_casted = x as (number) const y_casted = y as (number) return this.getVisibleListContentInfo_serialize(x_casted, y_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts index bb5058276..ad7080f90 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return (this.peer as ArkLoadingProgressPeer) } /** @memo */ - setLoadingProgressOptions(): this { + public setLoadingProgressOptions(): this { if (this.checkPriority("setLoadingProgressOptions")) { this.getPeer()?.setLoadingProgressOptionsAttribute() return this @@ -40,7 +40,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -49,7 +49,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableLoading(value: boolean): this { + public enableLoading(value: boolean): this { if (this.checkPriority("enableLoading")) { const value_casted = value as (boolean) this.getPeer()?.enableLoadingAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts index c1e997817..9029750fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts @@ -33,7 +33,7 @@ export type LoadingProgressInterface = () => LoadingProgressAttribute; export interface LoadingProgressAttribute extends CommonMethod { color: ResourceColor; enableLoading: boolean; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } export interface LoadingProgressConfiguration extends CommonConfiguration { enableLoading: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts index 810f1d23c..0198a0167 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon return (this.peer as ArkLocationButtonPeer) } /** @memo */ - setLocationButtonOptions(options?: LocationButtonOptions): this { + public setLocationButtonOptions(options?: LocationButtonOptions): this { if (this.checkPriority("setLocationButtonOptions")) { const options_type = runtimeType(options) if ((((RuntimeType.UNDEFINED == options_type)))) { @@ -51,7 +51,7 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon return this } /** @memo */ - onClick(value: ((event: ClickEvent,result: LocationButtonOnClickResult) => void)): this { + public onClick(value: ((event: ClickEvent,result: LocationButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent,result: LocationButtonOnClickResult) => void)) this.getPeer()?.onClickAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index eba18852c..a6af5054c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" -import { INTERFACE_LongPressGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface LongPressGestureEvent { repeat: boolean diff --git a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts index 5bb900f05..d9a5e7ebd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return (this.peer as ArkMarqueePeer) } /** @memo */ - setMarqueeOptions(options: MarqueeOptions): this { + public setMarqueeOptions(options: MarqueeOptions): this { if (this.checkPriority("setMarqueeOptions")) { const options_casted = options as (MarqueeOptions) this.getPeer()?.setMarqueeOptionsAttribute(options_casted) @@ -45,7 +45,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -54,7 +54,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -63,7 +63,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - allowScale(value: boolean): this { + public allowScale(value: boolean): this { if (this.checkPriority("allowScale")) { const value_casted = value as (boolean) this.getPeer()?.allowScaleAttribute(value_casted) @@ -72,7 +72,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - marqueeUpdateStrategy(value: MarqueeUpdateStrategy): this { + public marqueeUpdateStrategy(value: MarqueeUpdateStrategy): this { if (this.checkPriority("marqueeUpdateStrategy")) { const value_casted = value as (MarqueeUpdateStrategy) this.getPeer()?.marqueeUpdateStrategyAttribute(value_casted) @@ -99,7 +99,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onStartAttribute(value_casted) @@ -108,7 +108,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBounce(value: (() => void)): this { + public onBounce(value: (() => void)): this { if (this.checkPriority("onBounce")) { const value_casted = value as ((() => void)) this.getPeer()?.onBounceAttribute(value_casted) @@ -117,7 +117,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) this.getPeer()?.onFinishAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts index b82bde490..e29c3b486 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { INTERFACE_Matrix2D } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class Matrix2D implements MaterializedBase { peer?: Finalizable | undefined @@ -84,17 +83,17 @@ export class Matrix2D implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Matrix2D_getFinalizer() } - identity(): Matrix2D { + public identity(): Matrix2D { return this.identity_serialize() } - invert(): Matrix2D { + public invert(): Matrix2D { return this.invert_serialize() } - multiply(other?: Matrix2D): Matrix2D { + public multiply(other?: Matrix2D): Matrix2D { const other_casted = other as (Matrix2D | undefined) return this.multiply_serialize(other_casted) } - rotate(degree?: number | undefined | number, rx?: number, ry?: number): Matrix2D { + public rotate(degree?: number | undefined | number, rx?: number, ry?: number): Matrix2D { const degree_type = runtimeType(degree) const rx_type = runtimeType(rx) const ry_type = runtimeType(ry) @@ -111,12 +110,12 @@ export class Matrix2D implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - translate(tx?: number, ty?: number): Matrix2D { + public translate(tx?: number, ty?: number): Matrix2D { const tx_casted = tx as (number | undefined) const ty_casted = ty as (number | undefined) return this.translate_serialize(tx_casted, ty_casted) } - scale(sx?: number, sy?: number): Matrix2D { + public scale(sx?: number, sy?: number): Matrix2D { const sx_casted = sx as (number | undefined) const sy_casted = sy as (number | undefined) return this.scale_serialize(sx_casted, sy_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts index e16839bb5..b1c493762 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -18,14 +18,13 @@ import { ConstraintSizeOptions, DirectionalEdgesT } from "./ArkUnitsInterfaces" import { MeasureResult } from "./ArkCommonInterfaces" -import { INTERFACE_Measurable } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult @@ -49,17 +48,17 @@ export class MeasurableInternal implements MaterializedBase,Measurable { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Measurable_getFinalizer() } - measure(constraint: ConstraintSizeOptions): MeasureResult { + public measure(constraint: ConstraintSizeOptions): MeasureResult { const constraint_casted = constraint as (ConstraintSizeOptions) return this.measure_serialize(constraint_casted) } - getMargin(): DirectionalEdgesT { + public getMargin(): DirectionalEdgesT { return this.getMargin_serialize() } - getPadding(): DirectionalEdgesT { + public getPadding(): DirectionalEdgesT { return this.getPadding_serialize() } - getBorderWidth(): DirectionalEdgesT { + public getBorderWidth(): DirectionalEdgesT { return this.getBorderWidth_serialize() } private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts index c04d8fac8..cf0d73b80 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkMediaCachedImageComponent extends ArkImageComponent { return (this.peer as ArkMediaCachedImagePeer) } /** @memo */ - setMediaCachedImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource): this { + public setMediaCachedImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource): this { if (this.checkPriority("setMediaCachedImageOptions")) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ASTCResource) this.getPeer()?.setMediaCachedImageOptionsAttribute(src_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkMenu.ts b/arkoala-arkts/arkui/src/generated/ArkMenu.ts index 4c50fd411..bffb62dc3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenu.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenu.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return (this.peer as ArkMenuPeer) } /** @memo */ - setMenuOptions(): this { + public setMenuOptions(): this { if (this.checkPriority("setMenuOptions")) { this.getPeer()?.setMenuOptionsAttribute() return this @@ -40,7 +40,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -49,7 +49,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - radius(value: Dimension | BorderRadiuses): this { + public radius(value: Dimension | BorderRadiuses): this { if (this.checkPriority("radius")) { const value_casted = value as (Dimension | BorderRadiuses) this.getPeer()?.radiusAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuItemDivider(value?: DividerStyleOptions): this { + public menuItemDivider(value?: DividerStyleOptions): this { if (this.checkPriority("menuItemDivider")) { const value_casted = value as (DividerStyleOptions | undefined) this.getPeer()?.menuItemDividerAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuItemGroupDivider(value?: DividerStyleOptions): this { + public menuItemGroupDivider(value?: DividerStyleOptions): this { if (this.checkPriority("menuItemGroupDivider")) { const value_casted = value as (DividerStyleOptions | undefined) this.getPeer()?.menuItemGroupDividerAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - subMenuExpandingMode(value: SubMenuExpandingMode): this { + public subMenuExpandingMode(value: SubMenuExpandingMode): this { if (this.checkPriority("subMenuExpandingMode")) { const value_casted = value as (SubMenuExpandingMode) this.getPeer()?.subMenuExpandingModeAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts index 7e0e2523d..56e567759 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkMenuItemPeer) } /** @memo */ - setMenuItemOptions(value?: MenuItemOptions | CustomBuilder): this { + public setMenuItemOptions(value?: MenuItemOptions | CustomBuilder): this { if (this.checkPriority("setMenuItemOptions")) { const value_casted = value as (MenuItemOptions | CustomBuilder | undefined) this.getPeer()?.setMenuItemOptionsAttribute(value_casted) @@ -43,7 +43,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: boolean): this { + public selected(value: boolean): this { if (this.checkPriority("selected")) { const value_casted = value as (boolean) this.getPeer()?.selectedAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier): this { + public selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier): this { if (this.checkPriority("selectIcon")) { const value_casted = value as (boolean | ResourceStr | SymbolGlyphModifier) this.getPeer()?.selectIconAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentFont(value: Font): this { + public contentFont(value: Font): this { if (this.checkPriority("contentFont")) { const value_casted = value as (Font) this.getPeer()?.contentFontAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentFontColor(value: ResourceColor): this { + public contentFontColor(value: ResourceColor): this { if (this.checkPriority("contentFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.contentFontColorAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - labelFont(value: Font): this { + public labelFont(value: Font): this { if (this.checkPriority("labelFont")) { const value_casted = value as (Font) this.getPeer()?.labelFontAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - labelFontColor(value: ResourceColor): this { + public labelFontColor(value: ResourceColor): this { if (this.checkPriority("labelFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.labelFontColorAttribute(value_casted) @@ -106,10 +106,10 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts index 3eebedbac..203771a58 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkMenuItemGroupComponent extends ArkCommonMethodComponent { return (this.peer as ArkMenuItemGroupPeer) } /** @memo */ - setMenuItemGroupOptions(value?: MenuItemGroupOptions): this { + public setMenuItemGroupOptions(value?: MenuItemGroupOptions): this { if (this.checkPriority("setMenuItemGroupOptions")) { const value_casted = value as (MenuItemGroupOptions | undefined) this.getPeer()?.setMenuItemGroupOptionsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts index affecd663..9dbb2fc5c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -18,14 +18,14 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" -import { Callback_Void, INTERFACE_MouseEvent } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface MouseEvent { button: MouseButton @@ -203,6 +203,9 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize this.setY_serialize(y_casted) return } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this.setStopPropagation_serialize(stopPropagation_casted) @@ -278,6 +281,10 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize private setY_serialize(y: number): void { ArkUIGeneratedNativeModule._MouseEvent_setY(this.peer!.ptr, y) } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) diff --git a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 7af7cfe52..6aed74767 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -18,14 +18,13 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { SpanStyle, StyledStringKey } from "./ArkStyledStringInterfaces" -import { INTERFACE_MutableStyledString } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class MutableStyledString extends StyledString implements MaterializedBase { peer?: Finalizable | undefined @@ -44,66 +43,66 @@ export class MutableStyledString extends StyledString implements MaterializedBas static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._MutableStyledString_getFinalizer() } - replaceString(start: number, length: number, other: string): void { + public replaceString(start: number, length: number, other: string): void { const start_casted = start as (number) const length_casted = length as (number) const other_casted = other as (string) this.replaceString_serialize(start_casted, length_casted, other_casted) return } - insertString(start: number, other: string): void { + public insertString(start: number, other: string): void { const start_casted = start as (number) const other_casted = other as (string) this.insertString_serialize(start_casted, other_casted) return } - removeString(start: number, length: number): void { + public removeString(start: number, length: number): void { const start_casted = start as (number) const length_casted = length as (number) this.removeString_serialize(start_casted, length_casted) return } - replaceStyle(spanStyle: SpanStyle): void { + public replaceStyle(spanStyle: SpanStyle): void { const spanStyle_casted = spanStyle as (SpanStyle) this.replaceStyle_serialize(spanStyle_casted) return } - setStyle(spanStyle: SpanStyle): void { + public setStyle(spanStyle: SpanStyle): void { const spanStyle_casted = spanStyle as (SpanStyle) this.setStyle_serialize(spanStyle_casted) return } - removeStyle(start: number, length: number, styledKey: StyledStringKey): void { + public removeStyle(start: number, length: number, styledKey: StyledStringKey): void { const start_casted = start as (number) const length_casted = length as (number) const styledKey_casted = styledKey as (StyledStringKey) this.removeStyle_serialize(start_casted, length_casted, styledKey_casted) return } - removeStyles(start: number, length: number): void { + public removeStyles(start: number, length: number): void { const start_casted = start as (number) const length_casted = length as (number) this.removeStyles_serialize(start_casted, length_casted) return } - clearStyles(): void { + public clearStyles(): void { this.clearStyles_serialize() return } - replaceStyledString(start: number, length: number, other: StyledString): void { + public replaceStyledString(start: number, length: number, other: StyledString): void { const start_casted = start as (number) const length_casted = length as (number) const other_casted = other as (StyledString) this.replaceStyledString_serialize(start_casted, length_casted, other_casted) return } - insertStyledString(start: number, other: StyledString): void { + public insertStyledString(start: number, other: StyledString): void { const start_casted = start as (number) const other_casted = other as (StyledString) this.insertStyledString_serialize(start_casted, other_casted) return } - appendStyledString(other: StyledString): void { + public appendStyledString(other: StyledString): void { const other_casted = other as (StyledString) this.appendStyledString_serialize(other_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts index a2be7192b..9fcaf7a43 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return (this.peer as ArkNavDestinationPeer) } /** @memo */ - setNavDestinationOptions(): this { + public setNavDestinationOptions(): this { if (this.checkPriority("setNavDestinationOptions")) { this.getPeer()?.setNavDestinationOptionsAttribute() return this @@ -46,7 +46,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideTitleBar(hide: boolean, animated?: boolean): this { + public hideTitleBar(hide: boolean, animated?: boolean): this { if (this.checkPriority("hideTitleBar")) { const hide_type = runtimeType(hide) const animated_type = runtimeType(animated) @@ -66,7 +66,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onShown(value: (() => void)): this { + public onShown(value: (() => void)): this { if (this.checkPriority("onShown")) { const value_casted = value as ((() => void)) this.getPeer()?.onShownAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHidden(value: (() => void)): this { + public onHidden(value: (() => void)): this { if (this.checkPriority("onHidden")) { const value_casted = value as ((() => void)) this.getPeer()?.onHiddenAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBackPressed(value: (() => boolean)): this { + public onBackPressed(value: (() => boolean)): this { if (this.checkPriority("onBackPressed")) { const value_casted = value as ((() => boolean)) this.getPeer()?.onBackPressedAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mode(value: NavDestinationMode): this { + public mode(value: NavDestinationMode): this { if (this.checkPriority("mode")) { const value_casted = value as (NavDestinationMode) this.getPeer()?.modeAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier): this { + public backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier): this { if (this.checkPriority("backButtonIcon")) { const value_casted = value as (ResourceStr | PixelMap | SymbolGlyphModifier) this.getPeer()?.backButtonIconAttribute(value_casted) @@ -111,7 +111,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menus(value: Array | CustomBuilder): this { + public menus(value: Array | CustomBuilder): this { if (this.checkPriority("menus")) { const value_casted = value as (Array | CustomBuilder) this.getPeer()?.menusAttribute(value_casted) @@ -120,7 +120,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: ((parameter: NavDestinationContext) => void)): this { + public onReady(value: ((parameter: NavDestinationContext) => void)): this { if (this.checkPriority("onReady")) { const value_casted = value as (((parameter: NavDestinationContext) => void)) this.getPeer()?.onReadyAttribute(value_casted) @@ -129,7 +129,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillAppear(value: (() => void)): this { + public onWillAppear(value: (() => void)): this { if (this.checkPriority("onWillAppear")) { const value_casted = value as ((() => void)) this.getPeer()?.onWillAppearAttribute(value_casted) @@ -138,7 +138,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDisappear(value: (() => void)): this { + public onWillDisappear(value: (() => void)): this { if (this.checkPriority("onWillDisappear")) { const value_casted = value as ((() => void)) this.getPeer()?.onWillDisappearAttribute(value_casted) @@ -147,7 +147,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillShow(value: (() => void)): this { + public onWillShow(value: (() => void)): this { if (this.checkPriority("onWillShow")) { const value_casted = value as ((() => void)) this.getPeer()?.onWillShowAttribute(value_casted) @@ -156,7 +156,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillHide(value: (() => void)): this { + public onWillHide(value: (() => void)): this { if (this.checkPriority("onWillHide")) { const value_casted = value as ((() => void)) this.getPeer()?.onWillHideAttribute(value_casted) @@ -165,7 +165,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - systemBarStyle(value?: SystemBarStyle): this { + public systemBarStyle(value?: SystemBarStyle): this { if (this.checkPriority("systemBarStyle")) { const value_casted = value as (SystemBarStyle | undefined) this.getPeer()?.systemBarStyleAttribute(value_casted) @@ -174,7 +174,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - recoverable(value?: boolean): this { + public recoverable(value?: boolean): this { if (this.checkPriority("recoverable")) { const value_casted = value as (boolean | undefined) this.getPeer()?.recoverableAttribute(value_casted) @@ -183,7 +183,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - systemTransition(value: NavigationSystemTransitionType): this { + public systemTransition(value: NavigationSystemTransitionType): this { if (this.checkPriority("systemTransition")) { const value_casted = value as (NavigationSystemTransitionType) this.getPeer()?.systemTransitionAttribute(value_casted) @@ -192,7 +192,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): this { + public title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): this { if (this.checkPriority("title")) { const value_casted = value as (string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource) const options_casted = options as (NavigationTitleOptions | undefined) @@ -202,7 +202,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - toolbarConfiguration(toolbarParam: Array | CustomBuilder, options?: NavigationToolbarOptions): this { + public toolbarConfiguration(toolbarParam: Array | CustomBuilder, options?: NavigationToolbarOptions): this { if (this.checkPriority("toolbarConfiguration")) { const toolbarParam_casted = toolbarParam as (Array | CustomBuilder) const options_casted = options as (NavigationToolbarOptions | undefined) @@ -212,7 +212,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideToolBar(hide: boolean, animated?: boolean): this { + public hideToolBar(hide: boolean, animated?: boolean): this { if (this.checkPriority("hideToolBar")) { const hide_casted = hide as (boolean) const animated_casted = animated as (boolean | undefined) @@ -222,7 +222,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - ignoreLayoutSafeArea(types?: Array, edges?: Array): this { + public ignoreLayoutSafeArea(types?: Array, edges?: Array): this { if (this.checkPriority("ignoreLayoutSafeArea")) { const types_casted = types as (Array | undefined) const edges_casted = edges as (Array | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index e9b413e69..a25d2a168 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -16,17 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { NavPathInfo } from "./ArkNavigationInterfaces" +import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" -import { INTERFACE_NavDestinationContext } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface NavDestinationContext { pathInfo: NavPathInfo @@ -69,7 +68,7 @@ export class NavDestinationContextInternal implements MaterializedBase,NavDestin static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavDestinationContext_getFinalizer() } - getConfigInRouteMap(): RouteMapConfig | undefined { + public getConfigInRouteMap(): RouteMapConfig | undefined { return this.getConfigInRouteMap_serialize() } private setPathInfo(pathInfo: NavPathInfo): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts index f180971e4..15b1f1e10 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -18,14 +18,13 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" -import { INTERFACE_NavExtender } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class NavExtender implements MaterializedBase { peer?: Finalizable | undefined @@ -46,7 +45,7 @@ export class NavExtender implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavExtender_getFinalizer() } - static setUpdateStackCallback(peer: NavPathStack, callback: NavExtender_OnUpdateStack): void { + public static setUpdateStackCallback(peer: NavPathStack, callback: NavExtender_OnUpdateStack): void { const peer_casted = peer as (NavPathStack) const callback_casted = callback as (NavExtender_OnUpdateStack) NavExtender.setUpdateStackCallback_serialize(peer_casted, callback_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts new file mode 100644 index 000000000..6209225c3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -0,0 +1,158 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavPathInfo implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get name(): string { + return this.getName() + } + set name(name: string) { + this.setName(name) + } + get param(): object | undefined { + throw new Error("Not implemented") + } + set param(param: object | undefined) { + const param_NonNull = (param as object) + this.setParam(param_NonNull) + } + get onPop(): ((parameter: PopInfo) => void) | undefined { + throw new Error("Not implemented") + } + set onPop(onPop: ((parameter: PopInfo) => void) | undefined) { + const onPop_NonNull = (onPop as ((parameter: PopInfo) => void)) + this.setOnPop(onPop_NonNull) + } + get isEntry(): boolean | undefined { + return this.getIsEntry() + } + set isEntry(isEntry: boolean | undefined) { + const isEntry_NonNull = (isEntry as boolean) + this.setIsEntry(isEntry_NonNull) + } + static ctor(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 + onPop_type = runtimeType(onPop) + thisSerializer.writeInt8(onPop_type as int32) + if ((RuntimeType.UNDEFINED) != (onPop_type)) { + const onPop_value = onPop! + thisSerializer.holdAndWriteCallback(onPop_value) + } + let isEntry_type : int32 = RuntimeType.UNDEFINED + isEntry_type = runtimeType(isEntry) + thisSerializer.writeInt8(isEntry_type as int32) + if ((RuntimeType.UNDEFINED) != (isEntry_type)) { + const isEntry_value = isEntry! + thisSerializer.writeBoolean(isEntry_value) + } + const retval = ArkUIGeneratedNativeModule._NavPathInfo_ctor(name, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + 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) + this.peer = new Finalizable(ctorPtr, NavPathInfo.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._NavPathInfo_getFinalizer() + } + private getName(): string { + return this.getName_serialize() + } + private setName(name: string): void { + const name_casted = name as (string) + this.setName_serialize(name_casted) + return + } + private setParam(param: object): void { + const param_casted = param as (object) + this.setParam_serialize(param_casted) + return + } + private getOnPop(): ((parameter: PopInfo) => void) { + return this.getOnPop_serialize() + } + private setOnPop(onPop: ((parameter: PopInfo) => void)): void { + const onPop_casted = onPop as (((parameter: PopInfo) => void)) + this.setOnPop_serialize(onPop_casted) + return + } + private getIsEntry(): boolean { + return this.getIsEntry_serialize() + } + private setIsEntry(isEntry: boolean): void { + const isEntry_casted = isEntry as (boolean) + this.setIsEntry_serialize(isEntry_casted) + return + } + private getName_serialize(): string { + const retval = ArkUIGeneratedNativeModule._NavPathInfo_getName(this.peer!.ptr) + return retval + } + private setName_serialize(name: string): void { + ArkUIGeneratedNativeModule._NavPathInfo_setName(this.peer!.ptr, name) + } + private setParam_serialize(param: object): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeCustomObject("Any", param) + ArkUIGeneratedNativeModule._NavPathInfo_setParam(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private getOnPop_serialize(): ((parameter: PopInfo) => void) { + const retval = ArkUIGeneratedNativeModule._NavPathInfo_getOnPop(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setOnPop_serialize(onPop: ((parameter: PopInfo) => void)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteCallback(onPop) + ArkUIGeneratedNativeModule._NavPathInfo_setOnPop(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private getIsEntry_serialize(): boolean { + const retval = ArkUIGeneratedNativeModule._NavPathInfo_getIsEntry(this.peer!.ptr) + return retval + } + private setIsEntry_serialize(isEntry: boolean): void { + 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 9b2022537..64d198134 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -16,15 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { NavPathInfo, NavigationOptions, PopInfo, NavigationInterception } from "./ArkNavigationInterfaces" -import { Callback_PopInfo_Void, INTERFACE_NavPathStack } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class NavPathStack implements MaterializedBase { peer?: Finalizable | undefined @@ -42,7 +43,7 @@ export class NavPathStack implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavPathStack_getFinalizer() } - pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { + 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)))) { @@ -59,7 +60,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { + 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)))) { @@ -74,7 +75,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - pushPathByName(name: string, param: object | Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): void { + public pushPathByName(name: string, param: object | Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): void { const name_type = runtimeType(name) const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) @@ -96,7 +97,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - pushDestinationByName(name: string, param: Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): Promise { + public pushDestinationByName(name: string, param: Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): Promise { const name_type = runtimeType(name) const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) @@ -116,7 +117,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - replacePath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { + 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)))) { @@ -133,31 +134,31 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - replaceDestination(info: NavPathInfo, options?: NavigationOptions): Promise { + public replaceDestination(info: NavPathInfo, options?: NavigationOptions): Promise { const info_casted = info as (NavPathInfo) const options_casted = options as (NavigationOptions | undefined) return this.replaceDestination_serialize(info_casted, options_casted) } - replacePathByName(name: string, param: Object, animated?: boolean): void { + public replacePathByName(name: string, param: Object, animated?: boolean): void { const name_casted = name as (string) const param_casted = param as (Object) const animated_casted = animated as (boolean | undefined) this.replacePathByName_serialize(name_casted, param_casted, animated_casted) return } - removeByIndexes(indexes: Array): number { + public removeByIndexes(indexes: Array): number { const indexes_casted = indexes as (Array) return this.removeByIndexes_serialize(indexes_casted) } - removeByName(name: string): number { + public removeByName(name: string): number { const name_casted = name as (string) return this.removeByName_serialize(name_casted) } - removeByNavDestinationId(navDestinationId: string): boolean { + public removeByNavDestinationId(navDestinationId: string): boolean { const navDestinationId_casted = navDestinationId as (string) return this.removeByNavDestinationId_serialize(navDestinationId_casted) } - pop(result?: boolean | undefined | Object, animated?: boolean): NavPathInfo | undefined { + 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)))) { @@ -171,7 +172,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - popToName(name: string, result?: boolean | undefined | Object, animated?: boolean): number { + public popToName(name: string, result?: boolean | undefined | Object, animated?: boolean): number { const name_type = runtimeType(name) const result_type = runtimeType(result) const animated_type = runtimeType(animated) @@ -188,7 +189,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - popToIndex(index: number, result?: boolean | undefined | Object, animated?: boolean): void { + public popToIndex(index: number, result?: boolean | undefined | Object, animated?: boolean): void { const index_type = runtimeType(index) const result_type = runtimeType(result) const animated_type = runtimeType(animated) @@ -207,49 +208,49 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - moveToTop(name: string, animated?: boolean): number { + public moveToTop(name: string, animated?: boolean): number { const name_casted = name as (string) const animated_casted = animated as (boolean | undefined) return this.moveToTop_serialize(name_casted, animated_casted) } - moveIndexToTop(index: number, animated?: boolean): void { + public moveIndexToTop(index: number, animated?: boolean): void { const index_casted = index as (number) const animated_casted = animated as (boolean | undefined) this.moveIndexToTop_serialize(index_casted, animated_casted) return } - clear(animated?: boolean): void { + public clear(animated?: boolean): void { const animated_casted = animated as (boolean | undefined) this.clear_serialize(animated_casted) return } - getAllPathName(): Array { + public getAllPathName(): Array { return this.getAllPathName_serialize() } - getParamByIndex(index: number): object | undefined { + public getParamByIndex(index: number): object | undefined { const index_casted = index as (number) return this.getParamByIndex_serialize(index_casted) } - getParamByName(name: string): Array { + public getParamByName(name: string): Array { const name_casted = name as (string) return this.getParamByName_serialize(name_casted) } - getIndexByName(name: string): Array { + public getIndexByName(name: string): Array { const name_casted = name as (string) return this.getIndexByName_serialize(name_casted) } - getParent(): NavPathStack | undefined { + public getParent(): NavPathStack | undefined { return this.getParent_serialize() } - size(): number { + public size(): number { return this.size_serialize() } - disableAnimation(value: boolean): void { + public disableAnimation(value: boolean): void { const value_casted = value as (boolean) this.disableAnimation_serialize(value_casted) return } - setInterception(interception: NavigationInterception): void { + public setInterception(interception: NavigationInterception): void { const interception_casted = interception as (NavigationInterception) this.setInterception_serialize(interception_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts index f00c880a4..18e6c403e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { return (this.peer as ArkNavRouterPeer) } /** @memo */ - setNavRouterOptions(value?: RouteInfo): this { + public setNavRouterOptions(value?: RouteInfo): this { if (this.checkPriority("setNavRouterOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.UNDEFINED == value_type)))) { @@ -50,7 +50,7 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStateChange(value: ((parameter: boolean) => void)): this { + public onStateChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onStateChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onStateChangeAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mode(value: NavRouteMode): this { + public mode(value: NavRouteMode): this { if (this.checkPriority("mode")) { const value_casted = value as (NavRouteMode) this.getPeer()?.modeAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts index 79d222663..5ac644e12 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts @@ -23,16 +23,17 @@ import { Resource } from "./ArkResourceInterfaces" import { CustomBuilder, SymbolGlyphModifier, BlurStyle } from "./ArkCommonInterfaces" import { TitleHeight } from "./ArkEnumsInterfaces" import { Length, ResourceStr, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_PopInfo_Void, Callback_Boolean_Void, Callback_NavigationTransitionProxy_Void } from "./SyntheticDeclarations" +import { Callback_Void, Callback_Boolean_Void, Callback_NavigationTransitionProxy_Void } from "./SyntheticDeclarations" +import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { NavigationAttribute } from "./../handwritten" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { TextModifier } from "./ArkArkui-externalInterfaces" +import { TextModifier } from "./ArkArkuiExternalInterfaces" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" import { NavDestinationMode } from "./ArkNavDestinationInterfaces" export interface SystemBarStyle { - __SystemBarStyleStub: string; + _SystemBarStyleStub: string; } export interface NavigationCommonTitle { main: string | Resource; @@ -75,12 +76,6 @@ export interface PopInfo { info: NavPathInfo; result: Object; } -export interface NavPathInfo { - name: string; - param?: object; - onPop?: ((parameter: PopInfo) => void); - isEntry?: boolean; -} export enum LaunchMode { STANDARD = 0, MOVE_TO_TOP_SINGLETON = 1, diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index b43171f0e..f045ce317 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { NavContentInfo } from "./ArkNavigationInterfaces" -import { INTERFACE_NavigationTransitionProxy } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface NavigationTransitionProxy { from: NavContentInfo @@ -69,15 +68,15 @@ export class NavigationTransitionProxyInternal implements MaterializedBase,Navig static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavigationTransitionProxy_getFinalizer() } - finishTransition(): void { + public finishTransition(): void { this.finishTransition_serialize() return } - cancelTransition(): void { + public cancelTransition(): void { this.cancelTransition_serialize() return } - updateTransition(progress: number): void { + public updateTransition(progress: number): void { const progress_casted = progress as (number) this.updateTransition_serialize(progress_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts index 8d2db4840..673888de8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkNavigatorPeer) } /** @memo */ - setNavigatorOptions(value?: Literal_String_target_NavigationType_type): this { + public setNavigatorOptions(value?: Literal_String_target_NavigationType_type): this { if (this.checkPriority("setNavigatorOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.UNDEFINED == value_type)))) { @@ -49,7 +49,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - active(value: boolean): this { + public active(value: boolean): this { if (this.checkPriority("active")) { const value_casted = value as (boolean) this.getPeer()?.activeAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: NavigationType): this { + public type(value: NavigationType): this { if (this.checkPriority("type")) { const value_casted = value as (NavigationType) this.getPeer()?.typeAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - target(value: string): this { + public target(value: string): this { if (this.checkPriority("target")) { const value_casted = value as (string) this.getPeer()?.targetAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - params(value: Object): this { + public params(value: Object): this { if (this.checkPriority("params")) { const value_casted = value as (Object) this.getPeer()?.paramsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts index f301dbe58..f1096409d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,14 +25,14 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" import { CommonMethod } from "./ArkCommonInterfaces" import { NodeContainerAttribute } from "./ArkNodeContainerInterfaces" -import { NodeController } from "./ArkArkui-externalInterfaces" +import { NodeController } from "./ArkArkuiExternalInterfaces" /** @memo:stable */ export class ArkNodeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkNodeContainerPeer { return (this.peer as ArkNodeContainerPeer) } /** @memo */ - setNodeContainerOptions(controller: NodeController): this { + public setNodeContainerOptions(controller: NodeController): this { if (this.checkPriority("setNodeContainerOptions")) { const controller_casted = controller as (NodeController) this.getPeer()?.setNodeContainerOptionsAttribute(controller_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts index ef7f3bbe8..77a0caccb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts @@ -19,7 +19,7 @@ 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 "./ArkArkui-externalInterfaces" +import { NodeController } from "./ArkArkuiExternalInterfaces" import { CommonMethod } from "./ArkCommonInterfaces" export type NodeContainerInterface = (controller: NodeController) => NodeContainerAttribute; export interface NodeContainerAttribute extends CommonMethod { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 48e494221..8c251553c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" -import { INTERFACE_PanGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PanGestureEvent { offsetX: number diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index 3c1a581b3..35d5e8e36 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Literal_Number_distance_fingers_PanDirection_direction, INTERFACE_PanGestureOptions } from "./SyntheticDeclarations" +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" @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class PanGestureOptions implements MaterializedBase { peer?: Finalizable | undefined @@ -74,19 +74,19 @@ export class PanGestureOptions implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PanGestureOptions_getFinalizer() } - setDirection(value: PanDirection): undefined { + public setDirection(value: PanDirection): undefined { const value_casted = value as (PanDirection) return this.setDirection_serialize(value_casted) } - setDistance(value: number): undefined { + public setDistance(value: number): undefined { const value_casted = value as (number) return this.setDistance_serialize(value_casted) } - setFingers(value: number): undefined { + public setFingers(value: number): undefined { const value_casted = value as (number) return this.setFingers_serialize(value_casted) } - getDirection(): PanDirection { + public getDirection(): PanDirection { return this.getDirection_serialize() } private setDirection_serialize(value: PanDirection): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts index c82e1734f..63789f007 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -18,14 +18,13 @@ import { GestureRecognizer, GestureRecognizerInternal } from "./ArkGestureRecognizerMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" -import { INTERFACE_PanRecognizer } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class PanRecognizer extends GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined @@ -44,7 +43,7 @@ export class PanRecognizer extends GestureRecognizer implements MaterializedBase static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PanRecognizer_getFinalizer() } - getPanGestureOptions(): PanGestureOptions { + public getPanGestureOptions(): PanGestureOptions { return this.getPanGestureOptions_serialize() } private getPanGestureOptions_serialize(): PanGestureOptions { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanel.ts b/arkoala-arkts/arkui/src/generated/ArkPanel.ts index eaef04cf8..c143f7fb4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanel.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return (this.peer as ArkPanelPeer) } /** @memo */ - setPanelOptions(show: boolean): this { + public setPanelOptions(show: boolean): this { if (this.checkPriority("setPanelOptions")) { const show_casted = show as (boolean) this.getPeer()?.setPanelOptionsAttribute(show_casted) @@ -43,7 +43,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mode(value: PanelMode): this { + public mode(value: PanelMode): this { if (this.checkPriority("mode")) { const value_casted = value as (PanelMode) this.getPeer()?.modeAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: PanelType): this { + public type(value: PanelType): this { if (this.checkPriority("type")) { const value_casted = value as (PanelType) this.getPeer()?.typeAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dragBar(value: boolean): this { + public dragBar(value: boolean): this { if (this.checkPriority("dragBar")) { const value_casted = value as (boolean) this.getPeer()?.dragBarAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customHeight(value: Dimension | PanelHeight): this { + public customHeight(value: Dimension | PanelHeight): this { if (this.checkPriority("customHeight")) { const value_casted = value as (Dimension | PanelHeight) this.getPeer()?.customHeightAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fullHeight(value: number | string): this { + public fullHeight(value: number | string): this { if (this.checkPriority("fullHeight")) { const value_casted = value as (number | string) this.getPeer()?.fullHeightAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - halfHeight(value: number | string): this { + public halfHeight(value: number | string): this { if (this.checkPriority("halfHeight")) { const value_casted = value as (number | string) this.getPeer()?.halfHeightAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - miniHeight(value: number | string): this { + public miniHeight(value: number | string): this { if (this.checkPriority("miniHeight")) { const value_casted = value as (number | string) this.getPeer()?.miniHeightAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - show(value: boolean): this { + public show(value: boolean): this { if (this.checkPriority("show")) { const value_casted = value as (boolean) this.getPeer()?.showAttribute(value_casted) @@ -115,7 +115,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backgroundMask(value: ResourceColor): this { + public backgroundMask(value: ResourceColor): this { if (this.checkPriority("backgroundMask")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundMaskAttribute(value_casted) @@ -124,7 +124,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showCloseIcon(value: boolean): this { + public showCloseIcon(value: boolean): this { if (this.checkPriority("showCloseIcon")) { const value_casted = value as (boolean) this.getPeer()?.showCloseIconAttribute(value_casted) @@ -133,7 +133,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((width: number,height: number,mode: PanelMode) => void)): this { + public onChange(value: ((width: number,height: number,mode: PanelMode) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((width: number,height: number,mode: PanelMode) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -142,7 +142,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHeightChange(value: ((index: number) => void)): this { + public onHeightChange(value: ((index: number) => void)): this { if (this.checkPriority("onHeightChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onHeightChangeAttribute(value_casted) @@ -151,10 +151,10 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_mode(callback: ((mode: PanelMode) => void)): void { - if (this.checkPriority("__onChangeEvent_mode")) { + public _onChangeEvent_mode(callback: ((mode: PanelMode) => void)): void { + if (this.checkPriority("_onChangeEvent_mode")) { const callback_casted = callback as (((mode: PanelMode) => void)) - this.getPeer()?.__onChangeEvent_modeAttribute(callback_casted) + this.getPeer()?._onChangeEvent_modeAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts new file mode 100644 index 000000000..4a578ced9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -0,0 +1,115 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ParagraphStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get textAlign(): TextAlign | undefined { + return this.getTextAlign() + } + get textIndent(): number | undefined { + return this.getTextIndent() + } + get maxLines(): number | undefined { + return this.getMaxLines() + } + get overflow(): TextOverflow | undefined { + return this.getOverflow() + } + get wordBreak(): WordBreak | undefined { + return this.getWordBreak() + } + get leadingMargin(): number | LeadingMarginPlaceholder | undefined { + throw new Error("Not implemented") + } + static ctor(value?: ParagraphStyleInterface): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let value_type : int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeParagraphStyleInterface(value_value) + } + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: ParagraphStyleInterface) { + const ctorPtr : KPointer = ParagraphStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, ParagraphStyle.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ParagraphStyle_getFinalizer() + } + private getTextAlign(): TextAlign { + return this.getTextAlign_serialize() + } + private getTextIndent(): number { + return this.getTextIndent_serialize() + } + private getMaxLines(): number { + return this.getMaxLines_serialize() + } + private getOverflow(): TextOverflow { + return this.getOverflow_serialize() + } + private getWordBreak(): WordBreak { + return this.getWordBreak_serialize() + } + private getTextAlign_serialize(): TextAlign { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getTextAlign(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getTextIndent_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getTextIndent(this.peer!.ptr) + return retval + } + private getMaxLines_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getMaxLines(this.peer!.ptr) + return retval + } + private getOverflow_serialize(): TextOverflow { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getOverflow(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getWordBreak_serialize(): WordBreak { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getWordBreak(this.peer!.ptr) + 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 c40b0108f..d180145a4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent return (this.peer as ArkPasteButtonPeer) } /** @memo */ - setPasteButtonOptions(options?: PasteButtonOptions): this { + public setPasteButtonOptions(options?: PasteButtonOptions): this { if (this.checkPriority("setPasteButtonOptions")) { const options_type = runtimeType(options) if ((((RuntimeType.UNDEFINED == options_type)))) { @@ -51,7 +51,7 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent return this } /** @memo */ - onClick(value: ((event: ClickEvent,result: PasteButtonOnClickResult) => void)): this { + public onClick(value: ((event: ClickEvent,result: PasteButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent,result: PasteButtonOnClickResult) => void)) this.getPeer()?.onClickAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkPath.ts b/arkoala-arkts/arkui/src/generated/ArkPath.ts index 40b597dc2..8bb2de015 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkPathComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkPathPeer) } /** @memo */ - setPathOptions(options?: PathOptions): this { + public setPathOptions(options?: PathOptions): this { if (this.checkPriority("setPathOptions")) { const options_casted = options as (PathOptions | undefined) this.getPeer()?.setPathOptionsAttribute(options_casted) @@ -40,7 +40,7 @@ export class ArkPathComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - commands(value: string): this { + public commands(value: string): this { if (this.checkPriority("commands")) { const value_casted = value as (string) this.getPeer()?.commandsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts index 501d64c80..30765915e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts @@ -19,14 +19,13 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" -import { INTERFACE_Path2D } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class Path2D extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class Path2D extends CanvasPath implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Path2D_getFinalizer() } - addPath(path: Path2D, transform?: Matrix2D): void { + public addPath(path: Path2D, transform?: Matrix2D): void { const path_casted = path as (Path2D) const transform_casted = transform as (Matrix2D | undefined) this.addPath_serialize(path_casted, transform_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts index 683bf6329..3382784d1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return (this.peer as ArkPatternLockPeer) } /** @memo */ - setPatternLockOptions(controller?: PatternLockController): this { + public setPatternLockOptions(controller?: PatternLockController): this { if (this.checkPriority("setPatternLockOptions")) { const controller_casted = controller as (PatternLockController | undefined) this.getPeer()?.setPatternLockOptionsAttribute(controller_casted) @@ -44,7 +44,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sideLength(value: Length): this { + public sideLength(value: Length): this { if (this.checkPriority("sideLength")) { const value_casted = value as (Length) this.getPeer()?.sideLengthAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - circleRadius(value: Length): this { + public circleRadius(value: Length): this { if (this.checkPriority("circleRadius")) { const value_casted = value as (Length) this.getPeer()?.circleRadiusAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - regularColor(value: ResourceColor): this { + public regularColor(value: ResourceColor): this { if (this.checkPriority("regularColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.regularColorAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - activeColor(value: ResourceColor): this { + public activeColor(value: ResourceColor): this { if (this.checkPriority("activeColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.activeColorAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pathColor(value: ResourceColor): this { + public pathColor(value: ResourceColor): this { if (this.checkPriority("pathColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.pathColorAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pathStrokeWidth(value: number | string): this { + public pathStrokeWidth(value: number | string): this { if (this.checkPriority("pathStrokeWidth")) { const value_casted = value as (number | string) this.getPeer()?.pathStrokeWidthAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPatternComplete(value: ((input: Array) => void)): this { + public onPatternComplete(value: ((input: Array) => void)): this { if (this.checkPriority("onPatternComplete")) { const value_casted = value as (((input: Array) => void)) this.getPeer()?.onPatternCompleteAttribute(value_casted) @@ -125,7 +125,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoReset(value: boolean): this { + public autoReset(value: boolean): this { if (this.checkPriority("autoReset")) { const value_casted = value as (boolean) this.getPeer()?.autoResetAttribute(value_casted) @@ -134,7 +134,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDotConnect(value: ((index: number) => void)): this { + public onDotConnect(value: ((index: number) => void)): this { if (this.checkPriority("onDotConnect")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onDotConnectAttribute(value_casted) @@ -143,7 +143,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - activateCircleStyle(value?: CircleStyleOptions): this { + public activateCircleStyle(value?: CircleStyleOptions): this { if (this.checkPriority("activateCircleStyle")) { const value_casted = value as (CircleStyleOptions | undefined) this.getPeer()?.activateCircleStyleAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index 6c8b35611..43c5419f6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" -import { INTERFACE_PatternLockController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class PatternLockController implements MaterializedBase { peer?: Finalizable | undefined @@ -42,10 +41,10 @@ export class PatternLockController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PatternLockController_getFinalizer() } - reset(): undefined { + public reset(): undefined { return this.reset_serialize() } - setChallengeResult(result: PatternLockChallengeResult): void { + public setChallengeResult(result: PatternLockChallengeResult): void { const result_casted = result as (PatternLockChallengeResult) this.setChallengeResult_serialize(result_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 67fb5388f..7d39a9c0b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_PermissionRequest } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class PermissionRequest implements MaterializedBase { peer?: Finalizable | undefined @@ -41,17 +40,17 @@ export class PermissionRequest implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PermissionRequest_getFinalizer() } - deny(): void { + public deny(): void { this.deny_serialize() return } - getOrigin(): string { + public getOrigin(): string { return this.getOrigin_serialize() } - getAccessibleResource(): Array { + public getAccessibleResource(): Array { return this.getAccessibleResource_serialize() } - grant(resources: Array): void { + public grant(resources: Array): void { const resources_casted = resources as (Array) this.grant_serialize(resources_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index e9befbebb..5c5e561e1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" -import { INTERFACE_PinchGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PinchGestureEvent { scale: number diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts index 8c97b400b..b492b1502 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_PixelMap } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PixelMap { isEditable: int32 @@ -59,12 +58,12 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PixelMap_getFinalizer() } - readPixelsToBufferSync(dst: NativeBuffer): void { + public readPixelsToBufferSync(dst: NativeBuffer): void { const dst_casted = dst as (NativeBuffer) this.readPixelsToBufferSync_serialize(dst_casted) return } - writeBufferToPixels(src: NativeBuffer): void { + public writeBufferToPixels(src: NativeBuffer): void { const src_casted = src as (NativeBuffer) this.writeBufferToPixels_serialize(src_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts index b01a0e861..421adbfd6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_PixelMapMock } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PixelMapMock { release(): void @@ -44,7 +43,7 @@ export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PixelMapMock_getFinalizer() } - release(): void { + public release(): void { this.release_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts index c65b84343..01526d6da 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkPluginComponentPeer) } /** @memo */ - setPluginComponentOptions(options: PluginComponentOptions): this { + public setPluginComponentOptions(options: PluginComponentOptions): this { if (this.checkPriority("setPluginComponentOptions")) { const options_casted = options as (PluginComponentOptions) this.getPeer()?.setPluginComponentOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onComplete(value: VoidCallback): this { + public onComplete(value: VoidCallback): this { if (this.checkPriority("onComplete")) { const value_casted = value as (VoidCallback) this.getPeer()?.onCompleteAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: PluginErrorCallback): this { + public onError(value: PluginErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (PluginErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts index 51eb41229..ec3ef51b6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkPolygonPeer) } /** @memo */ - setPolygonOptions(options?: PolygonOptions): this { + public setPolygonOptions(options?: PolygonOptions): this { if (this.checkPriority("setPolygonOptions")) { const options_casted = options as (PolygonOptions | undefined) this.getPeer()?.setPolygonOptionsAttribute(options_casted) @@ -41,7 +41,7 @@ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - points(value: Array): this { + public points(value: Array): this { if (this.checkPriority("points")) { const value_casted = value as (Array) this.getPeer()?.pointsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts index fa6fbdc03..8314dbf4e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkPolylinePeer) } /** @memo */ - setPolylineOptions(options?: PolylineOptions): this { + public setPolylineOptions(options?: PolylineOptions): this { if (this.checkPriority("setPolylineOptions")) { const options_casted = options as (PolylineOptions | undefined) this.getPeer()?.setPolylineOptionsAttribute(options_casted) @@ -41,7 +41,7 @@ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - points(value: Array): this { + public points(value: Array): this { if (this.checkPriority("points")) { const value_casted = value as (Array) this.getPeer()?.pointsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkProgress.ts b/arkoala-arkts/arkui/src/generated/ArkProgress.ts index 7fb5609cf..04461a228 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgress.ts @@ -16,23 +16,24 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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 { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" -import { CommonMethod, LinearGradient_common, ContentModifier } from "./ArkCommonInterfaces" +import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" import { ProgressAttribute, LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions } from "./ArkProgressInterfaces" import { ResourceColor } from "./ArkUnitsInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" /** @memo:stable */ export class ArkProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkProgressPeer { return (this.peer as ArkProgressPeer) } /** @memo */ - setProgressOptions(options: ProgressOptions): this { + public setProgressOptions(options: ProgressOptions): this { if (this.checkPriority("setProgressOptions")) { const options_casted = options as (ProgressOptions) this.getPeer()?.setProgressOptionsAttribute(options_casted) @@ -41,7 +42,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - value(value: number): this { + public value(value: number): this { if (this.checkPriority("value")) { const value_casted = value as (number) this.getPeer()?.valueAttribute(value_casted) @@ -50,16 +51,16 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor | LinearGradient_common): this { + public color(value: ResourceColor | LinearGradient): this { if (this.checkPriority("color")) { - const value_casted = value as (ResourceColor | LinearGradient_common) + const value_casted = value as (ResourceColor | LinearGradient) this.getPeer()?.colorAttribute(value_casted) return this } return this } /** @memo */ - style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions): this { + public style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions): this { if (this.checkPriority("style")) { const value_casted = value as (LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions) this.getPeer()?.styleAttribute(value_casted) @@ -68,7 +69,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value?: boolean): this { + public privacySensitive(value?: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean | undefined) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -77,7 +78,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts index aae9a24f8..037d98496 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts @@ -21,7 +21,8 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { Length, PX, VP, LPX, ResourceColor, Font } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, LinearGradient_common, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" export interface ProgressOptions { value: number; total?: number; @@ -96,10 +97,10 @@ export interface ProgressStyleMap { export type ProgressInterface = (options: ProgressOptions) => ProgressAttribute; export interface ProgressAttribute extends CommonMethod { value: number; - color: ResourceColor | LinearGradient_common; + color: ResourceColor | LinearGradient; style: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions; privacySensitive: boolean | undefined; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } export interface ProgressConfiguration extends CommonConfiguration { value: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts index 11e1a04ca..9781cf9fd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -19,14 +19,13 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { INTERFACE_ProgressMask } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ProgressMask implements MaterializedBase { peer?: Finalizable | undefined @@ -71,17 +70,17 @@ export class ProgressMask implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ProgressMask_getFinalizer() } - updateProgress(value: number): void { + public updateProgress(value: number): void { const value_casted = value as (number) this.updateProgress_serialize(value_casted) return } - updateColor(value: ResourceColor): void { + public updateColor(value: ResourceColor): void { const value_casted = value as (ResourceColor) this.updateColor_serialize(value_casted) return } - enableBreathingAnimation(value: boolean): void { + public enableBreathingAnimation(value: boolean): void { const value_casted = value as (boolean) this.enableBreathingAnimation_serialize(value_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts index 4f8c4adab..c9ea2fcc4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts +++ b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return (this.peer as ArkQRCodePeer) } /** @memo */ - setQRCodeOptions(value: string): this { + public setQRCodeOptions(value: string): this { if (this.checkPriority("setQRCodeOptions")) { const value_casted = value as (string) this.getPeer()?.setQRCodeOptionsAttribute(value_casted) @@ -42,7 +42,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentOpacity(value: number | Resource): this { + public contentOpacity(value: number | Resource): this { if (this.checkPriority("contentOpacity")) { const value_casted = value as (number | Resource) this.getPeer()?.contentOpacityAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkRadio.ts b/arkoala-arkts/arkui/src/generated/ArkRadio.ts index 8a94ee107..64fc5cc0d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadio.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadio.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return (this.peer as ArkRadioPeer) } /** @memo */ - setRadioOptions(options: RadioOptions): this { + public setRadioOptions(options: RadioOptions): this { if (this.checkPriority("setRadioOptions")) { const options_casted = options as (RadioOptions) this.getPeer()?.setRadioOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - checked(value: boolean): this { + public checked(value: boolean): this { if (this.checkPriority("checked")) { const value_casted = value as (boolean) this.getPeer()?.checkedAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - radioStyle(value?: RadioStyle): this { + public radioStyle(value?: RadioStyle): this { if (this.checkPriority("radioStyle")) { const value_casted = value as (RadioStyle | undefined) this.getPeer()?.radioStyleAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -78,10 +78,10 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_checked(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_checked")) { + public _onChangeEvent_checked(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_checked")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_checkedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_checkedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts index f4185d93d..d90ac857b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts @@ -43,7 +43,7 @@ export interface RadioAttribute extends CommonMethod { checked: boolean; onChange: ((parameter: boolean) => void); radioStyle?: RadioStyle; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } export interface RadioConfiguration extends CommonConfiguration { value: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkRating.ts b/arkoala-arkts/arkui/src/generated/ArkRating.ts index 35847835b..268dce68b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRating.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRating.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return (this.peer as ArkRatingPeer) } /** @memo */ - setRatingOptions(options?: RatingOptions): this { + public setRatingOptions(options?: RatingOptions): this { if (this.checkPriority("setRatingOptions")) { const options_casted = options as (RatingOptions | undefined) this.getPeer()?.setRatingOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stars(value: number): this { + public stars(value: number): this { if (this.checkPriority("stars")) { const value_casted = value as (number) this.getPeer()?.starsAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stepSize(value: number): this { + public stepSize(value: number): this { if (this.checkPriority("stepSize")) { const value_casted = value as (number) this.getPeer()?.stepSizeAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - starStyle(value: StarStyleOptions): this { + public starStyle(value: StarStyleOptions): this { if (this.checkPriority("starStyle")) { const value_casted = value as (StarStyleOptions) this.getPeer()?.starStyleAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -87,10 +87,10 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_rating(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_rating")) { + public _onChangeEvent_rating(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_rating")) { const callback_casted = callback as (((index: number) => void)) - this.getPeer()?.__onChangeEvent_ratingAttribute(callback_casted) + this.getPeer()?._onChangeEvent_ratingAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts index bd5b8116d..e49923bcf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts @@ -43,5 +43,5 @@ export interface RatingAttribute extends CommonMethod { stepSize: number; starStyle: StarStyleOptions; onChange: ((index: number) => void); - contentModifier: ContentModifier; + contentModifier: ContentModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkRect.ts b/arkoala-arkts/arkui/src/generated/ArkRect.ts index 7983f853e..9c4722c7e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRect.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkRectPeer) } /** @memo */ - setRectOptions(options?: RectOptions | RoundedRectOptions): this { + public setRectOptions(options?: RectOptions | RoundedRectOptions): this { if (this.checkPriority("setRectOptions")) { const options_casted = options as (RectOptions | RoundedRectOptions | undefined) this.getPeer()?.setRectOptionsAttribute(options_casted) @@ -40,7 +40,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - radiusWidth(value: number | string): this { + public radiusWidth(value: number | string): this { if (this.checkPriority("radiusWidth")) { const value_casted = value as (number | string) this.getPeer()?.radiusWidthAttribute(value_casted) @@ -49,7 +49,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - radiusHeight(value: number | string): this { + public radiusHeight(value: number | string): this { if (this.checkPriority("radiusHeight")) { const value_casted = value as (number | string) this.getPeer()?.radiusHeightAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - radius(value: number | string | Array): this { + public radius(value: number | string | Array): this { if (this.checkPriority("radius")) { const value_casted = value as (number | string | Array) this.getPeer()?.radiusAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts index 608896da1..1618ad750 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return (this.peer as ArkRefreshPeer) } /** @memo */ - setRefreshOptions(value: RefreshOptions): this { + public setRefreshOptions(value: RefreshOptions): this { if (this.checkPriority("setRefreshOptions")) { const value_casted = value as (RefreshOptions) this.getPeer()?.setRefreshOptionsAttribute(value_casted) @@ -42,7 +42,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStateChange(value: ((state: RefreshStatus) => void)): this { + public onStateChange(value: ((state: RefreshStatus) => void)): this { if (this.checkPriority("onStateChange")) { const value_casted = value as (((state: RefreshStatus) => void)) this.getPeer()?.onStateChangeAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRefreshing(value: (() => void)): this { + public onRefreshing(value: (() => void)): this { if (this.checkPriority("onRefreshing")) { const value_casted = value as ((() => void)) this.getPeer()?.onRefreshingAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - refreshOffset(value: number): this { + public refreshOffset(value: number): this { if (this.checkPriority("refreshOffset")) { const value_casted = value as (number) this.getPeer()?.refreshOffsetAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pullToRefresh(value: boolean): this { + public pullToRefresh(value: boolean): this { if (this.checkPriority("pullToRefresh")) { const value_casted = value as (boolean) this.getPeer()?.pullToRefreshAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onOffsetChange(value: ((index: number) => void)): this { + public onOffsetChange(value: ((index: number) => void)): this { if (this.checkPriority("onOffsetChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onOffsetChangeAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pullDownRatio(value?: number): this { + public pullDownRatio(value?: number): this { if (this.checkPriority("pullDownRatio")) { const value_casted = value as (number | undefined) this.getPeer()?.pullDownRatioAttribute(value_casted) @@ -96,10 +96,10 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_refreshing(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_refreshing")) { + public _onChangeEvent_refreshing(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_refreshing")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_refreshingAttribute(callback_casted) + this.getPeer()?._onChangeEvent_refreshingAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts index 7790de18d..3128de0e3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { return (this.peer as ArkRelativeContainerPeer) } /** @memo */ - setRelativeContainerOptions(): this { + public setRelativeContainerOptions(): this { if (this.checkPriority("setRelativeContainerOptions")) { this.getPeer()?.setRelativeContainerOptionsAttribute() return this @@ -39,7 +39,7 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - guideLine(value: Array): this { + public guideLine(value: Array): this { if (this.checkPriority("guideLine")) { const value_casted = value as (Array) this.getPeer()?.guideLineAttribute(value_casted) @@ -48,7 +48,7 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barrier(value: Array | Array): this { + public barrier(value: Array | Array): this { if (this.checkPriority("barrier")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_BarrierStyle(value)))) { diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts index a83ce3361..caf1789b6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkRemoteWindowComponent extends ArkCommonMethodComponent { return (this.peer as ArkRemoteWindowPeer) } /** @memo */ - setRemoteWindowOptions(target: WindowAnimationTarget): this { + public setRemoteWindowOptions(target: WindowAnimationTarget): this { if (this.checkPriority("setRemoteWindowOptions")) { const target_casted = target as (WindowAnimationTarget) this.getPeer()?.setRemoteWindowOptionsAttribute(target_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts new file mode 100644 index 000000000..893f9d9d7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -0,0 +1,81 @@ +/* + * 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, NativeBuffer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +import { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RenderingContextSettings implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get antialias(): boolean | undefined { + return this.getAntialias() + } + set antialias(antialias: boolean | undefined) { + const antialias_NonNull = (antialias as boolean) + this.setAntialias(antialias_NonNull) + } + static ctor(antialias?: boolean): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let antialias_type : int32 = RuntimeType.UNDEFINED + antialias_type = runtimeType(antialias) + thisSerializer.writeInt8(antialias_type as int32) + if ((RuntimeType.UNDEFINED) != (antialias_type)) { + const antialias_value = antialias! + thisSerializer.writeBoolean(antialias_value) + } + const retval = ArkUIGeneratedNativeModule._RenderingContextSettings_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(antialias?: boolean) { + const ctorPtr : KPointer = RenderingContextSettings.ctor(antialias) + this.peer = new Finalizable(ctorPtr, RenderingContextSettings.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._RenderingContextSettings_getFinalizer() + } + private getAntialias(): boolean { + return this.getAntialias_serialize() + } + private setAntialias(antialias: boolean): void { + const antialias_casted = antialias as (boolean) + this.setAntialias_serialize(antialias_casted) + return + } + private getAntialias_serialize(): boolean { + const retval = ArkUIGeneratedNativeModule._RenderingContextSettings_getAntialias(this.peer!.ptr) + return retval + } + private setAntialias_serialize(antialias: boolean): void { + 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 new file mode 100644 index 000000000..5d7ca60bc --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -0,0 +1,82 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope | undefined { + return this.getScope() + } + set scope(scope: EffectScope | undefined) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + static ctor(scope?: EffectScope): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let scope_type : int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type as int32) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = (scope as EffectScope) + thisSerializer.writeInt32((scope_value.valueOf() as int32)) + } + const retval = ArkUIGeneratedNativeModule._ReplaceSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope) { + const ctorPtr : KPointer = ReplaceSymbolEffect.ctor(scope) + this.peer = new Finalizable(ctorPtr, ReplaceSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ReplaceSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this.setScope_serialize(scope_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._ReplaceSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + 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 6c3972496..5b0234f49 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return (this.peer as ArkRichEditorPeer) } /** @memo */ - setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { + public setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { if (this.checkPriority("setRichEditorOptions")) { const value_type = runtimeType(value) if ((TypeChecker.isRichEditorOptions(value, true))) { @@ -56,7 +56,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: (() => void)): this { + public onReady(value: (() => void)): this { if (this.checkPriority("onReady")) { const value_casted = value as ((() => void)) this.getPeer()?.onReadyAttribute(value_casted) @@ -65,7 +65,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((parameter: RichEditorSelection) => void)): this { + public onSelect(value: ((parameter: RichEditorSelection) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: RichEditorSelection) => void)) this.getPeer()?.onSelectAttribute(value_casted) @@ -74,7 +74,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelectionChange(value: ((parameter: RichEditorRange) => void)): this { + public onSelectionChange(value: ((parameter: RichEditorRange) => void)): this { if (this.checkPriority("onSelectionChange")) { const value_casted = value as (((parameter: RichEditorRange) => void)) this.getPeer()?.onSelectionChangeAttribute(value_casted) @@ -83,7 +83,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - aboutToIMEInput(value: ((parameter: RichEditorInsertValue) => boolean)): this { + public aboutToIMEInput(value: ((parameter: RichEditorInsertValue) => boolean)): this { if (this.checkPriority("aboutToIMEInput")) { const value_casted = value as (((parameter: RichEditorInsertValue) => boolean)) this.getPeer()?.aboutToIMEInputAttribute(value_casted) @@ -92,7 +92,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onIMEInputComplete(value: ((parameter: RichEditorTextSpanResult) => void)): this { + public onIMEInputComplete(value: ((parameter: RichEditorTextSpanResult) => void)): this { if (this.checkPriority("onIMEInputComplete")) { const value_casted = value as (((parameter: RichEditorTextSpanResult) => void)) this.getPeer()?.onIMEInputCompleteAttribute(value_casted) @@ -101,7 +101,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidIMEInput(value: ((parameter: TextRange) => void)): this { + public onDidIMEInput(value: ((parameter: TextRange) => void)): this { if (this.checkPriority("onDidIMEInput")) { const value_casted = value as (((parameter: TextRange) => void)) this.getPeer()?.onDidIMEInputAttribute(value_casted) @@ -110,7 +110,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - aboutToDelete(value: ((parameter: RichEditorDeleteValue) => boolean)): this { + public aboutToDelete(value: ((parameter: RichEditorDeleteValue) => boolean)): this { if (this.checkPriority("aboutToDelete")) { const value_casted = value as (((parameter: RichEditorDeleteValue) => boolean)) this.getPeer()?.aboutToDeleteAttribute(value_casted) @@ -119,7 +119,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDeleteComplete(value: (() => void)): this { + public onDeleteComplete(value: (() => void)): this { if (this.checkPriority("onDeleteComplete")) { const value_casted = value as ((() => void)) this.getPeer()?.onDeleteCompleteAttribute(value_casted) @@ -128,7 +128,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOptions(value: CopyOptions): this { + public copyOptions(value: CopyOptions): this { if (this.checkPriority("copyOptions")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionsAttribute(value_casted) @@ -137,7 +137,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: PasteEventCallback): this { + public onPaste(value: PasteEventCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (PasteEventCallback) this.getPeer()?.onPasteAttribute(value_casted) @@ -146,7 +146,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableDataDetector(value: boolean): this { + public enableDataDetector(value: boolean): this { if (this.checkPriority("enableDataDetector")) { const value_casted = value as (boolean) this.getPeer()?.enableDataDetectorAttribute(value_casted) @@ -155,7 +155,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -164,7 +164,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dataDetectorConfig(value: TextDataDetectorConfig): this { + public dataDetectorConfig(value: TextDataDetectorConfig): this { if (this.checkPriority("dataDetectorConfig")) { const value_casted = value as (TextDataDetectorConfig) this.getPeer()?.dataDetectorConfigAttribute(value_casted) @@ -173,7 +173,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -182,7 +182,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -191,7 +191,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditingChange(value: ((parameter: boolean) => void)): this { + public onEditingChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditingChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onEditingChangeAttribute(value_casted) @@ -200,7 +200,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -209,7 +209,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: SubmitCallback): this { + public onSubmit(value: SubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_casted = value as (SubmitCallback) this.getPeer()?.onSubmitAttribute(value_casted) @@ -218,7 +218,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillChange(value: ((parameter: RichEditorChangeValue) => boolean)): this { + public onWillChange(value: ((parameter: RichEditorChangeValue) => boolean)): this { if (this.checkPriority("onWillChange")) { const value_casted = value as (((parameter: RichEditorChangeValue) => boolean)) this.getPeer()?.onWillChangeAttribute(value_casted) @@ -227,7 +227,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidChange(value: OnDidChangeCallback): this { + public onDidChange(value: OnDidChangeCallback): this { if (this.checkPriority("onDidChange")) { const value_casted = value as (OnDidChangeCallback) this.getPeer()?.onDidChangeAttribute(value_casted) @@ -236,7 +236,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((parameter: CutEvent) => void)): this { + public onCut(value: ((parameter: CutEvent) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((parameter: CutEvent) => void)) this.getPeer()?.onCutAttribute(value_casted) @@ -245,7 +245,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((parameter: CopyEvent) => void)): this { + public onCopy(value: ((parameter: CopyEvent) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((parameter: CopyEvent) => void)) this.getPeer()?.onCopyAttribute(value_casted) @@ -254,7 +254,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -263,7 +263,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -272,7 +272,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -281,7 +281,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barState(value: BarState): this { + public barState(value: BarState): this { if (this.checkPriority("barState")) { const value_casted = value as (BarState) this.getPeer()?.barStateAttribute(value_casted) @@ -290,7 +290,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): this { + public bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): this { if (this.checkPriority("bindSelectionMenu")) { const spanType_casted = spanType as (RichEditorSpanType) const content_casted = content as (CustomBuilder) @@ -302,7 +302,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -312,7 +312,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholder(value: ResourceStr, style?: PlaceholderStyle): this { + public placeholder(value: ResourceStr, style?: PlaceholderStyle): this { if (this.checkPriority("placeholder")) { const value_casted = value as (ResourceStr) const style_casted = style as (PlaceholderStyle | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index 3434af578..b2f9c1c21 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -21,14 +21,13 @@ import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" -import { INTERFACE_RichEditorBaseController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined @@ -46,43 +45,43 @@ export class RichEditorBaseController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RichEditorBaseController_getFinalizer() } - getCaretOffset(): number { + public getCaretOffset(): number { return this.getCaretOffset_serialize() } - setCaretOffset(offset: number): boolean { + public setCaretOffset(offset: number): boolean { const offset_casted = offset as (number) return this.setCaretOffset_serialize(offset_casted) } - closeSelectionMenu(): void { + public closeSelectionMenu(): void { this.closeSelectionMenu_serialize() return } - getTypingStyle(): RichEditorTextStyle { + public getTypingStyle(): RichEditorTextStyle { return this.getTypingStyle_serialize() } - setTypingStyle(value: RichEditorTextStyle): void { + public setTypingStyle(value: RichEditorTextStyle): void { const value_casted = value as (RichEditorTextStyle) this.setTypingStyle_serialize(value_casted) return } - setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this.setSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - isEditing(): boolean { + public isEditing(): boolean { return this.isEditing_serialize() } - stopEditing(): void { + public stopEditing(): void { this.stopEditing_serialize() return } - getLayoutManager(): LayoutManager { + public getLayoutManager(): LayoutManager { return this.getLayoutManager_serialize() } - getPreviewText(): PreviewText { + public getPreviewText(): PreviewText { return this.getPreviewText_serialize() } private getCaretOffset_serialize(): number { diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index bd03d7a22..af499452b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -21,7 +21,7 @@ import { RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilde import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { ResourceStr } from "./ArkUnitsInterfaces" import { CustomBuilder } from "./ArkCommonInterfaces" -import { CustomNodeBuilder, INTERFACE_RichEditorController } from "./SyntheticDeclarations" +import { CustomNodeBuilder } from "./SyntheticDeclarations" import { Resource } from "./ArkResourceInterfaces" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" @@ -30,7 +30,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class RichEditorController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined @@ -49,57 +49,57 @@ export class RichEditorController extends RichEditorBaseController implements Ma static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RichEditorController_getFinalizer() } - addTextSpan(value: string, options?: RichEditorTextSpanOptions): number { + public addTextSpan(value: string, options?: RichEditorTextSpanOptions): number { const value_casted = value as (string) const options_casted = options as (RichEditorTextSpanOptions | undefined) return this.addTextSpan_serialize(value_casted, options_casted) } - addImageSpan(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number { + public addImageSpan(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number { const value_casted = value as (PixelMap | ResourceStr) const options_casted = options as (RichEditorImageSpanOptions | undefined) return this.addImageSpan_serialize(value_casted, options_casted) } - addBuilderSpan(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number { + public addBuilderSpan(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number { const value_casted = value as (CustomBuilder) const options_casted = options as (RichEditorBuilderSpanOptions | undefined) return this.addBuilderSpan_serialize(value_casted, options_casted) } - addSymbolSpan(value: Resource, options?: RichEditorSymbolSpanOptions): number { + public addSymbolSpan(value: Resource, options?: RichEditorSymbolSpanOptions): number { const value_casted = value as (Resource) const options_casted = options as (RichEditorSymbolSpanOptions | undefined) return this.addSymbolSpan_serialize(value_casted, options_casted) } - updateSpanStyle(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void { + public updateSpanStyle(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void { const value_casted = value as (RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions) this.updateSpanStyle_serialize(value_casted) return } - updateParagraphStyle(value: RichEditorParagraphStyleOptions): void { + public updateParagraphStyle(value: RichEditorParagraphStyleOptions): void { const value_casted = value as (RichEditorParagraphStyleOptions) this.updateParagraphStyle_serialize(value_casted) return } - deleteSpans(value?: RichEditorRange): void { + public deleteSpans(value?: RichEditorRange): void { const value_casted = value as (RichEditorRange | undefined) this.deleteSpans_serialize(value_casted) return } - getSpans(value?: RichEditorRange): Array { + public getSpans(value?: RichEditorRange): Array { const value_casted = value as (RichEditorRange | undefined) return this.getSpans_serialize(value_casted) } - getParagraphs(value?: RichEditorRange): Array { + public getParagraphs(value?: RichEditorRange): Array { const value_casted = value as (RichEditorRange | undefined) return this.getParagraphs_serialize(value_casted) } - getSelection(): RichEditorSelection { + public getSelection(): RichEditorSelection { return this.getSelection_serialize() } - fromStyledString(value: StyledString): Array { + public fromStyledString(value: StyledString): Array { const value_casted = value as (StyledString) return this.fromStyledString_serialize(value_casted) } - toStyledString(value: RichEditorRange): StyledString { + public toStyledString(value: RichEditorRange): StyledString { const value_casted = value as (RichEditorRange) return this.toStyledString_serialize(value_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index 9af82ce94..23d742376 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -22,14 +22,13 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialize import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" import { RichEditorRange } from "./ArkRichEditorInterfaces" import { StyledStringChangedListener } from "./ArkTextCommonInterfaces" -import { INTERFACE_RichEditorStyledStringController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class RichEditorStyledStringController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined @@ -48,18 +47,18 @@ export class RichEditorStyledStringController extends RichEditorBaseController i static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RichEditorStyledStringController_getFinalizer() } - setStyledString(styledString: StyledString): void { + public setStyledString(styledString: StyledString): void { const styledString_casted = styledString as (StyledString) this.setStyledString_serialize(styledString_casted) return } - getStyledString(): MutableStyledString { + public getStyledString(): MutableStyledString { return this.getStyledString_serialize() } - getSelection(): RichEditorRange { + public getSelection(): RichEditorRange { return this.getSelection_serialize() } - onContentChanged(listener: StyledStringChangedListener): void { + public onContentChanged(listener: StyledStringChangedListener): void { const listener_casted = listener as (StyledStringChangedListener) this.onContentChanged_serialize(listener_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkRichText.ts b/arkoala-arkts/arkui/src/generated/ArkRichText.ts index 635d15730..cb345c971 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichText.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { return (this.peer as ArkRichTextPeer) } /** @memo */ - setRichTextOptions(content: string): this { + public setRichTextOptions(content: string): this { if (this.checkPriority("setRichTextOptions")) { const content_casted = content as (string) this.getPeer()?.setRichTextOptionsAttribute(content_casted) @@ -42,7 +42,7 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onStartAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onComplete(value: (() => void)): this { + public onComplete(value: (() => void)): this { if (this.checkPriority("onComplete")) { const value_casted = value as ((() => void)) this.getPeer()?.onCompleteAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts index cc1148f52..4410a9d02 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkRootSceneComponent extends ArkCommonMethodComponent { return (this.peer as ArkRootScenePeer) } /** @memo */ - setRootSceneOptions(session: RootSceneSession): this { + public setRootSceneOptions(session: RootSceneSession): this { if (this.checkPriority("setRootSceneOptions")) { const session_casted = session as (RootSceneSession) this.getPeer()?.setRootSceneOptionsAttribute(session_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index 165a234ca..13e62ec31 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" -import { INTERFACE_RotationGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface RotationGestureEvent { angle: number diff --git a/arkoala-arkts/arkui/src/generated/ArkRow.ts b/arkoala-arkts/arkui/src/generated/ArkRow.ts index c8b2a0793..f2e98431a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return (this.peer as ArkRowPeer) } /** @memo */ - setRowOptions(options?: RowOptions): this { + public setRowOptions(options?: RowOptions): this { if (this.checkPriority("setRowOptions")) { const options_casted = options as (RowOptions | undefined) this.getPeer()?.setRowOptionsAttribute(options_casted) @@ -41,7 +41,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignItems(value: VerticalAlign): this { + public alignItems(value: VerticalAlign): this { if (this.checkPriority("alignItems")) { const value_casted = value as (VerticalAlign) this.getPeer()?.alignItemsAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - justifyContent(value: FlexAlign): this { + public justifyContent(value: FlexAlign): this { if (this.checkPriority("justifyContent")) { const value_casted = value as (FlexAlign) this.getPeer()?.justifyContentAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - reverse(value?: boolean): this { + public reverse(value?: boolean): this { if (this.checkPriority("reverse")) { const value_casted = value as (boolean | undefined) this.getPeer()?.reverseAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts index 81d866564..80389e353 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkRowSplitComponent extends ArkCommonMethodComponent { return (this.peer as ArkRowSplitPeer) } /** @memo */ - setRowSplitOptions(): this { + public setRowSplitOptions(): this { if (this.checkPriority("setRowSplitOptions")) { this.getPeer()?.setRowSplitOptionsAttribute() return this @@ -39,7 +39,7 @@ export class ArkRowSplitComponent extends ArkCommonMethodComponent { return this } /** @memo */ - resizeable(value: boolean): this { + public resizeable(value: boolean): this { if (this.checkPriority("resizeable")) { const value_casted = value as (boolean) this.getPeer()?.resizeableAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts index fb6c8d06e..68f43f44f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent return (this.peer as ArkSaveButtonPeer) } /** @memo */ - setSaveButtonOptions(options?: SaveButtonOptions): this { + public setSaveButtonOptions(options?: SaveButtonOptions): this { if (this.checkPriority("setSaveButtonOptions")) { const options_type = runtimeType(options) if ((((RuntimeType.UNDEFINED == options_type)))) { @@ -51,7 +51,7 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent return this } /** @memo */ - onClick(value: ((event: ClickEvent,result: SaveButtonOnClickResult) => void)): this { + public onClick(value: ((event: ClickEvent,result: SaveButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent,result: SaveButtonOnClickResult) => void)) this.getPeer()?.onClickAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts new file mode 100644 index 000000000..02fafe11b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -0,0 +1,111 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope | undefined { + return this.getScope() + } + set scope(scope: EffectScope | undefined) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + get direction(): EffectDirection | undefined { + return this.getDirection() + } + set direction(direction: EffectDirection | undefined) { + const direction_NonNull = (direction as EffectDirection) + this.setDirection(direction_NonNull) + } + static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let scope_type : int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type as int32) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = (scope as EffectScope) + thisSerializer.writeInt32((scope_value.valueOf() as int32)) + } + let direction_type : int32 = RuntimeType.UNDEFINED + direction_type = runtimeType(direction) + thisSerializer.writeInt8(direction_type as int32) + if ((RuntimeType.UNDEFINED) != (direction_type)) { + const direction_value = (direction as EffectDirection) + thisSerializer.writeInt32((direction_value.valueOf() as int32)) + } + const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope, direction?: EffectDirection) { + const ctorPtr : KPointer = ScaleSymbolEffect.ctor(scope, direction) + this.peer = new Finalizable(ctorPtr, ScaleSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ScaleSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this.setScope_serialize(scope_casted) + return + } + private getDirection(): EffectDirection { + return this.getDirection_serialize() + } + private setDirection(direction: EffectDirection): void { + const direction_casted = direction as (EffectDirection) + this.setDirection_serialize(direction_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + ArkUIGeneratedNativeModule._ScaleSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) + } + private getDirection_serialize(): EffectDirection { + const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_getDirection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setDirection_serialize(direction: EffectDirection): void { + 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 a1ce04b47..25e6886aa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreen.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreen.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkScreenComponent extends ArkCommonMethodComponent { return (this.peer as ArkScreenPeer) } /** @memo */ - setScreenOptions(screenId: number): this { + public setScreenOptions(screenId: number): this { if (this.checkPriority("setScreenOptions")) { const screenId_casted = screenId as (number) this.getPeer()?.setScreenOptionsAttribute(screenId_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index 16bf434dd..88af11889 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ScreenCaptureConfig } from "./ArkWebInterfaces" -import { INTERFACE_ScreenCaptureHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ScreenCaptureHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -42,15 +41,15 @@ export class ScreenCaptureHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ScreenCaptureHandler_getFinalizer() } - getOrigin(): string { + public getOrigin(): string { return this.getOrigin_serialize() } - grant(config: ScreenCaptureConfig): void { + public grant(config: ScreenCaptureConfig): void { const config_casted = config as (ScreenCaptureConfig) this.grant_serialize(config_casted) return } - deny(): void { + public deny(): void { this.deny_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkScroll.ts b/arkoala-arkts/arkui/src/generated/ArkScroll.ts index 5214de2b6..713bf41cc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScroll.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScroll.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -37,7 +37,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkScrollPeer) } /** @memo */ - setScrollOptions(scroller?: Scroller): this { + public setScrollOptions(scroller?: Scroller): this { if (this.checkPriority("setScrollOptions")) { const scroller_casted = scroller as (Scroller | undefined) this.getPeer()?.setScrollOptionsAttribute(scroller_casted) @@ -46,7 +46,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollable(value: ScrollDirection): this { + public scrollable(value: ScrollDirection): this { if (this.checkPriority("scrollable")) { const value_casted = value as (ScrollDirection) this.getPeer()?.scrollableAttribute(value_casted) @@ -55,7 +55,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((first: number,last: number) => void)): this { + public onScroll(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onScrollAttribute(value_casted) @@ -64,7 +64,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onWillScroll(value?: ScrollOnWillScrollCallback): this { + public onWillScroll(value?: ScrollOnWillScrollCallback): this { if (this.checkPriority("onWillScroll")) { const value_casted = value as (ScrollOnWillScrollCallback | undefined) this.getPeer()?.onWillScrollAttribute(value_casted) @@ -73,16 +73,16 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onDidScroll(value?: ScrollOnScrollCallback): this { + public onDidScroll(value: ScrollOnScrollCallback): this { if (this.checkPriority("onDidScroll")) { - const value_casted = value as (ScrollOnScrollCallback | undefined) + const value_casted = value as (ScrollOnScrollCallback) this.getPeer()?.onDidScrollAttribute(value_casted) return this } return this } /** @memo */ - onScrollEdge(value: OnScrollEdgeCallback): this { + public onScrollEdge(value: OnScrollEdgeCallback): this { if (this.checkPriority("onScrollEdge")) { const value_casted = value as (OnScrollEdgeCallback) this.getPeer()?.onScrollEdgeAttribute(value_casted) @@ -91,7 +91,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStart(value: VoidCallback): this { + public onScrollStart(value: VoidCallback): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as (VoidCallback) this.getPeer()?.onScrollStartAttribute(value_casted) @@ -100,7 +100,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollEnd(value: (() => void)): this { + public onScrollEnd(value: (() => void)): this { if (this.checkPriority("onScrollEnd")) { const value_casted = value as ((() => void)) this.getPeer()?.onScrollEndAttribute(value_casted) @@ -109,7 +109,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStop(value: VoidCallback): this { + public onScrollStop(value: VoidCallback): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as (VoidCallback) this.getPeer()?.onScrollStopAttribute(value_casted) @@ -118,7 +118,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -127,7 +127,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarColor(value: Color | number | string): this { + public scrollBarColor(value: Color | number | string): this { if (this.checkPriority("scrollBarColor")) { const value_casted = value as (Color | number | string) this.getPeer()?.scrollBarColorAttribute(value_casted) @@ -136,7 +136,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarWidth(value: number | string): this { + public scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) this.getPeer()?.scrollBarWidthAttribute(value_casted) @@ -145,7 +145,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: OnScrollFrameBeginCallback): this { + public onScrollFrameBegin(value: OnScrollFrameBeginCallback): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (OnScrollFrameBeginCallback) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) @@ -154,7 +154,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -163,7 +163,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -172,7 +172,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -181,7 +181,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollSnap(value: ScrollSnapOptions): this { + public scrollSnap(value: ScrollSnapOptions): this { if (this.checkPriority("scrollSnap")) { const value_casted = value as (ScrollSnapOptions) this.getPeer()?.scrollSnapAttribute(value_casted) @@ -190,7 +190,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enablePaging(value: boolean): this { + public enablePaging(value: boolean): this { if (this.checkPriority("enablePaging")) { const value_casted = value as (boolean) this.getPeer()?.enablePagingAttribute(value_casted) @@ -199,7 +199,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - initialOffset(value: OffsetOptions): this { + public initialOffset(value: OffsetOptions): this { if (this.checkPriority("initialOffset")) { const value_casted = value as (OffsetOptions) this.getPeer()?.initialOffsetAttribute(value_casted) @@ -208,7 +208,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const edgeEffect_casted = edgeEffect as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts index 643366ab5..116f01a6e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkScrollBarComponent extends ArkCommonMethodComponent { return (this.peer as ArkScrollBarPeer) } /** @memo */ - setScrollBarOptions(value: ScrollBarOptions): this { + public setScrollBarOptions(value: ScrollBarOptions): this { if (this.checkPriority("setScrollBarOptions")) { const value_casted = value as (ScrollBarOptions) this.getPeer()?.setScrollBarOptionsAttribute(value_casted) @@ -40,7 +40,7 @@ export class ArkScrollBarComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableNestedScroll(value?: boolean): this { + public enableNestedScroll(value?: boolean): this { if (this.checkPriority("enableNestedScroll")) { const value_casted = value as (boolean | undefined) this.getPeer()?.enableNestedScrollAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts index d2aba3ed5..63599d8ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts @@ -88,7 +88,7 @@ export interface ScrollAttribute extends ScrollableCommonMethod scrollable: ScrollDirection; onScroll: ((first: number,last: number) => void); onWillScroll: ScrollOnWillScrollCallback | undefined; - onDidScroll: ScrollOnScrollCallback | undefined; + onDidScroll: ScrollOnScrollCallback; onScrollEdge: OnScrollEdgeCallback; onScrollStart: VoidCallback; onScrollEnd: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts new file mode 100644 index 000000000..8c93d5991 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -0,0 +1,57 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +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 { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeSpringProp(prop) + const retval = ArkUIGeneratedNativeModule._ScrollMotion_ctor(position, velocity, min, max, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + 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) + this.peer = new Finalizable(ctorPtr, ScrollMotion.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 1375d1a01..8c2ffb5f6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { INTERFACE_ScrollableTargetInfo } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class ScrollableTargetInfo extends EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined @@ -43,10 +42,10 @@ export class ScrollableTargetInfo extends EventTargetInfo implements Materialize static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ScrollableTargetInfo_getFinalizer() } - isBegin(): boolean { + public isBegin(): boolean { return this.isBegin_serialize() } - isEnd(): boolean { + public isEnd(): boolean { return this.isEnd_serialize() } private isBegin_serialize(): boolean { diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts index 8dc0a74e6..24f470241 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts @@ -18,7 +18,7 @@ import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions } from "./ArkScrollInterfaces" import { Edge, Axis } from "./ArkEnumsInterfaces" -import { Literal_Boolean_next_Axis_direction, INTERFACE_Scroller } from "./SyntheticDeclarations" +import { Literal_Boolean_next_Axis_direction } from "./SyntheticDeclarations" import { Length } from "./ArkUnitsInterfaces" import { RectResult } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" @@ -28,7 +28,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class Scroller implements MaterializedBase { peer?: Finalizable | undefined @@ -46,21 +46,21 @@ export class Scroller implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Scroller_getFinalizer() } - scrollTo(options: ScrollOptions): undefined { + public scrollTo(options: ScrollOptions): undefined { const options_casted = options as (ScrollOptions) return this.scrollTo_serialize(options_casted) } - scrollEdge(value: Edge, options?: ScrollEdgeOptions): undefined { + public scrollEdge(value: Edge, options?: ScrollEdgeOptions): undefined { const value_casted = value as (Edge) const options_casted = options as (ScrollEdgeOptions | undefined) return this.scrollEdge_serialize(value_casted, options_casted) } - fling(velocity: number): void { + public fling(velocity: number): void { const velocity_casted = velocity as (number) this.fling_serialize(velocity_casted) return } - scrollPage(value: ScrollPageOptions | Literal_Boolean_next_Axis_direction): undefined { + public scrollPage(value: ScrollPageOptions | Literal_Boolean_next_Axis_direction): undefined { const value_type = runtimeType(value) if ((TypeChecker.isScrollPageOptions(value, true, false))) { const value_casted = value as (ScrollPageOptions) @@ -72,29 +72,29 @@ export class Scroller implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - currentOffset(): OffsetResult { + public currentOffset(): OffsetResult { return this.currentOffset_serialize() } - scrollToIndex(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { + public scrollToIndex(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const value_casted = value as (number) const smooth_casted = smooth as (boolean | undefined) const align_casted = align as (ScrollAlign | undefined) const options_casted = options as (ScrollToIndexOptions | undefined) return this.scrollToIndex_serialize(value_casted, smooth_casted, align_casted, options_casted) } - scrollBy(dx: Length, dy: Length): undefined { + public scrollBy(dx: Length, dy: Length): undefined { const dx_casted = dx as (Length) const dy_casted = dy as (Length) return this.scrollBy_serialize(dx_casted, dy_casted) } - isAtEnd(): boolean { + public isAtEnd(): boolean { return this.isAtEnd_serialize() } - getItemRect(index: number): RectResult { + public getItemRect(index: number): RectResult { const index_casted = index as (number) return this.getItemRect_serialize(index_casted) } - getItemIndex(x: number, y: number): number { + public getItemIndex(x: number, y: number): number { const x_casted = x as (number) const y_casted = y as (number) return this.getItemIndex_serialize(x_casted, y_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSearch.ts b/arkoala-arkts/arkui/src/generated/ArkSearch.ts index c32d6695f..154ddc9c8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearch.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearch.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -40,7 +40,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return (this.peer as ArkSearchPeer) } /** @memo */ - setSearchOptions(options?: SearchOptions): this { + public setSearchOptions(options?: SearchOptions): this { if (this.checkPriority("setSearchOptions")) { const options_casted = options as (SearchOptions | undefined) this.getPeer()?.setSearchOptionsAttribute(options_casted) @@ -49,7 +49,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - searchIcon(value: IconOptions | SymbolGlyphModifier): this { + public searchIcon(value: IconOptions | SymbolGlyphModifier): this { if (this.checkPriority("searchIcon")) { const value_casted = value as (IconOptions | SymbolGlyphModifier) this.getPeer()?.searchIconAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { + public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_casted = value as (CancelButtonOptions | CancelButtonSymbolOptions) this.getPeer()?.cancelButtonAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Dimension): this { + public textIndent(value: Dimension): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Dimension) this.getPeer()?.textIndentAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChange(value: ((parameter: boolean) => void)): this { + public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onEditChangeAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretStyle(value: CaretStyle): this { + public caretStyle(value: CaretStyle): this { if (this.checkPriority("caretStyle")) { const value_casted = value as (CaretStyle) this.getPeer()?.caretStyleAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderColor(value: ResourceColor): this { + public placeholderColor(value: ResourceColor): this { if (this.checkPriority("placeholderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.placeholderColorAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderFont(value?: Font): this { + public placeholderFont(value?: Font): this { if (this.checkPriority("placeholderFont")) { const value_casted = value as (Font | undefined) this.getPeer()?.placeholderFontAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textFont(value?: Font): this { + public textFont(value?: Font): this { if (this.checkPriority("textFont")) { const value_casted = value as (Font | undefined) this.getPeer()?.textFontAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -148,7 +148,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { + public onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) if ((((RuntimeType.FUNCTION == value_type)))) { @@ -166,7 +166,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: EditableTextOnChangeCallback): this { + public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) this.getPeer()?.onChangeAttribute(value_casted) @@ -175,7 +175,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: OnTextSelectionChangeCallback): this { + public onTextSelectionChange(value: OnTextSelectionChangeCallback): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (OnTextSelectionChangeCallback) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) @@ -184,7 +184,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentScroll(value: OnContentScrollCallback): this { + public onContentScroll(value: OnContentScrollCallback): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (OnContentScrollCallback) this.getPeer()?.onContentScrollAttribute(value_casted) @@ -193,7 +193,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCopyAttribute(value_casted) @@ -202,7 +202,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((breakpoints: string) => void)): this { + public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCutAttribute(value_casted) @@ -211,7 +211,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: OnPasteCallback): this { + public onPaste(value: OnPasteCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (OnPasteCallback) this.getPeer()?.onPasteAttribute(value_casted) @@ -220,7 +220,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -229,7 +229,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLength(value: number): this { + public maxLength(value: number): this { if (this.checkPriority("maxLength")) { const value_casted = value as (number) this.getPeer()?.maxLengthAttribute(value_casted) @@ -238,7 +238,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -247,7 +247,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -256,7 +256,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuHidden(value: boolean): this { + public selectionMenuHidden(value: boolean): this { if (this.checkPriority("selectionMenuHidden")) { const value_casted = value as (boolean) this.getPeer()?.selectionMenuHiddenAttribute(value_casted) @@ -265,7 +265,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -274,7 +274,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -283,7 +283,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: TextDecorationOptions): this { + public decoration(value: TextDecorationOptions): this { if (this.checkPriority("decoration")) { const value_casted = value as (TextDecorationOptions) this.getPeer()?.decorationAttribute(value_casted) @@ -292,7 +292,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string | Resource): this { + public letterSpacing(value: number | string | Resource): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string | Resource) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -301,7 +301,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -310,7 +310,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: SearchType): this { + public type(value: SearchType): this { if (this.checkPriority("type")) { const value_casted = value as (SearchType) this.getPeer()?.typeAttribute(value_casted) @@ -319,7 +319,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -328,7 +328,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillInsert(value: ((parameter: InsertValue) => boolean)): this { + public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) this.getPeer()?.onWillInsertAttribute(value_casted) @@ -337,7 +337,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidInsert(value: ((parameter: InsertValue) => void)): this { + public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) this.getPeer()?.onDidInsertAttribute(value_casted) @@ -346,7 +346,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { + public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) this.getPeer()?.onWillDeleteAttribute(value_casted) @@ -355,7 +355,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidDelete(value: ((parameter: DeleteValue) => void)): this { + public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) this.getPeer()?.onDidDeleteAttribute(value_casted) @@ -364,7 +364,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -373,7 +373,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -382,7 +382,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -391,7 +391,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - searchButton(value: string, option?: SearchButtonOptions): this { + public searchButton(value: string, option?: SearchButtonOptions): this { if (this.checkPriority("searchButton")) { const value_casted = value as (string) const option_casted = option as (SearchButtonOptions | undefined) @@ -401,7 +401,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { + public inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { if (this.checkPriority("inputFilter")) { const value_casted = value as (ResourceStr) const error_casted = error as (((breakpoints: string) => void) | undefined) @@ -411,7 +411,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -421,10 +421,10 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_value(callback: ((breakpoints: string) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((breakpoints: string) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((breakpoints: string) => void)) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts index 9228d8717..c2d0977b1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -18,14 +18,13 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { SelectionOptions } from "./ArkCommonInterfaces" -import { INTERFACE_SearchController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class SearchController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined @@ -44,16 +43,16 @@ export class SearchController extends TextContentControllerBase implements Mater static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SearchController_getFinalizer() } - caretPosition(value: number): void { + public caretPosition(value: number): void { const value_casted = value as (number) this.caretPosition_serialize(value_casted) return } - stopEditing(): void { + public stopEditing(): void { this.stopEditing_serialize() return } - setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts index d40cf9eba..e2fefe106 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return (this.peer as ArkSecurityComponentMethodPeer) } /** @memo */ - iconSize(value: Dimension): this { + public iconSize(value: Dimension): this { if (this.checkPriority("iconSize")) { const value_casted = value as (Dimension) this.getPeer()?.iconSizeAttribute(value_casted) @@ -41,7 +41,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - layoutDirection(value: SecurityComponentLayoutDirection): this { + public layoutDirection(value: SecurityComponentLayoutDirection): this { if (this.checkPriority("layoutDirection")) { const value_casted = value as (SecurityComponentLayoutDirection) this.getPeer()?.layoutDirectionAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - position(value: Position): this { + public position(value: Position): this { if (this.checkPriority("position")) { const value_casted = value as (Position) this.getPeer()?.positionAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - markAnchor(value: Position): this { + public markAnchor(value: Position): this { if (this.checkPriority("markAnchor")) { const value_casted = value as (Position) this.getPeer()?.markAnchorAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - offset(value: Position | Edges | LocalizedEdges): this { + public offset(value: Position | Edges | LocalizedEdges): this { if (this.checkPriority("offset")) { const value_casted = value as (Position | Edges | LocalizedEdges) this.getPeer()?.offsetAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontSize(value: Dimension): this { + public fontSize(value: Dimension): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Dimension) this.getPeer()?.fontSizeAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - iconColor(value: ResourceColor): this { + public iconColor(value: ResourceColor): this { if (this.checkPriority("iconColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.iconColorAttribute(value_casted) @@ -131,7 +131,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -140,7 +140,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderStyle(value: BorderStyle): this { + public borderStyle(value: BorderStyle): this { if (this.checkPriority("borderStyle")) { const value_casted = value as (BorderStyle) this.getPeer()?.borderStyleAttribute(value_casted) @@ -149,7 +149,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderWidth(value: Dimension): this { + public borderWidth(value: Dimension): this { if (this.checkPriority("borderWidth")) { const value_casted = value as (Dimension) this.getPeer()?.borderWidthAttribute(value_casted) @@ -158,7 +158,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderColor(value: ResourceColor): this { + public borderColor(value: ResourceColor): this { if (this.checkPriority("borderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.borderColorAttribute(value_casted) @@ -167,7 +167,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderRadius(value: Dimension): this { + public borderRadius(value: Dimension): this { if (this.checkPriority("borderRadius")) { const value_casted = value as (Dimension) this.getPeer()?.borderRadiusAttribute(value_casted) @@ -176,7 +176,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - padding(value: Padding | Dimension): this { + public padding(value: Padding | Dimension): this { if (this.checkPriority("padding")) { const value_casted = value as (Padding | Dimension) this.getPeer()?.paddingAttribute(value_casted) @@ -185,7 +185,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - textIconSpace(value: Dimension): this { + public textIconSpace(value: Dimension): this { if (this.checkPriority("textIconSpace")) { const value_casted = value as (Dimension) this.getPeer()?.textIconSpaceAttribute(value_casted) @@ -194,7 +194,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - key(value: string): this { + public key(value: string): this { if (this.checkPriority("key")) { const value_casted = value as (string) this.getPeer()?.keyAttribute(value_casted) @@ -203,7 +203,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - width(value: Length): this { + public width(value: Length): this { if (this.checkPriority("width")) { const value_casted = value as (Length) this.getPeer()?.widthAttribute(value_casted) @@ -212,7 +212,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - height(value: Length): this { + public height(value: Length): this { if (this.checkPriority("height")) { const value_casted = value as (Length) this.getPeer()?.heightAttribute(value_casted) @@ -221,7 +221,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - size(value: SizeOptions): this { + public size(value: SizeOptions): this { if (this.checkPriority("size")) { const value_casted = value as (SizeOptions) this.getPeer()?.sizeAttribute(value_casted) @@ -230,7 +230,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - constraintSize(value: ConstraintSizeOptions): this { + public constraintSize(value: ConstraintSizeOptions): this { if (this.checkPriority("constraintSize")) { const value_casted = value as (ConstraintSizeOptions) this.getPeer()?.constraintSizeAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSelect.ts b/arkoala-arkts/arkui/src/generated/ArkSelect.ts index f9b98d8ff..9081168c6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelect.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return (this.peer as ArkSelectPeer) } /** @memo */ - setSelectOptions(options: Array): this { + public setSelectOptions(options: Array): this { if (this.checkPriority("setSelectOptions")) { const options_casted = options as (Array) this.getPeer()?.setSelectOptionsAttribute(options_casted) @@ -47,7 +47,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: number | Resource): this { + public selected(value: number | Resource): this { if (this.checkPriority("selected")) { const value_casted = value as (number | Resource) this.getPeer()?.selectedAttribute(value_casted) @@ -56,7 +56,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - value(value: ResourceStr): this { + public value(value: ResourceStr): this { if (this.checkPriority("value")) { const value_casted = value as (ResourceStr) this.getPeer()?.valueAttribute(value_casted) @@ -65,7 +65,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -74,7 +74,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -83,7 +83,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedOptionBgColor(value: ResourceColor): this { + public selectedOptionBgColor(value: ResourceColor): this { if (this.checkPriority("selectedOptionBgColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedOptionBgColorAttribute(value_casted) @@ -92,7 +92,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedOptionFont(value: Font): this { + public selectedOptionFont(value: Font): this { if (this.checkPriority("selectedOptionFont")) { const value_casted = value as (Font) this.getPeer()?.selectedOptionFontAttribute(value_casted) @@ -101,7 +101,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedOptionFontColor(value: ResourceColor): this { + public selectedOptionFontColor(value: ResourceColor): this { if (this.checkPriority("selectedOptionFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedOptionFontColorAttribute(value_casted) @@ -110,7 +110,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionBgColor(value: ResourceColor): this { + public optionBgColor(value: ResourceColor): this { if (this.checkPriority("optionBgColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.optionBgColorAttribute(value_casted) @@ -119,7 +119,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionFont(value: Font): this { + public optionFont(value: Font): this { if (this.checkPriority("optionFont")) { const value_casted = value as (Font) this.getPeer()?.optionFontAttribute(value_casted) @@ -128,7 +128,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionFontColor(value: ResourceColor): this { + public optionFontColor(value: ResourceColor): this { if (this.checkPriority("optionFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.optionFontColorAttribute(value_casted) @@ -137,7 +137,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((index: number,value: string) => void)): this { + public onSelect(value: ((index: number,value: string) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((index: number,value: string) => void)) this.getPeer()?.onSelectAttribute(value_casted) @@ -146,7 +146,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - space(value: Length): this { + public space(value: Length): this { if (this.checkPriority("space")) { const value_casted = value as (Length) this.getPeer()?.spaceAttribute(value_casted) @@ -155,7 +155,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - arrowPosition(value: ArrowPosition): this { + public arrowPosition(value: ArrowPosition): this { if (this.checkPriority("arrowPosition")) { const value_casted = value as (ArrowPosition) this.getPeer()?.arrowPositionAttribute(value_casted) @@ -164,7 +164,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionWidth(value: Dimension | OptionWidthMode): this { + public optionWidth(value: Dimension | OptionWidthMode): this { if (this.checkPriority("optionWidth")) { const value_casted = value as (Dimension | OptionWidthMode) this.getPeer()?.optionWidthAttribute(value_casted) @@ -173,7 +173,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionHeight(value: Dimension): this { + public optionHeight(value: Dimension): this { if (this.checkPriority("optionHeight")) { const value_casted = value as (Dimension) this.getPeer()?.optionHeightAttribute(value_casted) @@ -182,7 +182,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuBackgroundColor(value: ResourceColor): this { + public menuBackgroundColor(value: ResourceColor): this { if (this.checkPriority("menuBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.menuBackgroundColorAttribute(value_casted) @@ -191,7 +191,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuBackgroundBlurStyle(value: BlurStyle): this { + public menuBackgroundBlurStyle(value: BlurStyle): this { if (this.checkPriority("menuBackgroundBlurStyle")) { const value_casted = value as (BlurStyle) this.getPeer()?.menuBackgroundBlurStyleAttribute(value_casted) @@ -200,7 +200,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controlSize(value: ControlSize): this { + public controlSize(value: ControlSize): this { if (this.checkPriority("controlSize")) { const value_casted = value as (ControlSize) this.getPeer()?.controlSizeAttribute(value_casted) @@ -209,7 +209,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuItemContentModifier(value: ContentModifier): this { + public menuItemContentModifier(value: ContentModifier): this { if (this.checkPriority("menuItemContentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.menuItemContentModifierAttribute(value_casted) @@ -218,7 +218,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerOptions): this { + public divider(value?: DividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -227,7 +227,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuAlign(alignType: MenuAlignType, offset?: Offset): this { + public menuAlign(alignType: MenuAlignType, offset?: Offset): this { if (this.checkPriority("menuAlign")) { const alignType_casted = alignType as (MenuAlignType) const offset_casted = offset as (Offset | undefined) @@ -237,19 +237,19 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((selected: number | Resource) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((selected: number | Resource) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((selected: number | Resource) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return } /** @memo */ - __onChangeEvent_value(callback: ((value: ResourceStr) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((value: ResourceStr) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((value: ResourceStr) => void)) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts index 5db54da63..ff1d570e8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts @@ -60,7 +60,7 @@ export interface SelectAttribute extends CommonMethod { menuBackgroundColor: ResourceColor; menuBackgroundBlurStyle: BlurStyle; controlSize: ControlSize; - menuItemContentModifier: ContentModifier; + menuItemContentModifier: ContentModifier; divider: DividerOptions | undefined; } export interface MenuItemConfiguration extends CommonConfiguration { diff --git a/arkoala-arkts/arkui/src/generated/ArkShape.ts b/arkoala-arkts/arkui/src/generated/ArkShape.ts index 740178988..bcfb1c4fb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShape.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShape.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return (this.peer as ArkShapePeer) } /** @memo */ - setShapeOptions(value?: PixelMap): this { + public setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.UNDEFINED == value_type)))) { @@ -52,7 +52,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - viewPort(value: ViewportRect): this { + public viewPort(value: ViewportRect): this { if (this.checkPriority("viewPort")) { const value_casted = value as (ViewportRect) this.getPeer()?.viewPortAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stroke(value: ResourceColor): this { + public stroke(value: ResourceColor): this { if (this.checkPriority("stroke")) { const value_casted = value as (ResourceColor) this.getPeer()?.strokeAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fill(value: ResourceColor): this { + public fill(value: ResourceColor): this { if (this.checkPriority("fill")) { const value_casted = value as (ResourceColor) this.getPeer()?.fillAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashOffset(value: number | string): this { + public strokeDashOffset(value: number | string): this { if (this.checkPriority("strokeDashOffset")) { const value_casted = value as (number | string) this.getPeer()?.strokeDashOffsetAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashArray(value: Array): this { + public strokeDashArray(value: Array): this { if (this.checkPriority("strokeDashArray")) { const value_casted = value as (Array) this.getPeer()?.strokeDashArrayAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineCap(value: LineCapStyle): this { + public strokeLineCap(value: LineCapStyle): this { if (this.checkPriority("strokeLineCap")) { const value_casted = value as (LineCapStyle) this.getPeer()?.strokeLineCapAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineJoin(value: LineJoinStyle): this { + public strokeLineJoin(value: LineJoinStyle): this { if (this.checkPriority("strokeLineJoin")) { const value_casted = value as (LineJoinStyle) this.getPeer()?.strokeLineJoinAttribute(value_casted) @@ -115,7 +115,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeMiterLimit(value: number | string): this { + public strokeMiterLimit(value: number | string): this { if (this.checkPriority("strokeMiterLimit")) { const value_casted = value as (number | string) this.getPeer()?.strokeMiterLimitAttribute(value_casted) @@ -124,7 +124,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeOpacity(value: number | string | Resource): this { + public strokeOpacity(value: number | string | Resource): this { if (this.checkPriority("strokeOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.strokeOpacityAttribute(value_casted) @@ -133,7 +133,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillOpacity(value: number | string | Resource): this { + public fillOpacity(value: number | string | Resource): this { if (this.checkPriority("fillOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fillOpacityAttribute(value_casted) @@ -142,7 +142,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: number | string): this { + public strokeWidth(value: number | string): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (number | string) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -151,7 +151,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - antiAlias(value: boolean): this { + public antiAlias(value: boolean): this { if (this.checkPriority("antiAlias")) { const value_casted = value as (boolean) this.getPeer()?.antiAliasAttribute(value_casted) @@ -160,7 +160,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mesh(value: Array, column: number, row: number): this { + public mesh(value: Array, column: number, row: number): this { if (this.checkPriority("mesh")) { const value_casted = value as (Array) const column_casted = column as (number) diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts index c922f6816..dae7398e9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return (this.peer as ArkSideBarContainerPeer) } /** @memo */ - setSideBarContainerOptions(type?: SideBarContainerType): this { + public setSideBarContainerOptions(type?: SideBarContainerType): this { if (this.checkPriority("setSideBarContainerOptions")) { const type_casted = type as (SideBarContainerType | undefined) this.getPeer()?.setSideBarContainerOptionsAttribute(type_casted) @@ -44,7 +44,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showSideBar(value: boolean): this { + public showSideBar(value: boolean): this { if (this.checkPriority("showSideBar")) { const value_casted = value as (boolean) this.getPeer()?.showSideBarAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controlButton(value: ButtonStyle): this { + public controlButton(value: ButtonStyle): this { if (this.checkPriority("controlButton")) { const value_casted = value as (ButtonStyle) this.getPeer()?.controlButtonAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showControlButton(value: boolean): this { + public showControlButton(value: boolean): this { if (this.checkPriority("showControlButton")) { const value_casted = value as (boolean) this.getPeer()?.showControlButtonAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sideBarWidth(value: number | Length): this { + public sideBarWidth(value: number | Length): this { if (this.checkPriority("sideBarWidth")) { const value_type = runtimeType(value) if ((((RuntimeType.NUMBER == value_type)))) { @@ -98,7 +98,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minSideBarWidth(value: number | Length): this { + public minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) if ((((RuntimeType.NUMBER == value_type)))) { @@ -116,7 +116,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxSideBarWidth(value: number | Length): this { + public maxSideBarWidth(value: number | Length): this { if (this.checkPriority("maxSideBarWidth")) { const value_type = runtimeType(value) if ((((RuntimeType.NUMBER == value_type)))) { @@ -134,7 +134,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoHide(value: boolean): this { + public autoHide(value: boolean): this { if (this.checkPriority("autoHide")) { const value_casted = value as (boolean) this.getPeer()?.autoHideAttribute(value_casted) @@ -143,7 +143,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sideBarPosition(value: SideBarPosition): this { + public sideBarPosition(value: SideBarPosition): this { if (this.checkPriority("sideBarPosition")) { const value_casted = value as (SideBarPosition) this.getPeer()?.sideBarPositionAttribute(value_casted) @@ -152,7 +152,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerStyle): this { + public divider(value?: DividerStyle): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerStyle | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -161,7 +161,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minContentWidth(value: Dimension): this { + public minContentWidth(value: Dimension): this { if (this.checkPriority("minContentWidth")) { const value_casted = value as (Dimension) this.getPeer()?.minContentWidthAttribute(value_casted) @@ -170,10 +170,10 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_showSideBar(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_showSideBar")) { + public _onChangeEvent_showSideBar(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_showSideBar")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_showSideBarAttribute(callback_casted) + this.getPeer()?._onChangeEvent_showSideBarAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkSlider.ts b/arkoala-arkts/arkui/src/generated/ArkSlider.ts index 9bc19eede..3564903b5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSlider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSlider.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -24,9 +24,10 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, LinearGradient_common, ContentModifier } from "./ArkCommonInterfaces" +import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions } from "./ArkSliderInterfaces" import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr } from "./ArkUnitsInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkSliderComponent extends ArkCommonMethodComponent { @@ -34,7 +35,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return (this.peer as ArkSliderPeer) } /** @memo */ - setSliderOptions(options?: SliderOptions): this { + public setSliderOptions(options?: SliderOptions): this { if (this.checkPriority("setSliderOptions")) { const options_casted = options as (SliderOptions | undefined) this.getPeer()?.setSliderOptionsAttribute(options_casted) @@ -43,7 +44,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockColor(value: ResourceColor): this { + public blockColor(value: ResourceColor): this { if (this.checkPriority("blockColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.blockColorAttribute(value_casted) @@ -52,16 +53,16 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackColor(value: ResourceColor | LinearGradient_common): this { + public trackColor(value: ResourceColor | LinearGradient): this { if (this.checkPriority("trackColor")) { - const value_casted = value as (ResourceColor | LinearGradient_common) + const value_casted = value as (ResourceColor | LinearGradient) this.getPeer()?.trackColorAttribute(value_casted) return this } return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -70,7 +71,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minLabel(value: string): this { + public minLabel(value: string): this { if (this.checkPriority("minLabel")) { const value_casted = value as (string) this.getPeer()?.minLabelAttribute(value_casted) @@ -79,7 +80,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLabel(value: string): this { + public maxLabel(value: string): this { if (this.checkPriority("maxLabel")) { const value_casted = value as (string) this.getPeer()?.maxLabelAttribute(value_casted) @@ -88,7 +89,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showSteps(value: boolean): this { + public showSteps(value: boolean): this { if (this.checkPriority("showSteps")) { const value_casted = value as (boolean) this.getPeer()?.showStepsAttribute(value_casted) @@ -97,7 +98,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackThickness(value: Length): this { + public trackThickness(value: Length): this { if (this.checkPriority("trackThickness")) { const value_casted = value as (Length) this.getPeer()?.trackThicknessAttribute(value_casted) @@ -106,7 +107,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: number,mode: SliderChangeMode) => void)): this { + public onChange(value: ((value: number,mode: SliderChangeMode) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: number,mode: SliderChangeMode) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -115,7 +116,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockBorderColor(value: ResourceColor): this { + public blockBorderColor(value: ResourceColor): this { if (this.checkPriority("blockBorderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.blockBorderColorAttribute(value_casted) @@ -124,7 +125,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockBorderWidth(value: Length): this { + public blockBorderWidth(value: Length): this { if (this.checkPriority("blockBorderWidth")) { const value_casted = value as (Length) this.getPeer()?.blockBorderWidthAttribute(value_casted) @@ -133,7 +134,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stepColor(value: ResourceColor): this { + public stepColor(value: ResourceColor): this { if (this.checkPriority("stepColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.stepColorAttribute(value_casted) @@ -142,7 +143,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackBorderRadius(value: Length): this { + public trackBorderRadius(value: Length): this { if (this.checkPriority("trackBorderRadius")) { const value_casted = value as (Length) this.getPeer()?.trackBorderRadiusAttribute(value_casted) @@ -151,7 +152,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBorderRadius(value: Dimension): this { + public selectedBorderRadius(value: Dimension): this { if (this.checkPriority("selectedBorderRadius")) { const value_casted = value as (Dimension) this.getPeer()?.selectedBorderRadiusAttribute(value_casted) @@ -160,7 +161,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockSize(value: SizeOptions): this { + public blockSize(value: SizeOptions): this { if (this.checkPriority("blockSize")) { const value_casted = value as (SizeOptions) this.getPeer()?.blockSizeAttribute(value_casted) @@ -169,7 +170,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockStyle(value: SliderBlockStyle): this { + public blockStyle(value: SliderBlockStyle): this { if (this.checkPriority("blockStyle")) { const value_casted = value as (SliderBlockStyle) this.getPeer()?.blockStyleAttribute(value_casted) @@ -178,7 +179,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stepSize(value: Length): this { + public stepSize(value: Length): this { if (this.checkPriority("stepSize")) { const value_casted = value as (Length) this.getPeer()?.stepSizeAttribute(value_casted) @@ -187,7 +188,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sliderInteractionMode(value: SliderInteraction): this { + public sliderInteractionMode(value: SliderInteraction): this { if (this.checkPriority("sliderInteractionMode")) { const value_casted = value as (SliderInteraction) this.getPeer()?.sliderInteractionModeAttribute(value_casted) @@ -196,7 +197,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minResponsiveDistance(value: number): this { + public minResponsiveDistance(value: number): this { if (this.checkPriority("minResponsiveDistance")) { const value_casted = value as (number) this.getPeer()?.minResponsiveDistanceAttribute(value_casted) @@ -205,7 +206,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -214,7 +215,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - slideRange(value: SlideRange): this { + public slideRange(value: SlideRange): this { if (this.checkPriority("slideRange")) { const value_casted = value as (SlideRange) this.getPeer()?.slideRangeAttribute(value_casted) @@ -223,7 +224,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showTips(value: boolean, content?: ResourceStr): this { + public showTips(value: boolean, content?: ResourceStr): this { if (this.checkPriority("showTips")) { const value_casted = value as (boolean) const content_casted = content as (ResourceStr | undefined) @@ -233,10 +234,10 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_value(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((index: number) => void)) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts index 4b5fccc08..c58fdf173 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts @@ -21,11 +21,8 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { Axis } from "./ArkEnumsInterfaces" import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from "./ArkUnitsInterfaces" -import { CircleAttribute } from "./ArkCircleInterfaces" -import { EllipseAttribute } from "./ArkEllipseInterfaces" -import { PathAttribute } from "./ArkPathInterfaces" -import { RectAttribute } from "./ArkRectInterfaces" -import { CommonConfiguration, CommonMethod, LinearGradient_common, ContentModifier } from "./ArkCommonInterfaces" +import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" export enum SliderStyle { OUT_SET = 0, @@ -70,7 +67,7 @@ export enum SliderBlockType { export interface SliderBlockStyle { type: SliderBlockType; image?: ResourceStr; - shape?: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute; + shape?: string; } export type SliderTriggerChangeCallback = (value: number, mode: SliderChangeMode) => void; export interface SliderConfiguration extends CommonConfiguration { @@ -83,7 +80,7 @@ export interface SliderConfiguration extends CommonConfiguration SliderAttribute; export interface SliderAttribute extends CommonMethod { blockColor: ResourceColor; - trackColor: ResourceColor | LinearGradient_common; + trackColor: ResourceColor | LinearGradient; selectedColor: ResourceColor; minLabel: string; maxLabel: string; @@ -100,6 +97,6 @@ export interface SliderAttribute extends CommonMethod { stepSize: Length; sliderInteractionMode: SliderInteraction; minResponsiveDistance: number; - contentModifier: ContentModifier; + contentModifier: ContentModifier; slideRange: SlideRange; } diff --git a/arkoala-arkts/arkui/src/generated/ArkSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSpan.ts index a3e380872..031e3cc89 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { return (this.peer as ArkBaseSpanPeer) } /** @memo */ - textBackgroundStyle(value: TextBackgroundStyle): this { + public textBackgroundStyle(value: TextBackgroundStyle): this { if (this.checkPriority("textBackgroundStyle")) { const value_casted = value as (TextBackgroundStyle) this.getPeer()?.textBackgroundStyleAttribute(value_casted) @@ -45,7 +45,7 @@ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - baselineOffset(value: LengthMetrics): this { + public baselineOffset(value: LengthMetrics): this { if (this.checkPriority("baselineOffset")) { const value_casted = value as (LengthMetrics) this.getPeer()?.baselineOffsetAttribute(value_casted) @@ -64,7 +64,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return (this.peer as ArkSpanPeer) } /** @memo */ - setSpanOptions(value: string | Resource): this { + public setSpanOptions(value: string | Resource): this { if (this.checkPriority("setSpanOptions")) { const value_casted = value as (string | Resource) this.getPeer()?.setSpanOptionsAttribute(value_casted) @@ -73,7 +73,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -82,7 +82,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -91,7 +91,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -100,7 +100,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -109,7 +109,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -118,7 +118,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -127,7 +127,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - decoration(value: DecorationStyleInterface): this { + public decoration(value: DecorationStyleInterface): this { if (this.checkPriority("decoration")) { const value_casted = value as (DecorationStyleInterface) this.getPeer()?.decorationAttribute(value_casted) @@ -136,7 +136,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - letterSpacing(value: number | string): this { + public letterSpacing(value: number | string): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -145,7 +145,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - textCase(value: TextCase): this { + public textCase(value: TextCase): this { if (this.checkPriority("textCase")) { const value_casted = value as (TextCase) this.getPeer()?.textCaseAttribute(value_casted) @@ -154,7 +154,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - lineHeight(value: Length): this { + public lineHeight(value: Length): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (Length) this.getPeer()?.lineHeightAttribute(value_casted) @@ -163,7 +163,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts new file mode 100644 index 000000000..0e6e1278c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -0,0 +1,57 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +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 { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.writeSpringProp(prop) + const retval = ArkUIGeneratedNativeModule._SpringMotion_ctor(start, end, velocity, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + 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) + this.peer = new Finalizable(ctorPtr, SpringMotion.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 new file mode 100644 index 000000000..ae44f7844 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.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 { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +import { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SpringProp implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(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) + this.peer = new Finalizable(ctorPtr, SpringProp.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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 c6ecf32d8..da0d9d31d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_SslErrorHandler } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class SslErrorHandler implements MaterializedBase { peer?: Finalizable | undefined @@ -41,11 +40,11 @@ export class SslErrorHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SslErrorHandler_getFinalizer() } - handleConfirm(): void { + public handleConfirm(): void { this.handleConfirm_serialize() return } - handleCancel(): void { + public handleCancel(): void { this.handleCancel_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkStack.ts b/arkoala-arkts/arkui/src/generated/ArkStack.ts index 0aa6515ee..b09cb6c9e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStack.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkStackComponent extends ArkCommonMethodComponent { return (this.peer as ArkStackPeer) } /** @memo */ - setStackOptions(options?: StackOptions): this { + public setStackOptions(options?: StackOptions): this { if (this.checkPriority("setStackOptions")) { const options_casted = options as (StackOptions | undefined) this.getPeer()?.setStackOptionsAttribute(options_casted) @@ -41,7 +41,7 @@ export class ArkStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignContent(value: Alignment): this { + public alignContent(value: Alignment): this { if (this.checkPriority("alignContent")) { const value_casted = value as (Alignment) this.getPeer()?.alignContentAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts index cdf23cb3e..3465917b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/ArkStepper.ts b/arkoala-arkts/arkui/src/generated/ArkStepper.ts index 4a2ea57e4..3faa5d147 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepper.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return (this.peer as ArkStepperPeer) } /** @memo */ - setStepperOptions(value?: Literal_Number_index): this { + public setStepperOptions(value?: Literal_Number_index): this { if (this.checkPriority("setStepperOptions")) { const value_casted = value as (Literal_Number_index | undefined) this.getPeer()?.setStepperOptionsAttribute(value_casted) @@ -42,7 +42,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) this.getPeer()?.onFinishAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSkip(value: (() => void)): this { + public onSkip(value: (() => void)): this { if (this.checkPriority("onSkip")) { const value_casted = value as ((() => void)) this.getPeer()?.onSkipAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((first: number,last: number) => void)): this { + public onChange(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNext(value: ((first: number,last: number) => void)): this { + public onNext(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onNext")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onNextAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPrevious(value: ((first: number,last: number) => void)): this { + public onPrevious(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onPrevious")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onPreviousAttribute(value_casted) @@ -87,10 +87,10 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_index(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_index")) { + public _onChangeEvent_index(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - this.getPeer()?.__onChangeEvent_indexAttribute(callback_casted) + this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts index 681f78129..017db48e7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -31,7 +31,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkStepperItemPeer) } /** @memo */ - setStepperItemOptions(): this { + public setStepperItemOptions(): this { if (this.checkPriority("setStepperItemOptions")) { this.getPeer()?.setStepperItemOptionsAttribute() return this @@ -39,7 +39,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - prevLabel(value: string): this { + public prevLabel(value: string): this { if (this.checkPriority("prevLabel")) { const value_casted = value as (string) this.getPeer()?.prevLabelAttribute(value_casted) @@ -48,7 +48,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nextLabel(value: string): this { + public nextLabel(value: string): this { if (this.checkPriority("nextLabel")) { const value_casted = value as (string) this.getPeer()?.nextLabelAttribute(value_casted) @@ -57,7 +57,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - status(value?: ItemState): this { + public status(value?: ItemState): this { if (this.checkPriority("status")) { const value_casted = value as (ItemState | undefined) this.getPeer()?.statusAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index 6854a895c..e9d293f38 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -18,14 +18,13 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" -import { INTERFACE_StyledStringController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface StyledStringController { setStyledString(styledString: StyledString): void @@ -47,12 +46,12 @@ export class StyledStringControllerInternal implements MaterializedBase,StyledSt static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._StyledStringController_getFinalizer() } - setStyledString(styledString: StyledString): void { + public setStyledString(styledString: StyledString): void { const styledString_casted = styledString as (StyledString) this.setStyledString_serialize(styledString_casted) return } - getStyledString(): MutableStyledString { + public getStyledString(): MutableStyledString { return this.getStyledString_serialize() } private setStyledString_serialize(styledString: StyledString): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts index 43efb0aad..b4b1b24c4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts @@ -20,15 +20,12 @@ 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, SizeOptions, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { ShadowOptions } from "./ArkCommonInterfaces" -import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { FontWeight, FontStyle, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { Callback_ClickEvent_Void, Callback_GestureEvent_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" import { GestureEvent } from "./ArkGestureEventMaterialized" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" -import { CustomSpan } from "./ArkCustomSpanMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" export interface StyleOptions { start?: number; @@ -42,13 +39,6 @@ export interface SpanStyle { styledKey: StyledStringKey; styledValue: StyledStringValue; } -export interface TextStyle_styled_string { - fontColor?: ResourceColor; - fontFamily?: string; - fontSize?: number; - fontWeight?: number; - fontStyle?: FontStyle; -} export interface TextStyleInterface { fontColor?: ResourceColor; fontFamily?: ResourceStr; @@ -56,42 +46,15 @@ export interface TextStyleInterface { fontWeight?: number | FontWeight | string; fontStyle?: FontStyle; } -export interface DecorationStyle { - type: TextDecorationType; - color?: ResourceColor; - style?: TextDecorationStyle; -} export interface DecorationStyleInterface { type: TextDecorationType; color?: ResourceColor; style?: TextDecorationStyle; } -export interface BaselineOffsetStyle { - baselineOffset: number; -} -export interface LetterSpacingStyle { - letterSpacing: number; -} -export interface TextShadowStyle { - textShadow: Array; -} -export interface BackgroundColorStyle { - textBackgroundStyle: TextBackgroundStyle; -} -export interface GestureStyle { -} export interface GestureStyleInterface { onClick?: ((event: ClickEvent) => void); onLongPress?: ((event: GestureEvent) => void); } -export interface ParagraphStyle { - textAlign?: TextAlign; - textIndent?: number; - maxLines?: number; - overflow?: TextOverflow; - wordBreak?: WordBreak; - leadingMargin?: number | LeadingMarginPlaceholder; -} export interface ParagraphStyleInterface { textAlign?: TextAlign; textIndent?: LengthMetrics; @@ -100,13 +63,9 @@ export interface ParagraphStyleInterface { wordBreak?: WordBreak; leadingMargin?: LengthMetrics | LeadingMarginPlaceholder; } -export interface LineHeightStyle { - lineHeight: number; -} -export interface UrlStyle { - url: string; +export interface StyledStringValue { + stub: string; } -export type StyledStringValue = TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle; export enum StyledStringKey { FONT = 0, DECORATION = 1, @@ -122,13 +81,6 @@ export enum StyledStringKey { CUSTOM_SPAN = 400, USER_DATA = 500 } -export interface ImageAttachment { - value: PixelMap; - size?: SizeOptions; - verticalAlign?: ImageSpanAlignment; - objectFit?: ImageFit; - layoutStyle?: ImageAttachmentLayoutStyle; -} export interface ImageAttachmentInterface { value: PixelMap; size?: SizeOptions; diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts index 0462540ca..2fd6c3fa9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -16,16 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" -import { INTERFACE_StyledString } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class StyledString implements MaterializedBase { peer?: Finalizable | undefined @@ -79,37 +79,37 @@ export class StyledString implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._StyledString_getFinalizer() } - getString(): string { + public getString(): string { return this.getString_serialize() } - getStyles(start: number, length: number, styledKey?: StyledStringKey): Array { + public getStyles(start: number, length: number, styledKey?: StyledStringKey): Array { const start_casted = start as (number) const length_casted = length as (number) const styledKey_casted = styledKey as (StyledStringKey | undefined) return this.getStyles_serialize(start_casted, length_casted, styledKey_casted) } - equals(other: StyledString): boolean { + public equals(other: StyledString): boolean { const other_casted = other as (StyledString) return this.equals_serialize(other_casted) } - subStyledString(start: number, length?: number): StyledString { + public subStyledString(start: number, length?: number): StyledString { const start_casted = start as (number) const length_casted = length as (number | undefined) return this.subStyledString_serialize(start_casted, length_casted) } - static fromHtml(html: string): Promise { + public static fromHtml(html: string): Promise { const html_casted = html as (string) return StyledString.fromHtml_serialize(html_casted) } - static toHtml(styledString: StyledString): string { + public static toHtml(styledString: StyledString): string { const styledString_casted = styledString as (StyledString) return StyledString.toHtml_serialize(styledString_casted) } - static marshalling(styledString: StyledString): NativeBuffer { + public static marshalling(styledString: StyledString): NativeBuffer { const styledString_casted = styledString as (StyledString) return StyledString.marshalling_serialize(styledString_casted) } - static unmarshalling(buffer: NativeBuffer): Promise { + public static unmarshalling(buffer: NativeBuffer): Promise { const buffer_casted = buffer as (NativeBuffer) return StyledString.unmarshalling_serialize(buffer_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts index 7cda0f1d8..35b1aa5a9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts @@ -15,7 +15,7 @@ export class SubTabBarStyle { constructor(content: ResourceStr | ResourceStr | ComponentContent) { this._content = content } - static of(content: ResourceStr | ResourceStr | ComponentContent): SubTabBarStyle { + public static of(content: ResourceStr | ResourceStr | ComponentContent): SubTabBarStyle { return new SubTabBarStyle(content) } indicator(value: IndicatorStyle): this { @@ -34,7 +34,7 @@ export class SubTabBarStyle { this._labelStyle = value return this } - padding(value: Padding | Dimension | LocalizedPadding): this { + public padding(value: Padding | Dimension | LocalizedPadding): this { this._padding = value return this } diff --git a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts index 6fdae806b..015942e63 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_SubmitEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SubmitEvent { text: string @@ -51,7 +50,7 @@ export class SubmitEventInternal implements MaterializedBase,SubmitEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SubmitEvent_getFinalizer() } - keepEditableState(): void { + public keepEditableState(): void { this.keepEditableState_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index e33a5af5a..fdd1162a4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" -import { INTERFACE_SwipeGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SwipeGestureEvent { angle: number diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts index 57076f0ed..32db822c0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -40,7 +40,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return (this.peer as ArkSwiperPeer) } /** @memo */ - setSwiperOptions(controller?: SwiperController): this { + public setSwiperOptions(controller?: SwiperController): this { if (this.checkPriority("setSwiperOptions")) { const controller_casted = controller as (SwiperController | undefined) this.getPeer()?.setSwiperOptionsAttribute(controller_casted) @@ -49,7 +49,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - index(value: number): this { + public index(value: number): this { if (this.checkPriority("index")) { const value_casted = value as (number) this.getPeer()?.indexAttribute(value_casted) @@ -58,7 +58,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoPlay(value: boolean): this { + public autoPlay(value: boolean): this { if (this.checkPriority("autoPlay")) { const value_casted = value as (boolean) this.getPeer()?.autoPlayAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - interval(value: number): this { + public interval(value: number): this { if (this.checkPriority("interval")) { const value_casted = value as (number) this.getPeer()?.intervalAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean): this { + 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)))) { @@ -94,7 +94,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - duration(value: number): this { + public duration(value: number): this { if (this.checkPriority("duration")) { const value_casted = value as (number) this.getPeer()?.durationAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - itemSpace(value: number | string): this { + public itemSpace(value: number | string): this { if (this.checkPriority("itemSpace")) { const value_casted = value as (number | string) this.getPeer()?.itemSpaceAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - displayMode(value: SwiperDisplayMode): this { + public displayMode(value: SwiperDisplayMode): this { if (this.checkPriority("displayMode")) { const value_casted = value as (SwiperDisplayMode) this.getPeer()?.displayModeAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cachedCount(value: number): this { + public cachedCount(value: number): this { if (this.checkPriority("cachedCount")) { const value_casted = value as (number) this.getPeer()?.cachedCountAttribute(value_casted) @@ -148,7 +148,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - effectMode(value: EdgeEffect): this { + public effectMode(value: EdgeEffect): this { if (this.checkPriority("effectMode")) { const value_casted = value as (EdgeEffect) this.getPeer()?.effectModeAttribute(value_casted) @@ -157,7 +157,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disableSwipe(value: boolean): this { + public disableSwipe(value: boolean): this { if (this.checkPriority("disableSwipe")) { const value_casted = value as (boolean) this.getPeer()?.disableSwipeAttribute(value_casted) @@ -166,7 +166,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - curve(value: Curve | string | ICurve): this { + public curve(value: Curve | string | ICurve): this { if (this.checkPriority("curve")) { const value_casted = value as (Curve | string | ICurve) this.getPeer()?.curveAttribute(value_casted) @@ -175,7 +175,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -184,7 +184,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorStyle(value?: IndicatorStyle): this { + public indicatorStyle(value?: IndicatorStyle): this { if (this.checkPriority("indicatorStyle")) { const value_casted = value as (IndicatorStyle | undefined) this.getPeer()?.indicatorStyleAttribute(value_casted) @@ -193,7 +193,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationStart(value: OnSwiperAnimationStartCallback): this { + public onAnimationStart(value: OnSwiperAnimationStartCallback): this { if (this.checkPriority("onAnimationStart")) { const value_casted = value as (OnSwiperAnimationStartCallback) this.getPeer()?.onAnimationStartAttribute(value_casted) @@ -202,7 +202,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationEnd(value: OnSwiperAnimationEndCallback): this { + public onAnimationEnd(value: OnSwiperAnimationEndCallback): this { if (this.checkPriority("onAnimationEnd")) { const value_casted = value as (OnSwiperAnimationEndCallback) this.getPeer()?.onAnimationEndAttribute(value_casted) @@ -211,7 +211,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGestureSwipe(value: OnSwiperGestureSwipeCallback): this { + public onGestureSwipe(value: OnSwiperGestureSwipeCallback): this { if (this.checkPriority("onGestureSwipe")) { const value_casted = value as (OnSwiperGestureSwipeCallback) this.getPeer()?.onGestureSwipeAttribute(value_casted) @@ -220,7 +220,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: SwiperNestedScrollMode): this { + public nestedScroll(value: SwiperNestedScrollMode): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (SwiperNestedScrollMode) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -229,7 +229,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customContentTransition(value: SwiperContentAnimatedTransition): this { + public customContentTransition(value: SwiperContentAnimatedTransition): this { if (this.checkPriority("customContentTransition")) { const value_casted = value as (SwiperContentAnimatedTransition) this.getPeer()?.customContentTransitionAttribute(value_casted) @@ -238,7 +238,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentDidScroll(value: ContentDidScrollCallback): this { + public onContentDidScroll(value: ContentDidScrollCallback): this { if (this.checkPriority("onContentDidScroll")) { const value_casted = value as (ContentDidScrollCallback) this.getPeer()?.onContentDidScrollAttribute(value_casted) @@ -247,7 +247,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorInteractive(value: boolean): this { + public indicatorInteractive(value: boolean): this { if (this.checkPriority("indicatorInteractive")) { const value_casted = value as (boolean) this.getPeer()?.indicatorInteractiveAttribute(value_casted) @@ -256,7 +256,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - displayArrow(value: ArrowStyle | boolean, isHoverShow?: boolean): this { + public displayArrow(value: ArrowStyle | boolean, isHoverShow?: boolean): this { if (this.checkPriority("displayArrow")) { const value_casted = value as (ArrowStyle | boolean) const isHoverShow_casted = isHoverShow as (boolean | undefined) @@ -266,7 +266,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - displayCount(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): this { + public displayCount(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): this { if (this.checkPriority("displayCount")) { const value_casted = value as (number | string | SwiperAutoFill) const swipeByGroup_casted = swipeByGroup as (boolean | undefined) @@ -276,7 +276,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - prevMargin(value: Length, ignoreBlank?: boolean): this { + public prevMargin(value: Length, ignoreBlank?: boolean): this { if (this.checkPriority("prevMargin")) { const value_casted = value as (Length) const ignoreBlank_casted = ignoreBlank as (boolean | undefined) @@ -286,7 +286,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nextMargin(value: Length, ignoreBlank?: boolean): this { + public nextMargin(value: Length, ignoreBlank?: boolean): this { if (this.checkPriority("nextMargin")) { const value_casted = value as (Length) const ignoreBlank_casted = ignoreBlank as (boolean | undefined) @@ -296,10 +296,10 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_index(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_index")) { + public _onChangeEvent_index(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - this.getPeer()?.__onChangeEvent_indexAttribute(callback_casted) + this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index 70599bc00..63f965036 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_SwiperContentTransitionProxy } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SwiperContentTransitionProxy { selectedIndex: number @@ -72,7 +71,7 @@ export class SwiperContentTransitionProxyInternal implements MaterializedBase,Sw static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SwiperContentTransitionProxy_getFinalizer() } - finishTransition(): void { + public finishTransition(): void { this.finishTransition_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts index fcf2d2966..d7adebdbe 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { VoidCallback } from "./ArkUnitsInterfaces" -import { INTERFACE_SwiperController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class SwiperController implements MaterializedBase { peer?: Finalizable | undefined @@ -42,18 +41,18 @@ export class SwiperController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SwiperController_getFinalizer() } - showNext(): undefined { + public showNext(): undefined { return this.showNext_serialize() } - showPrevious(): undefined { + public showPrevious(): undefined { return this.showPrevious_serialize() } - changeIndex(index: number, useAnimation?: boolean): undefined { + public changeIndex(index: number, useAnimation?: boolean): undefined { const index_casted = index as (number) const useAnimation_casted = useAnimation as (boolean | undefined) return this.changeIndex_serialize(index_casted, useAnimation_casted) } - finishAnimation(callback_?: VoidCallback): undefined { + public finishAnimation(callback_?: VoidCallback): undefined { const callback__casted = callback_ as (VoidCallback | undefined) return this.finishAnimation_serialize(callback__casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts index 757948c70..f87c12063 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return (this.peer as ArkSymbolSpanPeer) } /** @memo */ - setSymbolSpanOptions(value: Resource): this { + public setSymbolSpanOptions(value: Resource): this { if (this.checkPriority("setSymbolSpanOptions")) { const value_casted = value as (Resource) this.getPeer()?.setSymbolSpanOptionsAttribute(value_casted) @@ -45,7 +45,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -54,7 +54,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: Array): this { + public fontColor(value: Array): this { if (this.checkPriority("fontColor")) { const value_casted = value as (Array) this.getPeer()?.fontColorAttribute(value_casted) @@ -63,7 +63,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -72,7 +72,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - effectStrategy(value: SymbolEffectStrategy): this { + public effectStrategy(value: SymbolEffectStrategy): this { if (this.checkPriority("effectStrategy")) { const value_casted = value as (SymbolEffectStrategy) this.getPeer()?.effectStrategyAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderingStrategy(value: SymbolRenderingStrategy): this { + public renderingStrategy(value: SymbolRenderingStrategy): this { if (this.checkPriority("renderingStrategy")) { const value_casted = value as (SymbolRenderingStrategy) this.getPeer()?.renderingStrategyAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts index 3cbc01fb7..df480cdb2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -32,5 +32,5 @@ export interface SymbolSpanAttribute extends CommonMethod { fontWeight: number | FontWeight | string; effectStrategy: SymbolEffectStrategy; renderingStrategy: SymbolRenderingStrategy; - attributeModifier: AttributeModifier; + attributeModifier: AttributeModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts index b08403fac..d06f6fb44 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return (this.peer as ArkSymbolGlyphPeer) } /** @memo */ - setSymbolGlyphOptions(value?: Resource): this { + public setSymbolGlyphOptions(value?: Resource): this { if (this.checkPriority("setSymbolGlyphOptions")) { const value_casted = value as (Resource | undefined) this.getPeer()?.setSymbolGlyphOptionsAttribute(value_casted) @@ -43,7 +43,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: Array): this { + public fontColor(value: Array): this { if (this.checkPriority("fontColor")) { const value_casted = value as (Array) this.getPeer()?.fontColorAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - effectStrategy(value: SymbolEffectStrategy): this { + public effectStrategy(value: SymbolEffectStrategy): this { if (this.checkPriority("effectStrategy")) { const value_casted = value as (SymbolEffectStrategy) this.getPeer()?.effectStrategyAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderingStrategy(value: SymbolRenderingStrategy): this { + public renderingStrategy(value: SymbolRenderingStrategy): this { if (this.checkPriority("renderingStrategy")) { const value_casted = value as (SymbolRenderingStrategy) this.getPeer()?.renderingStrategyAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - symbolEffect(symbolEffect: SymbolEffect, isActive?: boolean | undefined | number | undefined): this { + public symbolEffect(symbolEffect: SymbolEffect, isActive?: boolean | undefined | number | undefined): this { if (this.checkPriority("symbolEffect")) { const symbolEffect_type = runtimeType(symbolEffect) const isActive_type = runtimeType(isActive) diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts index a435a3d83..13ec11198 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts @@ -48,26 +48,6 @@ export enum EffectFillStyle { } export interface SymbolEffect { } -export interface ScaleSymbolEffect extends SymbolEffect { - scope?: EffectScope; - direction?: EffectDirection; -} -export interface HierarchicalSymbolEffect extends SymbolEffect { - fillStyle?: EffectFillStyle; -} -export interface AppearSymbolEffect extends SymbolEffect { - scope?: EffectScope; -} -export interface DisappearSymbolEffect extends SymbolEffect { - scope?: EffectScope; -} -export interface BounceSymbolEffect extends SymbolEffect { - scope?: EffectScope; - direction?: EffectDirection; -} -export interface ReplaceSymbolEffect extends SymbolEffect { - scope?: EffectScope; -} export interface PulseSymbolEffect extends SymbolEffect { } export interface SymbolGlyphAttribute extends CommonMethod { diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts index 70a19c18a..45a092cce 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return (this.peer as ArkTabContentPeer) } /** @memo */ - setTabContentOptions(): this { + public setTabContentOptions(): this { if (this.checkPriority("setTabContentOptions")) { this.getPeer()?.setTabContentOptionsAttribute() return this @@ -44,7 +44,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - tabBar(value: SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions): this { + 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))))) { @@ -62,7 +62,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillShow(value: VoidCallback): this { + public onWillShow(value: VoidCallback): this { if (this.checkPriority("onWillShow")) { const value_casted = value as (VoidCallback) this.getPeer()?.onWillShowAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillHide(value: VoidCallback): this { + public onWillHide(value: VoidCallback): this { if (this.checkPriority("onWillHide")) { const value_casted = value as (VoidCallback) this.getPeer()?.onWillHideAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index f70a70682..706749167 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_TabContentTransitionProxy } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TabContentTransitionProxy { from: number @@ -58,7 +57,7 @@ export class TabContentTransitionProxyInternal implements MaterializedBase,TabCo static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TabContentTransitionProxy_getFinalizer() } - finishTransition(): void { + public finishTransition(): void { this.finishTransition_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkTabs.ts b/arkoala-arkts/arkui/src/generated/ArkTabs.ts index 276f095ac..318903d67 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabs.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabs.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return (this.peer as ArkTabsPeer) } /** @memo */ - setTabsOptions(options?: TabsOptions): this { + public setTabsOptions(options?: TabsOptions): this { if (this.checkPriority("setTabsOptions")) { const options_casted = options as (TabsOptions | undefined) this.getPeer()?.setTabsOptionsAttribute(options_casted) @@ -44,7 +44,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barPosition(value: BarPosition): this { + public barPosition(value: BarPosition): this { if (this.checkPriority("barPosition")) { const value_casted = value as (BarPosition) this.getPeer()?.barPositionAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - scrollable(value: boolean): this { + public scrollable(value: boolean): this { if (this.checkPriority("scrollable")) { const value_casted = value as (boolean) this.getPeer()?.scrollableAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barMode(value: BarMode, options?: ScrollableBarModeOptions): this { + public barMode(value: BarMode, options?: ScrollableBarModeOptions): this { if (this.checkPriority("barMode")) { const value_type = runtimeType(value) const options_type = runtimeType(options) @@ -91,7 +91,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barWidth(value: Length): this { + public barWidth(value: Length): this { if (this.checkPriority("barWidth")) { const value_casted = value as (Length) this.getPeer()?.barWidthAttribute(value_casted) @@ -100,7 +100,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barHeight(value: Length): this { + public barHeight(value: Length): this { if (this.checkPriority("barHeight")) { const value_casted = value as (Length) this.getPeer()?.barHeightAttribute(value_casted) @@ -109,7 +109,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - animationDuration(value: number): this { + public animationDuration(value: number): this { if (this.checkPriority("animationDuration")) { const value_casted = value as (number) this.getPeer()?.animationDurationAttribute(value_casted) @@ -118,7 +118,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - animationMode(value?: AnimationMode): this { + public animationMode(value?: AnimationMode): this { if (this.checkPriority("animationMode")) { const value_casted = value as (AnimationMode | undefined) this.getPeer()?.animationModeAttribute(value_casted) @@ -127,7 +127,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - edgeEffect(value?: EdgeEffect): this { + public edgeEffect(value?: EdgeEffect): this { if (this.checkPriority("edgeEffect")) { const value_casted = value as (EdgeEffect | undefined) this.getPeer()?.edgeEffectAttribute(value_casted) @@ -136,7 +136,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -145,7 +145,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTabBarClick(value: ((index: number) => void)): this { + public onTabBarClick(value: ((index: number) => void)): this { if (this.checkPriority("onTabBarClick")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onTabBarClickAttribute(value_casted) @@ -154,7 +154,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationStart(value: OnTabsAnimationStartCallback): this { + public onAnimationStart(value: OnTabsAnimationStartCallback): this { if (this.checkPriority("onAnimationStart")) { const value_casted = value as (OnTabsAnimationStartCallback) this.getPeer()?.onAnimationStartAttribute(value_casted) @@ -163,7 +163,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationEnd(value: OnTabsAnimationEndCallback): this { + public onAnimationEnd(value: OnTabsAnimationEndCallback): this { if (this.checkPriority("onAnimationEnd")) { const value_casted = value as (OnTabsAnimationEndCallback) this.getPeer()?.onAnimationEndAttribute(value_casted) @@ -172,7 +172,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGestureSwipe(value: OnTabsGestureSwipeCallback): this { + public onGestureSwipe(value: OnTabsGestureSwipeCallback): this { if (this.checkPriority("onGestureSwipe")) { const value_casted = value as (OnTabsGestureSwipeCallback) this.getPeer()?.onGestureSwipeAttribute(value_casted) @@ -181,7 +181,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fadingEdge(value: boolean): this { + public fadingEdge(value: boolean): this { if (this.checkPriority("fadingEdge")) { const value_casted = value as (boolean) this.getPeer()?.fadingEdgeAttribute(value_casted) @@ -190,7 +190,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerStyle): this { + public divider(value?: DividerStyle): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerStyle | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -199,7 +199,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barOverlap(value: boolean): this { + public barOverlap(value: boolean): this { if (this.checkPriority("barOverlap")) { const value_casted = value as (boolean) this.getPeer()?.barOverlapAttribute(value_casted) @@ -208,7 +208,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barBackgroundColor(value: ResourceColor): this { + public barBackgroundColor(value: ResourceColor): this { if (this.checkPriority("barBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.barBackgroundColorAttribute(value_casted) @@ -217,7 +217,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barGridAlign(value: BarGridColumnOptions): this { + public barGridAlign(value: BarGridColumnOptions): this { if (this.checkPriority("barGridAlign")) { const value_casted = value as (BarGridColumnOptions) this.getPeer()?.barGridAlignAttribute(value_casted) @@ -226,7 +226,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customContentTransition(value: TabsCustomContentTransitionCallback): this { + public customContentTransition(value: TabsCustomContentTransitionCallback): this { if (this.checkPriority("customContentTransition")) { const value_casted = value as (TabsCustomContentTransitionCallback) this.getPeer()?.customContentTransitionAttribute(value_casted) @@ -235,7 +235,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barBackgroundBlurStyle(style: BlurStyle, options?: BackgroundBlurStyleOptions): this { + public barBackgroundBlurStyle(style: BlurStyle, options?: BackgroundBlurStyleOptions): this { if (this.checkPriority("barBackgroundBlurStyle")) { const style_type = runtimeType(style) const options_type = runtimeType(options) @@ -255,7 +255,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barBackgroundEffect(value: BackgroundEffectOptions): this { + public barBackgroundEffect(value: BackgroundEffectOptions): this { if (this.checkPriority("barBackgroundEffect")) { const value_casted = value as (BackgroundEffectOptions) this.getPeer()?.barBackgroundEffectAttribute(value_casted) @@ -264,7 +264,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentWillChange(value: OnTabsContentWillChangeCallback): this { + public onContentWillChange(value: OnTabsContentWillChangeCallback): this { if (this.checkPriority("onContentWillChange")) { const value_casted = value as (OnTabsContentWillChangeCallback) this.getPeer()?.onContentWillChangeAttribute(value_casted) @@ -273,7 +273,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barModeScrollable(options: ScrollableBarModeOptions): this { + public barModeScrollable(options: ScrollableBarModeOptions): this { if (this.checkPriority("barModeScrollable")) { const options_casted = options as (ScrollableBarModeOptions) this.getPeer()?.barModeScrollableAttribute(options_casted) @@ -282,10 +282,10 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_index(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_index")) { + public _onChangeEvent_index(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - this.getPeer()?.__onChangeEvent_indexAttribute(callback_casted) + this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts index 5d1b24f5f..9574aac01 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TranslateOptions } from "./ArkCommonInterfaces" -import { INTERFACE_TabsController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TabsController implements MaterializedBase { peer?: Finalizable | undefined @@ -42,21 +41,21 @@ export class TabsController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TabsController_getFinalizer() } - changeIndex(value: number): void { + public changeIndex(value: number): void { const value_casted = value as (number) this.changeIndex_serialize(value_casted) return } - preloadItems(indices?: Array): Promise { + public preloadItems(indices?: Array): Promise { const indices_casted = indices as (Array | undefined) return this.preloadItems_serialize(indices_casted) } - setTabBarTranslate(translate: TranslateOptions): void { + public setTabBarTranslate(translate: TranslateOptions): void { const translate_casted = translate as (TranslateOptions) this.setTabBarTranslate_serialize(translate_casted) return } - setTabBarOpacity(opacity: number): void { + public setTabBarOpacity(opacity: number): void { const opacity_casted = opacity as (number) this.setTabBarOpacity_serialize(opacity_casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts index 05e83d938..f7289976e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" -import { INTERFACE_TapGestureEvent } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TapGestureEvent { } diff --git a/arkoala-arkts/arkui/src/generated/ArkText.ts b/arkoala-arkts/arkui/src/generated/ArkText.ts index 014593a8f..cf2747d6a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkText.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -41,7 +41,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextPeer) } /** @memo */ - setTextOptions(content?: string | Resource, value?: TextOptions): this { + public setTextOptions(content?: string | Resource, value?: TextOptions): this { if (this.checkPriority("setTextOptions")) { const content_casted = content as (string | Resource | undefined) const value_casted = value as (TextOptions | undefined) @@ -51,7 +51,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(fontValue: Font, options?: FontSettingOptions): this { + public font(fontValue: Font, options?: FontSettingOptions): this { if (this.checkPriority("font")) { const fontValue_type = runtimeType(fontValue) const options_type = runtimeType(options) @@ -71,7 +71,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontScale(value: number | Resource): this { + public minFontScale(value: number | Resource): this { if (this.checkPriority("minFontScale")) { const value_casted = value as (number | Resource) this.getPeer()?.minFontScaleAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontScale(value: number | Resource): this { + public maxFontScale(value: number | Resource): this { if (this.checkPriority("maxFontScale")) { const value_casted = value as (number | Resource) this.getPeer()?.maxFontScaleAttribute(value_casted) @@ -125,7 +125,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -134,7 +134,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(weight: number | FontWeight | string, options?: FontSettingOptions): this { + public fontWeight(weight: number | FontWeight | string, options?: FontSettingOptions): this { if (this.checkPriority("fontWeight")) { const weight_type = runtimeType(weight) const options_type = runtimeType(options) @@ -154,7 +154,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineSpacing(value: LengthMetrics): this { + public lineSpacing(value: LengthMetrics): this { if (this.checkPriority("lineSpacing")) { const value_casted = value as (LengthMetrics) this.getPeer()?.lineSpacingAttribute(value_casted) @@ -163,7 +163,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -172,7 +172,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -181,7 +181,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textOverflow(value: TextOverflowOptions): this { + public textOverflow(value: TextOverflowOptions): this { if (this.checkPriority("textOverflow")) { const value_casted = value as (TextOverflowOptions) this.getPeer()?.textOverflowAttribute(value_casted) @@ -190,7 +190,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -199,7 +199,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLines(value: number): this { + public maxLines(value: number): this { if (this.checkPriority("maxLines")) { const value_casted = value as (number) this.getPeer()?.maxLinesAttribute(value_casted) @@ -208,7 +208,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: DecorationStyleInterface): this { + public decoration(value: DecorationStyleInterface): this { if (this.checkPriority("decoration")) { const value_casted = value as (DecorationStyleInterface) this.getPeer()?.decorationAttribute(value_casted) @@ -217,7 +217,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string): this { + public letterSpacing(value: number | string): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -226,7 +226,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textCase(value: TextCase): this { + public textCase(value: TextCase): this { if (this.checkPriority("textCase")) { const value_casted = value as (TextCase) this.getPeer()?.textCaseAttribute(value_casted) @@ -235,7 +235,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - baselineOffset(value: number | string): this { + public baselineOffset(value: number | string): this { if (this.checkPriority("baselineOffset")) { const value_casted = value as (number | string) this.getPeer()?.baselineOffsetAttribute(value_casted) @@ -244,7 +244,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -253,7 +253,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - draggable(value: boolean): this { + public draggable(value: boolean): this { if (this.checkPriority("draggable")) { const value_casted = value as (boolean) this.getPeer()?.draggableAttribute(value_casted) @@ -262,7 +262,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) @@ -271,7 +271,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { if (this.checkPriority("heightAdaptivePolicy")) { const value_casted = value as (TextHeightAdaptivePolicy) this.getPeer()?.heightAdaptivePolicyAttribute(value_casted) @@ -280,7 +280,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Length): this { + public textIndent(value: Length): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Length) this.getPeer()?.textIndentAttribute(value_casted) @@ -289,7 +289,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wordBreak(value: WordBreak): this { + public wordBreak(value: WordBreak): this { if (this.checkPriority("wordBreak")) { const value_casted = value as (WordBreak) this.getPeer()?.wordBreakAttribute(value_casted) @@ -298,7 +298,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineBreakStrategy(value: LineBreakStrategy): this { + public lineBreakStrategy(value: LineBreakStrategy): this { if (this.checkPriority("lineBreakStrategy")) { const value_casted = value as (LineBreakStrategy) this.getPeer()?.lineBreakStrategyAttribute(value_casted) @@ -307,7 +307,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCopyAttribute(value_casted) @@ -316,7 +316,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -325,7 +325,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -334,7 +334,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - ellipsisMode(value: EllipsisMode): this { + public ellipsisMode(value: EllipsisMode): this { if (this.checkPriority("ellipsisMode")) { const value_casted = value as (EllipsisMode) this.getPeer()?.ellipsisModeAttribute(value_casted) @@ -343,7 +343,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableDataDetector(value: boolean): this { + public enableDataDetector(value: boolean): this { if (this.checkPriority("enableDataDetector")) { const value_casted = value as (boolean) this.getPeer()?.enableDataDetectorAttribute(value_casted) @@ -352,7 +352,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dataDetectorConfig(value: TextDataDetectorConfig): this { + public dataDetectorConfig(value: TextDataDetectorConfig): this { if (this.checkPriority("dataDetectorConfig")) { const value_casted = value as (TextDataDetectorConfig) this.getPeer()?.dataDetectorConfigAttribute(value_casted) @@ -361,7 +361,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: ((first: number,last: number) => void)): this { + public onTextSelectionChange(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) @@ -370,7 +370,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -379,7 +379,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value: boolean): this { + public privacySensitive(value: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -388,7 +388,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textSelectable(value: TextSelectableMode): this { + public textSelectable(value: TextSelectableMode): this { if (this.checkPriority("textSelectable")) { const value_casted = value as (TextSelectableMode) this.getPeer()?.textSelectableAttribute(value_casted) @@ -397,7 +397,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -406,7 +406,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - halfLeading(value: boolean): this { + public halfLeading(value: boolean): this { if (this.checkPriority("halfLeading")) { const value_casted = value as (boolean) this.getPeer()?.halfLeadingAttribute(value_casted) @@ -415,7 +415,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -424,7 +424,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selection(selectionStart: number, selectionEnd: number): this { + public selection(selectionStart: number, selectionEnd: number): this { if (this.checkPriority("selection")) { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) @@ -434,7 +434,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): this { + public bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): this { if (this.checkPriority("bindSelectionMenu")) { const spanType_casted = spanType as (TextSpanType) const content_casted = content as (CustomBuilder) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts index f4f46595c..394dfe475 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -41,7 +41,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextAreaPeer) } /** @memo */ - setTextAreaOptions(value?: TextAreaOptions): this { + public setTextAreaOptions(value?: TextAreaOptions): this { if (this.checkPriority("setTextAreaOptions")) { const value_casted = value as (TextAreaOptions | undefined) this.getPeer()?.setTextAreaOptionsAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderColor(value: ResourceColor): this { + public placeholderColor(value: ResourceColor): this { if (this.checkPriority("placeholderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.placeholderColorAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderFont(value: Font): this { + public placeholderFont(value: Font): this { if (this.checkPriority("placeholderFont")) { const value_casted = value as (Font) this.getPeer()?.placeholderFontAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -131,7 +131,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -140,7 +140,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textOverflow(value: TextOverflow): this { + public textOverflow(value: TextOverflow): this { if (this.checkPriority("textOverflow")) { const value_casted = value as (TextOverflow) this.getPeer()?.textOverflowAttribute(value_casted) @@ -149,7 +149,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Dimension): this { + public textIndent(value: Dimension): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Dimension) this.getPeer()?.textIndentAttribute(value_casted) @@ -158,7 +158,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretStyle(value: CaretStyle): this { + public caretStyle(value: CaretStyle): this { if (this.checkPriority("caretStyle")) { const value_casted = value as (CaretStyle) this.getPeer()?.caretStyleAttribute(value_casted) @@ -167,7 +167,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -176,7 +176,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { + public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) if ((((RuntimeType.FUNCTION == value_type)))) { @@ -194,7 +194,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: EditableTextOnChangeCallback): this { + public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) this.getPeer()?.onChangeAttribute(value_casted) @@ -203,7 +203,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: ((first: number,last: number) => void)): this { + public onTextSelectionChange(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) @@ -212,7 +212,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentScroll(value: ((first: number,last: number) => void)): this { + public onContentScroll(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onContentScrollAttribute(value_casted) @@ -221,7 +221,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChange(value: ((parameter: boolean) => void)): this { + public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onEditChangeAttribute(value_casted) @@ -230,7 +230,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCopyAttribute(value_casted) @@ -239,7 +239,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((breakpoints: string) => void)): this { + public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCutAttribute(value_casted) @@ -248,7 +248,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: ((value: string,event: PasteEvent) => void)): this { + public onPaste(value: ((value: string,event: PasteEvent) => void)): this { if (this.checkPriority("onPaste")) { const value_casted = value as (((value: string,event: PasteEvent) => void)) this.getPeer()?.onPasteAttribute(value_casted) @@ -257,7 +257,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -266,7 +266,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -275,7 +275,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLength(value: number): this { + public maxLength(value: number): this { if (this.checkPriority("maxLength")) { const value_casted = value as (number) this.getPeer()?.maxLengthAttribute(value_casted) @@ -284,7 +284,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - style(value: TextContentStyle): this { + public style(value: TextContentStyle): this { if (this.checkPriority("style")) { const value_casted = value as (TextContentStyle) this.getPeer()?.styleAttribute(value_casted) @@ -293,7 +293,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barState(value: BarState): this { + public barState(value: BarState): this { if (this.checkPriority("barState")) { const value_casted = value as (BarState) this.getPeer()?.barStateAttribute(value_casted) @@ -302,7 +302,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuHidden(value: boolean): this { + public selectionMenuHidden(value: boolean): this { if (this.checkPriority("selectionMenuHidden")) { const value_casted = value as (boolean) this.getPeer()?.selectionMenuHiddenAttribute(value_casted) @@ -311,7 +311,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -320,7 +320,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -329,7 +329,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { if (this.checkPriority("heightAdaptivePolicy")) { const value_casted = value as (TextHeightAdaptivePolicy) this.getPeer()?.heightAdaptivePolicyAttribute(value_casted) @@ -338,7 +338,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLines(value: number): this { + public maxLines(value: number): this { if (this.checkPriority("maxLines")) { const value_casted = value as (number) this.getPeer()?.maxLinesAttribute(value_casted) @@ -347,7 +347,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wordBreak(value: WordBreak): this { + public wordBreak(value: WordBreak): this { if (this.checkPriority("wordBreak")) { const value_casted = value as (WordBreak) this.getPeer()?.wordBreakAttribute(value_casted) @@ -356,7 +356,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineBreakStrategy(value: LineBreakStrategy): this { + public lineBreakStrategy(value: LineBreakStrategy): this { if (this.checkPriority("lineBreakStrategy")) { const value_casted = value as (LineBreakStrategy) this.getPeer()?.lineBreakStrategyAttribute(value_casted) @@ -365,7 +365,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: TextDecorationOptions): this { + public decoration(value: TextDecorationOptions): this { if (this.checkPriority("decoration")) { const value_casted = value as (TextDecorationOptions) this.getPeer()?.decorationAttribute(value_casted) @@ -374,7 +374,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string | Resource): this { + public letterSpacing(value: number | string | Resource): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string | Resource) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -383,7 +383,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineSpacing(value: LengthMetrics): this { + public lineSpacing(value: LengthMetrics): this { if (this.checkPriority("lineSpacing")) { const value_casted = value as (LengthMetrics) this.getPeer()?.lineSpacingAttribute(value_casted) @@ -392,7 +392,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -401,7 +401,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: TextAreaType): this { + public type(value: TextAreaType): this { if (this.checkPriority("type")) { const value_casted = value as (TextAreaType) this.getPeer()?.typeAttribute(value_casted) @@ -410,7 +410,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAutoFill(value: boolean): this { + public enableAutoFill(value: boolean): this { if (this.checkPriority("enableAutoFill")) { const value_casted = value as (boolean) this.getPeer()?.enableAutoFillAttribute(value_casted) @@ -419,7 +419,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentType(value: ContentType): this { + public contentType(value: ContentType): this { if (this.checkPriority("contentType")) { const value_casted = value as (ContentType) this.getPeer()?.contentTypeAttribute(value_casted) @@ -428,7 +428,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -437,7 +437,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillInsert(value: ((parameter: InsertValue) => boolean)): this { + public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) this.getPeer()?.onWillInsertAttribute(value_casted) @@ -446,7 +446,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidInsert(value: ((parameter: InsertValue) => void)): this { + public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) this.getPeer()?.onDidInsertAttribute(value_casted) @@ -455,7 +455,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { + public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) this.getPeer()?.onWillDeleteAttribute(value_casted) @@ -464,7 +464,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidDelete(value: ((parameter: DeleteValue) => void)): this { + public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) this.getPeer()?.onDidDeleteAttribute(value_casted) @@ -473,7 +473,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -482,7 +482,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -491,7 +491,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -500,7 +500,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { + public inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { if (this.checkPriority("inputFilter")) { const value_casted = value as (ResourceStr) const error_casted = error as (((breakpoints: string) => void) | undefined) @@ -510,7 +510,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showCounter(value: boolean, options?: InputCounterOptions): this { + public showCounter(value: boolean, options?: InputCounterOptions): this { if (this.checkPriority("showCounter")) { const value_casted = value as (boolean) const options_casted = options as (InputCounterOptions | undefined) @@ -520,7 +520,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -530,10 +530,10 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { - if (this.checkPriority("__onChangeEvent_text")) { + public _onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { + if (this.checkPriority("_onChangeEvent_text")) { const callback_casted = callback as (((value: ResourceStr) => void)) - this.getPeer()?.__onChangeEvent_textAttribute(callback_casted) + this.getPeer()?._onChangeEvent_textAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index ec9b880f9..8c6d72cbd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -18,14 +18,13 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { SelectionOptions } from "./ArkCommonInterfaces" -import { INTERFACE_TextAreaController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextAreaController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined @@ -44,19 +43,19 @@ export class TextAreaController extends TextContentControllerBase implements Mat static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextAreaController_getFinalizer() } - caretPosition(value: number): void { + public caretPosition(value: number): void { const value_casted = value as (number) this.caretPosition_serialize(value_casted) return } - setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - stopEditing(): void { + public stopEditing(): void { this.stopEditing_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index addbd465e..912f3cc2d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -18,14 +18,13 @@ import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" -import { INTERFACE_TextBaseController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TextBaseController { setSelection(selectionStart: number, selectionEnd: number, options: SelectionOptions): void @@ -48,18 +47,18 @@ export class TextBaseControllerInternal implements MaterializedBase,TextBaseCont static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextBaseController_getFinalizer() } - setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this.setSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - closeSelectionMenu(): void { + public closeSelectionMenu(): void { this.closeSelectionMenu_serialize() return } - getLayoutManager(): LayoutManager { + public getLayoutManager(): LayoutManager { return this.getLayoutManager_serialize() } private setSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts index 7fefb314c..03e699e2e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextClockPeer) } /** @memo */ - setTextClockOptions(options?: TextClockOptions): this { + public setTextClockOptions(options?: TextClockOptions): this { if (this.checkPriority("setTextClockOptions")) { const options_casted = options as (TextClockOptions | undefined) this.getPeer()?.setTextClockOptionsAttribute(options_casted) @@ -45,7 +45,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - format(value: string): this { + public format(value: string): this { if (this.checkPriority("format")) { const value_casted = value as (string) this.getPeer()?.formatAttribute(value_casted) @@ -54,7 +54,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDateChange(value: ((index: number) => void)): this { + public onDateChange(value: ((index: number) => void)): this { if (this.checkPriority("onDateChange")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onDateChangeAttribute(value_casted) @@ -63,7 +63,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -72,7 +72,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -99,7 +99,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -108,7 +108,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) @@ -117,7 +117,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -126,7 +126,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -135,7 +135,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dateTimeOptions(value?: DateTimeOptions): this { + public dateTimeOptions(value?: DateTimeOptions): this { if (this.checkPriority("dateTimeOptions")) { const value_casted = value as (DateTimeOptions | undefined) this.getPeer()?.dateTimeOptionsAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts index 83b1d8a84..d20e42f8e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_TextClockController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextClockController implements MaterializedBase { peer?: Finalizable | undefined @@ -41,10 +40,10 @@ export class TextClockController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextClockController_getFinalizer() } - start(): undefined { + public start(): undefined { return this.start_serialize() } - stop(): undefined { + public stop(): undefined { return this.stop_serialize() } private start_serialize(): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts index 4353a3be4..2a3f02d4c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts @@ -45,6 +45,6 @@ export interface TextClockAttribute extends CommonMethod { fontFamily: ResourceStr; textShadow: ShadowOptions | Array; fontFeature: string; - contentModifier: ContentModifier; + contentModifier: ContentModifier; dateTimeOptions: DateTimeOptions | undefined; } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts index 3d6e5ceed..3b7e07daa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts @@ -75,13 +75,13 @@ export interface PositionWithAffinity { affinity: Affinity; } export interface Affinity { - __AffinityStub: string; + _AffinityStub: string; } export interface LineMetrics { - __LineMetricsStub: string; + _LineMetricsStub: string; } export interface TextBox { - __TextBoxStub: string; + _TextBoxStub: string; } export interface CaretStyle { width?: Length; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index cdc64ebf6..8a22629b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CaretOffset, RectResult } from "./ArkCommonInterfaces" -import { INTERFACE_TextContentControllerBase } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined @@ -42,13 +41,13 @@ export class TextContentControllerBase implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextContentControllerBase_getFinalizer() } - getCaretOffset(): CaretOffset { + public getCaretOffset(): CaretOffset { return this.getCaretOffset_serialize() } - getTextContentRect(): RectResult { + public getTextContentRect(): RectResult { return this.getTextContentRect_serialize() } - getTextContentLineCount(): number { + public getTextContentLineCount(): number { return this.getTextContentLineCount_serialize() } private getCaretOffset_serialize(): CaretOffset { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts index d3612fdcf..ecd311f34 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -18,14 +18,13 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" -import { INTERFACE_TextController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextController implements MaterializedBase { peer?: Finalizable | undefined @@ -43,16 +42,16 @@ export class TextController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextController_getFinalizer() } - closeSelectionMenu(): void { + public closeSelectionMenu(): void { this.closeSelectionMenu_serialize() return } - setStyledString(value: StyledString): void { + public setStyledString(value: StyledString): void { const value_casted = value as (StyledString) this.setStyledString_serialize(value_casted) return } - getLayoutManager(): LayoutManager { + public getLayoutManager(): LayoutManager { return this.getLayoutManager_serialize() } private closeSelectionMenu_serialize(): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index ff6444eeb..cab2aa58d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -18,14 +18,13 @@ import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" -import { INTERFACE_TextEditControllerEx } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TextEditControllerEx { isEditing(): boolean @@ -51,21 +50,21 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextEditControllerEx_getFinalizer() } - isEditing(): boolean { + public isEditing(): boolean { return this.isEditing_serialize() } - stopEditing(): void { + public stopEditing(): void { this.stopEditing_serialize() return } - setCaretOffset(offset: number): boolean { + public setCaretOffset(offset: number): boolean { const offset_casted = offset as (number) return this.setCaretOffset_serialize(offset_casted) } - getCaretOffset(): number { + public getCaretOffset(): number { return this.getCaretOffset_serialize() } - getPreviewText(): PreviewText { + public getPreviewText(): PreviewText { return this.getPreviewText_serialize() } private isEditing_serialize(): boolean { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts index 3eb655edf..1c2b1e97c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -41,7 +41,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextInputPeer) } /** @memo */ - setTextInputOptions(value?: TextInputOptions): this { + public setTextInputOptions(value?: TextInputOptions): this { if (this.checkPriority("setTextInputOptions")) { const value_casted = value as (TextInputOptions | undefined) this.getPeer()?.setTextInputOptionsAttribute(value_casted) @@ -50,7 +50,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: InputType): this { + public type(value: InputType): this { if (this.checkPriority("type")) { const value_casted = value as (InputType) this.getPeer()?.typeAttribute(value_casted) @@ -59,7 +59,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentType(value: ContentType): this { + public contentType(value: ContentType): this { if (this.checkPriority("contentType")) { const value_casted = value as (ContentType) this.getPeer()?.contentTypeAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderColor(value: ResourceColor): this { + public placeholderColor(value: ResourceColor): this { if (this.checkPriority("placeholderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.placeholderColorAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textOverflow(value: TextOverflow): this { + public textOverflow(value: TextOverflow): this { if (this.checkPriority("textOverflow")) { const value_casted = value as (TextOverflow) this.getPeer()?.textOverflowAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Dimension): this { + public textIndent(value: Dimension): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Dimension) this.getPeer()?.textIndentAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderFont(value?: Font): this { + public placeholderFont(value?: Font): this { if (this.checkPriority("placeholderFont")) { const value_casted = value as (Font | undefined) this.getPeer()?.placeholderFontAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChanged(value: ((parameter: boolean) => void)): this { + public onEditChanged(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChanged")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onEditChangedAttribute(value_casted) @@ -131,7 +131,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChange(value: ((parameter: boolean) => void)): this { + public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onEditChangeAttribute(value_casted) @@ -140,7 +140,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: OnSubmitCallback): this { + public onSubmit(value: OnSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_casted = value as (OnSubmitCallback) this.getPeer()?.onSubmitAttribute(value_casted) @@ -149,7 +149,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: EditableTextOnChangeCallback): this { + public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) this.getPeer()?.onChangeAttribute(value_casted) @@ -158,7 +158,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: OnTextSelectionChangeCallback): this { + public onTextSelectionChange(value: OnTextSelectionChangeCallback): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (OnTextSelectionChangeCallback) this.getPeer()?.onTextSelectionChangeAttribute(value_casted) @@ -167,7 +167,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentScroll(value: OnContentScrollCallback): this { + public onContentScroll(value: OnContentScrollCallback): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (OnContentScrollCallback) this.getPeer()?.onContentScrollAttribute(value_casted) @@ -176,7 +176,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLength(value: number): this { + public maxLength(value: number): this { if (this.checkPriority("maxLength")) { const value_casted = value as (number) this.getPeer()?.maxLengthAttribute(value_casted) @@ -185,7 +185,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -194,7 +194,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -203,7 +203,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -212,7 +212,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -221,7 +221,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -230,7 +230,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCopyAttribute(value_casted) @@ -239,7 +239,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((breakpoints: string) => void)): this { + public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onCutAttribute(value_casted) @@ -248,7 +248,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: OnPasteCallback): this { + public onPaste(value: OnPasteCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (OnPasteCallback) this.getPeer()?.onPasteAttribute(value_casted) @@ -257,7 +257,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -266,7 +266,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showPasswordIcon(value: boolean): this { + public showPasswordIcon(value: boolean): this { if (this.checkPriority("showPasswordIcon")) { const value_casted = value as (boolean) this.getPeer()?.showPasswordIconAttribute(value_casted) @@ -275,7 +275,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -284,7 +284,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - style(value: TextInputStyle | TextContentStyle): this { + public style(value: TextInputStyle | TextContentStyle): this { if (this.checkPriority("style")) { const value_casted = value as (TextInputStyle | TextContentStyle) this.getPeer()?.styleAttribute(value_casted) @@ -293,7 +293,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretStyle(value: CaretStyle): this { + public caretStyle(value: CaretStyle): this { if (this.checkPriority("caretStyle")) { const value_casted = value as (CaretStyle) this.getPeer()?.caretStyleAttribute(value_casted) @@ -302,7 +302,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -311,7 +311,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretPosition(value: number): this { + public caretPosition(value: number): this { if (this.checkPriority("caretPosition")) { const value_casted = value as (number) this.getPeer()?.caretPositionAttribute(value_casted) @@ -320,7 +320,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -329,7 +329,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - passwordIcon(value: PasswordIcon): this { + public passwordIcon(value: PasswordIcon): this { if (this.checkPriority("passwordIcon")) { const value_casted = value as (PasswordIcon) this.getPeer()?.passwordIconAttribute(value_casted) @@ -338,7 +338,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showError(value?: ResourceStr): this { + public showError(value?: ResourceStr): this { if (this.checkPriority("showError")) { const value_casted = value as (ResourceStr | undefined) this.getPeer()?.showErrorAttribute(value_casted) @@ -347,7 +347,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showUnit(value: CustomBuilder): this { + public showUnit(value: CustomBuilder): this { if (this.checkPriority("showUnit")) { const value_casted = value as (CustomBuilder) this.getPeer()?.showUnitAttribute(value_casted) @@ -356,7 +356,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showUnderline(value: boolean): this { + public showUnderline(value: boolean): this { if (this.checkPriority("showUnderline")) { const value_casted = value as (boolean) this.getPeer()?.showUnderlineAttribute(value_casted) @@ -365,7 +365,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - underlineColor(value?: ResourceColor | UnderlineColor): this { + public underlineColor(value?: ResourceColor | UnderlineColor): this { if (this.checkPriority("underlineColor")) { const value_casted = value as (ResourceColor | UnderlineColor | undefined) this.getPeer()?.underlineColorAttribute(value_casted) @@ -374,7 +374,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuHidden(value: boolean): this { + public selectionMenuHidden(value: boolean): this { if (this.checkPriority("selectionMenuHidden")) { const value_casted = value as (boolean) this.getPeer()?.selectionMenuHiddenAttribute(value_casted) @@ -383,7 +383,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barState(value: BarState): this { + public barState(value: BarState): this { if (this.checkPriority("barState")) { const value_casted = value as (BarState) this.getPeer()?.barStateAttribute(value_casted) @@ -392,7 +392,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLines(value: number): this { + public maxLines(value: number): this { if (this.checkPriority("maxLines")) { const value_casted = value as (number) this.getPeer()?.maxLinesAttribute(value_casted) @@ -401,7 +401,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wordBreak(value: WordBreak): this { + public wordBreak(value: WordBreak): this { if (this.checkPriority("wordBreak")) { const value_casted = value as (WordBreak) this.getPeer()?.wordBreakAttribute(value_casted) @@ -410,7 +410,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineBreakStrategy(value: LineBreakStrategy): this { + public lineBreakStrategy(value: LineBreakStrategy): this { if (this.checkPriority("lineBreakStrategy")) { const value_casted = value as (LineBreakStrategy) this.getPeer()?.lineBreakStrategyAttribute(value_casted) @@ -419,7 +419,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { + public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_type = runtimeType(value) if ((TypeChecker.isCancelButtonOptions(value, true, true))) { @@ -437,7 +437,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectAll(value: boolean): this { + public selectAll(value: boolean): this { if (this.checkPriority("selectAll")) { const value_casted = value as (boolean) this.getPeer()?.selectAllAttribute(value_casted) @@ -446,7 +446,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -455,7 +455,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -464,7 +464,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { if (this.checkPriority("heightAdaptivePolicy")) { const value_casted = value as (TextHeightAdaptivePolicy) this.getPeer()?.heightAdaptivePolicyAttribute(value_casted) @@ -473,7 +473,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAutoFill(value: boolean): this { + public enableAutoFill(value: boolean): this { if (this.checkPriority("enableAutoFill")) { const value_casted = value as (boolean) this.getPeer()?.enableAutoFillAttribute(value_casted) @@ -482,7 +482,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: TextDecorationOptions): this { + public decoration(value: TextDecorationOptions): this { if (this.checkPriority("decoration")) { const value_casted = value as (TextDecorationOptions) this.getPeer()?.decorationAttribute(value_casted) @@ -491,7 +491,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string | Resource): this { + public letterSpacing(value: number | string | Resource): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string | Resource) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -500,7 +500,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -509,7 +509,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - passwordRules(value: string): this { + public passwordRules(value: string): this { if (this.checkPriority("passwordRules")) { const value_casted = value as (string) this.getPeer()?.passwordRulesAttribute(value_casted) @@ -518,7 +518,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -527,7 +527,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showPassword(value: boolean): this { + public showPassword(value: boolean): this { if (this.checkPriority("showPassword")) { const value_casted = value as (boolean) this.getPeer()?.showPasswordAttribute(value_casted) @@ -536,7 +536,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSecurityStateChange(value: ((parameter: boolean) => void)): this { + public onSecurityStateChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSecurityStateChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onSecurityStateChangeAttribute(value_casted) @@ -545,7 +545,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillInsert(value: ((parameter: InsertValue) => boolean)): this { + public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) this.getPeer()?.onWillInsertAttribute(value_casted) @@ -554,7 +554,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidInsert(value: ((parameter: InsertValue) => void)): this { + public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) this.getPeer()?.onDidInsertAttribute(value_casted) @@ -563,7 +563,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { + public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) this.getPeer()?.onWillDeleteAttribute(value_casted) @@ -572,7 +572,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidDelete(value: ((parameter: DeleteValue) => void)): this { + public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) this.getPeer()?.onDidDeleteAttribute(value_casted) @@ -581,7 +581,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -590,7 +590,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -599,7 +599,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -608,7 +608,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { + public inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { if (this.checkPriority("inputFilter")) { const value_casted = value as (ResourceStr) const error_casted = error as (((breakpoints: string) => void) | undefined) @@ -618,7 +618,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -628,7 +628,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showCounter(value: boolean, options?: InputCounterOptions): this { + public showCounter(value: boolean, options?: InputCounterOptions): this { if (this.checkPriority("showCounter")) { const value_casted = value as (boolean) const options_casted = options as (InputCounterOptions | undefined) @@ -638,10 +638,10 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { - if (this.checkPriority("__onChangeEvent_text")) { + public _onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { + if (this.checkPriority("_onChangeEvent_text")) { const callback_casted = callback as (((value: ResourceStr) => void)) - this.getPeer()?.__onChangeEvent_textAttribute(callback_casted) + this.getPeer()?._onChangeEvent_textAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts index 94ca76e12..63bf8c749 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -18,14 +18,13 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { SelectionOptions } from "./ArkCommonInterfaces" -import { INTERFACE_TextInputController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextInputController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined @@ -44,19 +43,19 @@ export class TextInputController extends TextContentControllerBase implements Ma static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextInputController_getFinalizer() } - caretPosition(value: number): void { + public caretPosition(value: number): void { const value_casted = value as (number) this.caretPosition_serialize(value_casted) return } - setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - stopEditing(): void { + public stopEditing(): void { this.stopEditing_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index 27e9802b5..fe0889b18 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -18,14 +18,13 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { INTERFACE_TextMenuItemId } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextMenuItemId implements MaterializedBase { peer?: Finalizable | undefined @@ -67,11 +66,11 @@ export class TextMenuItemId implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextMenuItemId_getFinalizer() } - static of(id: ResourceStr): TextMenuItemId { + public static of(id: ResourceStr): TextMenuItemId { const id_casted = id as (ResourceStr) return TextMenuItemId.of_serialize(id_casted) } - equals(id: TextMenuItemId): boolean { + public equals(id: TextMenuItemId): boolean { const id_casted = id as (TextMenuItemId) return this.equals_serialize(id_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts index c4f34e130..2537195df 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextPickerPeer) } /** @memo */ - setTextPickerOptions(options?: TextPickerOptions): this { + public setTextPickerOptions(options?: TextPickerOptions): this { if (this.checkPriority("setTextPickerOptions")) { const options_casted = options as (TextPickerOptions | undefined) this.getPeer()?.setTextPickerOptionsAttribute(options_casted) @@ -43,7 +43,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultPickerItemHeight(value: number | string): this { + public defaultPickerItemHeight(value: number | string): this { if (this.checkPriority("defaultPickerItemHeight")) { const value_casted = value as (number | string) this.getPeer()?.defaultPickerItemHeightAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - canLoop(value: boolean): this { + public canLoop(value: boolean): this { if (this.checkPriority("canLoop")) { const value_casted = value as (boolean) this.getPeer()?.canLoopAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disappearTextStyle(value: PickerTextStyle): this { + public disappearTextStyle(value: PickerTextStyle): this { if (this.checkPriority("disappearTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.disappearTextStyleAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedTextStyle(value: PickerTextStyle): this { + public selectedTextStyle(value: PickerTextStyle): this { if (this.checkPriority("selectedTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.selectedTextStyleAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAccept(value: ((value: string,index: number) => void)): this { + public onAccept(value: ((value: string,index: number) => void)): this { if (this.checkPriority("onAccept")) { const value_casted = value as (((value: string,index: number) => void)) this.getPeer()?.onAcceptAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCancel(value: (() => void)): this { + public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) this.getPeer()?.onCancelAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: string | Array,index: number | Array) => void)): this { + public onChange(value: ((value: string | Array,index: number | Array) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: string | Array,index: number | Array) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -115,7 +115,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedIndex(value: number | Array): this { + public selectedIndex(value: number | Array): this { if (this.checkPriority("selectedIndex")) { const value_casted = value as (number | Array) this.getPeer()?.selectedIndexAttribute(value_casted) @@ -124,7 +124,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerOptions): this { + public divider(value?: DividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -133,7 +133,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - gradientHeight(value: Dimension): this { + public gradientHeight(value: Dimension): this { if (this.checkPriority("gradientHeight")) { const value_casted = value as (Dimension) this.getPeer()?.gradientHeightAttribute(value_casted) @@ -142,19 +142,19 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((selected: number | Array) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((selected: number | Array) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((selected: number | Array) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return } /** @memo */ - __onChangeEvent_value(callback: ((value: string | Array) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((value: string | Array) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((value: string | Array) => void)) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index 7858e114d..f609b4a0d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextPickerDialogOptions } from "./ArkTextPickerInterfaces" -import { INTERFACE_TextPickerDialog } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextPickerDialog implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class TextPickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextPickerDialog_getFinalizer() } - static show(options?: TextPickerDialogOptions): undefined { + public static show(options?: TextPickerDialogOptions): undefined { const options_casted = options as (TextPickerDialogOptions | undefined) return TextPickerDialog.show_serialize(options_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts new file mode 100644 index 000000000..100712dc4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -0,0 +1,75 @@ +/* + * 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 { 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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextShadowStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get textShadow(): Array { + throw new Error("Not implemented") + } + static ctor(value: ShadowOptions | Array): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let value_type : int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isShadowOptions(value, false, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ShadowOptions + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_ShadowOptions(value))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Array + thisSerializer.writeInt32(value_1.length as int32) + for (let i = 0; i < value_1.length; i++) { + const value_1_element : ShadowOptions = value_1[i] + thisSerializer.writeShadowOptions(value_1_element) + } + } + const retval = ArkUIGeneratedNativeModule._TextShadowStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: ShadowOptions | Array) { + if (((value) !== (undefined))) + { + const ctorPtr : KPointer = TextShadowStyle.ctor(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 + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts new file mode 100644 index 000000000..be7f4de55 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.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 { ResourceColor } from "./ArkUnitsInterfaces" +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 { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextStyle_styled_string implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get fontColor(): ResourceColor | undefined { + throw new Error("Not implemented") + } + get fontFamily(): string | undefined { + return this.getFontFamily() + } + get fontSize(): number | undefined { + return this.getFontSize() + } + get fontWeight(): number | undefined { + return this.getFontWeight() + } + get fontStyle(): FontStyle | undefined { + return this.getFontStyle() + } + static ctor(value?: TextStyleInterface): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let value_type : int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeTextStyleInterface(value_value) + } + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: TextStyleInterface) { + const ctorPtr : KPointer = TextStyle_styled_string.ctor(value) + this.peer = new Finalizable(ctorPtr, TextStyle_styled_string.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TextStyle_styled_string_getFinalizer() + } + private getFontFamily(): string { + return this.getFontFamily_serialize() + } + private getFontSize(): number { + return this.getFontSize_serialize() + } + private getFontWeight(): number { + return this.getFontWeight_serialize() + } + private getFontStyle(): FontStyle { + return this.getFontStyle_serialize() + } + private getFontFamily_serialize(): string { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontFamily(this.peer!.ptr) + return retval + } + private getFontSize_serialize(): number { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontSize(this.peer!.ptr) + return retval + } + private getFontWeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontWeight(this.peer!.ptr) + return retval + } + private getFontStyle_serialize(): FontStyle { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontStyle(this.peer!.ptr) + 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 73515dbe5..07cef13b9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextTimerPeer) } /** @memo */ - setTextTimerOptions(options?: TextTimerOptions): this { + public setTextTimerOptions(options?: TextTimerOptions): this { if (this.checkPriority("setTextTimerOptions")) { const options_casted = options as (TextTimerOptions | undefined) this.getPeer()?.setTextTimerOptionsAttribute(options_casted) @@ -44,7 +44,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - format(value: string): this { + public format(value: string): this { if (this.checkPriority("format")) { const value_casted = value as (string) this.getPeer()?.formatAttribute(value_casted) @@ -53,7 +53,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -62,7 +62,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTimer(value: ((first: number,last: number) => void)): this { + public onTimer(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onTimer")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onTimerAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index aa8c76b25..8ffcb28e9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_TextTimerController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TextTimerController implements MaterializedBase { peer?: Finalizable | undefined @@ -41,13 +40,13 @@ export class TextTimerController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextTimerController_getFinalizer() } - start(): undefined { + public start(): undefined { return this.start_serialize() } - pause(): undefined { + public pause(): undefined { return this.pause_serialize() } - reset(): undefined { + public reset(): undefined { return this.reset_serialize() } private start_serialize(): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts index 47cb37d05..0e1485d95 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts @@ -45,5 +45,5 @@ export interface TextTimerAttribute extends CommonMethod { fontFamily: ResourceStr; onTimer: ((first: number,last: number) => void); textShadow: ShadowOptions | Array; - contentModifier: ContentModifier; + contentModifier: ContentModifier; } diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts index 6fe2b2a80..11b096a40 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkTimePickerPeer) } /** @memo */ - setTimePickerOptions(options?: TimePickerOptions): this { + public setTimePickerOptions(options?: TimePickerOptions): this { if (this.checkPriority("setTimePickerOptions")) { const options_casted = options as (TimePickerOptions | undefined) this.getPeer()?.setTimePickerOptionsAttribute(options_casted) @@ -42,7 +42,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - useMilitaryTime(value: boolean): this { + public useMilitaryTime(value: boolean): this { if (this.checkPriority("useMilitaryTime")) { const value_casted = value as (boolean) this.getPeer()?.useMilitaryTimeAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disappearTextStyle(value: PickerTextStyle): this { + public disappearTextStyle(value: PickerTextStyle): this { if (this.checkPriority("disappearTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.disappearTextStyleAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedTextStyle(value: PickerTextStyle): this { + public selectedTextStyle(value: PickerTextStyle): this { if (this.checkPriority("selectedTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.selectedTextStyleAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dateTimeOptions(value: DateTimeOptions): this { + public dateTimeOptions(value: DateTimeOptions): this { if (this.checkPriority("dateTimeOptions")) { const value_casted = value as (DateTimeOptions) this.getPeer()?.dateTimeOptionsAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: TimePickerResult) => void)): this { + public onChange(value: ((value: TimePickerResult) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: TimePickerResult) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -114,10 +114,10 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: Date) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: Date) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: Date) => void)) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index 116c921e2..0a72b6017 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TimePickerDialogOptions } from "./ArkTimePickerInterfaces" -import { INTERFACE_TimePickerDialog } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TimePickerDialog implements MaterializedBase { peer?: Finalizable | undefined @@ -45,7 +44,7 @@ export class TimePickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TimePickerDialog_getFinalizer() } - static show(options?: TimePickerDialogOptions): undefined { + public static show(options?: TimePickerDialogOptions): undefined { const options_casted = options as (TimePickerDialogOptions | undefined) return TimePickerDialog.show_serialize(options_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts index a7ea563b5..a6f29ca56 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts @@ -38,7 +38,7 @@ export interface TimePickerOptions { } export type TimePickerInterface = (options?: TimePickerOptions) => TimePickerAttribute; export interface DateTimeOptions { - __DateTimeOptionsStub: string; + _DateTimeOptionsStub: string; } export interface TimePickerAttribute extends CommonMethod { useMilitaryTime: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkToggle.ts b/arkoala-arkts/arkui/src/generated/ArkToggle.ts index 35550cf31..1f56ef69c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggle.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return (this.peer as ArkTogglePeer) } /** @memo */ - setToggleOptions(options: ToggleOptions): this { + public setToggleOptions(options: ToggleOptions): this { if (this.checkPriority("setToggleOptions")) { const options_casted = options as (ToggleOptions) this.getPeer()?.setToggleOptionsAttribute(options_casted) @@ -43,7 +43,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) this.getPeer()?.onChangeAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - switchPointColor(value: ResourceColor): this { + public switchPointColor(value: ResourceColor): this { if (this.checkPriority("switchPointColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.switchPointColorAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - switchStyle(value: SwitchStyle): this { + public switchStyle(value: SwitchStyle): this { if (this.checkPriority("switchStyle")) { const value_casted = value as (SwitchStyle) this.getPeer()?.switchStyleAttribute(value_casted) @@ -88,10 +88,10 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_isOn(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_isOn")) { + public _onChangeEvent_isOn(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_isOn")) { const callback_casted = callback as (((parameter: boolean) => void)) - this.getPeer()?.__onChangeEvent_isOnAttribute(callback_casted) + this.getPeer()?._onChangeEvent_isOnAttribute(callback_casted) return } return diff --git a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts index 282d03bc9..316adec22 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts @@ -49,7 +49,7 @@ export interface ToggleOptions { export type ToggleInterface = (options: ToggleOptions) => ToggleAttribute; export interface ToggleAttribute extends CommonMethod { onChange: ((parameter: boolean) => void); - contentModifier: ContentModifier; + contentModifier: ContentModifier; selectedColor: ResourceColor; switchPointColor: ResourceColor; switchStyle: SwitchStyle; diff --git a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts index cd6d3d5e5..b27d91057 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -19,14 +19,14 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { TouchType } from "./ArkEnumsInterfaces" import { TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" -import { Callback_Void, INTERFACE_TouchEvent } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TouchEvent { type: TouchType @@ -83,7 +83,7 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TouchEvent_getFinalizer() } - getHistoricalPoints(): Array { + public getHistoricalPoints(): Array { return this.getHistoricalPoints_serialize() } private getType(): TouchType { @@ -104,11 +104,17 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize this.setChangedTouches_serialize(changedTouches_casted) return } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this.setStopPropagation_serialize(stopPropagation_casted) return } + private getPreventDefault(): (() => void) { + return this.getPreventDefault_serialize() + } private setPreventDefault(preventDefault: (() => void)): void { const preventDefault_casted = preventDefault as ((() => void)) this.setPreventDefault_serialize(preventDefault_casted) @@ -145,12 +151,20 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize ArkUIGeneratedNativeModule._TouchEvent_setChangedTouches(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) ArkUIGeneratedNativeModule._TouchEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getPreventDefault_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getPreventDefault(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setPreventDefault_serialize(preventDefault: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(preventDefault) diff --git a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts index 6c21dc1d5..06926a454 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam } from "./ArkCommonInterfaces" -import { INTERFACE_TransitionEffect } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class TransitionEffect implements MaterializedBase { peer?: Finalizable | undefined @@ -76,36 +75,36 @@ export class TransitionEffect implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TransitionEffect_getFinalizer() } - static translate(options: TranslateOptions): TransitionEffect { + public static translate(options: TranslateOptions): TransitionEffect { const options_casted = options as (TranslateOptions) return TransitionEffect.translate_serialize(options_casted) } - static rotate(options: RotateOptions): TransitionEffect { + public static rotate(options: RotateOptions): TransitionEffect { const options_casted = options as (RotateOptions) return TransitionEffect.rotate_serialize(options_casted) } - static scale(options: ScaleOptions): TransitionEffect { + public static scale(options: ScaleOptions): TransitionEffect { const options_casted = options as (ScaleOptions) return TransitionEffect.scale_serialize(options_casted) } - static opacity(alpha: number): TransitionEffect { + public static opacity(alpha: number): TransitionEffect { const alpha_casted = alpha as (number) return TransitionEffect.opacity_serialize(alpha_casted) } - static move(edge: TransitionEdge): TransitionEffect { + public static move(edge: TransitionEdge): TransitionEffect { const edge_casted = edge as (TransitionEdge) return TransitionEffect.move_serialize(edge_casted) } - static asymmetric(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect { + public static asymmetric(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect { const appear_casted = appear as (TransitionEffect) const disappear_casted = disappear as (TransitionEffect) return TransitionEffect.asymmetric_serialize(appear_casted, disappear_casted) } - animation(value: AnimateParam): TransitionEffect { + public animation(value: AnimateParam): TransitionEffect { const value_casted = value as (AnimateParam) return this.animation_serialize(value_casted) } - combine(transitionEffect: TransitionEffect): TransitionEffect { + public combine(transitionEffect: TransitionEffect): TransitionEffect { const transitionEffect_casted = transitionEffect as (TransitionEffect) return this.combine_serialize(transitionEffect_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts index b8f1c7815..789f9a7b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Callback_ClickEvent_Void, Callback_TouchEvent_Void, Callback_Void, Callback_KeyEvent_Void, Callback_MouseEvent_Void, INTERFACE_UICommonEvent } from "./SyntheticDeclarations" +import { Callback_ClickEvent_Void, Callback_TouchEvent_Void, Callback_Void, Callback_KeyEvent_Void, Callback_MouseEvent_Void } from "./SyntheticDeclarations" import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { TouchEvent, TouchEventInternal } from "./ArkTouchEventMaterialized" import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" @@ -28,7 +28,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UICommonEvent { setOnClick(callback_?: ((event: ClickEvent) => void)): void @@ -59,57 +59,57 @@ export class UICommonEventInternal implements MaterializedBase,UICommonEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._UICommonEvent_getFinalizer() } - setOnClick(callback_?: ((event: ClickEvent) => void)): void { + public setOnClick(callback_?: ((event: ClickEvent) => void)): void { const callback__casted = callback_ as (((event: ClickEvent) => void) | undefined) this.setOnClick_serialize(callback__casted) return } - setOnTouch(callback_?: ((event: TouchEvent) => void)): void { + public setOnTouch(callback_?: ((event: TouchEvent) => void)): void { const callback__casted = callback_ as (((event: TouchEvent) => void) | undefined) this.setOnTouch_serialize(callback__casted) return } - setOnAppear(callback_?: (() => void)): void { + public setOnAppear(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this.setOnAppear_serialize(callback__casted) return } - setOnDisappear(callback_?: (() => void)): void { + public setOnDisappear(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this.setOnDisappear_serialize(callback__casted) return } - setOnKeyEvent(callback_?: ((event: KeyEvent) => void)): void { + public setOnKeyEvent(callback_?: ((event: KeyEvent) => void)): void { const callback__casted = callback_ as (((event: KeyEvent) => void) | undefined) this.setOnKeyEvent_serialize(callback__casted) return } - setOnFocus(callback_?: (() => void)): void { + public setOnFocus(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this.setOnFocus_serialize(callback__casted) return } - setOnBlur(callback_?: (() => void)): void { + public setOnBlur(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this.setOnBlur_serialize(callback__casted) return } - setOnHover(callback_?: HoverCallback): void { + public setOnHover(callback_?: HoverCallback): void { const callback__casted = callback_ as (HoverCallback | undefined) this.setOnHover_serialize(callback__casted) return } - setOnMouse(callback_?: ((event: MouseEvent) => void)): void { + public setOnMouse(callback_?: ((event: MouseEvent) => void)): void { const callback__casted = callback_ as (((event: MouseEvent) => void) | undefined) this.setOnMouse_serialize(callback__casted) return } - setOnSizeChange(callback_?: SizeChangeCallback): void { + public setOnSizeChange(callback_?: SizeChangeCallback): void { const callback__casted = callback_ as (SizeChangeCallback | undefined) this.setOnSizeChange_serialize(callback__casted) return } - setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event?: VisibleAreaChangeCallback): void { + public setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event?: VisibleAreaChangeCallback): void { const options_casted = options as (VisibleAreaEventOptions) const event_casted = event as (VisibleAreaChangeCallback | undefined) this.setOnVisibleAreaApproximateChange_serialize(options_casted, event_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index 102006112..eaeca3e83 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -16,14 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Callback_UIExtensionProxy_Void, INTERFACE_UIExtensionProxy } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UIExtensionProxy { send(data: Map): void @@ -49,31 +49,31 @@ export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionPro static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._UIExtensionProxy_getFinalizer() } - send(data: Map): void { + public send(data: Map): void { const data_casted = data as (Map) this.send_serialize(data_casted) return } - sendSync(data: Map): Map { + public sendSync(data: Map): Map { const data_casted = data as (Map) return this.sendSync_serialize(data_casted) } - onAsyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { + public onAsyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void)) this.onAsyncReceiverRegister_serialize(callback__casted) return } - onSyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { + public onSyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void)) this.onSyncReceiverRegister_serialize(callback__casted) return } - offAsyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { + public offAsyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void) | undefined) this.offAsyncReceiverRegister_serialize(callback__casted) return } - offSyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { + public offSyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void) | undefined) this.offSyncReceiverRegister_serialize(callback__casted) return diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts index f7fdea627..e27ca53f1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -28,7 +28,7 @@ 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 { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -import { Want } from "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" /** @memo:stable */ @@ -37,7 +37,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkUIExtensionComponentPeer) } /** @memo */ - setUIExtensionComponentOptions(want: Want, options?: UIExtensionOptions): this { + public setUIExtensionComponentOptions(want: Want, options?: UIExtensionOptions): this { if (this.checkPriority("setUIExtensionComponentOptions")) { const want_casted = want as (Want) const options_casted = options as (UIExtensionOptions | undefined) @@ -47,7 +47,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRemoteReady(value: ((parameter: UIExtensionProxy) => void)): this { + public onRemoteReady(value: ((parameter: UIExtensionProxy) => void)): this { if (this.checkPriority("onRemoteReady")) { const value_casted = value as (((parameter: UIExtensionProxy) => void)) this.getPeer()?.onRemoteReadyAttribute(value_casted) @@ -56,7 +56,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReceive(value: ReceiveCallback): this { + public onReceive(value: ReceiveCallback): this { if (this.checkPriority("onReceive")) { const value_casted = value as (ReceiveCallback) this.getPeer()?.onReceiveAttribute(value_casted) @@ -65,7 +65,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onResult(value: ((parameter: Literal_Number_code_Want_want) => void)): this { + public onResult(value: ((parameter: Literal_Number_code_Want_want) => void)): this { if (this.checkPriority("onResult")) { const value_casted = value as (((parameter: Literal_Number_code_Want_want) => void)) this.getPeer()?.onResultAttribute(value_casted) @@ -74,7 +74,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRelease(value: ((index: number) => void)): this { + public onRelease(value: ((index: number) => void)): this { if (this.checkPriority("onRelease")) { const value_casted = value as (((index: number) => void)) this.getPeer()?.onReleaseAttribute(value_casted) @@ -83,7 +83,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ErrorCallback): this { + public onError(value: ErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) @@ -92,7 +92,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTerminated(value: ((parameter: TerminationInfo) => void)): this { + public onTerminated(value: ((parameter: TerminationInfo) => void)): this { if (this.checkPriority("onTerminated")) { const value_casted = value as (((parameter: TerminationInfo) => void)) this.getPeer()?.onTerminatedAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts index c0ef5230d..b96ef78c3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts @@ -20,7 +20,7 @@ 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 { Want } from "./ArkArkui-externalInterfaces" +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 { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" @@ -36,7 +36,7 @@ export interface UIExtensionOptions { dpiFollowStrategy?: DpiFollowStrategy; } export interface ReceiveCallback { - __ReceiveCallbackStub: string; + _ReceiveCallbackStub: string; } export type UIExtensionComponentInterface = (want: Want, options?: UIExtensionOptions) => UIExtensionComponentAttribute; export interface UIExtensionComponentAttribute extends CommonMethod { diff --git a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts index bc16a6b25..531d5bf71 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_UnifiedData } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class UnifiedData implements MaterializedBase { peer?: Finalizable | undefined @@ -41,11 +40,11 @@ export class UnifiedData implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._UnifiedData_getFinalizer() } - hasType(UnifiedData_type: string): boolean { + public hasType(UnifiedData_type: string): boolean { const UnifiedData_type_casted = UnifiedData_type as (string) return this.hasType_serialize(UnifiedData_type_casted) } - getTypes(): Array { + public getTypes(): Array { return this.getTypes_serialize() } private hasType_serialize(UnifiedData_type: string): boolean { diff --git a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts index 910dbdb65..4f53ba591 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts @@ -115,10 +115,10 @@ export interface LengthConstrain { } export type VoidCallback = () => void; export interface LengthMetricsUnit { - __LengthMetricsUnitStub: string; + _LengthMetricsUnitStub: string; } export interface ColorMetrics { - __ColorMetricsStub: string; + _ColorMetricsStub: string; } export interface Font { size?: Length; @@ -185,8 +185,6 @@ export interface MarkStyle { size?: Length; strokeWidth?: Length; } -export interface ColorFilter { -} export interface TouchPoint { x: Dimension; y: Dimension; diff --git a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts new file mode 100644 index 000000000..0e97a8fec --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -0,0 +1,63 @@ +/* + * 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, NativeBuffer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +import { Serializer } from "./peers/Serializer" +import { unsafeCast } from "./shared/generated-utils" +import { CallbackKind } from "./peers/CallbackKind" +import { int32, float32 } from "@koalaui/common" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class UrlStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get url(): string { + return this.getUrl() + } + static ctor(url: string): KPointer { + const retval = ArkUIGeneratedNativeModule._UrlStyle_ctor(url) + return retval + } + constructor(url?: string) { + if (((url) !== (undefined))) + { + const ctorPtr : KPointer = UrlStyle.ctor(url) + this.peer = new Finalizable(ctorPtr, UrlStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._UrlStyle_getFinalizer() + } + private getUrl(): string { + return this.getUrl_serialize() + } + private getUrl_serialize(): string { + const retval = ArkUIGeneratedNativeModule._UrlStyle_getUrl(this.peer!.ptr) + 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 df8ac8222..348bfa4fa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideo.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideo.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -36,7 +36,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return (this.peer as ArkVideoPeer) } /** @memo */ - setVideoOptions(value: VideoOptions): this { + public setVideoOptions(value: VideoOptions): this { if (this.checkPriority("setVideoOptions")) { const value_casted = value as (VideoOptions) this.getPeer()?.setVideoOptionsAttribute(value_casted) @@ -45,7 +45,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - muted(value: boolean): this { + public muted(value: boolean): this { if (this.checkPriority("muted")) { const value_casted = value as (boolean) this.getPeer()?.mutedAttribute(value_casted) @@ -54,7 +54,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoPlay(value: boolean): this { + public autoPlay(value: boolean): this { if (this.checkPriority("autoPlay")) { const value_casted = value as (boolean) this.getPeer()?.autoPlayAttribute(value_casted) @@ -63,7 +63,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controls(value: boolean): this { + public controls(value: boolean): this { if (this.checkPriority("controls")) { const value_casted = value as (boolean) this.getPeer()?.controlsAttribute(value_casted) @@ -72,7 +72,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - objectFit(value: ImageFit): this { + public objectFit(value: ImageFit): this { if (this.checkPriority("objectFit")) { const value_casted = value as (ImageFit) this.getPeer()?.objectFitAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: VoidCallback): this { + public onStart(value: VoidCallback): this { if (this.checkPriority("onStart")) { const value_casted = value as (VoidCallback) this.getPeer()?.onStartAttribute(value_casted) @@ -99,7 +99,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPause(value: VoidCallback): this { + public onPause(value: VoidCallback): this { if (this.checkPriority("onPause")) { const value_casted = value as (VoidCallback) this.getPeer()?.onPauseAttribute(value_casted) @@ -108,7 +108,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: VoidCallback): this { + public onFinish(value: VoidCallback): this { if (this.checkPriority("onFinish")) { const value_casted = value as (VoidCallback) this.getPeer()?.onFinishAttribute(value_casted) @@ -117,7 +117,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFullscreenChange(value: ((parameter: FullscreenInfo) => void)): this { + public onFullscreenChange(value: ((parameter: FullscreenInfo) => void)): this { if (this.checkPriority("onFullscreenChange")) { const value_casted = value as (((parameter: FullscreenInfo) => void)) this.getPeer()?.onFullscreenChangeAttribute(value_casted) @@ -126,7 +126,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPrepared(value: ((parameter: PreparedInfo) => void)): this { + public onPrepared(value: ((parameter: PreparedInfo) => void)): this { if (this.checkPriority("onPrepared")) { const value_casted = value as (((parameter: PreparedInfo) => void)) this.getPeer()?.onPreparedAttribute(value_casted) @@ -135,7 +135,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSeeking(value: ((parameter: PlaybackInfo) => void)): this { + public onSeeking(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onSeeking")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) this.getPeer()?.onSeekingAttribute(value_casted) @@ -144,7 +144,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSeeked(value: ((parameter: PlaybackInfo) => void)): this { + public onSeeked(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onSeeked")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) this.getPeer()?.onSeekedAttribute(value_casted) @@ -153,7 +153,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onUpdate(value: ((parameter: PlaybackInfo) => void)): this { + public onUpdate(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onUpdate")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) this.getPeer()?.onUpdateAttribute(value_casted) @@ -162,7 +162,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: (() => void)): this { + public onError(value: (() => void)): this { if (this.checkPriority("onError")) { const value_casted = value as ((() => void)) this.getPeer()?.onErrorAttribute(value_casted) @@ -171,7 +171,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStop(value: (() => void)): this { + public onStop(value: (() => void)): this { if (this.checkPriority("onStop")) { const value_casted = value as ((() => void)) this.getPeer()?.onStopAttribute(value_casted) @@ -180,7 +180,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) @@ -189,7 +189,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - analyzerConfig(value: ImageAnalyzerConfig): this { + public analyzerConfig(value: ImageAnalyzerConfig): this { if (this.checkPriority("analyzerConfig")) { const value_casted = value as (ImageAnalyzerConfig) this.getPeer()?.analyzerConfigAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts index eca05ef3d..f3accf5bc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SeekMode } from "./ArkVideoInterfaces" -import { INTERFACE_VideoController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class VideoController implements MaterializedBase { peer?: Finalizable | undefined @@ -42,16 +41,16 @@ export class VideoController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._VideoController_getFinalizer() } - start(): undefined { + public start(): undefined { return this.start_serialize() } - pause(): undefined { + public pause(): undefined { return this.pause_serialize() } - stop(): undefined { + public stop(): undefined { return this.stop_serialize() } - setCurrentTime(value: number, seekMode?: SeekMode): undefined { + public setCurrentTime(value: number, seekMode?: SeekMode): undefined { const value_type = runtimeType(value) const seekMode_type = runtimeType(seekMode) if ((((RuntimeType.UNDEFINED == seekMode_type)))) { @@ -65,14 +64,14 @@ export class VideoController implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - requestFullscreen(value: boolean): undefined { + public requestFullscreen(value: boolean): undefined { const value_casted = value as (boolean) return this.requestFullscreen_serialize(value_casted) } - exitFullscreen(): undefined { + public exitFullscreen(): undefined { return this.exitFullscreen_serialize() } - reset(): void { + public reset(): void { this.reset_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts index d6fd3c03b..fcac83113 100644 --- a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_View } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class View implements MaterializedBase { peer?: Finalizable | undefined @@ -41,7 +40,7 @@ export class View implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._View_getFinalizer() } - create(value: object): object { + public create(value: object): object { const value_casted = value as (object) return this.create_serialize(value_casted) } diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts index 40b2719a3..067a1ae84 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -37,7 +37,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkWaterFlowPeer) } /** @memo */ - setWaterFlowOptions(options?: WaterFlowOptions): this { + public setWaterFlowOptions(options?: WaterFlowOptions): this { if (this.checkPriority("setWaterFlowOptions")) { const options_casted = options as (WaterFlowOptions | undefined) this.getPeer()?.setWaterFlowOptionsAttribute(options_casted) @@ -46,7 +46,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsTemplate(value: string): this { + public columnsTemplate(value: string): this { if (this.checkPriority("columnsTemplate")) { const value_casted = value as (string) this.getPeer()?.columnsTemplateAttribute(value_casted) @@ -55,7 +55,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - itemConstraintSize(value: ConstraintSizeOptions): this { + public itemConstraintSize(value: ConstraintSizeOptions): this { if (this.checkPriority("itemConstraintSize")) { const value_casted = value as (ConstraintSizeOptions) this.getPeer()?.itemConstraintSizeAttribute(value_casted) @@ -64,7 +64,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsTemplate(value: string): this { + public rowsTemplate(value: string): this { if (this.checkPriority("rowsTemplate")) { const value_casted = value as (string) this.getPeer()?.rowsTemplateAttribute(value_casted) @@ -73,7 +73,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsGap(value: Length): this { + public columnsGap(value: Length): this { if (this.checkPriority("columnsGap")) { const value_casted = value as (Length) this.getPeer()?.columnsGapAttribute(value_casted) @@ -82,7 +82,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsGap(value: Length): this { + public rowsGap(value: Length): this { if (this.checkPriority("rowsGap")) { const value_casted = value as (Length) this.getPeer()?.rowsGapAttribute(value_casted) @@ -91,7 +91,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - layoutDirection(value: FlexDirection): this { + public layoutDirection(value: FlexDirection): this { if (this.checkPriority("layoutDirection")) { const value_casted = value as (FlexDirection) this.getPeer()?.layoutDirectionAttribute(value_casted) @@ -100,7 +100,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -109,7 +109,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -118,7 +118,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -127,7 +127,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cachedCount(count: number, show?: boolean): this { + public cachedCount(count: number, show?: boolean): this { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) @@ -147,7 +147,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachStartAttribute(value_casted) @@ -156,7 +156,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) this.getPeer()?.onReachEndAttribute(value_casted) @@ -165,7 +165,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain)): this { + public onScrollFrameBegin(value: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain)): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number,state: ScrollState) => Literal_Number_offsetRemain)) this.getPeer()?.onScrollFrameBeginAttribute(value_casted) @@ -174,7 +174,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollIndex(value: ((first: number,last: number) => void)): this { + public onScrollIndex(value: ((first: number,last: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((first: number,last: number) => void)) this.getPeer()?.onScrollIndexAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index 414fabe68..5abbd5055 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SectionOptions } from "./ArkWaterFlowInterfaces" -import { INTERFACE_WaterFlowSections } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WaterFlowSections implements MaterializedBase { peer?: Finalizable | undefined @@ -42,25 +41,25 @@ export class WaterFlowSections implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WaterFlowSections_getFinalizer() } - splice(start: number, deleteCount?: number, sections?: Array): boolean { + public splice(start: number, deleteCount?: number, sections?: Array): boolean { const start_casted = start as (number) const deleteCount_casted = deleteCount as (number | undefined) const sections_casted = sections as (Array | undefined) return this.splice_serialize(start_casted, deleteCount_casted, sections_casted) } - push(section: SectionOptions): boolean { + public push(section: SectionOptions): boolean { const section_casted = section as (SectionOptions) return this.push_serialize(section_casted) } - update(sectionIndex: number, section: SectionOptions): boolean { + public update(sectionIndex: number, section: SectionOptions): boolean { const sectionIndex_casted = sectionIndex as (number) const section_casted = section as (SectionOptions) return this.update_serialize(sectionIndex_casted, section_casted) } - values(): Array { + public values(): Array { return this.values_serialize() } - length(): number { + public length(): number { return this.length_serialize() } private splice_serialize(start: number, deleteCount?: number, sections?: Array): boolean { diff --git a/arkoala-arkts/arkui/src/generated/ArkWeb.ts b/arkoala-arkts/arkui/src/generated/ArkWeb.ts index 0cd9203d3..e514a07f4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWeb.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWeb.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return (this.peer as ArkWebPeer) } /** @memo */ - setWebOptions(value: WebOptions): this { + public setWebOptions(value: WebOptions): this { if (this.checkPriority("setWebOptions")) { const value_casted = value as (WebOptions) this.getPeer()?.setWebOptionsAttribute(value_casted) @@ -47,7 +47,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptAccess(value: boolean): this { + public javaScriptAccess(value: boolean): this { if (this.checkPriority("javaScriptAccess")) { const value_casted = value as (boolean) this.getPeer()?.javaScriptAccessAttribute(value_casted) @@ -56,7 +56,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fileAccess(value: boolean): this { + public fileAccess(value: boolean): this { if (this.checkPriority("fileAccess")) { const value_casted = value as (boolean) this.getPeer()?.fileAccessAttribute(value_casted) @@ -65,7 +65,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onlineImageAccess(value: boolean): this { + public onlineImageAccess(value: boolean): this { if (this.checkPriority("onlineImageAccess")) { const value_casted = value as (boolean) this.getPeer()?.onlineImageAccessAttribute(value_casted) @@ -74,7 +74,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - domStorageAccess(value: boolean): this { + public domStorageAccess(value: boolean): this { if (this.checkPriority("domStorageAccess")) { const value_casted = value as (boolean) this.getPeer()?.domStorageAccessAttribute(value_casted) @@ -83,7 +83,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - imageAccess(value: boolean): this { + public imageAccess(value: boolean): this { if (this.checkPriority("imageAccess")) { const value_casted = value as (boolean) this.getPeer()?.imageAccessAttribute(value_casted) @@ -92,7 +92,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mixedMode(value: MixedMode): this { + public mixedMode(value: MixedMode): this { if (this.checkPriority("mixedMode")) { const value_casted = value as (MixedMode) this.getPeer()?.mixedModeAttribute(value_casted) @@ -101,7 +101,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - zoomAccess(value: boolean): this { + public zoomAccess(value: boolean): this { if (this.checkPriority("zoomAccess")) { const value_casted = value as (boolean) this.getPeer()?.zoomAccessAttribute(value_casted) @@ -110,7 +110,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - geolocationAccess(value: boolean): this { + public geolocationAccess(value: boolean): this { if (this.checkPriority("geolocationAccess")) { const value_casted = value as (boolean) this.getPeer()?.geolocationAccessAttribute(value_casted) @@ -119,7 +119,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptProxy(value: JavaScriptProxy): this { + public javaScriptProxy(value: JavaScriptProxy): this { if (this.checkPriority("javaScriptProxy")) { const value_casted = value as (JavaScriptProxy) this.getPeer()?.javaScriptProxyAttribute(value_casted) @@ -128,7 +128,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - password(value: boolean): this { + public password(value: boolean): this { if (this.checkPriority("password")) { const value_casted = value as (boolean) this.getPeer()?.passwordAttribute(value_casted) @@ -137,7 +137,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cacheMode(value: CacheMode): this { + public cacheMode(value: CacheMode): this { if (this.checkPriority("cacheMode")) { const value_casted = value as (CacheMode) this.getPeer()?.cacheModeAttribute(value_casted) @@ -146,7 +146,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - darkMode(value: WebDarkMode): this { + public darkMode(value: WebDarkMode): this { if (this.checkPriority("darkMode")) { const value_casted = value as (WebDarkMode) this.getPeer()?.darkModeAttribute(value_casted) @@ -155,7 +155,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - forceDarkAccess(value: boolean): this { + public forceDarkAccess(value: boolean): this { if (this.checkPriority("forceDarkAccess")) { const value_casted = value as (boolean) this.getPeer()?.forceDarkAccessAttribute(value_casted) @@ -164,7 +164,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mediaOptions(value: WebMediaOptions): this { + public mediaOptions(value: WebMediaOptions): this { if (this.checkPriority("mediaOptions")) { const value_casted = value as (WebMediaOptions) this.getPeer()?.mediaOptionsAttribute(value_casted) @@ -173,7 +173,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - tableData(value: boolean): this { + public tableData(value: boolean): this { if (this.checkPriority("tableData")) { const value_casted = value as (boolean) this.getPeer()?.tableDataAttribute(value_casted) @@ -182,7 +182,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wideViewModeAccess(value: boolean): this { + public wideViewModeAccess(value: boolean): this { if (this.checkPriority("wideViewModeAccess")) { const value_casted = value as (boolean) this.getPeer()?.wideViewModeAccessAttribute(value_casted) @@ -191,7 +191,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - overviewModeAccess(value: boolean): this { + public overviewModeAccess(value: boolean): this { if (this.checkPriority("overviewModeAccess")) { const value_casted = value as (boolean) this.getPeer()?.overviewModeAccessAttribute(value_casted) @@ -200,7 +200,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - overScrollMode(value: OverScrollMode): this { + public overScrollMode(value: OverScrollMode): this { if (this.checkPriority("overScrollMode")) { const value_casted = value as (OverScrollMode) this.getPeer()?.overScrollModeAttribute(value_casted) @@ -209,7 +209,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textZoomAtio(value: number): this { + public textZoomAtio(value: number): this { if (this.checkPriority("textZoomAtio")) { const value_casted = value as (number) this.getPeer()?.textZoomAtioAttribute(value_casted) @@ -218,7 +218,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textZoomRatio(value: number): this { + public textZoomRatio(value: number): this { if (this.checkPriority("textZoomRatio")) { const value_casted = value as (number) this.getPeer()?.textZoomRatioAttribute(value_casted) @@ -227,7 +227,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - databaseAccess(value: boolean): this { + public databaseAccess(value: boolean): this { if (this.checkPriority("databaseAccess")) { const value_casted = value as (boolean) this.getPeer()?.databaseAccessAttribute(value_casted) @@ -236,7 +236,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - initialScale(value: number): this { + public initialScale(value: number): this { if (this.checkPriority("initialScale")) { const value_casted = value as (number) this.getPeer()?.initialScaleAttribute(value_casted) @@ -245,7 +245,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - userAgent(value: string): this { + public userAgent(value: string): this { if (this.checkPriority("userAgent")) { const value_casted = value as (string) this.getPeer()?.userAgentAttribute(value_casted) @@ -254,7 +254,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - metaViewport(value: boolean): this { + public metaViewport(value: boolean): this { if (this.checkPriority("metaViewport")) { const value_casted = value as (boolean) this.getPeer()?.metaViewportAttribute(value_casted) @@ -263,7 +263,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPageEnd(value: ((parameter: OnPageEndEvent) => void)): this { + public onPageEnd(value: ((parameter: OnPageEndEvent) => void)): this { if (this.checkPriority("onPageEnd")) { const value_casted = value as (((parameter: OnPageEndEvent) => void)) this.getPeer()?.onPageEndAttribute(value_casted) @@ -272,7 +272,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPageBegin(value: ((parameter: OnPageBeginEvent) => void)): this { + public onPageBegin(value: ((parameter: OnPageBeginEvent) => void)): this { if (this.checkPriority("onPageBegin")) { const value_casted = value as (((parameter: OnPageBeginEvent) => void)) this.getPeer()?.onPageBeginAttribute(value_casted) @@ -281,7 +281,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onProgressChange(value: ((parameter: OnProgressChangeEvent) => void)): this { + public onProgressChange(value: ((parameter: OnProgressChangeEvent) => void)): this { if (this.checkPriority("onProgressChange")) { const value_casted = value as (((parameter: OnProgressChangeEvent) => void)) this.getPeer()?.onProgressChangeAttribute(value_casted) @@ -290,7 +290,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTitleReceive(value: ((parameter: OnTitleReceiveEvent) => void)): this { + public onTitleReceive(value: ((parameter: OnTitleReceiveEvent) => void)): this { if (this.checkPriority("onTitleReceive")) { const value_casted = value as (((parameter: OnTitleReceiveEvent) => void)) this.getPeer()?.onTitleReceiveAttribute(value_casted) @@ -299,7 +299,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGeolocationHide(value: (() => void)): this { + public onGeolocationHide(value: (() => void)): this { if (this.checkPriority("onGeolocationHide")) { const value_casted = value as ((() => void)) this.getPeer()?.onGeolocationHideAttribute(value_casted) @@ -308,7 +308,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGeolocationShow(value: ((parameter: OnGeolocationShowEvent) => void)): this { + public onGeolocationShow(value: ((parameter: OnGeolocationShowEvent) => void)): this { if (this.checkPriority("onGeolocationShow")) { const value_casted = value as (((parameter: OnGeolocationShowEvent) => void)) this.getPeer()?.onGeolocationShowAttribute(value_casted) @@ -317,7 +317,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRequestSelected(value: (() => void)): this { + public onRequestSelected(value: (() => void)): this { if (this.checkPriority("onRequestSelected")) { const value_casted = value as ((() => void)) this.getPeer()?.onRequestSelectedAttribute(value_casted) @@ -326,7 +326,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAlert(value: ((parameter: OnAlertEvent) => boolean)): this { + public onAlert(value: ((parameter: OnAlertEvent) => boolean)): this { if (this.checkPriority("onAlert")) { const value_casted = value as (((parameter: OnAlertEvent) => boolean)) this.getPeer()?.onAlertAttribute(value_casted) @@ -335,7 +335,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBeforeUnload(value: ((parameter: OnBeforeUnloadEvent) => boolean)): this { + public onBeforeUnload(value: ((parameter: OnBeforeUnloadEvent) => boolean)): this { if (this.checkPriority("onBeforeUnload")) { const value_casted = value as (((parameter: OnBeforeUnloadEvent) => boolean)) this.getPeer()?.onBeforeUnloadAttribute(value_casted) @@ -344,7 +344,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onConfirm(value: ((parameter: OnConfirmEvent) => boolean)): this { + public onConfirm(value: ((parameter: OnConfirmEvent) => boolean)): this { if (this.checkPriority("onConfirm")) { const value_casted = value as (((parameter: OnConfirmEvent) => boolean)) this.getPeer()?.onConfirmAttribute(value_casted) @@ -353,7 +353,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPrompt(value: ((parameter: OnPromptEvent) => boolean)): this { + public onPrompt(value: ((parameter: OnPromptEvent) => boolean)): this { if (this.checkPriority("onPrompt")) { const value_casted = value as (((parameter: OnPromptEvent) => boolean)) this.getPeer()?.onPromptAttribute(value_casted) @@ -362,7 +362,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onConsole(value: ((parameter: OnConsoleEvent) => boolean)): this { + public onConsole(value: ((parameter: OnConsoleEvent) => boolean)): this { if (this.checkPriority("onConsole")) { const value_casted = value as (((parameter: OnConsoleEvent) => boolean)) this.getPeer()?.onConsoleAttribute(value_casted) @@ -371,7 +371,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onErrorReceive(value: ((parameter: OnErrorReceiveEvent) => void)): this { + public onErrorReceive(value: ((parameter: OnErrorReceiveEvent) => void)): this { if (this.checkPriority("onErrorReceive")) { const value_casted = value as (((parameter: OnErrorReceiveEvent) => void)) this.getPeer()?.onErrorReceiveAttribute(value_casted) @@ -380,7 +380,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHttpErrorReceive(value: ((parameter: OnHttpErrorReceiveEvent) => void)): this { + public onHttpErrorReceive(value: ((parameter: OnHttpErrorReceiveEvent) => void)): this { if (this.checkPriority("onHttpErrorReceive")) { const value_casted = value as (((parameter: OnHttpErrorReceiveEvent) => void)) this.getPeer()?.onHttpErrorReceiveAttribute(value_casted) @@ -389,7 +389,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDownloadStart(value: ((parameter: OnDownloadStartEvent) => void)): this { + public onDownloadStart(value: ((parameter: OnDownloadStartEvent) => void)): this { if (this.checkPriority("onDownloadStart")) { const value_casted = value as (((parameter: OnDownloadStartEvent) => void)) this.getPeer()?.onDownloadStartAttribute(value_casted) @@ -398,7 +398,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRefreshAccessedHistory(value: ((parameter: OnRefreshAccessedHistoryEvent) => void)): this { + public onRefreshAccessedHistory(value: ((parameter: OnRefreshAccessedHistoryEvent) => void)): this { if (this.checkPriority("onRefreshAccessedHistory")) { const value_casted = value as (((parameter: OnRefreshAccessedHistoryEvent) => void)) this.getPeer()?.onRefreshAccessedHistoryAttribute(value_casted) @@ -407,7 +407,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onUrlLoadIntercept(value: ((event?: Literal_Union_String_WebResourceRequest_data) => boolean)): this { + public onUrlLoadIntercept(value: ((event?: Literal_Union_String_WebResourceRequest_data) => boolean)): this { if (this.checkPriority("onUrlLoadIntercept")) { const value_casted = value as (((event?: Literal_Union_String_WebResourceRequest_data) => boolean)) this.getPeer()?.onUrlLoadInterceptAttribute(value_casted) @@ -416,7 +416,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSslErrorReceive(value: ((event?: Literal_Function_handler_Object_error) => void)): this { + public onSslErrorReceive(value: ((event?: Literal_Function_handler_Object_error) => void)): this { if (this.checkPriority("onSslErrorReceive")) { const value_casted = value as (((event?: Literal_Function_handler_Object_error) => void)) this.getPeer()?.onSslErrorReceiveAttribute(value_casted) @@ -425,7 +425,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRenderExited(value: ((parameter: OnRenderExitedEvent) => void) | ((event?: Literal_Object_detail) => boolean)): this { + 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)))) { @@ -443,7 +443,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onShowFileSelector(value: ((parameter: OnShowFileSelectorEvent) => boolean)): this { + public onShowFileSelector(value: ((parameter: OnShowFileSelectorEvent) => boolean)): this { if (this.checkPriority("onShowFileSelector")) { const value_casted = value as (((parameter: OnShowFileSelectorEvent) => boolean)) this.getPeer()?.onShowFileSelectorAttribute(value_casted) @@ -452,7 +452,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFileSelectorShow(value: ((event?: Literal_Function_callback__Object_fileSelector) => void)): this { + public onFileSelectorShow(value: ((event?: Literal_Function_callback__Object_fileSelector) => void)): this { if (this.checkPriority("onFileSelectorShow")) { const value_casted = value as (((event?: Literal_Function_callback__Object_fileSelector) => void)) this.getPeer()?.onFileSelectorShowAttribute(value_casted) @@ -461,7 +461,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onResourceLoad(value: ((parameter: OnResourceLoadEvent) => void)): this { + public onResourceLoad(value: ((parameter: OnResourceLoadEvent) => void)): this { if (this.checkPriority("onResourceLoad")) { const value_casted = value as (((parameter: OnResourceLoadEvent) => void)) this.getPeer()?.onResourceLoadAttribute(value_casted) @@ -470,7 +470,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFullScreenExit(value: (() => void)): this { + public onFullScreenExit(value: (() => void)): this { if (this.checkPriority("onFullScreenExit")) { const value_casted = value as ((() => void)) this.getPeer()?.onFullScreenExitAttribute(value_casted) @@ -479,7 +479,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFullScreenEnter(value: OnFullScreenEnterCallback): this { + public onFullScreenEnter(value: OnFullScreenEnterCallback): this { if (this.checkPriority("onFullScreenEnter")) { const value_casted = value as (OnFullScreenEnterCallback) this.getPeer()?.onFullScreenEnterAttribute(value_casted) @@ -488,7 +488,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onScaleChange(value: ((parameter: OnScaleChangeEvent) => void)): this { + public onScaleChange(value: ((parameter: OnScaleChangeEvent) => void)): this { if (this.checkPriority("onScaleChange")) { const value_casted = value as (((parameter: OnScaleChangeEvent) => void)) this.getPeer()?.onScaleChangeAttribute(value_casted) @@ -497,7 +497,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHttpAuthRequest(value: ((parameter: OnHttpAuthRequestEvent) => boolean)): this { + public onHttpAuthRequest(value: ((parameter: OnHttpAuthRequestEvent) => boolean)): this { if (this.checkPriority("onHttpAuthRequest")) { const value_casted = value as (((parameter: OnHttpAuthRequestEvent) => boolean)) this.getPeer()?.onHttpAuthRequestAttribute(value_casted) @@ -506,7 +506,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInterceptRequest(value: ((parameter: OnInterceptRequestEvent) => WebResourceResponse)): this { + public onInterceptRequest(value: ((parameter: OnInterceptRequestEvent) => WebResourceResponse)): this { if (this.checkPriority("onInterceptRequest")) { const value_casted = value as (((parameter: OnInterceptRequestEvent) => WebResourceResponse)) this.getPeer()?.onInterceptRequestAttribute(value_casted) @@ -515,7 +515,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPermissionRequest(value: ((parameter: OnPermissionRequestEvent) => void)): this { + public onPermissionRequest(value: ((parameter: OnPermissionRequestEvent) => void)): this { if (this.checkPriority("onPermissionRequest")) { const value_casted = value as (((parameter: OnPermissionRequestEvent) => void)) this.getPeer()?.onPermissionRequestAttribute(value_casted) @@ -524,7 +524,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onScreenCaptureRequest(value: ((parameter: OnScreenCaptureRequestEvent) => void)): this { + public onScreenCaptureRequest(value: ((parameter: OnScreenCaptureRequestEvent) => void)): this { if (this.checkPriority("onScreenCaptureRequest")) { const value_casted = value as (((parameter: OnScreenCaptureRequestEvent) => void)) this.getPeer()?.onScreenCaptureRequestAttribute(value_casted) @@ -533,7 +533,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContextMenuShow(value: ((parameter: OnContextMenuShowEvent) => boolean)): this { + public onContextMenuShow(value: ((parameter: OnContextMenuShowEvent) => boolean)): this { if (this.checkPriority("onContextMenuShow")) { const value_casted = value as (((parameter: OnContextMenuShowEvent) => boolean)) this.getPeer()?.onContextMenuShowAttribute(value_casted) @@ -542,7 +542,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContextMenuHide(value: OnContextMenuHideCallback): this { + public onContextMenuHide(value: OnContextMenuHideCallback): this { if (this.checkPriority("onContextMenuHide")) { const value_casted = value as (OnContextMenuHideCallback) this.getPeer()?.onContextMenuHideAttribute(value_casted) @@ -551,7 +551,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mediaPlayGestureAccess(value: boolean): this { + public mediaPlayGestureAccess(value: boolean): this { if (this.checkPriority("mediaPlayGestureAccess")) { const value_casted = value as (boolean) this.getPeer()?.mediaPlayGestureAccessAttribute(value_casted) @@ -560,7 +560,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSearchResultReceive(value: ((parameter: OnSearchResultReceiveEvent) => void)): this { + public onSearchResultReceive(value: ((parameter: OnSearchResultReceiveEvent) => void)): this { if (this.checkPriority("onSearchResultReceive")) { const value_casted = value as (((parameter: OnSearchResultReceiveEvent) => void)) this.getPeer()?.onSearchResultReceiveAttribute(value_casted) @@ -569,7 +569,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((parameter: OnScrollEvent) => void)): this { + public onScroll(value: ((parameter: OnScrollEvent) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((parameter: OnScrollEvent) => void)) this.getPeer()?.onScrollAttribute(value_casted) @@ -578,7 +578,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSslErrorEventReceive(value: ((parameter: OnSslErrorEventReceiveEvent) => void)): this { + public onSslErrorEventReceive(value: ((parameter: OnSslErrorEventReceiveEvent) => void)): this { if (this.checkPriority("onSslErrorEventReceive")) { const value_casted = value as (((parameter: OnSslErrorEventReceiveEvent) => void)) this.getPeer()?.onSslErrorEventReceiveAttribute(value_casted) @@ -587,7 +587,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSslErrorEvent(value: OnSslErrorEventCallback): this { + public onSslErrorEvent(value: OnSslErrorEventCallback): this { if (this.checkPriority("onSslErrorEvent")) { const value_casted = value as (OnSslErrorEventCallback) this.getPeer()?.onSslErrorEventAttribute(value_casted) @@ -596,7 +596,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onClientAuthenticationRequest(value: ((parameter: OnClientAuthenticationEvent) => void)): this { + public onClientAuthenticationRequest(value: ((parameter: OnClientAuthenticationEvent) => void)): this { if (this.checkPriority("onClientAuthenticationRequest")) { const value_casted = value as (((parameter: OnClientAuthenticationEvent) => void)) this.getPeer()?.onClientAuthenticationRequestAttribute(value_casted) @@ -605,7 +605,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWindowNew(value: ((parameter: OnWindowNewEvent) => void)): this { + public onWindowNew(value: ((parameter: OnWindowNewEvent) => void)): this { if (this.checkPriority("onWindowNew")) { const value_casted = value as (((parameter: OnWindowNewEvent) => void)) this.getPeer()?.onWindowNewAttribute(value_casted) @@ -614,7 +614,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWindowExit(value: (() => void)): this { + public onWindowExit(value: (() => void)): this { if (this.checkPriority("onWindowExit")) { const value_casted = value as ((() => void)) this.getPeer()?.onWindowExitAttribute(value_casted) @@ -623,7 +623,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - multiWindowAccess(value: boolean): this { + public multiWindowAccess(value: boolean): this { if (this.checkPriority("multiWindowAccess")) { const value_casted = value as (boolean) this.getPeer()?.multiWindowAccessAttribute(value_casted) @@ -632,7 +632,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInterceptKeyEvent(value: ((parameter: KeyEvent) => boolean)): this { + public onInterceptKeyEvent(value: ((parameter: KeyEvent) => boolean)): this { if (this.checkPriority("onInterceptKeyEvent")) { const value_casted = value as (((parameter: KeyEvent) => boolean)) this.getPeer()?.onInterceptKeyEventAttribute(value_casted) @@ -641,7 +641,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webStandardFont(value: string): this { + public webStandardFont(value: string): this { if (this.checkPriority("webStandardFont")) { const value_casted = value as (string) this.getPeer()?.webStandardFontAttribute(value_casted) @@ -650,7 +650,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webSerifFont(value: string): this { + public webSerifFont(value: string): this { if (this.checkPriority("webSerifFont")) { const value_casted = value as (string) this.getPeer()?.webSerifFontAttribute(value_casted) @@ -659,7 +659,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webSansSerifFont(value: string): this { + public webSansSerifFont(value: string): this { if (this.checkPriority("webSansSerifFont")) { const value_casted = value as (string) this.getPeer()?.webSansSerifFontAttribute(value_casted) @@ -668,7 +668,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webFixedFont(value: string): this { + public webFixedFont(value: string): this { if (this.checkPriority("webFixedFont")) { const value_casted = value as (string) this.getPeer()?.webFixedFontAttribute(value_casted) @@ -677,7 +677,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webFantasyFont(value: string): this { + public webFantasyFont(value: string): this { if (this.checkPriority("webFantasyFont")) { const value_casted = value as (string) this.getPeer()?.webFantasyFontAttribute(value_casted) @@ -686,7 +686,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webCursiveFont(value: string): this { + public webCursiveFont(value: string): this { if (this.checkPriority("webCursiveFont")) { const value_casted = value as (string) this.getPeer()?.webCursiveFontAttribute(value_casted) @@ -695,7 +695,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultFixedFontSize(value: number): this { + public defaultFixedFontSize(value: number): this { if (this.checkPriority("defaultFixedFontSize")) { const value_casted = value as (number) this.getPeer()?.defaultFixedFontSizeAttribute(value_casted) @@ -704,7 +704,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultFontSize(value: number): this { + public defaultFontSize(value: number): this { if (this.checkPriority("defaultFontSize")) { const value_casted = value as (number) this.getPeer()?.defaultFontSizeAttribute(value_casted) @@ -713,7 +713,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number): this { + public minFontSize(value: number): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -722,7 +722,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minLogicalFontSize(value: number): this { + public minLogicalFontSize(value: number): this { if (this.checkPriority("minLogicalFontSize")) { const value_casted = value as (number) this.getPeer()?.minLogicalFontSizeAttribute(value_casted) @@ -731,7 +731,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultTextEncodingFormat(value: string): this { + public defaultTextEncodingFormat(value: string): this { if (this.checkPriority("defaultTextEncodingFormat")) { const value_casted = value as (string) this.getPeer()?.defaultTextEncodingFormatAttribute(value_casted) @@ -740,7 +740,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - forceDisplayScrollBar(value: boolean): this { + public forceDisplayScrollBar(value: boolean): this { if (this.checkPriority("forceDisplayScrollBar")) { const value_casted = value as (boolean) this.getPeer()?.forceDisplayScrollBarAttribute(value_casted) @@ -749,7 +749,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockNetwork(value: boolean): this { + public blockNetwork(value: boolean): this { if (this.checkPriority("blockNetwork")) { const value_casted = value as (boolean) this.getPeer()?.blockNetworkAttribute(value_casted) @@ -758,7 +758,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - horizontalScrollBarAccess(value: boolean): this { + public horizontalScrollBarAccess(value: boolean): this { if (this.checkPriority("horizontalScrollBarAccess")) { const value_casted = value as (boolean) this.getPeer()?.horizontalScrollBarAccessAttribute(value_casted) @@ -767,7 +767,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - verticalScrollBarAccess(value: boolean): this { + public verticalScrollBarAccess(value: boolean): this { if (this.checkPriority("verticalScrollBarAccess")) { const value_casted = value as (boolean) this.getPeer()?.verticalScrollBarAccessAttribute(value_casted) @@ -776,7 +776,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTouchIconUrlReceived(value: ((parameter: OnTouchIconUrlReceivedEvent) => void)): this { + public onTouchIconUrlReceived(value: ((parameter: OnTouchIconUrlReceivedEvent) => void)): this { if (this.checkPriority("onTouchIconUrlReceived")) { const value_casted = value as (((parameter: OnTouchIconUrlReceivedEvent) => void)) this.getPeer()?.onTouchIconUrlReceivedAttribute(value_casted) @@ -785,7 +785,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFaviconReceived(value: ((parameter: OnFaviconReceivedEvent) => void)): this { + public onFaviconReceived(value: ((parameter: OnFaviconReceivedEvent) => void)): this { if (this.checkPriority("onFaviconReceived")) { const value_casted = value as (((parameter: OnFaviconReceivedEvent) => void)) this.getPeer()?.onFaviconReceivedAttribute(value_casted) @@ -794,7 +794,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPageVisible(value: ((parameter: OnPageVisibleEvent) => void)): this { + public onPageVisible(value: ((parameter: OnPageVisibleEvent) => void)): this { if (this.checkPriority("onPageVisible")) { const value_casted = value as (((parameter: OnPageVisibleEvent) => void)) this.getPeer()?.onPageVisibleAttribute(value_casted) @@ -803,7 +803,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDataResubmitted(value: ((parameter: OnDataResubmittedEvent) => void)): this { + public onDataResubmitted(value: ((parameter: OnDataResubmittedEvent) => void)): this { if (this.checkPriority("onDataResubmitted")) { const value_casted = value as (((parameter: OnDataResubmittedEvent) => void)) this.getPeer()?.onDataResubmittedAttribute(value_casted) @@ -812,7 +812,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pinchSmooth(value: boolean): this { + public pinchSmooth(value: boolean): this { if (this.checkPriority("pinchSmooth")) { const value_casted = value as (boolean) this.getPeer()?.pinchSmoothAttribute(value_casted) @@ -821,7 +821,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - allowWindowOpenMethod(value: boolean): this { + public allowWindowOpenMethod(value: boolean): this { if (this.checkPriority("allowWindowOpenMethod")) { const value_casted = value as (boolean) this.getPeer()?.allowWindowOpenMethodAttribute(value_casted) @@ -830,7 +830,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAudioStateChanged(value: ((parameter: OnAudioStateChangedEvent) => void)): this { + public onAudioStateChanged(value: ((parameter: OnAudioStateChangedEvent) => void)): this { if (this.checkPriority("onAudioStateChanged")) { const value_casted = value as (((parameter: OnAudioStateChangedEvent) => void)) this.getPeer()?.onAudioStateChangedAttribute(value_casted) @@ -839,7 +839,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFirstContentfulPaint(value: ((parameter: OnFirstContentfulPaintEvent) => void)): this { + public onFirstContentfulPaint(value: ((parameter: OnFirstContentfulPaintEvent) => void)): this { if (this.checkPriority("onFirstContentfulPaint")) { const value_casted = value as (((parameter: OnFirstContentfulPaintEvent) => void)) this.getPeer()?.onFirstContentfulPaintAttribute(value_casted) @@ -848,7 +848,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback): this { + public onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback): this { if (this.checkPriority("onFirstMeaningfulPaint")) { const value_casted = value as (OnFirstMeaningfulPaintCallback) this.getPeer()?.onFirstMeaningfulPaintAttribute(value_casted) @@ -857,7 +857,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLargestContentfulPaint(value: OnLargestContentfulPaintCallback): this { + public onLargestContentfulPaint(value: OnLargestContentfulPaintCallback): this { if (this.checkPriority("onLargestContentfulPaint")) { const value_casted = value as (OnLargestContentfulPaintCallback) this.getPeer()?.onLargestContentfulPaintAttribute(value_casted) @@ -866,7 +866,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLoadIntercept(value: ((parameter: OnLoadInterceptEvent) => boolean)): this { + public onLoadIntercept(value: ((parameter: OnLoadInterceptEvent) => boolean)): this { if (this.checkPriority("onLoadIntercept")) { const value_casted = value as (((parameter: OnLoadInterceptEvent) => boolean)) this.getPeer()?.onLoadInterceptAttribute(value_casted) @@ -875,7 +875,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onControllerAttached(value: (() => void)): this { + public onControllerAttached(value: (() => void)): this { if (this.checkPriority("onControllerAttached")) { const value_casted = value as ((() => void)) this.getPeer()?.onControllerAttachedAttribute(value_casted) @@ -884,7 +884,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onOverScroll(value: ((parameter: OnOverScrollEvent) => void)): this { + public onOverScroll(value: ((parameter: OnOverScrollEvent) => void)): this { if (this.checkPriority("onOverScroll")) { const value_casted = value as (((parameter: OnOverScrollEvent) => void)) this.getPeer()?.onOverScrollAttribute(value_casted) @@ -893,7 +893,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback): this { + public onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback): this { if (this.checkPriority("onSafeBrowsingCheckResult")) { const value_casted = value as (OnSafeBrowsingCheckResultCallback) this.getPeer()?.onSafeBrowsingCheckResultAttribute(value_casted) @@ -902,7 +902,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback): this { + public onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback): this { if (this.checkPriority("onNavigationEntryCommitted")) { const value_casted = value as (OnNavigationEntryCommittedCallback) this.getPeer()?.onNavigationEntryCommittedAttribute(value_casted) @@ -911,7 +911,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback): this { + public onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback): this { if (this.checkPriority("onIntelligentTrackingPreventionResult")) { const value_casted = value as (OnIntelligentTrackingPreventionCallback) this.getPeer()?.onIntelligentTrackingPreventionResultAttribute(value_casted) @@ -920,7 +920,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptOnDocumentStart(value: Array): this { + public javaScriptOnDocumentStart(value: Array): this { if (this.checkPriority("javaScriptOnDocumentStart")) { const value_casted = value as (Array) this.getPeer()?.javaScriptOnDocumentStartAttribute(value_casted) @@ -929,7 +929,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptOnDocumentEnd(value: Array): this { + public javaScriptOnDocumentEnd(value: Array): this { if (this.checkPriority("javaScriptOnDocumentEnd")) { const value_casted = value as (Array) this.getPeer()?.javaScriptOnDocumentEndAttribute(value_casted) @@ -938,7 +938,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - layoutMode(value: WebLayoutMode): this { + public layoutMode(value: WebLayoutMode): this { if (this.checkPriority("layoutMode")) { const value_casted = value as (WebLayoutMode) this.getPeer()?.layoutModeAttribute(value_casted) @@ -947,7 +947,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): this { + public nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions | NestedScrollOptionsExt) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -956,7 +956,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableNativeEmbedMode(value: boolean): this { + public enableNativeEmbedMode(value: boolean): this { if (this.checkPriority("enableNativeEmbedMode")) { const value_casted = value as (boolean) this.getPeer()?.enableNativeEmbedModeAttribute(value_casted) @@ -965,7 +965,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void)): this { + public onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void)): this { if (this.checkPriority("onNativeEmbedLifecycleChange")) { const value_casted = value as (((event: NativeEmbedDataInfo) => void)) this.getPeer()?.onNativeEmbedLifecycleChangeAttribute(value_casted) @@ -974,7 +974,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback): this { + public onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback): this { if (this.checkPriority("onNativeEmbedVisibilityChange")) { const value_casted = value as (OnNativeEmbedVisibilityChangeCallback) this.getPeer()?.onNativeEmbedVisibilityChangeAttribute(value_casted) @@ -983,7 +983,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void)): this { + public onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void)): this { if (this.checkPriority("onNativeEmbedGestureEvent")) { const value_casted = value as (((event: NativeEmbedTouchInfo) => void)) this.getPeer()?.onNativeEmbedGestureEventAttribute(value_casted) @@ -992,7 +992,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOptions(value: CopyOptions): this { + public copyOptions(value: CopyOptions): this { if (this.checkPriority("copyOptions")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionsAttribute(value_casted) @@ -1001,7 +1001,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback): this { + public onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback): this { if (this.checkPriority("onOverrideUrlLoading")) { const value_casted = value as (OnOverrideUrlLoadingCallback) this.getPeer()?.onOverrideUrlLoadingAttribute(value_casted) @@ -1010,7 +1010,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAutosizing(value: boolean): this { + public textAutosizing(value: boolean): this { if (this.checkPriority("textAutosizing")) { const value_casted = value as (boolean) this.getPeer()?.textAutosizingAttribute(value_casted) @@ -1019,7 +1019,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableNativeMediaPlayer(value: NativeMediaPlayerConfig): this { + public enableNativeMediaPlayer(value: NativeMediaPlayerConfig): this { if (this.checkPriority("enableNativeMediaPlayer")) { const value_casted = value as (NativeMediaPlayerConfig) this.getPeer()?.enableNativeMediaPlayerAttribute(value_casted) @@ -1028,7 +1028,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableSmoothDragResize(value: boolean): this { + public enableSmoothDragResize(value: boolean): this { if (this.checkPriority("enableSmoothDragResize")) { const value_casted = value as (boolean) this.getPeer()?.enableSmoothDragResizeAttribute(value_casted) @@ -1037,7 +1037,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback): this { + public onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback): this { if (this.checkPriority("onRenderProcessNotResponding")) { const value_casted = value as (OnRenderProcessNotRespondingCallback) this.getPeer()?.onRenderProcessNotRespondingAttribute(value_casted) @@ -1046,7 +1046,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRenderProcessResponding(value: OnRenderProcessRespondingCallback): this { + public onRenderProcessResponding(value: OnRenderProcessRespondingCallback): this { if (this.checkPriority("onRenderProcessResponding")) { const value_casted = value as (OnRenderProcessRespondingCallback) this.getPeer()?.onRenderProcessRespondingAttribute(value_casted) @@ -1055,7 +1055,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuOptions(value: Array): this { + public selectionMenuOptions(value: Array): this { if (this.checkPriority("selectionMenuOptions")) { const value_casted = value as (Array) this.getPeer()?.selectionMenuOptionsAttribute(value_casted) @@ -1064,7 +1064,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onViewportFitChanged(value: OnViewportFitChangedCallback): this { + public onViewportFitChanged(value: OnViewportFitChangedCallback): this { if (this.checkPriority("onViewportFitChanged")) { const value_casted = value as (OnViewportFitChangedCallback) this.getPeer()?.onViewportFitChangedAttribute(value_casted) @@ -1073,7 +1073,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInterceptKeyboardAttach(value: WebKeyboardCallback): this { + public onInterceptKeyboardAttach(value: WebKeyboardCallback): this { if (this.checkPriority("onInterceptKeyboardAttach")) { const value_casted = value as (WebKeyboardCallback) this.getPeer()?.onInterceptKeyboardAttachAttribute(value_casted) @@ -1082,7 +1082,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAdsBlocked(value: OnAdsBlockedCallback): this { + public onAdsBlocked(value: OnAdsBlockedCallback): this { if (this.checkPriority("onAdsBlocked")) { const value_casted = value as (OnAdsBlockedCallback) this.getPeer()?.onAdsBlockedAttribute(value_casted) @@ -1091,7 +1091,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - keyboardAvoidMode(value: WebKeyboardAvoidMode): this { + public keyboardAvoidMode(value: WebKeyboardAvoidMode): this { if (this.checkPriority("keyboardAvoidMode")) { const value_casted = value as (WebKeyboardAvoidMode) this.getPeer()?.keyboardAvoidModeAttribute(value_casted) @@ -1100,7 +1100,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -1109,7 +1109,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -1118,7 +1118,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - registerNativeEmbedRule(tag: string, type: string): this { + public registerNativeEmbedRule(tag: string, type: string): this { if (this.checkPriority("registerNativeEmbedRule")) { const tag_casted = tag as (string) const type_casted = type as (string) @@ -1128,7 +1128,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - bindSelectionMenu(elementType: WebElementType, content: CustomBuilder, responseType: WebResponseType, options?: SelectionMenuOptionsExt): this { + public bindSelectionMenu(elementType: WebElementType, content: CustomBuilder, responseType: WebResponseType, options?: SelectionMenuOptionsExt): this { if (this.checkPriority("bindSelectionMenu")) { const elementType_casted = elementType as (WebElementType) const content_casted = content as (CustomBuilder) diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index 2fad82fe2..ab35c30b8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" -import { INTERFACE_WebContextMenuParam } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebContextMenuParam implements MaterializedBase { peer?: Finalizable | undefined @@ -42,46 +41,46 @@ export class WebContextMenuParam implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebContextMenuParam_getFinalizer() } - x(): number { + public x(): number { return this.x_serialize() } - y(): number { + public y(): number { return this.y_serialize() } - getLinkUrl(): string { + public getLinkUrl(): string { return this.getLinkUrl_serialize() } - getUnfilteredLinkUrl(): string { + public getUnfilteredLinkUrl(): string { return this.getUnfilteredLinkUrl_serialize() } - getSourceUrl(): string { + public getSourceUrl(): string { return this.getSourceUrl_serialize() } - existsImageContents(): boolean { + public existsImageContents(): boolean { return this.existsImageContents_serialize() } - getMediaType(): ContextMenuMediaType { + public getMediaType(): ContextMenuMediaType { return this.getMediaType_serialize() } - getSelectionText(): string { + public getSelectionText(): string { return this.getSelectionText_serialize() } - getSourceType(): ContextMenuSourceType { + public getSourceType(): ContextMenuSourceType { return this.getSourceType_serialize() } - getInputFieldType(): ContextMenuInputFieldType { + public getInputFieldType(): ContextMenuInputFieldType { return this.getInputFieldType_serialize() } - isEditable(): boolean { + public isEditable(): boolean { return this.isEditable_serialize() } - getEditStateFlags(): number { + public getEditStateFlags(): number { return this.getEditStateFlags_serialize() } - getPreviewWidth(): number { + public getPreviewWidth(): number { return this.getPreviewWidth_serialize() } - getPreviewHeight(): number { + public getPreviewHeight(): number { return this.getPreviewHeight_serialize() } private x_serialize(): number { diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index 86e7a2ff7..126ac4f1c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_WebContextMenuResult } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebContextMenuResult implements MaterializedBase { peer?: Finalizable | undefined @@ -41,27 +40,27 @@ export class WebContextMenuResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebContextMenuResult_getFinalizer() } - closeContextMenu(): void { + public closeContextMenu(): void { this.closeContextMenu_serialize() return } - copyImage(): void { + public copyImage(): void { this.copyImage_serialize() return } - copy(): void { + public copy(): void { this.copy_serialize() return } - paste(): void { + public paste(): void { this.paste_serialize() return } - cut(): void { + public cut(): void { this.cut_serialize() return } - selectAll(): void { + public selectAll(): void { this.selectAll_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts index 52f573c1a..82b5c51b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { 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, INTERFACE_WebController } from "./SyntheticDeclarations" +import { 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 } from "./SyntheticDeclarations" import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" @@ -26,7 +26,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebController implements MaterializedBase { peer?: Finalizable | undefined @@ -44,72 +44,72 @@ export class WebController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebController_getFinalizer() } - onInactive(): void { + public onInactive(): void { this.onInactive_serialize() return } - onActive(): void { + public onActive(): void { this.onActive_serialize() return } - zoom(factor: number): void { + public zoom(factor: number): void { const factor_casted = factor as (number) this.zoom_serialize(factor_casted) return } - clearHistory(): void { + public clearHistory(): void { this.clearHistory_serialize() return } - runJavaScript(options: Literal_String_script_Callback_String_Void_callback_): undefined { + public runJavaScript(options: Literal_String_script_Callback_String_Void_callback_): undefined { const options_casted = options as (Literal_String_script_Callback_String_Void_callback_) return this.runJavaScript_serialize(options_casted) } - loadData(options: Literal_String_baseUrl_data_encoding_historyUrl_mimeType): undefined { + public loadData(options: Literal_String_baseUrl_data_encoding_historyUrl_mimeType): undefined { const options_casted = options as (Literal_String_baseUrl_data_encoding_historyUrl_mimeType) return this.loadData_serialize(options_casted) } - loadUrl(options: Literal_Union_String_Resource_url_Array_Header_headers): undefined { + public loadUrl(options: Literal_Union_String_Resource_url_Array_Header_headers): undefined { const options_casted = options as (Literal_Union_String_Resource_url_Array_Header_headers) return this.loadUrl_serialize(options_casted) } - refresh(): undefined { + public refresh(): undefined { return this.refresh_serialize() } - stop(): undefined { + public stop(): undefined { return this.stop_serialize() } - registerJavaScriptProxy(options: Literal_Object_object__String_name_Array_String_methodList): undefined { + public registerJavaScriptProxy(options: Literal_Object_object__String_name_Array_String_methodList): undefined { const options_casted = options as (Literal_Object_object__String_name_Array_String_methodList) return this.registerJavaScriptProxy_serialize(options_casted) } - deleteJavaScriptRegister(name: string): undefined { + public deleteJavaScriptRegister(name: string): undefined { const name_casted = name as (string) return this.deleteJavaScriptRegister_serialize(name_casted) } - getHitTest(): HitTestType { + public getHitTest(): HitTestType { return this.getHitTest_serialize() } - requestFocus(): undefined { + public requestFocus(): undefined { return this.requestFocus_serialize() } - accessBackward(): boolean { + public accessBackward(): boolean { return this.accessBackward_serialize() } - accessForward(): boolean { + public accessForward(): boolean { return this.accessForward_serialize() } - accessStep(step: number): boolean { + public accessStep(step: number): boolean { const step_casted = step as (number) return this.accessStep_serialize(step_casted) } - backward(): undefined { + public backward(): undefined { return this.backward_serialize() } - forward(): undefined { + public forward(): undefined { return this.forward_serialize() } - getCookieManager(): WebCookie { + public getCookieManager(): WebCookie { return this.getCookieManager_serialize() } private onInactive_serialize(): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts index c2c9659d2..41f99abb7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_WebCookie } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebCookie implements MaterializedBase { peer?: Finalizable | undefined @@ -41,10 +40,10 @@ export class WebCookie implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebCookie_getFinalizer() } - setCookie(): undefined { + public setCookie(): undefined { return this.setCookie_serialize() } - saveCookie(): undefined { + public saveCookie(): undefined { return this.saveCookie_serialize() } private setCookie_serialize(): undefined { diff --git a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index dba747c97..53edef511 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_WebKeyboardController } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebKeyboardController implements MaterializedBase { peer?: Finalizable | undefined @@ -41,27 +40,27 @@ export class WebKeyboardController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebKeyboardController_getFinalizer() } - insertText(text: string): void { + public insertText(text: string): void { const text_casted = text as (string) this.insertText_serialize(text_casted) return } - deleteForward(length: number): void { + public deleteForward(length: number): void { const length_casted = length as (number) this.deleteForward_serialize(length_casted) return } - deleteBackward(length: number): void { + public deleteBackward(length: number): void { const length_casted = length as (number) this.deleteBackward_serialize(length_casted) return } - sendFunctionKey(key: number): void { + public sendFunctionKey(key: number): void { const key_casted = key as (number) this.sendFunctionKey_serialize(key_casted) return } - close(): void { + public close(): void { this.close_serialize() return } diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 9a3305ab5..07a3061b7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_WebResourceError } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebResourceError implements MaterializedBase { peer?: Finalizable | undefined @@ -41,10 +40,10 @@ export class WebResourceError implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebResourceError_getFinalizer() } - getErrorInfo(): string { + public getErrorInfo(): string { return this.getErrorInfo_serialize() } - getErrorCode(): number { + public getErrorCode(): number { return this.getErrorCode_serialize() } private getErrorInfo_serialize(): string { diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index ea01cff59..913f2c978 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -17,14 +17,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Header } from "./ArkWebInterfaces" -import { INTERFACE_WebResourceRequest } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebResourceRequest implements MaterializedBase { peer?: Finalizable | undefined @@ -42,22 +41,22 @@ export class WebResourceRequest implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebResourceRequest_getFinalizer() } - getRequestHeader(): Array
{ + public getRequestHeader(): Array
{ return this.getRequestHeader_serialize() } - getRequestUrl(): string { + public getRequestUrl(): string { return this.getRequestUrl_serialize() } - isRequestGesture(): boolean { + public isRequestGesture(): boolean { return this.isRequestGesture_serialize() } - isMainFrame(): boolean { + public isMainFrame(): boolean { return this.isMainFrame_serialize() } - isRedirect(): boolean { + public isRedirect(): boolean { return this.isRedirect_serialize() } - getRequestMethod(): string { + public getRequestMethod(): string { return this.getRequestMethod_serialize() } private getRequestHeader_serialize(): Array
{ diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index 009918d97..90ea91aae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -18,14 +18,13 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" -import { INTERFACE_WebResourceResponse } 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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebResourceResponse implements MaterializedBase { peer?: Finalizable | undefined @@ -43,63 +42,63 @@ export class WebResourceResponse implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebResourceResponse_getFinalizer() } - getResponseData(): string { + public getResponseData(): string { return this.getResponseData_serialize() } - getResponseDataEx(): string | number | NativeBuffer | Resource | undefined { + public getResponseDataEx(): string | number | NativeBuffer | Resource | undefined { return this.getResponseDataEx_serialize() } - getResponseEncoding(): string { + public getResponseEncoding(): string { return this.getResponseEncoding_serialize() } - getResponseMimeType(): string { + public getResponseMimeType(): string { return this.getResponseMimeType_serialize() } - getReasonMessage(): string { + public getReasonMessage(): string { return this.getReasonMessage_serialize() } - getResponseHeader(): Array
{ + public getResponseHeader(): Array
{ return this.getResponseHeader_serialize() } - getResponseCode(): number { + public getResponseCode(): number { return this.getResponseCode_serialize() } - setResponseData(data: string | number | Resource | NativeBuffer): void { + public setResponseData(data: string | number | Resource | NativeBuffer): void { const data_casted = data as (string | number | Resource | NativeBuffer) this.setResponseData_serialize(data_casted) return } - setResponseEncoding(encoding: string): void { + public setResponseEncoding(encoding: string): void { const encoding_casted = encoding as (string) this.setResponseEncoding_serialize(encoding_casted) return } - setResponseMimeType(mimeType: string): void { + public setResponseMimeType(mimeType: string): void { const mimeType_casted = mimeType as (string) this.setResponseMimeType_serialize(mimeType_casted) return } - setReasonMessage(reason: string): void { + public setReasonMessage(reason: string): void { const reason_casted = reason as (string) this.setReasonMessage_serialize(reason_casted) return } - setResponseHeader(header: Array
): void { + public setResponseHeader(header: Array
): void { const header_casted = header as (Array
) this.setResponseHeader_serialize(header_casted) return } - setResponseCode(code: number): void { + public setResponseCode(code: number): void { const code_casted = code as (number) this.setResponseCode_serialize(code_casted) return } - setResponseIsReady(IsReady: boolean): void { + public setResponseIsReady(IsReady: boolean): void { const IsReady_casted = IsReady as (boolean) this.setResponseIsReady_serialize(IsReady_casted) return } - getResponseIsReady(): boolean { + public getResponseIsReady(): boolean { return this.getResponseIsReady_serialize() } private getResponseData_serialize(): string { diff --git a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts index 6a47dca4a..f2bd86a41 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -17,15 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Resource } from "./ArkResourceInterfaces" -import { WebHeader } from "./ArkArkui-externalInterfaces" -import { INTERFACE_WebviewController } from "./SyntheticDeclarations" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class WebviewController implements MaterializedBase { peer?: Finalizable | undefined @@ -46,11 +45,11 @@ export class WebviewController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebviewController_getFinalizer() } - static initializeWebEngine(): void { + public static initializeWebEngine(): void { WebviewController.initializeWebEngine_serialize() return } - loadUrl(url: string | Resource, headers?: Array): void { + public loadUrl(url: string | Resource, headers?: Array): void { const url_casted = url as (string | Resource) const headers_casted = headers as (Array | undefined) this.loadUrl_serialize(url_casted, headers_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts index 89a020e14..17ddf5d8c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { return (this.peer as ArkWindowScenePeer) } /** @memo */ - setWindowSceneOptions(persistentId: number): this { + public setWindowSceneOptions(persistentId: number): this { if (this.checkPriority("setWindowSceneOptions")) { const persistentId_casted = persistentId as (number) this.getPeer()?.setWindowSceneOptionsAttribute(persistentId_casted) @@ -41,7 +41,7 @@ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { return this } /** @memo */ - attractionEffect(destination: Position, fraction: number): this { + public attractionEffect(destination: Position, fraction: number): this { if (this.checkPriority("attractionEffect")) { const destination_casted = destination as (Position) const fraction_casted = fraction as (number) diff --git a/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts index 7216b838e..7ddd06167 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { ThemeColorMode } from "./ArkCommonInterfaces" export interface CustomTheme { - __CustomThemeStub: string; + _CustomThemeStub: string; } export interface WithThemeOptions { theme?: CustomTheme; diff --git a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts index 2a7c77cd0..c75d2bb3e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Literal_Number_surfaceHeight_surfaceWidth, INTERFACE_XComponentController } from "./SyntheticDeclarations" +import { Literal_Number_surfaceHeight_surfaceWidth } from "./SyntheticDeclarations" import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { CallbackTransformer } from "./peers/CallbackTransformer" export class XComponentController implements MaterializedBase { peer?: Finalizable | undefined @@ -43,54 +43,54 @@ export class XComponentController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._XComponentController_getFinalizer() } - getXComponentSurfaceId(): string { + public getXComponentSurfaceId(): string { return this.getXComponentSurfaceId_serialize() } - getXComponentContext(): Object { + public getXComponentContext(): Object { return this.getXComponentContext_serialize() } - setXComponentSurfaceSize(value: Literal_Number_surfaceHeight_surfaceWidth): void { + public setXComponentSurfaceSize(value: Literal_Number_surfaceHeight_surfaceWidth): void { const value_casted = value as (Literal_Number_surfaceHeight_surfaceWidth) this.setXComponentSurfaceSize_serialize(value_casted) return } - setXComponentSurfaceRect(rect: SurfaceRect): void { + public setXComponentSurfaceRect(rect: SurfaceRect): void { const rect_casted = rect as (SurfaceRect) this.setXComponentSurfaceRect_serialize(rect_casted) return } - getXComponentSurfaceRect(): SurfaceRect { + public getXComponentSurfaceRect(): SurfaceRect { return this.getXComponentSurfaceRect_serialize() } - setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void { + public setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void { const rotationOptions_casted = rotationOptions as (SurfaceRotationOptions) this.setXComponentSurfaceRotation_serialize(rotationOptions_casted) return } - getXComponentSurfaceRotation(): Required { + public getXComponentSurfaceRotation(): SurfaceRotationOptions { return this.getXComponentSurfaceRotation_serialize() } - onSurfaceCreated(surfaceId: string): void { + public onSurfaceCreated(surfaceId: string): void { const surfaceId_casted = surfaceId as (string) this.onSurfaceCreated_serialize(surfaceId_casted) return } - onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void { + public onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void { const surfaceId_casted = surfaceId as (string) const rect_casted = rect as (SurfaceRect) this.onSurfaceChanged_serialize(surfaceId_casted, rect_casted) return } - onSurfaceDestroyed(surfaceId: string): void { + public onSurfaceDestroyed(surfaceId: string): void { const surfaceId_casted = surfaceId as (string) this.onSurfaceDestroyed_serialize(surfaceId_casted) return } - startImageAnalyzer(config: ImageAnalyzerConfig): Promise { + public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { const config_casted = config as (ImageAnalyzerConfig) return this.startImageAnalyzer_serialize(config_casted) } - stopImageAnalyzer(): void { + public stopImageAnalyzer(): void { this.stopImageAnalyzer_serialize() return } @@ -127,7 +127,7 @@ export class XComponentController implements MaterializedBase { ArkUIGeneratedNativeModule._XComponentController_setXComponentSurfaceRotation(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private getXComponentSurfaceRotation_serialize(): Required { + private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts index 183a9b557..8545e51ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -35,7 +35,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkXComponentPeer) } /** @memo */ - setXComponentOptions(value: Type_XComponentInterface_value | XComponentOptions): this { + public setXComponentOptions(value: Type_XComponentInterface_value | XComponentOptions): this { if (this.checkPriority("setXComponentOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT == value_type)))) { @@ -58,7 +58,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLoad(value: OnNativeLoadCallback): this { + public onLoad(value: OnNativeLoadCallback): this { if (this.checkPriority("onLoad")) { const value_casted = value as (OnNativeLoadCallback) this.getPeer()?.onLoadAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDestroy(value: VoidCallback): this { + public onDestroy(value: VoidCallback): this { if (this.checkPriority("onDestroy")) { const value_casted = value as (VoidCallback) this.getPeer()?.onDestroyAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableSecure(value: boolean): this { + public enableSecure(value: boolean): this { if (this.checkPriority("enableSecure")) { const value_casted = value as (boolean) this.getPeer()?.enableSecureAttribute(value_casted) diff --git a/arkoala-arkts/arkui/src/generated/EnumsImpl.ts b/arkoala-arkts/arkui/src/generated/EnumsImpl.ts index 42cfc7780..b775e5067 100644 --- a/arkoala-arkts/arkui/src/generated/EnumsImpl.ts +++ b/arkoala-arkts/arkui/src/generated/EnumsImpl.ts @@ -1,4 +1,4 @@ -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" export enum PointerStyle { DEFAULT = 0, EAST = 1, diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/GlobalScope.ts index 52b4a28af..df92b6744 100644 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ts +++ b/arkoala-arkts/arkui/src/generated/GlobalScope.ts @@ -19,8 +19,8 @@ import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" import { Context, AnimateParam } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Callback_String_Void } from "./SyntheticDeclarations" -import { PointerStyle } from "./ArkArkui-customInterfaces" +import { Callback_Void, Profiler } from "./SyntheticDeclarations" +import { PointerStyle } from "./ArkArkuiCustomInterfaces" import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" export function getContext(component: Object): Context { return GlobalScope_common.getContext(component) diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index 7a311468b..dd7703bf1 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -19,131 +19,67 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { AnimateParam, UIContext, DrawContext, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, Rectangle, IntentionCode, DismissContentCoverAction, SheetSize, SheetDismiss, DismissSheetAction, SpringBackAction, SheetType, DismissPopupAction, TouchResult, TouchTestInfo, CustomBuilder, DragItemInfo, PreDragStatus, MeasureResult, CaretOffset, RectResult, OnMoveHandler, HoverCallback, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, UIGestureEvent, LinearGradient_common, ItemDragInfo, SelectionOptions } from "./ArkCommonInterfaces" -import { DoubleAnimationParam } from "./ArkAnimationExtenderInterfaces" -import { Callback_RangeUpdate } from "./ArkArkui-customInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType, Want, RectWidthStyle, RectHeightStyle } from "./ArkArkui-externalInterfaces" -import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { Resource } from "./ArkResourceInterfaces" -import { FrameNode } from "./ArkFrameNodeMaterialized" -import { Position, LengthMetricsUnit, Length, ResourceColor, Area, ConstraintSizeOptions, DirectionalEdgesT, Dimension, ResourceStr, VoidCallback } from "./ArkUnitsInterfaces" -import { NavPathStack } from "./ArkNavPathStackMaterialized" -import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" -import { ClickEvent } from "./ArkClickEventMaterialized" -import { DismissDialogAction, ActionSheetOptions } from "./ArkActionSheetInterfaces" -import { AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./ArkAlertDialogInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" +import { DismissDialogAction } from "./ArkActionSheetInterfaces" import { MonthData, CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" import { CalendarController } from "./ArkCalendarControllerMaterialized" -import { CalendarDialogOptions } from "./ArkCalendarPickerInterfaces" -import { Path2D } from "./ArkPath2DMaterialized" -import { Matrix2D } from "./ArkMatrix2DMaterialized" -import { CanvasGradient } from "./ArkCanvasGradientMaterialized" -import { CanvasPattern } from "./ArkCanvasPatternMaterialized" -import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings, Size } from "./ArkCanvasInterfaces" -import { ImageBitmap } from "./ArkImageBitmapMaterialized" -import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { DrawingCanvas } from "./ArkDrawingCanvasMaterialized" -import { HorizontalAlign, VerticalAlign, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, GradientDirection, HitTestMode, Alignment, Axis, Edge } from "./ArkEnumsInterfaces" +import { HorizontalAlign, VerticalAlign, GradientDirection, HitTestMode, Alignment, Axis } from "./ArkEnumsInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" -import { GestureJudgeResult, GestureInfo, FingerInfo, PanDirection, SwipeDirection, GestureRecognizerState } from "./ArkGestureInterfaces" +import { GestureJudgeResult, GestureInfo, PanDirection, SwipeDirection } from "./ArkGestureInterfaces" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { DismissContentCoverAction, SheetSize, SheetDismiss, DismissSheetAction, SpringBackAction, SheetType, DismissPopupAction, TouchResult, TouchTestInfo, CustomBuilder, DragItemInfo, PreDragStatus, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, ResourceColor, Area, Dimension, ResourceStr } from "./ArkUnitsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" import { MouseEvent } from "./ArkMouseEventMaterialized" import { TouchEvent } from "./ArkTouchEventMaterialized" import { KeyEvent } from "./ArkKeyEventMaterialized" import { DragEvent } from "./ArkDragEventMaterialized" import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" -import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" -import { DatePickerResult, DatePickerDialogOptions } from "./ArkDatePickerInterfaces" +import { DatePickerResult } from "./ArkDatePickerInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { FormCallbackInfo } from "./ArkFormComponentInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" import { GestureEvent } from "./ArkGestureEventMaterialized" -import { GestureControl_GestureType } from "./ArkGestureControlNamespace" -import { EventTargetInfo } from "./ArkEventTargetInfoMaterialized" -import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" import { ComputedBarAttribute } from "./ArkGridInterfaces" -import { ScrollState, CloseSwipeActionOptions, VisibleListContentInfo } from "./ArkListInterfaces" -import { ScrollAlign, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" +import { ScrollState } from "./ArkListInterfaces" import { SwipeActionState } from "./ArkListItemInterfaces" import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" -import { NavPathInfo, PopInfo, NavigationOptions, NavigationInterception, NavigationTitleMode, NavigationMode, NavigationAnimatedTransition, NavContentInfo, NavigationOperation } from "./ArkNavigationInterfaces" -import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { PopInfo, NavigationTitleMode, NavigationMode, NavigationAnimatedTransition, NavContentInfo, NavigationOperation } from "./ArkNavigationInterfaces" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" import { NavigationType } from "./ArkNavigatorInterfaces" import { PanelMode } from "./ArkPanelInterfaces" import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" -import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" import { RefreshStatus } from "./ArkRefreshInterfaces" -import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, PasteEvent } from "./ArkRichEditorInterfaces" -import { LayoutManager } from "./ArkLayoutManagerMaterialized" -import { PreviewText, StyledStringChangedListener, TextRange, InsertValue, DeleteValue, StyledStringChangeValue, PositionWithAffinity, LineMetrics, TextBox, TextMenuItem } from "./ArkTextCommonInterfaces" -import { StyledString } from "./ArkStyledStringMaterialized" -import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, PasteEvent } from "./ArkRichEditorInterfaces" +import { TextRange, InsertValue, DeleteValue, StyledStringChangeValue } from "./ArkTextCommonInterfaces" import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" +import { OnScrollFrameBeginHandlerResult, OffsetResult } from "./ArkScrollInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { SliderChangeMode } from "./ArkSliderInterfaces" import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" import { TabContentAnimatedTransition } from "./ArkTabsInterfaces" import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" -import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" -import { TextPickerResult, TextPickerDialogOptions } from "./ArkTextPickerInterfaces" -import { TimePickerResult, TimePickerDialogOptions } from "./ArkTimePickerInterfaces" +import { TextPickerResult } from "./ArkTextPickerInterfaces" +import { TimePickerResult } from "./ArkTimePickerInterfaces" import { WithThemeAttribute } from "./ArkWithThemeInterfaces" -import { SeekMode, FullscreenInfo, PreparedInfo, PlaybackInfo } from "./ArkVideoInterfaces" -import { WebKeyboardOptions, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, MessageLevel, Header, HitTestType, 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 } from "./ArkWebInterfaces" -import { WebviewController } from "./ArkWebviewControllerMaterialized" -import { WebCookie } from "./ArkWebCookieMaterialized" +import { FullscreenInfo, PreparedInfo, PlaybackInfo } from "./ArkVideoInterfaces" +import { WebKeyboardOptions, Header, 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 } from "./ArkWebInterfaces" import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" -import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { XComponentController } from "./ArkXComponentControllerMaterialized" -import { SectionOptions } from "./ArkWaterFlowInterfaces" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { IsolatedComponentAttribute } from "./ArkIsolatedComponentInterfaces" -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" -import { CustomSpan } from "./ArkCustomSpanMaterialized" -import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" -export interface INTERFACE_AnimationExtender { -} -export interface INTERFACE_UnifiedData { -} -export interface INTERFACE_LazyForEachOps { -} -export interface INTERFACE_DrawingCanvas { -} -export interface INTERFACE_LengthMetrics { - unit: LengthUnit; - value: number; -} -export interface INTERFACE_WebviewController { -} +import { StyledString } from "./ArkStyledStringMaterialized" export type AsyncCallback_image_PixelMap_Void = (result: PixelMap) => void; -export interface INTERFACE_GlobalScope_ohos_arkui_componentSnapshot { -} -export interface INTERFACE_GlobalScope_ohos_arkui_performanceMonitor { -} -export interface INTERFACE_FrameNode { -} -export interface INTERFACE_PixelMap { - isEditable: int32; - isStrideAlignment: int32; -} -export interface INTERFACE_NavExtender { -} -export interface INTERFACE_EventEmulator { -} export interface Literal_Want_want { want: Want; } export type Callback_Void = () => void; export type Callback_DismissDialogAction_Void = (parameter: DismissDialogAction) => void; -export interface INTERFACE_ActionSheet { -} -export interface INTERFACE_AlertDialog { -} export type Callback_Array_String_Void = (value: Array) => void; export type Callback_Number_Void = (index: number) => void; export interface Literal_Number_day_month_year { @@ -151,8 +87,6 @@ export interface Literal_Number_day_month_year { month: number; day: number; } -export interface INTERFACE_CalendarController { -} export interface Type_CalendarInterface_value { date: Literal_Number_day_month_year; currentData: MonthData; @@ -163,63 +97,8 @@ export interface Type_CalendarInterface_value { export type Callback_CalendarSelectedDate_Void = (event: CalendarSelectedDate) => void; export type Callback_CalendarRequestedData_Void = (event: CalendarRequestedData) => void; export type Callback_Date_Void = (parameter: Date) => void; -export interface INTERFACE_CalendarPickerDialog { -} -export interface INTERFACE_CanvasGradient { -} -export interface INTERFACE_CanvasPath { -} -export interface INTERFACE_Path2D { -} -export interface INTERFACE_CanvasPattern { -} -export interface INTERFACE_ImageBitmap { - readonly height: number; - readonly width: number; -} -export interface INTERFACE_CanvasRenderer { - globalAlpha: number; - globalCompositeOperation: string; - fillStyle: string | number | CanvasGradient | CanvasPattern; - strokeStyle: string | number | CanvasGradient | CanvasPattern; - filter: string; - imageSmoothingEnabled: boolean; - imageSmoothingQuality: ImageSmoothingQuality; - lineCap: CanvasLineCap; - lineDashOffset: number; - lineJoin: CanvasLineJoin; - lineWidth: number; - miterLimit: number; - shadowBlur: number; - shadowColor: string; - shadowOffsetX: number; - shadowOffsetY: number; - direction: CanvasDirection; - font: string; - textAlign: CanvasTextAlign; - textBaseline: CanvasTextBaseline; - - - - - - - - -} export type Callback_Opt_Array_String_Void = (error?: Array | undefined) => void; -export interface INTERFACE_CanvasRenderingContext2D { - readonly height: number; - readonly width: number; - readonly canvas: FrameNode; -} -export interface INTERFACE_DrawingRenderingContext { - readonly size: Size; - readonly canvas: DrawingCanvas; -} export type Callback_Boolean_Void = (parameter: boolean) => void; -export interface INTERFACE_ICurve { -} export interface Literal_String_anchor_HorizontalAlign_align { anchor: string; align: HorizontalAlign; @@ -232,89 +111,12 @@ export interface Literal_TransitionEffect_appear_disappear { appear: TransitionEffect; disappear: TransitionEffect; } -export interface INTERFACE_DrawModifier { -} -export interface INTERFACE_TransitionEffect { -} export type Tuple_Number_Number = [ number, number ] -export interface INTERFACE_BaseEvent { - target: EventTarget; - timestamp: number; - source: SourceType; - axisHorizontal?: number; - axisVertical?: number; - pressure: number; - tiltX: number; - tiltY: number; - sourceTool: SourceTool; - deviceId?: number; -} -export interface INTERFACE_ClickEvent { - displayX: number; - displayY: number; - windowX: number; - windowY: number; - screenX: number; - screenY: number; - x: number; - y: number; - preventDefault: (() => void); -} -export interface INTERFACE_HoverEvent { - stopPropagation: (() => void); -} -export interface INTERFACE_MouseEvent { - button: MouseButton; - action: MouseAction; - displayX: number; - displayY: number; - windowX: number; - windowY: number; - screenX: number; - screenY: number; - x: number; - y: number; - stopPropagation: (() => void); -} -export interface INTERFACE_AccessibilityHoverEvent { - type: AccessibilityHoverType; - x: number; - y: number; - displayX: number; - displayY: number; - windowX: number; - windowY: number; -} -export interface INTERFACE_TouchEvent { - type: TouchType; - touches: Array; - changedTouches: Array; - stopPropagation: (() => void); - preventDefault: (() => void); -} export type Callback_GestureJudgeResult_Void = (value: GestureJudgeResult) => void; export type Callback_GestureRecognizer_Void = (value: GestureRecognizer) => void; -export interface INTERFACE_PixelMapMock { -} -export interface INTERFACE_DragEvent { - dragBehavior: DragBehavior; - useCustomDropAnimation: boolean; -} -export interface INTERFACE_KeyEvent { - type: KeyType; - keyCode: number; - keyText: string; - keySource: KeySource; - deviceId: number; - metaKey: number; - timestamp: number; - stopPropagation: (() => void); - intentionCode: IntentionCode; - unicode?: number; -} export type Callback_DismissContentCoverAction_Void = (parameter: DismissContentCoverAction) => void; export type Type_SheetOptions_detents = [ SheetSize | Length, @@ -337,8 +139,6 @@ export interface Literal_ResourceColor_color { color: ResourceColor; } export type Callback_DismissPopupAction_Void = (parameter: DismissPopupAction) => void; -export interface INTERFACE_ProgressMask { -} export type Callback_TouchResult_Void = (value: TouchResult) => void; export type Callback_Array_TouchTestInfo_TouchResult = (value: Array) => TouchResult; export type Callback_ClickEvent_Void = (event: ClickEvent) => void; @@ -398,34 +198,13 @@ export interface Literal_Alignment_align { } export type Callback_Pointer_Void = (value: KPointer) => void; export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; -export interface INTERFACE_Measurable { -} export interface Literal_Empty { } -export interface INTERFACE_View { -} -export interface INTERFACE_TextContentControllerBase { -} -export interface INTERFACE_DynamicNode { -} -export interface INTERFACE_ChildrenMainSize { - childDefaultSize: number; -} -export interface INTERFACE_UICommonEvent { -} -export interface INTERFACE_GestureModifier { -} export interface Literal_String_key_Any_defaultValue { key: string; defaultValue: object; } -export interface INTERFACE_ContextMenu { -} -export interface INTERFACE_CustomDialogController { -} export type Callback_DatePickerResult_Void = (value: DatePickerResult) => void; -export interface INTERFACE_DatePickerDialog { -} export type Callback_TerminationInfo_Void = (parameter: TerminationInfo) => void; export type Callback_FormCallbackInfo_Void = (parameter: FormCallbackInfo) => void; export interface Literal_Number_errcode_String_msg { @@ -434,51 +213,10 @@ export interface Literal_Number_errcode_String_msg { } export type Callback_Literal_Number_errcode_String_msg_Void = (info: Literal_Number_errcode_String_msg) => void; export type Callback_Any_Void = (info: object) => void; -export type Tuple_Union_ResourceColor_LinearGradient_common_Number = [ - ResourceColor | LinearGradient_common, +export type Tuple_Union_ResourceColor_LinearGradient_Number = [ + ResourceColor | LinearGradient, number ] -export interface INTERFACE_BaseGestureEvent { - fingerList: Array; -} -export interface INTERFACE_TapGestureEvent { -} -export interface INTERFACE_LongPressGestureEvent { - repeat: boolean; -} -export interface INTERFACE_PanGestureEvent { - offsetX: number; - offsetY: number; - velocityX: number; - velocityY: number; - velocity: number; -} -export interface INTERFACE_PinchGestureEvent { - scale: number; - pinchCenterX: number; - pinchCenterY: number; -} -export interface INTERFACE_RotationGestureEvent { - angle: number; -} -export interface INTERFACE_SwipeGestureEvent { - angle: number; - speed: number; -} -export interface INTERFACE_GestureEvent { - repeat: boolean; - fingerList: Array; - offsetX: number; - offsetY: number; - angle: number; - speed: number; - scale: number; - pinchCenterX: number; - pinchCenterY: number; - velocityX: number; - velocityY: number; - velocity: number; -} export type Callback_GestureEvent_Void = (event: GestureEvent) => void; export interface Literal_Number_duration_fingers_Boolean_repeat { fingers?: number; @@ -490,8 +228,6 @@ export interface Literal_Number_distance_fingers_PanDirection_direction { direction?: PanDirection; distance?: number; } -export interface INTERFACE_PanGestureOptions { -} export interface Literal_Number_fingers_speed_SwipeDirection_direction { fingers?: number; direction?: SwipeDirection; @@ -505,14 +241,6 @@ export interface Literal_Number_angle_fingers { fingers?: number; angle?: number; } -export interface INTERFACE_ScrollableTargetInfo { -} -export interface INTERFACE_EventTargetInfo { -} -export interface INTERFACE_GestureRecognizer { -} -export interface INTERFACE_PanRecognizer { -} export type Callback_Tuple_Number_Number_Void = (value: [ number, number ]) => void; export type Callback_Number_Tuple_Number_Number = (index: number) => [ number, number ]; export type Tuple_Number_Number_Number_Number = [ @@ -550,42 +278,14 @@ export interface Type_ImageAttribute_onComplete_callback_event { contentOffsetY: number; } export type Callback_Type_ImageAttribute_onComplete_callback_event_Void = (event?: Type_ImageAttribute_onComplete_callback_event) => void; -export interface INTERFACE_ImageAnalyzerController { -} -export interface INTERFACE_ListScroller { -} export type Callback_Number_Number_Number_Void = (start: number, end: number, center: number) => void; export type Callback_Number_Boolean = (index: number) => boolean; export type Callback_Number_Number_Boolean = (from: number, to: number) => boolean; export type Callback_SwipeActionState_Void = (state: SwipeActionState) => void; export type Callback_ClickEvent_LocationButtonOnClickResult_Void = (event: ClickEvent, result: LocationButtonOnClickResult) => void; -export interface INTERFACE_Matrix2D { - scaleX?: number; - rotateY?: number; - rotateX?: number; - scaleY?: number; - translateX?: number; - translateY?: number; - -} -export interface INTERFACE_NavDestinationContext { - pathInfo: NavPathInfo; - pathStack: NavPathStack; - navDestinationId?: string; -} export type Callback_Boolean = () => boolean; export type Callback_NavDestinationContext_Void = (parameter: NavDestinationContext) => void; export type Callback_PopInfo_Void = (parameter: PopInfo) => void; -export interface INTERFACE_NavPathStack { - - - - - - - - -} export type Tuple_Dimension_Dimension = [ Dimension, Dimension @@ -596,11 +296,6 @@ export type Callback_String_Unknown_Void = (name: string, param: object) => void export type Callback_Opt_NavigationAnimatedTransition_Void = (value: NavigationAnimatedTransition | undefined) => void; export type Type_NavigationAttribute_customNavContentTransition_delegate = (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined; export type Callback_NavigationTransitionProxy_Void = (transitionProxy: NavigationTransitionProxy) => void; -export interface INTERFACE_NavigationTransitionProxy { - from: NavContentInfo; - to: NavContentInfo; - isInteractive?: boolean; -} export interface Literal_String_target_NavigationType_type { target: string; type?: NavigationType; @@ -608,16 +303,8 @@ export interface Literal_String_target_NavigationType_type { export type Callback_Number_Number_PanelMode_Void = (width: number, height: number, mode: PanelMode) => void; export type Callback_PanelMode_Void = (mode: PanelMode) => void; export type Callback_ClickEvent_PasteButtonOnClickResult_Void = (event: ClickEvent, result: PasteButtonOnClickResult) => void; -export interface INTERFACE_PatternLockController { -} export type Callback_Array_Number_Void = (input: Array) => void; export type Callback_RefreshStatus_Void = (state: RefreshStatus) => void; -export interface INTERFACE_RichEditorBaseController { -} -export interface INTERFACE_RichEditorController { -} -export interface INTERFACE_RichEditorStyledStringController { -} export type Callback_RichEditorSelection_Void = (parameter: RichEditorSelection) => void; export type Callback_RichEditorRange_Void = (parameter: RichEditorRange) => void; export type Callback_RichEditorInsertValue_Boolean = (parameter: RichEditorInsertValue) => boolean; @@ -631,14 +318,9 @@ export type Callback_ClickEvent_SaveButtonOnClickResult_Void = (event: ClickEven export interface Literal_Boolean_next_Axis_direction { next: boolean; direction?: Axis; -} -export interface INTERFACE_Scroller { - } export type Callback_OnScrollFrameBeginHandlerResult_Void = (value: OnScrollFrameBeginHandlerResult) => void; export type Callback_OffsetResult_Void = (value: OffsetResult) => void; -export interface INTERFACE_SearchController { -} export type Callback_InsertValue_Boolean = (parameter: InsertValue) => boolean; export type Callback_InsertValue_Void = (parameter: InsertValue) => void; export type Callback_DeleteValue_Boolean = (parameter: DeleteValue) => boolean; @@ -650,114 +332,23 @@ export type Callback_Number_SliderChangeMode_Void = (value: number, mode: Slider export interface Literal_Number_index { index?: number; } -export interface INTERFACE_SwiperController { -} export type Callback_SwiperContentTransitionProxy_Void = (parameter: SwiperContentTransitionProxy) => void; -export interface INTERFACE_SwiperContentTransitionProxy { - selectedIndex: number; - index: number; - position: number; - mainAxisLength: number; -} -export interface INTERFACE_IndicatorComponentController { -} -export interface INTERFACE_TabsController { -} export type Callback_Opt_TabContentAnimatedTransition_Void = (value: TabContentAnimatedTransition | undefined) => void; export type Callback_TabContentTransitionProxy_Void = (parameter: TabContentTransitionProxy) => void; -export interface INTERFACE_TabContentTransitionProxy { - from: number; - to: number; -} -export interface INTERFACE_TextController { -} -export interface INTERFACE_TextAreaController { -} export type Callback_EnterKeyType_Void = (enterKey: EnterKeyType) => void; export type Callback_String_PasteEvent_Void = (value: string, event: PasteEvent) => void; -export interface INTERFACE_TextClockController { -} -export interface INTERFACE_TextBaseController { -} -export interface INTERFACE_TextEditControllerEx { -} -export interface INTERFACE_StyledStringController { -} export type Callback_StyledStringChangeValue_Boolean = (parameter: StyledStringChangeValue) => boolean; -export interface INTERFACE_LayoutManager { -} -export interface INTERFACE_TextMenuItemId { -} -export interface INTERFACE_EditMenuOptions { -} -export interface INTERFACE_SubmitEvent { - text: string; -} -export interface INTERFACE_TextInputController { -} export type Callback_String_Number_Void = (value: string, index: number) => void; export type Type_TextPickerAttribute_onChange_callback = (value: string | Array, index: number | Array) => void; export type Callback_Union_Number_Array_Number_Void = (selected: number | Array) => void; export type Callback_Union_String_Array_String_Void = (value: string | Array) => void; export type Callback_TextPickerResult_Void = (value: TextPickerResult) => void; -export interface INTERFACE_TextPickerDialog { -} -export interface INTERFACE_TextTimerController { -} export type Callback_TimePickerResult_Void = (value: TimePickerResult) => void; -export interface INTERFACE_TimePickerDialog { -} export type Callback_WithThemeAttribute_Void = (value: WithThemeAttribute) => void; -export interface INTERFACE_VideoController { - -} export type Callback_FullscreenInfo_Void = (parameter: FullscreenInfo) => void; export type Callback_PreparedInfo_Void = (parameter: PreparedInfo) => void; export type Callback_PlaybackInfo_Void = (parameter: PlaybackInfo) => void; -export interface INTERFACE_WebKeyboardController { -} export type Callback_WebKeyboardOptions_Void = (value: WebKeyboardOptions) => void; -export interface INTERFACE_FullScreenExitHandler { -} -export interface INTERFACE_FileSelectorParam { -} -export interface INTERFACE_JsResult { -} -export interface INTERFACE_FileSelectorResult { -} -export interface INTERFACE_HttpAuthHandler { -} -export interface INTERFACE_SslErrorHandler { -} -export interface INTERFACE_ClientAuthenticationHandler { - -} -export interface INTERFACE_PermissionRequest { -} -export interface INTERFACE_ScreenCaptureHandler { -} -export interface INTERFACE_DataResubmissionHandler { -} -export interface INTERFACE_ControllerHandler { -} -export interface INTERFACE_WebContextMenuParam { -} -export interface INTERFACE_WebContextMenuResult { -} -export interface INTERFACE_ConsoleMessage { -} -export interface INTERFACE_WebResourceRequest { -} -export interface INTERFACE_WebResourceResponse { -} -export interface INTERFACE_WebResourceError { -} -export interface INTERFACE_JsGeolocation { -} -export interface INTERFACE_WebCookie { -} -export interface INTERFACE_EventResult { -} export interface Literal_String_script_Callback_String_Void_callback_ { script: string; callback_?: ((breakpoints: string) => void); @@ -778,8 +369,6 @@ export interface Literal_Object_object__String_name_Array_String_methodList { name: string; methodList: Array; } -export interface INTERFACE_WebController { -} export type Callback_OnPageEndEvent_Void = (parameter: OnPageEndEvent) => void; export type Callback_OnPageBeginEvent_Void = (parameter: OnPageBeginEvent) => void; export type Callback_OnProgressChangeEvent_Void = (parameter: OnProgressChangeEvent) => void; @@ -845,19 +434,13 @@ export interface Literal_Number_surfaceHeight_surfaceWidth { surfaceWidth: number; surfaceHeight: number; } -export interface INTERFACE_XComponentController { -} export interface Type_XComponentInterface_value { id: string; type: string; libraryname?: string; controller?: XComponentController; } -export interface INTERFACE_WaterFlowSections { -} export type Callback_UIExtensionProxy_Void = (parameter: UIExtensionProxy) => void; -export interface INTERFACE_UIExtensionProxy { -} export interface Literal_Number_code_Want_want { code: number; want?: Want; @@ -865,15 +448,6 @@ 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 interface INTERFACE_StyledString { - readonly length: number; -} -export interface INTERFACE_MutableStyledString { -} -export interface INTERFACE_CustomSpan { -} -export interface INTERFACE_LinearIndicatorController { -} -namespace Profiler { +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 c34110a33..da98d6478 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts @@ -56,7 +56,7 @@ export class ArkUIGeneratedNativeModule { native static _AlphabetIndexerAttribute_popupTitleBackground(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _AlphabetIndexerAttribute_enableHapticFeedback(ptr: KPointer, value: KInt): void native static _AlphabetIndexerAttribute_alignStyle(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AlphabetIndexerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Animator_construct(id: KInt, flags: KInt): KPointer native static _AnimatorInterface_setAnimatorOptions(ptr: KPointer, value: KStringPtr): void native static _AnimatorAttribute_state(ptr: KPointer, value: KInt): void @@ -129,7 +129,7 @@ export class ArkUIGeneratedNativeModule { native static _CheckboxAttribute_mark(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CheckboxAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CheckboxAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CheckboxAttribute___onChangeEvent_select(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxAttribute__onChangeEvent_select(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CheckboxGroup_construct(id: KInt, flags: KInt): KPointer native static _CheckboxGroupInterface_setCheckboxGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CheckboxGroupAttribute_selectAll(ptr: KPointer, value: KInt): void @@ -138,7 +138,7 @@ export class ArkUIGeneratedNativeModule { native static _CheckboxGroupAttribute_mark(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CheckboxGroupAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CheckboxGroupAttribute_checkboxShape(ptr: KPointer, value: KInt): void - native static _CheckboxGroupAttribute___onChangeEvent_selectAll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxGroupAttribute__onChangeEvent_selectAll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Circle_construct(id: KInt, flags: KInt): KPointer native static _CircleInterface_setCircleOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Column_construct(id: KInt, flags: KInt): KPointer @@ -269,7 +269,7 @@ export class ArkUIGeneratedNativeModule { native static _CommonMethod_radialGradient(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_motionPath(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_shadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonMethod_clip0(ptr: KPointer, value: KInt): void + native static _CommonMethod_clip0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_clip1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_clipShape(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_mask0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -405,7 +405,7 @@ export class ArkUIGeneratedNativeModule { native static _DatePickerAttribute_selectedTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _DatePickerAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _DatePickerAttribute_onDateChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _DatePickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DatePickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Divider_construct(id: KInt, flags: KInt): KPointer native static _DividerInterface_setDividerOptions(ptr: KPointer): void native static _DividerAttribute_vertical(ptr: KPointer, value: KInt): void @@ -504,7 +504,7 @@ export class ArkUIGeneratedNativeModule { native static _GridItemAttribute_selectable(ptr: KPointer, value: KInt): void native static _GridItemAttribute_selected(ptr: KPointer, value: KInt): void native static _GridItemAttribute_onSelect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GridItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GridCol_construct(id: KInt, flags: KInt): KPointer native static _GridColInterface_setGridColOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GridColAttribute_span(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -622,7 +622,7 @@ export class ArkUIGeneratedNativeModule { native static _ListItemAttribute_selected(ptr: KPointer, value: KInt): void native static _ListItemAttribute_swipeAction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ListItemAttribute_onSelect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ListItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ListItemGroup_construct(id: KInt, flags: KInt): KPointer native static _ListItemGroupInterface_setListItemGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ListItemGroupAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -667,7 +667,7 @@ export class ArkUIGeneratedNativeModule { native static _MenuItemAttribute_contentFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MenuItemAttribute_labelFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MenuItemAttribute_labelFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _MenuItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MenuItemGroup_construct(id: KInt, flags: KInt): KPointer native static _MenuItemGroupInterface_setMenuItemGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavDestination_construct(id: KInt, flags: KInt): KPointer @@ -720,7 +720,7 @@ export class ArkUIGeneratedNativeModule { native static _PanelAttribute_showCloseIcon(ptr: KPointer, value: KInt): void native static _PanelAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _PanelAttribute_onHeightChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _PanelAttribute___onChangeEvent_mode(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelAttribute__onChangeEvent_mode(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _PasteButton_construct(id: KInt, flags: KInt): KPointer native static _PasteButtonInterface_setPasteButtonOptions0(ptr: KPointer): void native static _PasteButtonInterface_setPasteButtonOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -770,7 +770,7 @@ export class ArkUIGeneratedNativeModule { native static _RadioAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RadioAttribute_radioStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RadioAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _RadioAttribute___onChangeEvent_checked(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RadioAttribute__onChangeEvent_checked(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Rating_construct(id: KInt, flags: KInt): KPointer native static _RatingInterface_setRatingOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RatingAttribute_stars(ptr: KPointer, value: number): void @@ -778,7 +778,7 @@ export class ArkUIGeneratedNativeModule { native static _RatingAttribute_starStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RatingAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RatingAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _RatingAttribute___onChangeEvent_rating(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RatingAttribute__onChangeEvent_rating(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Rect_construct(id: KInt, flags: KInt): KPointer native static _RectInterface_setRectOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RectAttribute_radiusWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -792,7 +792,7 @@ export class ArkUIGeneratedNativeModule { native static _RefreshAttribute_pullToRefresh(ptr: KPointer, value: KInt): void native static _RefreshAttribute_onOffsetChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RefreshAttribute_pullDownRatio(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _RefreshAttribute___onChangeEvent_refreshing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RefreshAttribute__onChangeEvent_refreshing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RelativeContainer_construct(id: KInt, flags: KInt): KPointer native static _RelativeContainerInterface_setRelativeContainerOptions(ptr: KPointer): void native static _RelativeContainerAttribute_guideLine(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -918,7 +918,7 @@ export class ArkUIGeneratedNativeModule { native static _SearchAttribute_searchButton(ptr: KPointer, value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SearchAttribute_inputFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SearchAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SearchAttribute___onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute__onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SecurityComponentMethod_construct(id: KInt, flags: KInt): KPointer native static _SecurityComponentMethod_iconSize(ptr: KPointer, value: Length): void native static _SecurityComponentMethod_layoutDirection(ptr: KPointer, value: KInt): void @@ -966,8 +966,8 @@ export class ArkUIGeneratedNativeModule { native static _SelectAttribute_menuItemContentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SelectAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SelectAttribute_menuAlign(ptr: KPointer, alignType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SelectAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SelectAttribute___onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute__onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Shape_construct(id: KInt, flags: KInt): KPointer native static _ShapeInterface_setShapeOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ShapeInterface_setShapeOptions1(ptr: KPointer): void @@ -1007,7 +1007,7 @@ export class ArkUIGeneratedNativeModule { native static _SliderAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SliderAttribute_slideRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SliderAttribute_showTips(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SliderAttribute___onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute__onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _BaseSpan_construct(id: KInt, flags: KInt): KPointer native static _BaseSpan_textBackgroundStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _BaseSpan_baselineOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1035,7 +1035,7 @@ export class ArkUIGeneratedNativeModule { native static _StepperAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _StepperAttribute_onNext(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _StepperAttribute_onPrevious(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _StepperAttribute___onChangeEvent_index(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StepperAttribute__onChangeEvent_index(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _StepperItem_construct(id: KInt, flags: KInt): KPointer native static _StepperItemInterface_setStepperItemOptions(ptr: KPointer): void native static _StepperItemAttribute_prevLabel(ptr: KPointer, value: KStringPtr): void @@ -1070,7 +1070,7 @@ export class ArkUIGeneratedNativeModule { native static _SwiperAttribute_displayCount(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SwiperAttribute_prevMargin(ptr: KPointer, value: Length, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SwiperAttribute_nextMargin(ptr: KPointer, value: Length, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SwiperAttribute___onChangeEvent_index(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute__onChangeEvent_index(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _IndicatorComponent_construct(id: KInt, flags: KInt): KPointer native static _IndicatorComponentInterface_setIndicatorComponentOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _IndicatorComponentAttribute_initialIndex(ptr: KPointer, value: number): void @@ -1123,7 +1123,7 @@ export class ArkUIGeneratedNativeModule { native static _TabsAttribute_barBackgroundEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TabsAttribute_onContentWillChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TabsAttribute_barModeScrollable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TabsAttribute___onChangeEvent_index(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute__onChangeEvent_index(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TabContent_construct(id: KInt, flags: KInt): KPointer native static _TabContentInterface_setTabContentOptions(ptr: KPointer): void native static _TabContentAttribute_tabBar0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1230,7 +1230,7 @@ export class ArkUIGeneratedNativeModule { native static _TextAreaAttribute_inputFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextAreaAttribute_showCounter(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextAreaAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TextAreaAttribute___onChangeEvent_text(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute__onChangeEvent_text(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextClock_construct(id: KInt, flags: KInt): KPointer native static _TextClockInterface_setTextClockOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextClockAttribute_format(ptr: KPointer, value: KStringPtr): void @@ -1311,7 +1311,7 @@ export class ArkUIGeneratedNativeModule { native static _TextInputAttribute_inputFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextInputAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextInputAttribute_showCounter(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TextInputAttribute___onChangeEvent_text(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute__onChangeEvent_text(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPicker_construct(id: KInt, flags: KInt): KPointer native static _TextPickerInterface_setTextPickerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_defaultPickerItemHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1325,8 +1325,8 @@ export class ArkUIGeneratedNativeModule { native static _TextPickerAttribute_selectedIndex(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_gradientHeight(ptr: KPointer, value: Length): void - native static _TextPickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TextPickerAttribute___onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextPickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextPickerAttribute__onChangeEvent_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextTimer_construct(id: KInt, flags: KInt): KPointer native static _TextTimerInterface_setTextTimerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextTimerAttribute_format(ptr: KPointer, value: KStringPtr): void @@ -1348,7 +1348,7 @@ export class ArkUIGeneratedNativeModule { native static _TimePickerAttribute_dateTimeOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TimePickerAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TimePickerAttribute_enableHapticFeedback(ptr: KPointer, value: KInt): void - native static _TimePickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Toggle_construct(id: KInt, flags: KInt): KPointer native static _ToggleInterface_setToggleOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ToggleAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1356,7 +1356,7 @@ export class ArkUIGeneratedNativeModule { native static _ToggleAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ToggleAttribute_switchPointColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ToggleAttribute_switchStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ToggleAttribute___onChangeEvent_isOn(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ToggleAttribute__onChangeEvent_isOn(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Video_construct(id: KInt, flags: KInt): KPointer native static _VideoInterface_setVideoOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _VideoAttribute_muted(ptr: KPointer, value: KInt): void @@ -1526,7 +1526,7 @@ export class ArkUIGeneratedNativeModule { native static _SideBarContainerAttribute_sideBarPosition(ptr: KPointer, value: KInt): void native static _SideBarContainerAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SideBarContainerAttribute_minContentWidth(ptr: KPointer, value: Length): void - native static _SideBarContainerAttribute___onChangeEvent_showSideBar(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute__onChangeEvent_showSideBar(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RemoteWindow_construct(id: KInt, flags: KInt): KPointer native static _RemoteWindowInterface_setRemoteWindowOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _WaterFlow_construct(id: KInt, flags: KInt): KPointer @@ -1561,10 +1561,11 @@ export class ArkUIGeneratedNativeModule { native static _LinearIndicatorAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _AnimationExtender_ctor(): KPointer native static _AnimationExtender_getFinalizer(): KPointer - native static _AnimationExtender_SetClipRect(peer: KPointer, left: number, top: number, right: number, bottom: number): void - native static _AnimationExtender_OpenImplicitAnimation(peer: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AnimationExtender_CloseImplicitAnimation(node: KPointer): void - native static _AnimationExtender_StartDoubleAnimation(peer: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AnimationExtender_SetClipRect(node: KPointer, x: KFloat, y: KFloat, width: KFloat, height: KFloat): void + native static _AnimationExtender_OpenImplicitAnimation(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AnimationExtender_CloseImplicitAnimation(): void + native static _AnimationExtender_StartDoubleAnimation(node: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AnimationExtender_AnimationTranslate(node: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _UnifiedData_ctor(): KPointer native static _UnifiedData_getFinalizer(): KPointer native static _UnifiedData_hasType(ptr: KPointer, UnifiedData_type: KStringPtr): boolean @@ -1597,7 +1598,7 @@ export class ArkUIGeneratedNativeModule { native static _GlobalScope_ohos_arkui_performanceMonitor_getFinalizer(): KPointer native static _GlobalScope_ohos_arkui_performanceMonitor_begin(scene: KStringPtr, startInputType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GlobalScope_ohos_arkui_performanceMonitor_end(scene: KStringPtr): void - native static _GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(type: KInt, sourceType: KInt, time: number): void + native static _GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType: KInt, sourceType: KInt, time: number): void native static _FrameNode_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _FrameNode_getFinalizer(): KPointer native static _FrameNode_isModifiable(ptr: KPointer): boolean @@ -1635,6 +1636,14 @@ export class ArkUIGeneratedNativeModule { native static _AlertDialog_ctor(): KPointer native static _AlertDialog_getFinalizer(): KPointer native static _AlertDialog_show(thisArray: KUint8ArrayPtr, thisLength: int32): undefined + native static _SpringProp_ctor(mass: number, stiffness: number, damping: number): KPointer + native static _SpringProp_getFinalizer(): KPointer + native static _SpringMotion_ctor(start: number, end: number, velocity: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _SpringMotion_getFinalizer(): KPointer + native static _FrictionMotion_ctor(friction: number, position: number, velocity: number): KPointer + native static _FrictionMotion_getFinalizer(): KPointer + native static _ScrollMotion_ctor(position: number, velocity: number, min: number, max: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ScrollMotion_getFinalizer(): KPointer native static _CalendarController_ctor(): KPointer native static _CalendarController_getFinalizer(): KPointer native static _CalendarController_backToToday(ptr: KPointer): undefined @@ -1667,6 +1676,14 @@ export class ArkUIGeneratedNativeModule { native static _ImageBitmap_close(ptr: KPointer): void native static _ImageBitmap_getHeight(ptr: KPointer): number native static _ImageBitmap_getWidth(ptr: KPointer): number + native static _ImageData_ctor(width: number, height: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ImageData_getFinalizer(): KPointer + native static _ImageData_getHeight(ptr: KPointer): number + native static _ImageData_getWidth(ptr: KPointer): number + native static _RenderingContextSettings_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _RenderingContextSettings_getFinalizer(): KPointer + native static _RenderingContextSettings_getAntialias(ptr: KPointer): boolean + native static _RenderingContextSettings_setAntialias(ptr: KPointer, antialias: KInt): void native static _CanvasRenderer_ctor(): KPointer native static _CanvasRenderer_getFinalizer(): KPointer native static _CanvasRenderer_drawImage0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, dx: number, dy: number): void @@ -1823,9 +1840,11 @@ export class ArkUIGeneratedNativeModule { native static _ClickEvent_setX(ptr: KPointer, x: number): void native static _ClickEvent_getY(ptr: KPointer): number native static _ClickEvent_setY(ptr: KPointer, y: number): void + native static _ClickEvent_getPreventDefault(ptr: KPointer): KPointer native static _ClickEvent_setPreventDefault(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _HoverEvent_ctor(): KPointer native static _HoverEvent_getFinalizer(): KPointer + native static _HoverEvent_getStopPropagation(ptr: KPointer): KPointer native static _HoverEvent_setStopPropagation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MouseEvent_ctor(): KPointer native static _MouseEvent_getFinalizer(): KPointer @@ -1849,6 +1868,7 @@ export class ArkUIGeneratedNativeModule { native static _MouseEvent_setX(ptr: KPointer, x: number): void native static _MouseEvent_getY(ptr: KPointer): number native static _MouseEvent_setY(ptr: KPointer, y: number): void + native static _MouseEvent_getStopPropagation(ptr: KPointer): KPointer native static _MouseEvent_setStopPropagation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _AccessibilityHoverEvent_ctor(): KPointer native static _AccessibilityHoverEvent_getFinalizer(): KPointer @@ -1873,7 +1893,9 @@ export class ArkUIGeneratedNativeModule { native static _TouchEvent_setType(ptr: KPointer, type: KInt): void native static _TouchEvent_setTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void 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 + native static _TouchEvent_getPreventDefault(ptr: KPointer): KPointer native static _TouchEvent_setPreventDefault(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _PixelMapMock_ctor(): KPointer native static _PixelMapMock_getFinalizer(): KPointer @@ -1917,6 +1939,7 @@ export class ArkUIGeneratedNativeModule { native static _KeyEvent_setMetaKey(ptr: KPointer, metaKey: number): void native static _KeyEvent_getTimestamp(ptr: KPointer): number native static _KeyEvent_setTimestamp(ptr: KPointer, timestamp: number): void + native static _KeyEvent_getStopPropagation(ptr: KPointer): KPointer native static _KeyEvent_setStopPropagation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _KeyEvent_setIntentionCode(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _KeyEvent_getUnicode(ptr: KPointer): number @@ -1965,8 +1988,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_ctor(): KPointer - native static _GlobalScope_common_getFinalizer(): KPointer 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 @@ -1989,6 +2010,8 @@ export class ArkUIGeneratedNativeModule { native static _CustomDialogController_getFinalizer(): KPointer native static _CustomDialogController_open(ptr: KPointer): undefined native static _CustomDialogController_close(ptr: KPointer): undefined + native static _LinearGradient_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _LinearGradient_getFinalizer(): KPointer native static _DatePickerDialog_ctor(): KPointer native static _DatePickerDialog_getFinalizer(): KPointer native static _DatePickerDialog_show(thisArray: KUint8ArrayPtr, thisLength: int32): undefined @@ -2119,6 +2142,15 @@ export class ArkUIGeneratedNativeModule { native static _NavDestinationContext_setPathStack(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavDestinationContext_getNavDestinationId(ptr: KPointer): string native static _NavDestinationContext_setNavDestinationId(ptr: KPointer, navDestinationId: KStringPtr): void + native static _NavPathInfo_ctor(name: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _NavPathInfo_getFinalizer(): KPointer + native static _NavPathInfo_getName(ptr: KPointer): string + native static _NavPathInfo_setName(ptr: KPointer, name: KStringPtr): void + native static _NavPathInfo_setParam(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavPathInfo_getOnPop(ptr: KPointer): KPointer + native static _NavPathInfo_setOnPop(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavPathInfo_getIsEntry(ptr: KPointer): boolean + native static _NavPathInfo_setIsEntry(ptr: KPointer, isEntry: KInt): void native static _NavPathStack_ctor(): KPointer native static _NavPathStack_getFinalizer(): KPointer native static _NavPathStack_pushPath0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -2238,6 +2270,34 @@ export class ArkUIGeneratedNativeModule { native static _IndicatorComponentController_showNext(ptr: KPointer): void native static _IndicatorComponentController_showPrevious(ptr: KPointer): void native static _IndicatorComponentController_changeIndex(ptr: KPointer, index: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScaleSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ScaleSymbolEffect_getFinalizer(): KPointer + native static _ScaleSymbolEffect_getScope(ptr: KPointer): KPointer + native static _ScaleSymbolEffect_setScope(ptr: KPointer, scope: KInt): void + native static _ScaleSymbolEffect_getDirection(ptr: KPointer): KPointer + native static _ScaleSymbolEffect_setDirection(ptr: KPointer, direction: KInt): void + native static _HierarchicalSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _HierarchicalSymbolEffect_getFinalizer(): KPointer + native static _HierarchicalSymbolEffect_getFillStyle(ptr: KPointer): KPointer + native static _HierarchicalSymbolEffect_setFillStyle(ptr: KPointer, fillStyle: KInt): void + native static _AppearSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _AppearSymbolEffect_getFinalizer(): KPointer + native static _AppearSymbolEffect_getScope(ptr: KPointer): KPointer + native static _AppearSymbolEffect_setScope(ptr: KPointer, scope: KInt): void + native static _DisappearSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _DisappearSymbolEffect_getFinalizer(): KPointer + native static _DisappearSymbolEffect_getScope(ptr: KPointer): KPointer + native static _DisappearSymbolEffect_setScope(ptr: KPointer, scope: KInt): void + native static _BounceSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _BounceSymbolEffect_getFinalizer(): KPointer + native static _BounceSymbolEffect_getScope(ptr: KPointer): KPointer + native static _BounceSymbolEffect_setScope(ptr: KPointer, scope: KInt): void + native static _BounceSymbolEffect_getDirection(ptr: KPointer): KPointer + native static _BounceSymbolEffect_setDirection(ptr: KPointer, direction: KInt): void + native static _ReplaceSymbolEffect_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ReplaceSymbolEffect_getFinalizer(): KPointer + native static _ReplaceSymbolEffect_getScope(ptr: KPointer): KPointer + native static _ReplaceSymbolEffect_setScope(ptr: KPointer, scope: KInt): void native static _TabsController_ctor(): KPointer native static _TabsController_getFinalizer(): KPointer native static _TabsController_changeIndex(ptr: KPointer, value: number): void @@ -2316,6 +2376,8 @@ export class ArkUIGeneratedNativeModule { native static _TimePickerDialog_ctor(): KPointer native static _TimePickerDialog_getFinalizer(): KPointer native static _TimePickerDialog_show(thisArray: KUint8ArrayPtr, thisLength: int32): undefined + native static _ColorFilter_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ColorFilter_getFinalizer(): KPointer native static _VideoController_ctor(): KPointer native static _VideoController_getFinalizer(): KPointer native static _VideoController_start(ptr: KPointer): undefined @@ -2513,6 +2575,41 @@ export class ArkUIGeneratedNativeModule { native static _StyledString_marshalling(thisArray: KUint8ArrayPtr, thisLength: int32): NativeBuffer native static _StyledString_unmarshalling(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _StyledString_getLength(ptr: KPointer): number + native static _TextStyle_styled_string_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _TextStyle_styled_string_getFinalizer(): KPointer + native static _TextStyle_styled_string_getFontFamily(ptr: KPointer): string + native static _TextStyle_styled_string_getFontSize(ptr: KPointer): number + native static _TextStyle_styled_string_getFontWeight(ptr: KPointer): number + native static _TextStyle_styled_string_getFontStyle(ptr: KPointer): KPointer + native static _DecorationStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _DecorationStyle_getFinalizer(): KPointer + native static _DecorationStyle_getType(ptr: KPointer): KPointer + native static _DecorationStyle_getStyle(ptr: KPointer): KPointer + native static _BaselineOffsetStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _BaselineOffsetStyle_getFinalizer(): KPointer + native static _BaselineOffsetStyle_getBaselineOffset(ptr: KPointer): number + native static _LetterSpacingStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _LetterSpacingStyle_getFinalizer(): KPointer + native static _LetterSpacingStyle_getLetterSpacing(ptr: KPointer): number + native static _TextShadowStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _TextShadowStyle_getFinalizer(): KPointer + native static _BackgroundColorStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _BackgroundColorStyle_getFinalizer(): KPointer + native static _GestureStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _GestureStyle_getFinalizer(): KPointer + native static _ParagraphStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ParagraphStyle_getFinalizer(): KPointer + native static _ParagraphStyle_getTextAlign(ptr: KPointer): KPointer + native static _ParagraphStyle_getTextIndent(ptr: KPointer): number + native static _ParagraphStyle_getMaxLines(ptr: KPointer): number + native static _ParagraphStyle_getOverflow(ptr: KPointer): KPointer + native static _ParagraphStyle_getWordBreak(ptr: KPointer): KPointer + native static _LineHeightStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _LineHeightStyle_getFinalizer(): KPointer + native static _LineHeightStyle_getLineHeight(ptr: KPointer): number + native static _UrlStyle_ctor(url: KStringPtr): KPointer + native static _UrlStyle_getFinalizer(): KPointer + native static _UrlStyle_getUrl(ptr: KPointer): string native static _MutableStyledString_ctor(): KPointer native static _MutableStyledString_getFinalizer(): KPointer native static _MutableStyledString_replaceString(ptr: KPointer, start: number, length: number, other: KStringPtr): void @@ -2526,6 +2623,10 @@ export class ArkUIGeneratedNativeModule { native static _MutableStyledString_replaceStyledString(ptr: KPointer, start: number, length: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MutableStyledString_insertStyledString(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MutableStyledString_appendStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttachment_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ImageAttachment_getFinalizer(): KPointer + native static _ImageAttachment_getVerticalAlign(ptr: KPointer): KPointer + 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 @@ -2537,8 +2638,6 @@ 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_ctor(): KPointer - native static _GlobalScope_inspector_getFinalizer(): KPointer native static _GlobalScope_inspector_getInspectorNodes(): KPointer native static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer native static _GlobalScope_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index 8c6b1d3bf..f9504b738 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -4,21 +4,21 @@ import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_O 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 { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, 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, TranslateOptions, 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 { PointerStyle, Callback_RangeUpdate } from "./../ArkArkui-customInterfaces" +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 { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkui-externalInterfaces" +import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" 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_common_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_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 { 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, ColorFilter, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" +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 { NavExtender } from "./../ArkNavExtenderMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -33,7 +33,11 @@ import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ActionSheet } from "./../ArkActionSheetMaterialized" import { AlertDialog } from "./../ArkAlertDialogMaterialized" import { IndexerAlign, AlphabetIndexerOptions, AlphabetIndexerInterface, AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" -import { SpringProp, SpringMotion, FrictionMotion, ScrollMotion, AnimatorInterface, AnimatorAttribute } from "./../ArkAnimatorInterfaces" +import { SpringProp } from "./../ArkSpringPropMaterialized" +import { SpringMotion } from "./../ArkSpringMotionMaterialized" +import { FrictionMotion } from "./../ArkFrictionMotionMaterialized" +import { ScrollMotion } from "./../ArkScrollMotionMaterialized" +import { AnimatorInterface, AnimatorAttribute } from "./../ArkAnimatorInterfaces" import { BadgePosition, BadgeStyle, BadgeParam, BadgeParamWithNumber, BadgeParamWithString, BadgeInterface, BadgeAttribute } from "./../ArkBadgeInterfaces" import { BlankInterface, BlankAttribute } from "./../ArkBlankInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole, ButtonConfiguration, ButtonTriggerClickCallback, ControlSize, ButtonOptions, ButtonInterface, ButtonAttribute, LabelStyle } from "./../ArkButtonInterfaces" @@ -46,8 +50,10 @@ import { CanvasPath } from "./../ArkCanvasPathMaterialized" import { Path2D } from "./../ArkPath2DMaterialized" import { Matrix2D } from "./../ArkMatrix2DMaterialized" import { CanvasPattern } from "./../ArkCanvasPatternMaterialized" -import { TextMetrics, ImageData, RenderingContextSettings, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, Size, CanvasInterface, CanvasAttribute } from "./../ArkCanvasInterfaces" +import { TextMetrics, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, Size, CanvasInterface, CanvasAttribute } from "./../ArkCanvasInterfaces" import { ImageBitmap } from "./../ArkImageBitmapMaterialized" +import { ImageData } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMaterialized" import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" @@ -70,9 +76,6 @@ 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 { EllipseAttribute, EllipseOptions, EllipseInterface } from "./../ArkEllipseInterfaces" -import { PathAttribute, PathOptions, PathInterface } from "./../ArkPathInterfaces" -import { RectAttribute, RectOptions, RoundedRectOptions, RectInterface } from "./../ArkRectInterfaces" 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" @@ -92,12 +95,14 @@ import { ContextMenu } from "./../ArkContextMenuMaterialized" import { CounterInterface, CounterAttribute } from "./../ArkCounterInterfaces" import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" import { CustomDialogController } from "./../ArkCustomDialogControllerMaterialized" -import { DataPanelType, ColorStop, LinearGradient_data_panel, DataPanelShadowOptions, DataPanelOptions, DataPanelInterface, DataPanelAttribute, DataPanelConfiguration } from "./../ArkDataPanelInterfaces" +import { DataPanelType, ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelInterface, DataPanelAttribute, DataPanelConfiguration } from "./../ArkDataPanelInterfaces" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { DatePickerResult, DatePickerOptions, DatePickerInterface, DatePickerAttribute, LunarSwitchStyle, DatePickerDialogOptions } from "./../ArkDatePickerInterfaces" import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerOptions, TimePickerInterface, TimePickerAttribute, TimePickerDialogOptions } from "./../ArkTimePickerInterfaces" import { DatePickerDialog } from "./../ArkDatePickerDialogMaterialized" import { DividerInterface, DividerAttribute } from "./../ArkDividerInterfaces" import { EffectComponentInterface, EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" +import { EllipseOptions, EllipseInterface, EllipseAttribute } from "./../ArkEllipseInterfaces" import { EmbeddedComponentInterface, EmbeddedComponentAttribute, TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { ErrorCallback, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute } from "./../ArkIsolatedComponentInterfaces" import { FlexOptions, FlexSpaceOptions, FlexInterface, FlexAttribute } from "./../ArkFlexInterfaces" @@ -127,6 +132,7 @@ import { GridColColumnOption, GridColOptions, GridColInterface, GridColAttribute import { SizeType, GridContainerOptions, GridContainerInterface, GridContainerAttribute } from "./../ArkGridContainerInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakpointsReference, GridRowDirection, BreakPoints, GridRowOptions, GridRowInterface, GridRowAttribute } from "./../ArkGridRowInterfaces" import { HyperlinkInterface, HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" +import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageAnimatorInterface, ImageAnimatorAttribute, ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageSpanInterface, ImageSpanAttribute, ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" @@ -145,7 +151,8 @@ import { MenuItemOptions, MenuItemInterface, MenuItemAttribute } from "./../ArkM import { MenuItemGroupOptions, MenuItemGroupInterface, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavigationSystemTransitionType, NavDestinationMode, NavDestinationInterface, NavDestinationAttribute, RouteMapConfig } from "./../ArkNavDestinationInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition } from "./../ArkNavigationInterfaces" +import { NavPathInfo } from "./../ArkNavPathInfoMaterialized" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition } from "./../ArkNavigationInterfaces" import { RouteInfo, NavRouterInterface, NavRouterAttribute, NavRouteMode } from "./../ArkNavRouterInterfaces" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" import { NavigationType, NavigatorInterface, NavigatorAttribute } from "./../ArkNavigatorInterfaces" @@ -154,6 +161,7 @@ import { RouteType, SlideEffect, PageTransitionOptions, PageTransitionCallback } import { PanelMode, PanelType, PanelHeight, PanelInterface, PanelAttribute } from "./../ArkPanelInterfaces" import { VelocityOptions, ParticleTuple, PointParticleParameters, ImageParticleParameters, ParticleConfigs, EmitterProperty, EmitterParticleOptions, ParticlePropertyUpdaterConfigs, ParticleUpdaterOptions, ParticleColorOptions, ParticleColorUpdaterOptions, ParticleColorPropertyUpdaterConfigs, ParticlePropertyAnimation, ParticleType, ParticleEmitterShape, DistributionType, ParticleUpdater, DisturbanceFieldShape } from "./../ArkParticleInterfaces" import { PasteIconStyle, PasteDescription, PasteButtonOptions, PasteButtonOnClickResult, PasteButtonInterface, PasteButtonAttribute } from "./../ArkPasteButtonInterfaces" +import { PathOptions, PathInterface, PathAttribute } from "./../ArkPathInterfaces" import { PatternLockChallengeResult, CircleStyleOptions, PatternLockInterface, PatternLockAttribute } from "./../ArkPatternLockInterfaces" import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" import { PluginComponentTemplate, PluginComponentOptions, PluginErrorData, PluginComponentInterface, PluginComponentAttribute, PluginErrorCallback } from "./../ArkPluginComponentInterfaces" @@ -163,12 +171,13 @@ import { ProgressOptions, ProgressStyle, ProgressType, ProgressStatus, ProgressS import { QRCodeInterface, QRCodeAttribute } from "./../ArkQrcodeInterfaces" import { RadioIndicatorType, RadioOptions, RadioStyle, RadioInterface, RadioAttribute, RadioConfiguration } from "./../ArkRadioInterfaces" import { RatingOptions, StarStyleOptions, RatingInterface, RatingAttribute, RatingConfiguration } from "./../ArkRatingInterfaces" +import { RectOptions, RoundedRectOptions, RectInterface, RectAttribute } from "./../ArkRectInterfaces" import { RefreshStatus, RefreshOptions, RefreshInterface, RefreshAttribute } from "./../ArkRefreshInterfaces" import { RelativeContainerInterface, RelativeContainerAttribute, GuideLinePosition, GuideLineStyle, BarrierDirection, LocalizedBarrierDirection, BarrierStyle, LocalizedBarrierStyle } from "./../ArkRelativeContainerInterfaces" import { VirtualScrollOptions, TemplateOptions } from "./../ArkRepeatInterfaces" import { RichEditorDeleteDirection, RichEditorSpanType, RichEditorResponseType, RichEditorSpanPosition, RichEditorTextStyle, LeadingMarginPlaceholder, RichEditorParagraphStyle, PasteEvent, RichEditorTextSpan, RichEditorLayoutStyle, RichEditorImageSpanStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorParagraphResult, RichEditorSymbolSpanStyleResult, RichEditorTextSpanResult, RichEditorImageSpanStyleResult, RichEditorImageSpanResult, RichEditorImageSpan, RichEditorRange, RichEditorGesture, RichEditorTextSpanOptions, KeyboardOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, PlaceholderStyle, RichEditorSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorSymbolSpanOptions, RichEditorSelection, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, RichEditorOptions, RichEditorStyledStringOptions, SelectionMenuOptions, MenuOnAppearCallback, RichEditorSpan, RichEditorAttribute, PasteEventCallback, SubmitCallback, CutEvent, CopyEvent, RichEditorInterface } from "./../ArkRichEditorInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue, TextStyle_styled_string, TextStyleInterface, DecorationStyle, BaselineOffsetStyle, LetterSpacingStyle, TextShadowStyle, BackgroundColorStyle, GestureStyle, GestureStyleInterface, ParagraphStyle, ParagraphStyleInterface, LineHeightStyle, UrlStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMetrics, CustomSpanDrawInfo, CustomSpanMeasureInfo, UserDataSpan } from "./../ArkStyledStringInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphInterface, SymbolGlyphAttribute, EffectDirection, EffectScope, EffectFillStyle, SymbolEffect, ScaleSymbolEffect, HierarchicalSymbolEffect, AppearSymbolEffect, DisappearSymbolEffect, BounceSymbolEffect, ReplaceSymbolEffect, PulseSymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue, TextStyleInterface, GestureStyleInterface, ParagraphStyleInterface, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMetrics, CustomSpanDrawInfo, CustomSpanMeasureInfo, UserDataSpan } from "./../ArkStyledStringInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphInterface, SymbolGlyphAttribute, EffectDirection, EffectScope, EffectFillStyle, SymbolEffect, PulseSymbolEffect } from "./../ArkSymbolglyphInterfaces" import { DecorationStyleResult, TextRange, MenuType, PreviewText, StyledStringChangedListener, TextDataDetectorConfig, OnDidChangeCallback, CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, FontSettingOptions, TextDataDetectorType, TextDeleteDirection, StyledStringChangeValue, PositionWithAffinity, LineMetrics, TextBox, Affinity, TextMenuItem } from "./../ArkTextCommonInterfaces" import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" @@ -205,6 +214,12 @@ import { SwiperAutoFill, ArrowStyle, SwiperDisplayMode, SwiperInterface, SwiperA import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" import { IndicatorComponentInterface, IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" +import { ScaleSymbolEffect } from "./../ArkScaleSymbolEffectMaterialized" +import { HierarchicalSymbolEffect } from "./../ArkHierarchicalSymbolEffectMaterialized" +import { AppearSymbolEffect } from "./../ArkAppearSymbolEffectMaterialized" +import { DisappearSymbolEffect } from "./../ArkDisappearSymbolEffectMaterialized" +import { BounceSymbolEffect } from "./../ArkBounceSymbolEffectMaterialized" +import { ReplaceSymbolEffect } from "./../ArkReplaceSymbolEffectMaterialized" import { SymbolSpanInterface, SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" import { BarMode, AnimationMode, BarPosition, LayoutStyle, TabsOptions, TabsInterface, TabsAttribute, DividerStyle, TabsAnimationEvent, BarGridColumnOptions, ScrollableBarModeOptions, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, TabContentAnimatedTransition } from "./../ArkTabsInterfaces" import { TabsController } from "./../ArkTabsControllerMaterialized" @@ -262,7 +277,18 @@ import { SectionOptions, GetItemMainSizeByIndex, WaterFlowLayoutMode, WaterFlowO import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" import { DpiFollowStrategy, UIExtensionOptions, ReceiveCallback, UIExtensionComponentInterface, UIExtensionComponentAttribute } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" +import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { TextStyle_styled_string } from "./../ArkTextStyleStyledStringMaterialized" +import { DecorationStyle } from "./../ArkDecorationStyleMaterialized" +import { BaselineOffsetStyle } from "./../ArkBaselineOffsetStyleMaterialized" +import { LetterSpacingStyle } from "./../ArkLetterSpacingStyleMaterialized" +import { TextShadowStyle } from "./../ArkTextShadowStyleMaterialized" +import { BackgroundColorStyle } from "./../ArkBackgroundColorStyleMaterialized" +import { GestureStyle } from "./../ArkGestureStyleMaterialized" +import { ParagraphStyle } from "./../ArkParagraphStyleMaterialized" +import { LineHeightStyle } from "./../ArkLineHeightStyleMaterialized" +import { UrlStyle } from "./../ArkUrlStyleMaterialized" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { LinearIndicatorStartOptions, LinearIndicatorStyle, LinearIndicatorInterface, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" import { RawFileDescriptor } from "./../ArkRawFileDescriptorInterfaces" @@ -1770,12 +1796,12 @@ export class TypeChecker { static isLightSource(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { return value instanceof LightSource } + static isLinearGradient(value: object|string|number|undefined|null): boolean { + return value instanceof LinearGradient + } static isLinearGradient_common(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof LinearGradient_common } - static isLinearGradient_data_panel(value: object|string|number|undefined|null): boolean { - return value instanceof LinearGradient_data_panel - } static isLinearGradientBlurOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof LinearGradientBlurOptions } @@ -3453,6 +3479,9 @@ export class TypeChecker { static isStyledStringKey(value: object|string|number|undefined|null): boolean { return value instanceof StyledStringKey } + static isStyledStringValue(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof StyledStringValue + } static isStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof StyleOptions } @@ -4206,11 +4235,11 @@ export class TypeChecker { static isArray_ColorStop(value: object|string|number|undefined|null): boolean { return value instanceof Array } - static isArray_Union_ResourceColor_LinearGradient_data_panel(value: object|string|number|undefined|null): boolean { - return value instanceof Array + static isArray_Union_ResourceColor_LinearGradient(value: object|string|number|undefined|null): boolean { + return value instanceof Array } - static isArray_Tuple_Union_ResourceColor_LinearGradient_common_Number(value: object|string|number|undefined|null): boolean { - return value instanceof Array<[ ResourceColor | LinearGradient_common, number ]> + static isArray_Tuple_Union_ResourceColor_LinearGradient_Number(value: object|string|number|undefined|null): boolean { + return value instanceof Array<[ ResourceColor | LinearGradient, number ]> } static isArray_FingerInfo(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 ffdff7778..6607c0e11 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -128,9 +128,9 @@ export * from "./ArkUiExtensionComponent" export * from "./ArkLinearindicator" export * from "./ArkStdlibInterfaces" export * from "./ArkAnimationExtenderInterfaces" +export * from "./ArkArkuiCustomInterfaces" +export * from "./ArkArkuiExternalInterfaces" export * from "./SyntheticDeclarations" -export * from "./ArkArkui-customInterfaces" -export * from "./ArkArkui-externalInterfaces" export * from "./ArkNavigationExtenderInterfaces" export * from "./ArkPointInterfaces" export * from "./ArkStaticComponentsInterfaces" @@ -280,6 +280,10 @@ export * from "./ArkNavExtenderMaterialized" export * from "./ArkEventEmulatorMaterialized" export * from "./ArkActionSheetMaterialized" export * from "./ArkAlertDialogMaterialized" +export * from "./ArkSpringPropMaterialized" +export * from "./ArkSpringMotionMaterialized" +export * from "./ArkFrictionMotionMaterialized" +export * from "./ArkScrollMotionMaterialized" export * from "./ArkCalendarControllerMaterialized" export * from "./ArkCalendarPickerDialogMaterialized" export * from "./ArkCanvasGradientMaterialized" @@ -287,6 +291,8 @@ export * from "./ArkCanvasPathMaterialized" export * from "./ArkPath2DMaterialized" export * from "./ArkCanvasPatternMaterialized" export * from "./ArkImageBitmapMaterialized" +export * from "./ArkImageDataMaterialized" +export * from "./ArkRenderingContextSettingsMaterialized" export * from "./ArkCanvasRendererMaterialized" export * from "./ArkCanvasRenderingContext2DMaterialized" export * from "./ArkDrawingRenderingContextMaterialized" @@ -313,6 +319,7 @@ export * from "./ArkGestureModifierMaterialized" export * from "./ArkGlobalScopeCommonMaterialized" export * from "./ArkContextMenuMaterialized" export * from "./ArkCustomDialogControllerMaterialized" +export * from "./ArkLinearGradientMaterialized" export * from "./ArkDatePickerDialogMaterialized" export * from "./ArkBaseGestureEventMaterialized" export * from "./ArkTapGestureEventMaterialized" @@ -331,6 +338,7 @@ export * from "./ArkImageAnalyzerControllerMaterialized" export * from "./ArkListScrollerMaterialized" export * from "./ArkMatrix2DMaterialized" export * from "./ArkNavDestinationContextMaterialized" +export * from "./ArkNavPathInfoMaterialized" export * from "./ArkNavPathStackMaterialized" export * from "./ArkNavigationTransitionProxyMaterialized" export * from "./ArkPatternLockControllerMaterialized" @@ -342,6 +350,12 @@ export * from "./ArkSearchControllerMaterialized" export * from "./ArkSwiperControllerMaterialized" export * from "./ArkSwiperContentTransitionProxyMaterialized" export * from "./ArkIndicatorComponentControllerMaterialized" +export * from "./ArkScaleSymbolEffectMaterialized" +export * from "./ArkHierarchicalSymbolEffectMaterialized" +export * from "./ArkAppearSymbolEffectMaterialized" +export * from "./ArkDisappearSymbolEffectMaterialized" +export * from "./ArkBounceSymbolEffectMaterialized" +export * from "./ArkReplaceSymbolEffectMaterialized" export * from "./ArkTabsControllerMaterialized" export * from "./ArkTabContentTransitionProxyMaterialized" export * from "./ArkTextControllerMaterialized" @@ -358,6 +372,7 @@ export * from "./ArkTextInputControllerMaterialized" export * from "./ArkTextPickerDialogMaterialized" export * from "./ArkTextTimerControllerMaterialized" export * from "./ArkTimePickerDialogMaterialized" +export * from "./ArkColorFilterMaterialized" export * from "./ArkVideoControllerMaterialized" export * from "./ArkWebKeyboardControllerMaterialized" export * from "./ArkFullScreenExitHandlerMaterialized" @@ -385,7 +400,18 @@ export * from "./ArkXComponentControllerMaterialized" export * from "./ArkWaterFlowSectionsMaterialized" export * from "./ArkUIExtensionProxyMaterialized" export * from "./ArkStyledStringMaterialized" +export * from "./ArkTextStyleStyledStringMaterialized" +export * from "./ArkDecorationStyleMaterialized" +export * from "./ArkBaselineOffsetStyleMaterialized" +export * from "./ArkLetterSpacingStyleMaterialized" +export * from "./ArkTextShadowStyleMaterialized" +export * from "./ArkBackgroundColorStyleMaterialized" +export * from "./ArkGestureStyleMaterialized" +export * from "./ArkParagraphStyleMaterialized" +export * from "./ArkLineHeightStyleMaterialized" +export * from "./ArkUrlStyleMaterialized" export * from "./ArkMutableStyledStringMaterialized" +export * from "./ArkImageAttachmentMaterialized" export * from "./ArkCustomSpanMaterialized" export * from "./ArkLinearIndicatorControllerMaterialized" export * from "./ArkGlobalScopeInspectorMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/peer_events.ts b/arkoala-arkts/arkui/src/generated/peer_events.ts index e272df643..5b85e379e 100644 --- a/arkoala-arkts/arkui/src/generated/peer_events.ts +++ b/arkoala-arkts/arkui/src/generated/peer_events.ts @@ -1,4 +1,4 @@ -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { KStringPtr, KPointer, RuntimeType } from "@koalaui/interop" import { Callback_Void, Callback_Number_Void, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, 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_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Callback_Number_Number_Void, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_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, Callback_String_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, 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, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_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_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, 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_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want } from "./SyntheticDeclarations" import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./ArkAlphabetIndexerInterfaces" @@ -18,12 +18,13 @@ import { GestureInfo, GestureJudgeResult } from "./ArkGestureInterfaces" import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" import { HitTestMode, Edge } from "./ArkEnumsInterfaces" +import { ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" +import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo } from "./ArkListInterfaces" import { DatePickerResult } from "./ArkDatePickerInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam } from "./ArkFolderStackInterfaces" import { FormCallbackInfo } from "./ArkFormComponentInterfaces" import { ComputedBarAttribute } from "./ArkGridInterfaces" -import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo } from "./ArkListInterfaces" import { ImageErrorCallback, ImageError } from "./ArkImageInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./ArkImageSpanInterfaces" import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" @@ -37,7 +38,6 @@ import { TextRange, OnDidChangeCallback, EditableTextOnChangeCallback, PreviewTe import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" import { SearchSubmitCallback } from "./ArkSearchInterfaces" import { Resource } from "./ArkResourceInterfaces" import { SliderChangeMode } from "./ArkSliderInterfaces" @@ -51,7 +51,7 @@ import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" import { OnNativeLoadCallback } from "./ArkXcomponentInterfaces" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -import { Want } from "./ArkArkui-externalInterfaces" +import { Want } from "./ArkArkuiExternalInterfaces" export enum PeerEventKind { AbilityComponent_onConnect = 0, AbilityComponent_onDisconnect = 1, @@ -59,7 +59,7 @@ export enum PeerEventKind { AlphabetIndexer_onSelect = 3, AlphabetIndexer_onRequestPopupData = 4, AlphabetIndexer_onPopupSelect = 5, - AlphabetIndexer___onChangeEvent_selected = 6, + AlphabetIndexer__onChangeEvent_selected = 6, Animator_onStart = 7, Animator_onPause = 8, Animator_onRepeat = 9, @@ -71,9 +71,9 @@ export enum PeerEventKind { CalendarPicker_onChange = 15, Canvas_onReady = 16, Checkbox_onChange = 17, - Checkbox___onChangeEvent_select = 18, + Checkbox__onChangeEvent_select = 18, CheckboxGroup_onChange = 19, - CheckboxGroup___onChangeEvent_selectAll = 20, + CheckboxGroup__onChangeEvent_selectAll = 20, CommonMethod_onChildTouchTest = 21, CommonMethod_onClick0 = 22, CommonMethod_onClick1 = 23, @@ -112,299 +112,301 @@ export enum PeerEventKind { CommonMethod_bindSheet = 56, CommonMethod_onVisibleAreaChange = 57, ScrollableCommonMethod_onScroll = 58, - ScrollableCommonMethod_onReachStart = 59, - ScrollableCommonMethod_onReachEnd = 60, - ScrollableCommonMethod_onScrollStart = 61, - ScrollableCommonMethod_onScrollStop = 62, - Counter_onInc = 63, - Counter_onDec = 64, - DatePicker_onChange = 65, - DatePicker_onDateChange = 66, - DatePicker___onChangeEvent_selected = 67, - EmbeddedComponent_onTerminated = 68, - FolderStack_onFolderStateChange = 69, - FolderStack_onHoverStatusChange = 70, - FormComponent_onAcquired = 71, - FormComponent_onError = 72, - FormComponent_onRouter = 73, - FormComponent_onUninstall = 74, - FormComponent_onLoad = 75, - Gauge_description = 76, - Grid_onScrollBarUpdate = 77, - Grid_onScrollIndex = 78, - Grid_onItemDragStart = 79, - Grid_onItemDragEnter = 80, - Grid_onItemDragMove = 81, - Grid_onItemDragLeave = 82, - Grid_onItemDrop = 83, - Grid_onScroll = 84, - Grid_onReachStart = 85, - Grid_onReachEnd = 86, - Grid_onScrollStart = 87, - Grid_onScrollStop = 88, - Grid_onScrollFrameBegin = 89, - GridItem_onSelect = 90, - GridItem___onChangeEvent_selected = 91, - GridRow_onBreakpointChange = 92, - Image_onComplete = 93, - Image_onError = 94, - Image_onFinish = 95, - ImageAnimator_onStart = 96, - ImageAnimator_onPause = 97, - ImageAnimator_onRepeat = 98, - ImageAnimator_onCancel = 99, - ImageAnimator_onFinish = 100, - ImageSpan_onComplete = 101, - ImageSpan_onError = 102, - List_onScroll = 103, - List_onScrollIndex = 104, - List_onScrollVisibleContentChange = 105, - List_onReachStart = 106, - List_onReachEnd = 107, - List_onScrollStart = 108, - List_onScrollStop = 109, - List_onItemDelete = 110, - List_onItemMove = 111, - List_onItemDragStart = 112, - List_onItemDragEnter = 113, - List_onItemDragMove = 114, - List_onItemDragLeave = 115, - List_onItemDrop = 116, - List_onScrollFrameBegin = 117, - ListItem_onSelect = 118, - ListItem___onChangeEvent_selected = 119, - LocationButton_onClick = 120, - Marquee_onStart = 121, - Marquee_onBounce = 122, - Marquee_onFinish = 123, - MenuItem_onChange = 124, - MenuItem___onChangeEvent_selected = 125, - NavDestination_onShown = 126, - NavDestination_onHidden = 127, - NavDestination_onBackPressed = 128, - NavDestination_onReady = 129, - NavDestination_onWillAppear = 130, - NavDestination_onWillDisappear = 131, - NavDestination_onWillShow = 132, - NavDestination_onWillHide = 133, - NavRouter_onStateChange = 134, - Panel_onChange = 135, - Panel_onHeightChange = 136, - Panel___onChangeEvent_mode = 137, - PasteButton_onClick = 138, - PatternLock_onPatternComplete = 139, - PatternLock_onDotConnect = 140, - PluginComponent_onComplete = 141, - PluginComponent_onError = 142, - Radio_onChange = 143, - Radio___onChangeEvent_checked = 144, - Rating_onChange = 145, - Rating___onChangeEvent_rating = 146, - Refresh_onStateChange = 147, - Refresh_onRefreshing = 148, - Refresh_onOffsetChange = 149, - Refresh___onChangeEvent_refreshing = 150, - RichEditor_onReady = 151, - RichEditor_onSelect = 152, - RichEditor_onSelectionChange = 153, - RichEditor_aboutToIMEInput = 154, - RichEditor_onIMEInputComplete = 155, - RichEditor_onDidIMEInput = 156, - RichEditor_aboutToDelete = 157, - RichEditor_onDeleteComplete = 158, - RichEditor_onPaste = 159, - RichEditor_onEditingChange = 160, - RichEditor_onSubmit = 161, - RichEditor_onWillChange = 162, - RichEditor_onDidChange = 163, - RichEditor_onCut = 164, - RichEditor_onCopy = 165, - RichEditor_bindSelectionMenu = 166, - RichEditor_customKeyboard = 167, - RichText_onStart = 168, - RichText_onComplete = 169, - SaveButton_onClick = 170, - Scroll_onScroll = 171, - Scroll_onScrollEdge = 172, - Scroll_onScrollStart = 173, - Scroll_onScrollEnd = 174, - Scroll_onScrollStop = 175, - Scroll_onScrollFrameBegin = 176, - Search_onEditChange = 177, - Search_onSubmit0 = 178, - Search_onSubmit1 = 179, - Search_onChange = 180, - Search_onTextSelectionChange = 181, - Search_onContentScroll = 182, - Search_onCopy = 183, - Search_onCut = 184, - Search_onPaste = 185, - Search_onWillInsert = 186, - Search_onDidInsert = 187, - Search_onWillDelete = 188, - Search_onDidDelete = 189, - Search_customKeyboard = 190, - Search___onChangeEvent_value = 191, - Select_onSelect = 192, - Select___onChangeEvent_selected = 193, - Select___onChangeEvent_value = 194, - Slider_onChange = 195, - Slider___onChangeEvent_value = 196, - Stepper_onFinish = 197, - Stepper_onSkip = 198, - Stepper_onChange = 199, - Stepper_onNext = 200, - Stepper_onPrevious = 201, - Stepper___onChangeEvent_index = 202, - Swiper_onChange = 203, - Swiper_onAnimationStart = 204, - Swiper_onAnimationEnd = 205, - Swiper_onGestureSwipe = 206, - Swiper_onContentDidScroll = 207, - Swiper___onChangeEvent_index = 208, - IndicatorComponent_onChange = 209, - Tabs_onChange = 210, - Tabs_onTabBarClick = 211, - Tabs_onAnimationStart = 212, - Tabs_onAnimationEnd = 213, - Tabs_onGestureSwipe = 214, - Tabs_customContentTransition = 215, - Tabs_onContentWillChange = 216, - Tabs___onChangeEvent_index = 217, - TabContent_onWillShow = 218, - TabContent_onWillHide = 219, - Text_onCopy = 220, - Text_onTextSelectionChange = 221, - Text_bindSelectionMenu = 222, - TextArea_onSubmit0 = 223, - TextArea_onSubmit1 = 224, - TextArea_onChange = 225, - TextArea_onTextSelectionChange = 226, - TextArea_onContentScroll = 227, - TextArea_onEditChange = 228, - TextArea_onCopy = 229, - TextArea_onCut = 230, - TextArea_onPaste = 231, - TextArea_onWillInsert = 232, - TextArea_onDidInsert = 233, - TextArea_onWillDelete = 234, - TextArea_onDidDelete = 235, - TextArea_customKeyboard = 236, - TextArea___onChangeEvent_text = 237, - TextClock_onDateChange = 238, - TextInput_onEditChanged = 239, - TextInput_onEditChange = 240, - TextInput_onSubmit = 241, - TextInput_onChange = 242, - TextInput_onTextSelectionChange = 243, - TextInput_onContentScroll = 244, - TextInput_onCopy = 245, - TextInput_onCut = 246, - TextInput_onPaste = 247, - TextInput_showUnit = 248, - TextInput_onSecurityStateChange = 249, - TextInput_onWillInsert = 250, - TextInput_onDidInsert = 251, - TextInput_onWillDelete = 252, - TextInput_onDidDelete = 253, - TextInput_customKeyboard = 254, - TextInput___onChangeEvent_text = 255, - TextPicker_onAccept = 256, - TextPicker_onCancel = 257, - TextPicker_onChange = 258, - TextPicker___onChangeEvent_selected = 259, - TextPicker___onChangeEvent_value = 260, - TextTimer_onTimer = 261, - TimePicker_onChange = 262, - TimePicker___onChangeEvent_selected = 263, - Toggle_onChange = 264, - Toggle___onChangeEvent_isOn = 265, - Video_onStart = 266, - Video_onPause = 267, - Video_onFinish = 268, - Video_onFullscreenChange = 269, - Video_onPrepared = 270, - Video_onSeeking = 271, - Video_onSeeked = 272, - Video_onUpdate = 273, - Video_onError = 274, - Video_onStop = 275, - Web_onPageEnd = 276, - Web_onPageBegin = 277, - Web_onProgressChange = 278, - Web_onTitleReceive = 279, - Web_onGeolocationHide = 280, - Web_onGeolocationShow = 281, - Web_onRequestSelected = 282, - Web_onAlert = 283, - Web_onBeforeUnload = 284, - Web_onConfirm = 285, - Web_onPrompt = 286, - Web_onConsole = 287, - Web_onErrorReceive = 288, - Web_onHttpErrorReceive = 289, - Web_onDownloadStart = 290, - Web_onRefreshAccessedHistory = 291, - Web_onUrlLoadIntercept = 292, - Web_onSslErrorReceive = 293, - Web_onRenderExited0 = 294, - Web_onRenderExited1 = 295, - Web_onShowFileSelector = 296, - Web_onFileSelectorShow = 297, - Web_onResourceLoad = 298, - Web_onFullScreenExit = 299, - Web_onFullScreenEnter = 300, - Web_onScaleChange = 301, - Web_onHttpAuthRequest = 302, - Web_onInterceptRequest = 303, - Web_onPermissionRequest = 304, - Web_onScreenCaptureRequest = 305, - Web_onContextMenuShow = 306, - Web_onContextMenuHide = 307, - Web_onSearchResultReceive = 308, - Web_onScroll = 309, - Web_onSslErrorEventReceive = 310, - Web_onSslErrorEvent = 311, - Web_onClientAuthenticationRequest = 312, - Web_onWindowNew = 313, - Web_onWindowExit = 314, - Web_onInterceptKeyEvent = 315, - Web_onTouchIconUrlReceived = 316, - Web_onFaviconReceived = 317, - Web_onPageVisible = 318, - Web_onDataResubmitted = 319, - Web_onAudioStateChanged = 320, - Web_onFirstContentfulPaint = 321, - Web_onFirstMeaningfulPaint = 322, - Web_onLargestContentfulPaint = 323, - Web_onLoadIntercept = 324, - Web_onControllerAttached = 325, - Web_onOverScroll = 326, - Web_onSafeBrowsingCheckResult = 327, - Web_onNavigationEntryCommitted = 328, - Web_onIntelligentTrackingPreventionResult = 329, - Web_onNativeEmbedLifecycleChange = 330, - Web_onNativeEmbedVisibilityChange = 331, - Web_onNativeEmbedGestureEvent = 332, - Web_onOverrideUrlLoading = 333, - Web_onRenderProcessNotResponding = 334, - Web_onRenderProcessResponding = 335, - Web_onViewportFitChanged = 336, - Web_onInterceptKeyboardAttach = 337, - Web_onAdsBlocked = 338, - Web_bindSelectionMenu = 339, - XComponent_onLoad = 340, - XComponent_onDestroy = 341, - SideBarContainer_onChange = 342, - SideBarContainer___onChangeEvent_showSideBar = 343, - WaterFlow_onReachStart = 344, - WaterFlow_onReachEnd = 345, - WaterFlow_onScrollFrameBegin = 346, - WaterFlow_onScrollIndex = 347, - UIExtensionComponent_onRemoteReady = 348, - UIExtensionComponent_onResult = 349, - UIExtensionComponent_onRelease = 350, - UIExtensionComponent_onTerminated = 351, + ScrollableCommonMethod_onDidScroll = 59, + ScrollableCommonMethod_onReachStart = 60, + ScrollableCommonMethod_onReachEnd = 61, + ScrollableCommonMethod_onScrollStart = 62, + ScrollableCommonMethod_onScrollStop = 63, + Counter_onInc = 64, + Counter_onDec = 65, + DatePicker_onChange = 66, + DatePicker_onDateChange = 67, + DatePicker__onChangeEvent_selected = 68, + EmbeddedComponent_onTerminated = 69, + FolderStack_onFolderStateChange = 70, + FolderStack_onHoverStatusChange = 71, + FormComponent_onAcquired = 72, + FormComponent_onError = 73, + FormComponent_onRouter = 74, + FormComponent_onUninstall = 75, + FormComponent_onLoad = 76, + Gauge_description = 77, + Grid_onScrollBarUpdate = 78, + Grid_onScrollIndex = 79, + Grid_onItemDragStart = 80, + Grid_onItemDragEnter = 81, + Grid_onItemDragMove = 82, + Grid_onItemDragLeave = 83, + Grid_onItemDrop = 84, + Grid_onScroll = 85, + Grid_onReachStart = 86, + Grid_onReachEnd = 87, + Grid_onScrollStart = 88, + Grid_onScrollStop = 89, + Grid_onScrollFrameBegin = 90, + GridItem_onSelect = 91, + GridItem__onChangeEvent_selected = 92, + GridRow_onBreakpointChange = 93, + Image_onComplete = 94, + Image_onError = 95, + Image_onFinish = 96, + ImageAnimator_onStart = 97, + ImageAnimator_onPause = 98, + ImageAnimator_onRepeat = 99, + ImageAnimator_onCancel = 100, + ImageAnimator_onFinish = 101, + ImageSpan_onComplete = 102, + ImageSpan_onError = 103, + List_onScroll = 104, + List_onScrollIndex = 105, + List_onScrollVisibleContentChange = 106, + List_onReachStart = 107, + List_onReachEnd = 108, + List_onScrollStart = 109, + List_onScrollStop = 110, + List_onItemDelete = 111, + List_onItemMove = 112, + List_onItemDragStart = 113, + List_onItemDragEnter = 114, + List_onItemDragMove = 115, + List_onItemDragLeave = 116, + List_onItemDrop = 117, + List_onScrollFrameBegin = 118, + ListItem_onSelect = 119, + ListItem__onChangeEvent_selected = 120, + LocationButton_onClick = 121, + Marquee_onStart = 122, + Marquee_onBounce = 123, + Marquee_onFinish = 124, + MenuItem_onChange = 125, + MenuItem__onChangeEvent_selected = 126, + NavDestination_onShown = 127, + NavDestination_onHidden = 128, + NavDestination_onBackPressed = 129, + NavDestination_onReady = 130, + NavDestination_onWillAppear = 131, + NavDestination_onWillDisappear = 132, + NavDestination_onWillShow = 133, + NavDestination_onWillHide = 134, + NavRouter_onStateChange = 135, + Panel_onChange = 136, + Panel_onHeightChange = 137, + Panel__onChangeEvent_mode = 138, + PasteButton_onClick = 139, + PatternLock_onPatternComplete = 140, + PatternLock_onDotConnect = 141, + PluginComponent_onComplete = 142, + PluginComponent_onError = 143, + Radio_onChange = 144, + Radio__onChangeEvent_checked = 145, + Rating_onChange = 146, + Rating__onChangeEvent_rating = 147, + Refresh_onStateChange = 148, + Refresh_onRefreshing = 149, + Refresh_onOffsetChange = 150, + Refresh__onChangeEvent_refreshing = 151, + RichEditor_onReady = 152, + RichEditor_onSelect = 153, + RichEditor_onSelectionChange = 154, + RichEditor_aboutToIMEInput = 155, + RichEditor_onIMEInputComplete = 156, + RichEditor_onDidIMEInput = 157, + RichEditor_aboutToDelete = 158, + RichEditor_onDeleteComplete = 159, + RichEditor_onPaste = 160, + RichEditor_onEditingChange = 161, + RichEditor_onSubmit = 162, + RichEditor_onWillChange = 163, + RichEditor_onDidChange = 164, + RichEditor_onCut = 165, + RichEditor_onCopy = 166, + RichEditor_bindSelectionMenu = 167, + RichEditor_customKeyboard = 168, + RichText_onStart = 169, + RichText_onComplete = 170, + SaveButton_onClick = 171, + Scroll_onScroll = 172, + Scroll_onDidScroll = 173, + Scroll_onScrollEdge = 174, + Scroll_onScrollStart = 175, + Scroll_onScrollEnd = 176, + Scroll_onScrollStop = 177, + Scroll_onScrollFrameBegin = 178, + Search_onEditChange = 179, + Search_onSubmit0 = 180, + Search_onSubmit1 = 181, + Search_onChange = 182, + Search_onTextSelectionChange = 183, + Search_onContentScroll = 184, + Search_onCopy = 185, + Search_onCut = 186, + Search_onPaste = 187, + Search_onWillInsert = 188, + Search_onDidInsert = 189, + Search_onWillDelete = 190, + Search_onDidDelete = 191, + Search_customKeyboard = 192, + Search__onChangeEvent_value = 193, + Select_onSelect = 194, + Select__onChangeEvent_selected = 195, + Select__onChangeEvent_value = 196, + Slider_onChange = 197, + Slider__onChangeEvent_value = 198, + Stepper_onFinish = 199, + Stepper_onSkip = 200, + Stepper_onChange = 201, + Stepper_onNext = 202, + Stepper_onPrevious = 203, + Stepper__onChangeEvent_index = 204, + Swiper_onChange = 205, + Swiper_onAnimationStart = 206, + Swiper_onAnimationEnd = 207, + Swiper_onGestureSwipe = 208, + Swiper_onContentDidScroll = 209, + Swiper__onChangeEvent_index = 210, + IndicatorComponent_onChange = 211, + Tabs_onChange = 212, + Tabs_onTabBarClick = 213, + Tabs_onAnimationStart = 214, + Tabs_onAnimationEnd = 215, + Tabs_onGestureSwipe = 216, + Tabs_customContentTransition = 217, + Tabs_onContentWillChange = 218, + Tabs__onChangeEvent_index = 219, + TabContent_onWillShow = 220, + TabContent_onWillHide = 221, + Text_onCopy = 222, + Text_onTextSelectionChange = 223, + Text_bindSelectionMenu = 224, + TextArea_onSubmit0 = 225, + TextArea_onSubmit1 = 226, + TextArea_onChange = 227, + TextArea_onTextSelectionChange = 228, + TextArea_onContentScroll = 229, + TextArea_onEditChange = 230, + TextArea_onCopy = 231, + TextArea_onCut = 232, + TextArea_onPaste = 233, + TextArea_onWillInsert = 234, + TextArea_onDidInsert = 235, + TextArea_onWillDelete = 236, + TextArea_onDidDelete = 237, + TextArea_customKeyboard = 238, + TextArea__onChangeEvent_text = 239, + TextClock_onDateChange = 240, + TextInput_onEditChanged = 241, + TextInput_onEditChange = 242, + TextInput_onSubmit = 243, + TextInput_onChange = 244, + TextInput_onTextSelectionChange = 245, + TextInput_onContentScroll = 246, + TextInput_onCopy = 247, + TextInput_onCut = 248, + TextInput_onPaste = 249, + TextInput_showUnit = 250, + TextInput_onSecurityStateChange = 251, + TextInput_onWillInsert = 252, + TextInput_onDidInsert = 253, + TextInput_onWillDelete = 254, + TextInput_onDidDelete = 255, + TextInput_customKeyboard = 256, + TextInput__onChangeEvent_text = 257, + TextPicker_onAccept = 258, + TextPicker_onCancel = 259, + TextPicker_onChange = 260, + TextPicker__onChangeEvent_selected = 261, + TextPicker__onChangeEvent_value = 262, + TextTimer_onTimer = 263, + TimePicker_onChange = 264, + TimePicker__onChangeEvent_selected = 265, + Toggle_onChange = 266, + Toggle__onChangeEvent_isOn = 267, + Video_onStart = 268, + Video_onPause = 269, + Video_onFinish = 270, + Video_onFullscreenChange = 271, + Video_onPrepared = 272, + Video_onSeeking = 273, + Video_onSeeked = 274, + Video_onUpdate = 275, + Video_onError = 276, + Video_onStop = 277, + Web_onPageEnd = 278, + Web_onPageBegin = 279, + Web_onProgressChange = 280, + Web_onTitleReceive = 281, + Web_onGeolocationHide = 282, + Web_onGeolocationShow = 283, + Web_onRequestSelected = 284, + Web_onAlert = 285, + Web_onBeforeUnload = 286, + Web_onConfirm = 287, + Web_onPrompt = 288, + Web_onConsole = 289, + Web_onErrorReceive = 290, + Web_onHttpErrorReceive = 291, + Web_onDownloadStart = 292, + Web_onRefreshAccessedHistory = 293, + Web_onUrlLoadIntercept = 294, + Web_onSslErrorReceive = 295, + Web_onRenderExited0 = 296, + Web_onRenderExited1 = 297, + Web_onShowFileSelector = 298, + Web_onFileSelectorShow = 299, + Web_onResourceLoad = 300, + Web_onFullScreenExit = 301, + Web_onFullScreenEnter = 302, + Web_onScaleChange = 303, + Web_onHttpAuthRequest = 304, + Web_onInterceptRequest = 305, + Web_onPermissionRequest = 306, + Web_onScreenCaptureRequest = 307, + Web_onContextMenuShow = 308, + Web_onContextMenuHide = 309, + Web_onSearchResultReceive = 310, + Web_onScroll = 311, + Web_onSslErrorEventReceive = 312, + Web_onSslErrorEvent = 313, + Web_onClientAuthenticationRequest = 314, + Web_onWindowNew = 315, + Web_onWindowExit = 316, + Web_onInterceptKeyEvent = 317, + Web_onTouchIconUrlReceived = 318, + Web_onFaviconReceived = 319, + Web_onPageVisible = 320, + Web_onDataResubmitted = 321, + Web_onAudioStateChanged = 322, + Web_onFirstContentfulPaint = 323, + Web_onFirstMeaningfulPaint = 324, + Web_onLargestContentfulPaint = 325, + Web_onLoadIntercept = 326, + Web_onControllerAttached = 327, + Web_onOverScroll = 328, + Web_onSafeBrowsingCheckResult = 329, + Web_onNavigationEntryCommitted = 330, + Web_onIntelligentTrackingPreventionResult = 331, + Web_onNativeEmbedLifecycleChange = 332, + Web_onNativeEmbedVisibilityChange = 333, + Web_onNativeEmbedGestureEvent = 334, + Web_onOverrideUrlLoading = 335, + Web_onRenderProcessNotResponding = 336, + Web_onRenderProcessResponding = 337, + Web_onViewportFitChanged = 338, + Web_onInterceptKeyboardAttach = 339, + Web_onAdsBlocked = 340, + Web_bindSelectionMenu = 341, + XComponent_onLoad = 342, + XComponent_onDestroy = 343, + SideBarContainer_onChange = 344, + SideBarContainer__onChangeEvent_showSideBar = 345, + WaterFlow_onReachStart = 346, + WaterFlow_onReachEnd = 347, + WaterFlow_onScrollFrameBegin = 348, + WaterFlow_onScrollIndex = 349, + UIExtensionComponent_onRemoteReady = 350, + UIExtensionComponent_onResult = 351, + UIExtensionComponent_onRelease = 352, + UIExtensionComponent_onTerminated = 353, } interface PeerEvent { @@ -434,7 +436,7 @@ export interface AlphabetIndexer_onPopupSelect_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } -export interface AlphabetIndexer___onChangeEvent_selected_event extends PeerEvent { +export interface AlphabetIndexer__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } @@ -476,7 +478,7 @@ export interface Checkbox_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly value: boolean } -export interface Checkbox___onChangeEvent_select_event extends PeerEvent { +export interface Checkbox__onChangeEvent_select_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -484,7 +486,7 @@ export interface CheckboxGroup_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly value: CheckboxGroupResult } -export interface CheckboxGroup___onChangeEvent_selectAll_event extends PeerEvent { +export interface CheckboxGroup__onChangeEvent_selectAll_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -645,6 +647,12 @@ export interface ScrollableCommonMethod_onScroll_event extends PeerEvent { readonly first: number readonly last: number } +export interface ScrollableCommonMethod_onDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly xOffset: number + readonly yOffset: number + readonly scrollState: ScrollState +} export interface ScrollableCommonMethod_onReachStart_event extends PeerEvent { readonly kind: PeerEventKind } @@ -671,7 +679,7 @@ export interface DatePicker_onDateChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: Date } -export interface DatePicker___onChangeEvent_selected_event extends PeerEvent { +export interface DatePicker__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: Date } @@ -772,7 +780,7 @@ export interface GridItem_onSelect_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface GridItem___onChangeEvent_selected_event extends PeerEvent { +export interface GridItem__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -887,7 +895,7 @@ export interface ListItem_onSelect_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface ListItem___onChangeEvent_selected_event extends PeerEvent { +export interface ListItem__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -909,7 +917,7 @@ export interface MenuItem_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface MenuItem___onChangeEvent_selected_event extends PeerEvent { +export interface MenuItem__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -952,7 +960,7 @@ export interface Panel_onHeightChange_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } -export interface Panel___onChangeEvent_mode_event extends PeerEvent { +export interface Panel__onChangeEvent_mode_event extends PeerEvent { readonly kind: PeerEventKind readonly mode: PanelMode } @@ -980,7 +988,7 @@ export interface Radio_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface Radio___onChangeEvent_checked_event extends PeerEvent { +export interface Radio__onChangeEvent_checked_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -988,7 +996,7 @@ export interface Rating_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } -export interface Rating___onChangeEvent_rating_event extends PeerEvent { +export interface Rating__onChangeEvent_rating_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } @@ -1003,7 +1011,7 @@ export interface Refresh_onOffsetChange_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } -export interface Refresh___onChangeEvent_refreshing_event extends PeerEvent { +export interface Refresh__onChangeEvent_refreshing_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -1089,6 +1097,12 @@ export interface Scroll_onScroll_event extends PeerEvent { readonly first: number readonly last: number } +export interface Scroll_onDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly xOffset: number + readonly yOffset: number + readonly scrollState: ScrollState +} export interface Scroll_onScrollEdge_event extends PeerEvent { readonly kind: PeerEventKind readonly side: Edge @@ -1167,7 +1181,7 @@ export interface Search_onDidDelete_event extends PeerEvent { export interface Search_customKeyboard_event extends PeerEvent { readonly kind: PeerEventKind } -export interface Search___onChangeEvent_value_event extends PeerEvent { +export interface Search__onChangeEvent_value_event extends PeerEvent { readonly kind: PeerEventKind readonly breakpoints: string } @@ -1176,11 +1190,11 @@ export interface Select_onSelect_event extends PeerEvent { readonly index: number readonly value: string } -export interface Select___onChangeEvent_selected_event extends PeerEvent { +export interface Select__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly selected: number | Resource } -export interface Select___onChangeEvent_value_event extends PeerEvent { +export interface Select__onChangeEvent_value_event extends PeerEvent { readonly kind: PeerEventKind readonly value: ResourceStr } @@ -1189,7 +1203,7 @@ export interface Slider_onChange_event extends PeerEvent { readonly value: number readonly mode: SliderChangeMode } -export interface Slider___onChangeEvent_value_event extends PeerEvent { +export interface Slider__onChangeEvent_value_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } @@ -1214,7 +1228,7 @@ export interface Stepper_onPrevious_event extends PeerEvent { readonly first: number readonly last: number } -export interface Stepper___onChangeEvent_index_event extends PeerEvent { +export interface Stepper__onChangeEvent_index_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } @@ -1245,7 +1259,7 @@ export interface Swiper_onContentDidScroll_event extends PeerEvent { readonly position: number readonly mainAxisLength: number } -export interface Swiper___onChangeEvent_index_event extends PeerEvent { +export interface Swiper__onChangeEvent_index_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } @@ -1287,7 +1301,7 @@ export interface Tabs_onContentWillChange_event extends PeerEvent { readonly currentIndex: number readonly comingIndex: number } -export interface Tabs___onChangeEvent_index_event extends PeerEvent { +export interface Tabs__onChangeEvent_index_event extends PeerEvent { readonly kind: PeerEventKind readonly index: number } @@ -1369,7 +1383,7 @@ export interface TextArea_onDidDelete_event extends PeerEvent { export interface TextArea_customKeyboard_event extends PeerEvent { readonly kind: PeerEventKind } -export interface TextArea___onChangeEvent_text_event extends PeerEvent { +export interface TextArea__onChangeEvent_text_event extends PeerEvent { readonly kind: PeerEventKind readonly value: ResourceStr } @@ -1444,7 +1458,7 @@ export interface TextInput_onDidDelete_event extends PeerEvent { export interface TextInput_customKeyboard_event extends PeerEvent { readonly kind: PeerEventKind } -export interface TextInput___onChangeEvent_text_event extends PeerEvent { +export interface TextInput__onChangeEvent_text_event extends PeerEvent { readonly kind: PeerEventKind readonly value: ResourceStr } @@ -1461,11 +1475,11 @@ export interface TextPicker_onChange_event extends PeerEvent { readonly value: string | Array readonly index: number | Array } -export interface TextPicker___onChangeEvent_selected_event extends PeerEvent { +export interface TextPicker__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly selected: number | Array } -export interface TextPicker___onChangeEvent_value_event extends PeerEvent { +export interface TextPicker__onChangeEvent_value_event extends PeerEvent { readonly kind: PeerEventKind readonly value: string | Array } @@ -1478,7 +1492,7 @@ export interface TimePicker_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly value: TimePickerResult } -export interface TimePicker___onChangeEvent_selected_event extends PeerEvent { +export interface TimePicker__onChangeEvent_selected_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: Date } @@ -1486,7 +1500,7 @@ export interface Toggle_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface Toggle___onChangeEvent_isOn_event extends PeerEvent { +export interface Toggle__onChangeEvent_isOn_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -1784,7 +1798,7 @@ export interface SideBarContainer_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface SideBarContainer___onChangeEvent_showSideBar_event extends PeerEvent { +export interface SideBarContainer__onChangeEvent_showSideBar_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } @@ -1828,7 +1842,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.AlphabetIndexer_onSelect: return "AlphabetIndexer_onSelect" case PeerEventKind.AlphabetIndexer_onRequestPopupData: return "AlphabetIndexer_onRequestPopupData" case PeerEventKind.AlphabetIndexer_onPopupSelect: return "AlphabetIndexer_onPopupSelect" - case PeerEventKind.AlphabetIndexer___onChangeEvent_selected: return "AlphabetIndexer___onChangeEvent_selected" + case PeerEventKind.AlphabetIndexer__onChangeEvent_selected: return "AlphabetIndexer__onChangeEvent_selected" case PeerEventKind.Animator_onStart: return "Animator_onStart" case PeerEventKind.Animator_onPause: return "Animator_onPause" case PeerEventKind.Animator_onRepeat: return "Animator_onRepeat" @@ -1840,9 +1854,9 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.CalendarPicker_onChange: return "CalendarPicker_onChange" case PeerEventKind.Canvas_onReady: return "Canvas_onReady" case PeerEventKind.Checkbox_onChange: return "Checkbox_onChange" - case PeerEventKind.Checkbox___onChangeEvent_select: return "Checkbox___onChangeEvent_select" + case PeerEventKind.Checkbox__onChangeEvent_select: return "Checkbox__onChangeEvent_select" case PeerEventKind.CheckboxGroup_onChange: return "CheckboxGroup_onChange" - case PeerEventKind.CheckboxGroup___onChangeEvent_selectAll: return "CheckboxGroup___onChangeEvent_selectAll" + case PeerEventKind.CheckboxGroup__onChangeEvent_selectAll: return "CheckboxGroup__onChangeEvent_selectAll" case PeerEventKind.CommonMethod_onChildTouchTest: return "CommonMethod_onChildTouchTest" case PeerEventKind.CommonMethod_onClick0: return "CommonMethod_onClick0" case PeerEventKind.CommonMethod_onClick1: return "CommonMethod_onClick1" @@ -1881,6 +1895,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.CommonMethod_bindSheet: return "CommonMethod_bindSheet" case PeerEventKind.CommonMethod_onVisibleAreaChange: return "CommonMethod_onVisibleAreaChange" case PeerEventKind.ScrollableCommonMethod_onScroll: return "ScrollableCommonMethod_onScroll" + case PeerEventKind.ScrollableCommonMethod_onDidScroll: return "ScrollableCommonMethod_onDidScroll" case PeerEventKind.ScrollableCommonMethod_onReachStart: return "ScrollableCommonMethod_onReachStart" case PeerEventKind.ScrollableCommonMethod_onReachEnd: return "ScrollableCommonMethod_onReachEnd" case PeerEventKind.ScrollableCommonMethod_onScrollStart: return "ScrollableCommonMethod_onScrollStart" @@ -1889,7 +1904,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Counter_onDec: return "Counter_onDec" case PeerEventKind.DatePicker_onChange: return "DatePicker_onChange" case PeerEventKind.DatePicker_onDateChange: return "DatePicker_onDateChange" - case PeerEventKind.DatePicker___onChangeEvent_selected: return "DatePicker___onChangeEvent_selected" + case PeerEventKind.DatePicker__onChangeEvent_selected: return "DatePicker__onChangeEvent_selected" case PeerEventKind.EmbeddedComponent_onTerminated: return "EmbeddedComponent_onTerminated" case PeerEventKind.FolderStack_onFolderStateChange: return "FolderStack_onFolderStateChange" case PeerEventKind.FolderStack_onHoverStatusChange: return "FolderStack_onHoverStatusChange" @@ -1913,7 +1928,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Grid_onScrollStop: return "Grid_onScrollStop" case PeerEventKind.Grid_onScrollFrameBegin: return "Grid_onScrollFrameBegin" case PeerEventKind.GridItem_onSelect: return "GridItem_onSelect" - case PeerEventKind.GridItem___onChangeEvent_selected: return "GridItem___onChangeEvent_selected" + case PeerEventKind.GridItem__onChangeEvent_selected: return "GridItem__onChangeEvent_selected" case PeerEventKind.GridRow_onBreakpointChange: return "GridRow_onBreakpointChange" case PeerEventKind.Image_onComplete: return "Image_onComplete" case PeerEventKind.Image_onError: return "Image_onError" @@ -1941,13 +1956,13 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.List_onItemDrop: return "List_onItemDrop" case PeerEventKind.List_onScrollFrameBegin: return "List_onScrollFrameBegin" case PeerEventKind.ListItem_onSelect: return "ListItem_onSelect" - case PeerEventKind.ListItem___onChangeEvent_selected: return "ListItem___onChangeEvent_selected" + case PeerEventKind.ListItem__onChangeEvent_selected: return "ListItem__onChangeEvent_selected" case PeerEventKind.LocationButton_onClick: return "LocationButton_onClick" case PeerEventKind.Marquee_onStart: return "Marquee_onStart" case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" - case PeerEventKind.MenuItem___onChangeEvent_selected: return "MenuItem___onChangeEvent_selected" + case PeerEventKind.MenuItem__onChangeEvent_selected: return "MenuItem__onChangeEvent_selected" case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" @@ -1959,20 +1974,20 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" case PeerEventKind.Panel_onChange: return "Panel_onChange" case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" - case PeerEventKind.Panel___onChangeEvent_mode: return "Panel___onChangeEvent_mode" + case PeerEventKind.Panel__onChangeEvent_mode: return "Panel__onChangeEvent_mode" case PeerEventKind.PasteButton_onClick: return "PasteButton_onClick" case PeerEventKind.PatternLock_onPatternComplete: return "PatternLock_onPatternComplete" case PeerEventKind.PatternLock_onDotConnect: return "PatternLock_onDotConnect" case PeerEventKind.PluginComponent_onComplete: return "PluginComponent_onComplete" case PeerEventKind.PluginComponent_onError: return "PluginComponent_onError" case PeerEventKind.Radio_onChange: return "Radio_onChange" - case PeerEventKind.Radio___onChangeEvent_checked: return "Radio___onChangeEvent_checked" + case PeerEventKind.Radio__onChangeEvent_checked: return "Radio__onChangeEvent_checked" case PeerEventKind.Rating_onChange: return "Rating_onChange" - case PeerEventKind.Rating___onChangeEvent_rating: return "Rating___onChangeEvent_rating" + case PeerEventKind.Rating__onChangeEvent_rating: return "Rating__onChangeEvent_rating" case PeerEventKind.Refresh_onStateChange: return "Refresh_onStateChange" case PeerEventKind.Refresh_onRefreshing: return "Refresh_onRefreshing" case PeerEventKind.Refresh_onOffsetChange: return "Refresh_onOffsetChange" - case PeerEventKind.Refresh___onChangeEvent_refreshing: return "Refresh___onChangeEvent_refreshing" + case PeerEventKind.Refresh__onChangeEvent_refreshing: return "Refresh__onChangeEvent_refreshing" case PeerEventKind.RichEditor_onReady: return "RichEditor_onReady" case PeerEventKind.RichEditor_onSelect: return "RichEditor_onSelect" case PeerEventKind.RichEditor_onSelectionChange: return "RichEditor_onSelectionChange" @@ -1994,6 +2009,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.RichText_onComplete: return "RichText_onComplete" case PeerEventKind.SaveButton_onClick: return "SaveButton_onClick" case PeerEventKind.Scroll_onScroll: return "Scroll_onScroll" + case PeerEventKind.Scroll_onDidScroll: return "Scroll_onDidScroll" case PeerEventKind.Scroll_onScrollEdge: return "Scroll_onScrollEdge" case PeerEventKind.Scroll_onScrollStart: return "Scroll_onScrollStart" case PeerEventKind.Scroll_onScrollEnd: return "Scroll_onScrollEnd" @@ -2013,24 +2029,24 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Search_onWillDelete: return "Search_onWillDelete" case PeerEventKind.Search_onDidDelete: return "Search_onDidDelete" case PeerEventKind.Search_customKeyboard: return "Search_customKeyboard" - case PeerEventKind.Search___onChangeEvent_value: return "Search___onChangeEvent_value" + case PeerEventKind.Search__onChangeEvent_value: return "Search__onChangeEvent_value" case PeerEventKind.Select_onSelect: return "Select_onSelect" - case PeerEventKind.Select___onChangeEvent_selected: return "Select___onChangeEvent_selected" - case PeerEventKind.Select___onChangeEvent_value: return "Select___onChangeEvent_value" + case PeerEventKind.Select__onChangeEvent_selected: return "Select__onChangeEvent_selected" + case PeerEventKind.Select__onChangeEvent_value: return "Select__onChangeEvent_value" case PeerEventKind.Slider_onChange: return "Slider_onChange" - case PeerEventKind.Slider___onChangeEvent_value: return "Slider___onChangeEvent_value" + case PeerEventKind.Slider__onChangeEvent_value: return "Slider__onChangeEvent_value" case PeerEventKind.Stepper_onFinish: return "Stepper_onFinish" case PeerEventKind.Stepper_onSkip: return "Stepper_onSkip" case PeerEventKind.Stepper_onChange: return "Stepper_onChange" case PeerEventKind.Stepper_onNext: return "Stepper_onNext" case PeerEventKind.Stepper_onPrevious: return "Stepper_onPrevious" - case PeerEventKind.Stepper___onChangeEvent_index: return "Stepper___onChangeEvent_index" + case PeerEventKind.Stepper__onChangeEvent_index: return "Stepper__onChangeEvent_index" case PeerEventKind.Swiper_onChange: return "Swiper_onChange" case PeerEventKind.Swiper_onAnimationStart: return "Swiper_onAnimationStart" case PeerEventKind.Swiper_onAnimationEnd: return "Swiper_onAnimationEnd" case PeerEventKind.Swiper_onGestureSwipe: return "Swiper_onGestureSwipe" case PeerEventKind.Swiper_onContentDidScroll: return "Swiper_onContentDidScroll" - case PeerEventKind.Swiper___onChangeEvent_index: return "Swiper___onChangeEvent_index" + case PeerEventKind.Swiper__onChangeEvent_index: return "Swiper__onChangeEvent_index" case PeerEventKind.IndicatorComponent_onChange: return "IndicatorComponent_onChange" case PeerEventKind.Tabs_onChange: return "Tabs_onChange" case PeerEventKind.Tabs_onTabBarClick: return "Tabs_onTabBarClick" @@ -2039,7 +2055,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Tabs_onGestureSwipe: return "Tabs_onGestureSwipe" case PeerEventKind.Tabs_customContentTransition: return "Tabs_customContentTransition" case PeerEventKind.Tabs_onContentWillChange: return "Tabs_onContentWillChange" - case PeerEventKind.Tabs___onChangeEvent_index: return "Tabs___onChangeEvent_index" + case PeerEventKind.Tabs__onChangeEvent_index: return "Tabs__onChangeEvent_index" case PeerEventKind.TabContent_onWillShow: return "TabContent_onWillShow" case PeerEventKind.TabContent_onWillHide: return "TabContent_onWillHide" case PeerEventKind.Text_onCopy: return "Text_onCopy" @@ -2059,7 +2075,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.TextArea_onWillDelete: return "TextArea_onWillDelete" case PeerEventKind.TextArea_onDidDelete: return "TextArea_onDidDelete" case PeerEventKind.TextArea_customKeyboard: return "TextArea_customKeyboard" - case PeerEventKind.TextArea___onChangeEvent_text: return "TextArea___onChangeEvent_text" + case PeerEventKind.TextArea__onChangeEvent_text: return "TextArea__onChangeEvent_text" case PeerEventKind.TextClock_onDateChange: return "TextClock_onDateChange" case PeerEventKind.TextInput_onEditChanged: return "TextInput_onEditChanged" case PeerEventKind.TextInput_onEditChange: return "TextInput_onEditChange" @@ -2077,17 +2093,17 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.TextInput_onWillDelete: return "TextInput_onWillDelete" case PeerEventKind.TextInput_onDidDelete: return "TextInput_onDidDelete" case PeerEventKind.TextInput_customKeyboard: return "TextInput_customKeyboard" - case PeerEventKind.TextInput___onChangeEvent_text: return "TextInput___onChangeEvent_text" + case PeerEventKind.TextInput__onChangeEvent_text: return "TextInput__onChangeEvent_text" case PeerEventKind.TextPicker_onAccept: return "TextPicker_onAccept" case PeerEventKind.TextPicker_onCancel: return "TextPicker_onCancel" case PeerEventKind.TextPicker_onChange: return "TextPicker_onChange" - case PeerEventKind.TextPicker___onChangeEvent_selected: return "TextPicker___onChangeEvent_selected" - case PeerEventKind.TextPicker___onChangeEvent_value: return "TextPicker___onChangeEvent_value" + case PeerEventKind.TextPicker__onChangeEvent_selected: return "TextPicker__onChangeEvent_selected" + case PeerEventKind.TextPicker__onChangeEvent_value: return "TextPicker__onChangeEvent_value" case PeerEventKind.TextTimer_onTimer: return "TextTimer_onTimer" case PeerEventKind.TimePicker_onChange: return "TimePicker_onChange" - case PeerEventKind.TimePicker___onChangeEvent_selected: return "TimePicker___onChangeEvent_selected" + case PeerEventKind.TimePicker__onChangeEvent_selected: return "TimePicker__onChangeEvent_selected" case PeerEventKind.Toggle_onChange: return "Toggle_onChange" - case PeerEventKind.Toggle___onChangeEvent_isOn: return "Toggle___onChangeEvent_isOn" + case PeerEventKind.Toggle__onChangeEvent_isOn: return "Toggle__onChangeEvent_isOn" case PeerEventKind.Video_onStart: return "Video_onStart" case PeerEventKind.Video_onPause: return "Video_onPause" case PeerEventKind.Video_onFinish: return "Video_onFinish" @@ -2165,7 +2181,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.XComponent_onLoad: return "XComponent_onLoad" case PeerEventKind.XComponent_onDestroy: return "XComponent_onDestroy" case PeerEventKind.SideBarContainer_onChange: return "SideBarContainer_onChange" - case PeerEventKind.SideBarContainer___onChangeEvent_showSideBar: return "SideBarContainer___onChangeEvent_showSideBar" + case PeerEventKind.SideBarContainer__onChangeEvent_showSideBar: return "SideBarContainer__onChangeEvent_showSideBar" case PeerEventKind.WaterFlow_onReachStart: return "WaterFlow_onReachStart" case PeerEventKind.WaterFlow_onReachEnd: return "WaterFlow_onReachEnd" case PeerEventKind.WaterFlow_onScrollFrameBegin: return "WaterFlow_onScrollFrameBegin" @@ -2184,7 +2200,7 @@ export class PeerEventsProperties { AlphabetIndexer_onSelect?: OnAlphabetIndexerSelectCallback AlphabetIndexer_onRequestPopupData?: OnAlphabetIndexerRequestPopupDataCallback AlphabetIndexer_onPopupSelect?: OnAlphabetIndexerPopupSelectCallback - AlphabetIndexer___onChangeEvent_selected?: ((index: number) => void) + AlphabetIndexer__onChangeEvent_selected?: ((index: number) => void) Animator_onStart?: (() => void) Animator_onPause?: (() => void) Animator_onRepeat?: (() => void) @@ -2196,9 +2212,9 @@ export class PeerEventsProperties { CalendarPicker_onChange?: ((parameter: Date) => void) Canvas_onReady?: VoidCallback Checkbox_onChange?: OnCheckboxChangeCallback - Checkbox___onChangeEvent_select?: ((parameter: boolean) => void) + Checkbox__onChangeEvent_select?: ((parameter: boolean) => void) CheckboxGroup_onChange?: OnCheckboxGroupChangeCallback - CheckboxGroup___onChangeEvent_selectAll?: ((parameter: boolean) => void) + CheckboxGroup__onChangeEvent_selectAll?: ((parameter: boolean) => void) CommonMethod_onChildTouchTest?: ((value: Array) => TouchResult) CommonMethod_onClick0?: ((event: ClickEvent) => void) CommonMethod_onClick1?: ((event: ClickEvent) => void) @@ -2237,6 +2253,7 @@ export class PeerEventsProperties { CommonMethod_bindSheet?: CustomBuilder CommonMethod_onVisibleAreaChange?: VisibleAreaChangeCallback ScrollableCommonMethod_onScroll?: ((first: number,last: number) => void) + ScrollableCommonMethod_onDidScroll?: ScrollOnScrollCallback ScrollableCommonMethod_onReachStart?: (() => void) ScrollableCommonMethod_onReachEnd?: (() => void) ScrollableCommonMethod_onScrollStart?: (() => void) @@ -2245,7 +2262,7 @@ export class PeerEventsProperties { Counter_onDec?: VoidCallback DatePicker_onChange?: ((value: DatePickerResult) => void) DatePicker_onDateChange?: ((parameter: Date) => void) - DatePicker___onChangeEvent_selected?: ((parameter: Date) => void) + DatePicker__onChangeEvent_selected?: ((parameter: Date) => void) EmbeddedComponent_onTerminated?: ((parameter: TerminationInfo) => void) FolderStack_onFolderStateChange?: OnFoldStatusChangeCallback FolderStack_onHoverStatusChange?: OnHoverStatusChangeCallback @@ -2269,7 +2286,7 @@ export class PeerEventsProperties { Grid_onScrollStop?: (() => void) Grid_onScrollFrameBegin?: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) GridItem_onSelect?: ((parameter: boolean) => void) - GridItem___onChangeEvent_selected?: ((parameter: boolean) => void) + GridItem__onChangeEvent_selected?: ((parameter: boolean) => void) GridRow_onBreakpointChange?: ((breakpoints: string) => void) Image_onComplete?: ((event?: Type_ImageAttribute_onComplete_callback_event) => void) Image_onError?: ImageErrorCallback @@ -2297,13 +2314,13 @@ export class PeerEventsProperties { List_onItemDrop?: ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) List_onScrollFrameBegin?: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) ListItem_onSelect?: ((parameter: boolean) => void) - ListItem___onChangeEvent_selected?: ((parameter: boolean) => void) + ListItem__onChangeEvent_selected?: ((parameter: boolean) => void) LocationButton_onClick?: ((event: ClickEvent,result: LocationButtonOnClickResult) => void) Marquee_onStart?: (() => void) Marquee_onBounce?: (() => void) Marquee_onFinish?: (() => void) MenuItem_onChange?: ((parameter: boolean) => void) - MenuItem___onChangeEvent_selected?: ((parameter: boolean) => void) + MenuItem__onChangeEvent_selected?: ((parameter: boolean) => void) NavDestination_onShown?: (() => void) NavDestination_onHidden?: (() => void) NavDestination_onBackPressed?: (() => boolean) @@ -2315,20 +2332,20 @@ export class PeerEventsProperties { NavRouter_onStateChange?: ((parameter: boolean) => void) Panel_onChange?: ((width: number,height: number,mode: PanelMode) => void) Panel_onHeightChange?: ((index: number) => void) - Panel___onChangeEvent_mode?: ((mode: PanelMode) => void) + Panel__onChangeEvent_mode?: ((mode: PanelMode) => void) PasteButton_onClick?: ((event: ClickEvent,result: PasteButtonOnClickResult) => void) PatternLock_onPatternComplete?: ((input: Array) => void) PatternLock_onDotConnect?: ((index: number) => void) PluginComponent_onComplete?: VoidCallback PluginComponent_onError?: PluginErrorCallback Radio_onChange?: ((parameter: boolean) => void) - Radio___onChangeEvent_checked?: ((parameter: boolean) => void) + Radio__onChangeEvent_checked?: ((parameter: boolean) => void) Rating_onChange?: ((index: number) => void) - Rating___onChangeEvent_rating?: ((index: number) => void) + Rating__onChangeEvent_rating?: ((index: number) => void) Refresh_onStateChange?: ((state: RefreshStatus) => void) Refresh_onRefreshing?: (() => void) Refresh_onOffsetChange?: ((index: number) => void) - Refresh___onChangeEvent_refreshing?: ((parameter: boolean) => void) + Refresh__onChangeEvent_refreshing?: ((parameter: boolean) => void) RichEditor_onReady?: (() => void) RichEditor_onSelect?: ((parameter: RichEditorSelection) => void) RichEditor_onSelectionChange?: ((parameter: RichEditorRange) => void) @@ -2350,6 +2367,7 @@ export class PeerEventsProperties { RichText_onComplete?: (() => void) SaveButton_onClick?: ((event: ClickEvent,result: SaveButtonOnClickResult) => void) Scroll_onScroll?: ((first: number,last: number) => void) + Scroll_onDidScroll?: ScrollOnScrollCallback Scroll_onScrollEdge?: OnScrollEdgeCallback Scroll_onScrollStart?: VoidCallback Scroll_onScrollEnd?: (() => void) @@ -2369,24 +2387,24 @@ export class PeerEventsProperties { Search_onWillDelete?: ((parameter: DeleteValue) => boolean) Search_onDidDelete?: ((parameter: DeleteValue) => void) Search_customKeyboard?: CustomBuilder - Search___onChangeEvent_value?: ((breakpoints: string) => void) + Search__onChangeEvent_value?: ((breakpoints: string) => void) Select_onSelect?: ((index: number,value: string) => void) - Select___onChangeEvent_selected?: ((selected: number | Resource) => void) - Select___onChangeEvent_value?: ((value: ResourceStr) => void) + Select__onChangeEvent_selected?: ((selected: number | Resource) => void) + Select__onChangeEvent_value?: ((value: ResourceStr) => void) Slider_onChange?: ((value: number,mode: SliderChangeMode) => void) - Slider___onChangeEvent_value?: ((index: number) => void) + Slider__onChangeEvent_value?: ((index: number) => void) Stepper_onFinish?: (() => void) Stepper_onSkip?: (() => void) Stepper_onChange?: ((first: number,last: number) => void) Stepper_onNext?: ((first: number,last: number) => void) Stepper_onPrevious?: ((first: number,last: number) => void) - Stepper___onChangeEvent_index?: ((index: number) => void) + Stepper__onChangeEvent_index?: ((index: number) => void) Swiper_onChange?: ((index: number) => void) Swiper_onAnimationStart?: OnSwiperAnimationStartCallback Swiper_onAnimationEnd?: OnSwiperAnimationEndCallback Swiper_onGestureSwipe?: OnSwiperGestureSwipeCallback Swiper_onContentDidScroll?: ContentDidScrollCallback - Swiper___onChangeEvent_index?: ((index: number) => void) + Swiper__onChangeEvent_index?: ((index: number) => void) IndicatorComponent_onChange?: ((index: number) => void) Tabs_onChange?: ((index: number) => void) Tabs_onTabBarClick?: ((index: number) => void) @@ -2395,7 +2413,7 @@ export class PeerEventsProperties { Tabs_onGestureSwipe?: OnTabsGestureSwipeCallback Tabs_customContentTransition?: TabsCustomContentTransitionCallback Tabs_onContentWillChange?: OnTabsContentWillChangeCallback - Tabs___onChangeEvent_index?: ((index: number) => void) + Tabs__onChangeEvent_index?: ((index: number) => void) TabContent_onWillShow?: VoidCallback TabContent_onWillHide?: VoidCallback Text_onCopy?: ((breakpoints: string) => void) @@ -2415,7 +2433,7 @@ export class PeerEventsProperties { TextArea_onWillDelete?: ((parameter: DeleteValue) => boolean) TextArea_onDidDelete?: ((parameter: DeleteValue) => void) TextArea_customKeyboard?: CustomBuilder - TextArea___onChangeEvent_text?: ((value: ResourceStr) => void) + TextArea__onChangeEvent_text?: ((value: ResourceStr) => void) TextClock_onDateChange?: ((index: number) => void) TextInput_onEditChanged?: ((parameter: boolean) => void) TextInput_onEditChange?: ((parameter: boolean) => void) @@ -2433,17 +2451,17 @@ export class PeerEventsProperties { TextInput_onWillDelete?: ((parameter: DeleteValue) => boolean) TextInput_onDidDelete?: ((parameter: DeleteValue) => void) TextInput_customKeyboard?: CustomBuilder - TextInput___onChangeEvent_text?: ((value: ResourceStr) => void) + TextInput__onChangeEvent_text?: ((value: ResourceStr) => void) TextPicker_onAccept?: ((value: string,index: number) => void) TextPicker_onCancel?: (() => void) TextPicker_onChange?: ((value: string | Array,index: number | Array) => void) - TextPicker___onChangeEvent_selected?: ((selected: number | Array) => void) - TextPicker___onChangeEvent_value?: ((value: string | Array) => void) + TextPicker__onChangeEvent_selected?: ((selected: number | Array) => void) + TextPicker__onChangeEvent_value?: ((value: string | Array) => void) TextTimer_onTimer?: ((first: number,last: number) => void) TimePicker_onChange?: ((value: TimePickerResult) => void) - TimePicker___onChangeEvent_selected?: ((parameter: Date) => void) + TimePicker__onChangeEvent_selected?: ((parameter: Date) => void) Toggle_onChange?: ((parameter: boolean) => void) - Toggle___onChangeEvent_isOn?: ((parameter: boolean) => void) + Toggle__onChangeEvent_isOn?: ((parameter: boolean) => void) Video_onStart?: VoidCallback Video_onPause?: VoidCallback Video_onFinish?: VoidCallback @@ -2521,7 +2539,7 @@ export class PeerEventsProperties { XComponent_onLoad?: OnNativeLoadCallback XComponent_onDestroy?: VoidCallback SideBarContainer_onChange?: ((parameter: boolean) => void) - SideBarContainer___onChangeEvent_showSideBar?: ((parameter: boolean) => void) + SideBarContainer__onChangeEvent_showSideBar?: ((parameter: boolean) => void) WaterFlow_onReachStart?: (() => void) WaterFlow_onReachEnd?: (() => void) WaterFlow_onScrollFrameBegin?: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index 2e5a96390..d0e1cb8e5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -27,7 +27,7 @@ import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod } from "./../ArkCommonInterfaces" import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" import { Callback_Void, Literal_Want_want } from "./../SyntheticDeclarations" -import { Want } from "./../ArkArkui-externalInterfaces" +import { Want } from "./../ArkArkuiExternalInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index d668385af..918ff84eb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -403,10 +403,10 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_alignStyle(this.peer.ptr, (value.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((index: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts index 36f5a80b8..4355f93f4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,8 +25,9 @@ import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod } from "./../ArkCommonInterfaces" -import { AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion } from "./../ArkAnimatorInterfaces" +import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" import { AnimationStatus, Curve, FillMode, PlayMode } from "./../ArkEnumsInterfaces" +import { SpringMotion } from "./../ArkSpringMotionMaterialized" import { Callback_Void, Callback_Number_Void } from "./../SyntheticDeclarations" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -72,25 +73,9 @@ export class ArkAnimatorPeer extends ArkCommonMethodPeer { playModeAttribute(value: PlayMode): void { ArkUIGeneratedNativeModule._AnimatorAttribute_playMode(this.peer.ptr, (value.valueOf() as int32)) } - motionAttribute(value: SpringMotion | FrictionMotion | ScrollMotion): void { + motionAttribute(value: SpringMotion): void { const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSpringMotion(value))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as SpringMotion - thisSerializer.writeSpringMotion(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isFrictionMotion(value))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as FrictionMotion - thisSerializer.writeFrictionMotion(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isScrollMotion(value))) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as ScrollMotion - thisSerializer.writeScrollMotion(value_2) - } + thisSerializer.writeSpringMotion(value) ArkUIGeneratedNativeModule._AnimatorAttribute_motion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } @@ -139,7 +124,7 @@ export interface ArkAnimatorAttributes extends ArkCommonMethodAttributes { fillMode?: FillMode iterations?: number playMode?: PlayMode - motion?: SpringMotion | FrictionMotion | ScrollMotion + motion?: SpringMotion onStart?: (() => void) onPause?: (() => void) onRepeat?: (() => void) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts index 258aec085..22ef4e326 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts index 98aadcf1a..a1a3284d4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts index e39250f16..5a9eb8dde 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts index 6dfdf9447..0f92eeed7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index 262f66177..ed796404b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts index 4791ea037..a1f624e47 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts index 9b5dd47e9..c66c58604 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -140,10 +140,10 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._CheckboxAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._CheckboxAttribute___onChangeEvent_select(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CheckboxAttribute__onChangeEvent_select(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index 708b9080a..e4d416c5f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -134,10 +134,10 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { checkboxShapeAttribute(value: CheckBoxShape): void { ArkUIGeneratedNativeModule._CheckboxGroupAttribute_checkboxShape(this.peer.ptr, (value.valueOf() as int32)) } - __onChangeEvent_selectAllAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectAllAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._CheckboxGroupAttribute___onChangeEvent_selectAll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CheckboxGroupAttribute__onChangeEvent_selectAll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts index 22249ba4c..6d9286a04 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts index eb3438cc4..1903cdd9a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts index 53238cb5f..0129e0511 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 28bbea4f0..516528093 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -39,10 +39,6 @@ import { KeyEvent } from "./../ArkKeyEventMaterialized" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { DragEvent } from "./../ArkDragEventMaterialized" -import { CircleAttribute } from "./../ArkCircleInterfaces" -import { EllipseAttribute } from "./../ArkEllipseInterfaces" -import { PathAttribute } from "./../ArkPathInterfaces" -import { RectAttribute } from "./../ArkRectInterfaces" import { ProgressMask } from "./../ArkProgressMaskMaterialized" import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" @@ -1971,37 +1967,26 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_shadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - clip0Attribute(value: boolean): void { - ArkUIGeneratedNativeModule._CommonMethod_clip0(this.peer.ptr, value ? 1 : 0) - } - clip1Attribute(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): void { + clip0Attribute(value?: boolean): void { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as boolean - thisSerializer.writeBoolean(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isCircleAttribute(value))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as CircleAttribute - thisSerializer.writeCircleAttribute(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEllipseAttribute(value))) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as EllipseAttribute - thisSerializer.writeEllipseAttribute(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPathAttribute(value, false))) { - thisSerializer.writeInt8(3 as int32) - const value_3 = value as PathAttribute - thisSerializer.writePathAttribute(value_3) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeBoolean(value_value) } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isRectAttribute(value, false, false, false))) { - thisSerializer.writeInt8(4 as int32) - const value_4 = value as RectAttribute - thisSerializer.writeRectAttribute(value_4) + ArkUIGeneratedNativeModule._CommonMethod_clip0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + clip1Attribute(value?: boolean): void { + const thisSerializer : Serializer = Serializer.hold() + let value_type : int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeBoolean(value_value) } ArkUIGeneratedNativeModule._CommonMethod_clip1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2033,40 +2018,26 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_clipShape(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - mask0Attribute(value: ProgressMask): void { + mask0Attribute(value?: ProgressMask): void { const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeProgressMask(value) + let value_type : int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeProgressMask(value_value) + } ArkUIGeneratedNativeModule._CommonMethod_mask0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - mask1Attribute(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): void { + mask1Attribute(value?: ProgressMask): void { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isCircleAttribute(value))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as CircleAttribute - thisSerializer.writeCircleAttribute(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEllipseAttribute(value))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as EllipseAttribute - thisSerializer.writeEllipseAttribute(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isPathAttribute(value, false))) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as PathAttribute - thisSerializer.writePathAttribute(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isRectAttribute(value, false, false, false))) { - thisSerializer.writeInt8(3 as int32) - const value_3 = value as RectAttribute - thisSerializer.writeRectAttribute(value_3) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isProgressMask(value))) { - thisSerializer.writeInt8(4 as int32) - const value_4 = value as ProgressMask - thisSerializer.writeProgressMask(value_4) + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeProgressMask(value_value) } ArkUIGeneratedNativeModule._CommonMethod_mask1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -3000,9 +2971,9 @@ export interface ArkCommonMethodAttributes { radialGradient?: Type_CommonMethod_radialGradient_value motionPath?: MotionPathOptions shadow?: ShadowOptions | ShadowStyle - clip?: boolean + clip?: boolean | undefined clipShape?: CircleShape | EllipseShape | PathShape | RectShape - mask?: ProgressMask + mask?: ProgressMask | undefined maskShape?: CircleShape | EllipseShape | PathShape | RectShape key?: string id?: string @@ -3326,15 +3297,9 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ScrollableCommonMethod_onWillScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - onDidScrollAttribute(value?: ScrollOnScrollCallback): void { + onDidScrollAttribute(value: ScrollOnScrollCallback): void { const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.holdAndWriteCallback(value_value) - } + thisSerializer.holdAndWriteCallback(value) ArkUIGeneratedNativeModule._ScrollableCommonMethod_onDidScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts index 54b4c9baa..e5fcb0ed7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts index a2d7ea8a8..5b85b32e1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts index f55278e00..079c91872 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts index b1d0ba862..29b9ffd71 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,8 +25,9 @@ import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { DataPanelAttribute, LinearGradient_data_panel, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./../ArkDataPanelInterfaces" +import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { ResourceColor, Length } from "./../ArkUnitsInterfaces" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { Color } from "./../ArkEnumsInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" @@ -58,11 +59,11 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { closeEffectAttribute(value: boolean): void { ArkUIGeneratedNativeModule._DataPanelAttribute_closeEffect(this.peer.ptr, value ? 1 : 0) } - valueColorsAttribute(value: Array): void { + valueColorsAttribute(value: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(value.length as int32) for (let i = 0; i < value.length; i++) { - const value_element : ResourceColor | LinearGradient_data_panel = value[i] + 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)))) { @@ -91,10 +92,10 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_element_0_3) } } - else if (((RuntimeType.OBJECT) == (value_element_type)) && (TypeChecker.isLinearGradient_data_panel(value_element))) { + else if (((RuntimeType.OBJECT) == (value_element_type)) && (TypeChecker.isLinearGradient(value_element))) { thisSerializer.writeInt8(1 as int32) - const value_element_1 = value_element as LinearGradient_data_panel - thisSerializer.writeLinearGradient_data_panel(value_element_1) + const value_element_1 = value_element as LinearGradient + thisSerializer.writeLinearGradient(value_element_1) } } ArkUIGeneratedNativeModule._DataPanelAttribute_valueColors(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -145,7 +146,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { } export interface ArkDataPanelAttributes extends ArkCommonMethodAttributes { closeEffect?: boolean - valueColors?: Array + valueColors?: Array trackBackgroundColor?: ResourceColor strokeWidth?: Length trackShadow?: DataPanelShadowOptions diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts index 28306ab64..9ca83c4ec 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -92,10 +92,10 @@ export class ArkDatePickerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._DatePickerAttribute_onDateChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._DatePickerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._DatePickerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts index 193b3007f..d92ed1cc4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts index 4817d77b2..30de45282 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts index 185df0cb5..8565e12a0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index 89b389612..f615b7807 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -28,7 +28,7 @@ import { CommonMethod } from "./../ArkCommonInterfaces" import { EmbeddedComponentAttribute, TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { Want } from "./../ArkArkui-externalInterfaces" +import { Want } from "./../ArkArkuiExternalInterfaces" import { EmbeddedType } from "./../ArkEnumsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts index d264d5a1f..fb3370de7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts index e0e479705..52d89fdd8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts index 511420c06..7be82affe 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts index 2270891e6..57a9e26f6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts index a55385b22..e56ce8309 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts index dfa1a8b78..b89756127 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -24,10 +24,11 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, LinearGradient_common, CustomBuilder, ContentModifier } from "./../ArkCommonInterfaces" +import { CommonMethod, CustomBuilder, ContentModifier } from "./../ArkCommonInterfaces" import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./../ArkGaugeInterfaces" import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { Tuple_Union_ResourceColor_LinearGradient_common_Number } from "./../SyntheticDeclarations" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./../SyntheticDeclarations" import { Color } from "./../ArkEnumsInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" @@ -65,7 +66,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { endAngleAttribute(value: number): void { ArkUIGeneratedNativeModule._GaugeAttribute_endAngle(this.peer.ptr, value) } - colorsAttribute(value: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>): void { + colorsAttribute(value: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>): void { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -95,17 +96,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_0_3) } } - else if (TypeChecker.isLinearGradient_common(value, false, false, false, false)) { + else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLinearGradient(value))) { thisSerializer.writeInt8(1 as int32) - const value_1 = value as LinearGradient_common - thisSerializer.writeLinearGradient_common(value_1) + const value_1 = value as LinearGradient + thisSerializer.writeLinearGradient(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_Tuple_Union_ResourceColor_LinearGradient_common_Number(value))) { + else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_Tuple_Union_ResourceColor_LinearGradient_Number(value))) { thisSerializer.writeInt8(2 as int32) - const value_2 = value as Array<[ ResourceColor | LinearGradient_common, number ]> + const value_2 = value as Array<[ ResourceColor | LinearGradient, number ]> thisSerializer.writeInt32(value_2.length as int32) for (let i = 0; i < value_2.length; i++) { - const value_2_element : [ ResourceColor | LinearGradient_common, number ] = value_2[i] + const value_2_element : [ ResourceColor | LinearGradient, number ] = value_2[i] 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) @@ -135,10 +136,10 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_2_element_0_0_3) } } - else if (TypeChecker.isLinearGradient_common(value_2_element_0, false, false, false, false)) { + else if (((RuntimeType.OBJECT) == (value_2_element_0_type)) && (TypeChecker.isLinearGradient(value_2_element_0))) { thisSerializer.writeInt8(1 as int32) - const value_2_element_0_1 = value_2_element_0 as LinearGradient_common - thisSerializer.writeLinearGradient_common(value_2_element_0_1) + const value_2_element_0_1 = value_2_element_0 as LinearGradient + thisSerializer.writeLinearGradient(value_2_element_0_1) } const value_2_element_1 = value_2_element[1] thisSerializer.writeNumber(value_2_element_1) @@ -191,7 +192,7 @@ export interface ArkGaugeAttributes extends ArkCommonMethodAttributes { value?: number startAngle?: number endAngle?: number - colors?: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]> + colors?: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> strokeWidth?: Length description?: CustomBuilder trackShadow?: GaugeShadowOptions diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts index a4dda1c42..2a09c8946 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts index 0e1e4a90d..2ad9db5b3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts index 1e575f16f..e28bfea17 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -86,10 +86,10 @@ export class ArkGridItemPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._GridItemAttribute_onSelect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._GridItemAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GridItemAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts index c7898ab78..28d29edf3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts index fe6cadbf2..9b4cbcd5b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts index 2dd601f10..3bf762cec 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index e8b45ac95..2e1a398fc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts index 871c7162a..cbb7541d9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -28,8 +28,9 @@ import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" import { ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResizableOptions, ResolutionQuality, DrawableDescriptor, ImageContent } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceColor, ColorFilter, ResourceStr } from "./../ArkUnitsInterfaces" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts index 8c6d90cbe..9dbc9beeb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -27,9 +27,10 @@ import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" import { BaseSpan } from "./../ArkSpanInterfaces" import { ImageSpanAttribute, ImageCompleteCallback } from "./../ArkImageSpanInterfaces" import { ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" -import { ColorFilter, ResourceStr } from "./../ArkUnitsInterfaces" +import { ColorFilter } from "./../ArkColorFilterMaterialized" import { DrawingColorFilter, ImageErrorCallback } from "./../ArkImageInterfaces" import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ResourceStr } from "./../ArkUnitsInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 4eaa14f94..0a5a47db4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts index 25260e392..f42972474 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 66ad7f70b..14e6df9b7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts index 66f07ef2d..de3d53583 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts index 14ed11a2a..5e2c2a4ea 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -109,10 +109,10 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ListItemAttribute_onSelect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._ListItemAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ListItemAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts index 74e3339e9..c7be513b9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index 9b673efec..63e1bdddc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 80b377c82..1408965c2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts index 950181ed3..dadc35836 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index dea5cc4e7..b23f3e09f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index fc57b1226..6331d0315 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts index e99c0dc91..0354a18d7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -181,10 +181,10 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._MenuItemAttribute_labelFontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._MenuItemAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._MenuItemAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts index 525c93325..b7ff5de81 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 50d9af661..22bd74445 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts index e2ae225cd..f3ec64c0c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts index 89f2bdc5a..304cb87ab 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts index e47e9776b..ffa025d74 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -26,7 +26,7 @@ import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod } from "./../ArkCommonInterfaces" import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" -import { NodeController } from "./../ArkArkui-externalInterfaces" +import { NodeController } from "./../ArkArkuiExternalInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts index 49df116f8..8bd3b4e71 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -175,10 +175,10 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._PanelAttribute_onHeightChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_modeAttribute(callback: ((mode: PanelMode) => void)): void { + _onChangeEvent_modeAttribute(callback: ((mode: PanelMode) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._PanelAttribute___onChangeEvent_mode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._PanelAttribute__onChangeEvent_mode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 6912285b9..37333fec4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts index 0b479325e..ae697ad7b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts index 1dca5177e..e1c34c545 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts index 5a501ee61..a53e96ffc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts index c8ef112b2..de024c5c9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts index 99efcb110..d71b93a78 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts index 8253bbcf7..e13d3be41 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -24,9 +24,10 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, LinearGradient_common, ContentModifier } from "./../ArkCommonInterfaces" +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 { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" @@ -58,7 +59,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { valueAttribute(value: number): void { ArkUIGeneratedNativeModule._ProgressAttribute_value(this.peer.ptr, value) } - colorAttribute(value: ResourceColor | LinearGradient_common): void { + colorAttribute(value: ResourceColor | LinearGradient): void { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -88,10 +89,10 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_0_3) } } - else if (TypeChecker.isLinearGradient_common(value, false, false, false, false)) { + else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLinearGradient(value))) { thisSerializer.writeInt8(1 as int32) - const value_1 = value as LinearGradient_common - thisSerializer.writeLinearGradient_common(value_1) + const value_1 = value as LinearGradient + thisSerializer.writeLinearGradient(value_1) } ArkUIGeneratedNativeModule._ProgressAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -144,7 +145,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { } export interface ArkProgressAttributes extends ArkCommonMethodAttributes { value?: number - color?: ResourceColor | LinearGradient_common + color?: ResourceColor | LinearGradient style?: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions privacySensitive?: boolean | undefined contentModifier?: ContentModifier diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts index 8f7866f10..6f03478c1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts index cba822cf8..6ae082361 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -80,10 +80,10 @@ export class ArkRadioPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RadioAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_checkedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_checkedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._RadioAttribute___onChangeEvent_checked(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RadioAttribute__onChangeEvent_checked(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts index 2ba9436cb..301753aa4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -83,10 +83,10 @@ export class ArkRatingPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RatingAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_ratingAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_ratingAttribute(callback: ((index: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._RatingAttribute___onChangeEvent_rating(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RatingAttribute__onChangeEvent_rating(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts index e2f1e615a..345d0b0b3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts index 1c8715e1a..95a8935ae 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -89,10 +89,10 @@ export class ArkRefreshPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RefreshAttribute_pullDownRatio(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_refreshingAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_refreshingAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._RefreshAttribute___onChangeEvent_refreshing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RefreshAttribute__onChangeEvent_refreshing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index 6e400f5ad..3e8c3672f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index 3f6e8424a..ab8977404 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts index d7b18c63f..b9a52b40d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts index be793bc45..8218c1c8a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts index 88c8e4e4c..2bd388391 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts index 37c9555cf..4097f0555 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts index c65fa2405..1409db2a3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts index 0e9505a19..499dcc028 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts index 0b3e597e1..60d53319f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts index abc24cbad..7b09cba9f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts index 5a4cbdbbf..8e21ac480 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -84,15 +84,9 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { ArkUIGeneratedNativeModule._ScrollAttribute_onWillScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - onDidScrollAttribute(value?: ScrollOnScrollCallback): void { + onDidScrollAttribute(value: ScrollOnScrollCallback): void { const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.holdAndWriteCallback(value_value) - } + thisSerializer.holdAndWriteCallback(value) ArkUIGeneratedNativeModule._ScrollAttribute_onDidScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } @@ -226,7 +220,7 @@ export interface ArkScrollAttributes extends ArkScrollableCommonMethodAttributes scrollable?: ScrollDirection onScroll?: ((first: number,last: number) => void) onWillScroll?: ScrollOnWillScrollCallback | undefined - onDidScroll?: ScrollOnScrollCallback | undefined + onDidScroll?: ScrollOnScrollCallback onScrollEdge?: OnScrollEdgeCallback onScrollStart?: VoidCallback onScrollEnd?: (() => void) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts index 02369253f..fefaa8fc7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -471,10 +471,10 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SearchAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((breakpoints: string) => void)): void { + _onChangeEvent_valueAttribute(callback: ((breakpoints: string) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SearchAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SearchAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index 83f977f43..df0ca6fda 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts index 2ca807b99..7fce86738 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -347,16 +347,16 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SelectAttribute_menuAlign(this.peer.ptr, (alignType.valueOf() as int32), thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((selected: number | Resource) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((selected: number | Resource) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SelectAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SelectAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((value: ResourceStr) => void)): void { + _onChangeEvent_valueAttribute(callback: ((value: ResourceStr) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SelectAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SelectAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts index 788379640..6791558f9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts index 06866bed1..bbe6106f8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -119,10 +119,10 @@ export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { minContentWidthAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._SideBarContainerAttribute_minContentWidth(this.peer.ptr, value) } - __onChangeEvent_showSideBarAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_showSideBarAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SideBarContainerAttribute___onChangeEvent_showSideBar(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SideBarContainerAttribute__onChangeEvent_showSideBar(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts index 229fa6b0b..c05e9a65a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -24,9 +24,10 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, LinearGradient_common, ContentModifier } from "./../ArkCommonInterfaces" +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 { Resource } from "./../ArkResourceInterfaces" @@ -89,7 +90,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SliderAttribute_blockColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - trackColorAttribute(value: ResourceColor | LinearGradient_common): void { + trackColorAttribute(value: ResourceColor | LinearGradient): void { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -119,10 +120,10 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_0_3) } } - else if (TypeChecker.isLinearGradient_common(value, false, false, false, false)) { + else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLinearGradient(value))) { thisSerializer.writeInt8(1 as int32) - const value_1 = value as LinearGradient_common - thisSerializer.writeLinearGradient_common(value_1) + const value_1 = value as LinearGradient + thisSerializer.writeLinearGradient(value_1) } ArkUIGeneratedNativeModule._SliderAttribute_trackColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -291,16 +292,16 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SliderAttribute_showTips(this.peer.ptr, value ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_valueAttribute(callback: ((index: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SliderAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SliderAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } export interface ArkSliderAttributes extends ArkCommonMethodAttributes { blockColor?: ResourceColor - trackColor?: ResourceColor | LinearGradient_common + trackColor?: ResourceColor | LinearGradient selectedColor?: ResourceColor minLabel?: string maxLabel?: string diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts index b22cd8be8..b66aa1586 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts index 746b81079..59e3e5cb6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 6e421e8a7..1fc44f219 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts index 37fbd9842..9ad19b202 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts index f09a3959a..8360dc729 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -96,10 +96,10 @@ export class ArkStepperPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._StepperAttribute_onPrevious(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._StepperAttribute___onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._StepperAttribute__onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts index b76f5cafb..4a6caeb3a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -293,10 +293,10 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SwiperAttribute_nextMargin(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SwiperAttribute___onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SwiperAttribute__onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index 8a1c718c6..4726bfb3a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index e5e52b36b..583404555 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts index e66c7392b..95b446322 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts index 9d117ed59..c378f64bc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -233,10 +233,10 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TabsAttribute_barModeScrollable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TabsAttribute___onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TabsAttribute__onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts index d6ff5cc76..bbed3a44d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -525,10 +525,10 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextAreaAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { + _onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextAreaAttribute___onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextAreaAttribute__onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts index 7208dd2ab..9f30ee22b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts index 8ae3936ce..6b1797c17 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -654,10 +654,10 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextInputAttribute_showCounter(this.peer.ptr, value ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { + _onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextInputAttribute___onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextInputAttribute__onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts index 42903731e..e2576114f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts index e98724677..e26e56e37 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -153,16 +153,16 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { gradientHeightAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._TextPickerAttribute_gradientHeight(this.peer.ptr, value) } - __onChangeEvent_selectedAttribute(callback: ((selected: number | Array) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((selected: number | Array) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextPickerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextPickerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((value: string | Array) => void)): void { + _onChangeEvent_valueAttribute(callback: ((value: string | Array) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextPickerAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextPickerAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts index a1991419b..8d50a5dd6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts index 1419128fa..8de3d6341 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -98,10 +98,10 @@ export class ArkTimePickerPeer extends ArkCommonMethodPeer { enableHapticFeedbackAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TimePickerAttribute_enableHapticFeedback(this.peer.ptr, value ? 1 : 0) } - __onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TimePickerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TimePickerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts index 39951695b..fc786f68b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -128,10 +128,10 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ToggleAttribute_switchStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_isOnAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_isOnAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._ToggleAttribute___onChangeEvent_isOn(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ToggleAttribute__onChangeEvent_isOn(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index 19e9609ee..9876cc0f9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -28,7 +28,7 @@ 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 { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" -import { Want } from "./../ArkArkui-externalInterfaces" +import { Want } from "./../ArkArkuiExternalInterfaces" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { CallbackKind } from "./CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts index 5aaa75e22..f1a8a99eb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts index 9b3f730a5..ef8bfe617 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts index fd536b180..7bed2fb0c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts index 6e09636a1..1b5afd60f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts index 231ac06bd..90a09b7d2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts index a20897513..0d6509997 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -47,7 +47,7 @@ import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" import { HitTestMode, Edge, ScrollSource } from "./../ArkEnumsInterfaces" import { IsolatedComponentAttribute, IsolatedComponentInterface, IsolatedOptions } from "./../ArkIsolatedComponentInterfaces" import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { Want } from "./../ArkArkui-externalInterfaces" +import { Want } from "./../ArkArkuiExternalInterfaces" import { MouseEvent } from "./../ArkMouseEventMaterialized" import { NativeEmbedDataInfo, NativeEmbedTouchInfo, OnAlertEvent, OnAudioStateChangedEvent, OnBeforeUnloadEvent, OnClientAuthenticationEvent, OnConfirmEvent, OnConsoleEvent, OnContextMenuShowEvent, OnDataResubmittedEvent, OnDownloadStartEvent, OnErrorReceiveEvent, OnFaviconReceivedEvent, OnFirstContentfulPaintEvent, OnGeolocationShowEvent, OnHttpAuthRequestEvent, OnHttpErrorReceiveEvent, OnInterceptRequestEvent, OnLoadInterceptEvent, OnOverScrollEvent, OnPageBeginEvent, OnPageEndEvent, OnPageVisibleEvent, OnPermissionRequestEvent, OnProgressChangeEvent, OnPromptEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnScreenCaptureRequestEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnShowFileSelectorEvent, OnSslErrorEventReceiveEvent, OnTitleReceiveEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnFullScreenEnterCallback, FullScreenEnterEvent, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, ThreatType, OnSslErrorEventCallback, SslErrorEvent, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo } from "./../ArkWebInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" @@ -60,7 +60,7 @@ import { OffsetResult, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, On import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { TabContentAnimatedTransition, OnTabsAnimationEndCallback, TabsAnimationEvent, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback } from "./../ArkTabsInterfaces" -import { Callback_RangeUpdate } from "./../ArkArkui-customInterfaces" +import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { RefreshStatus } from "./../ArkRefreshInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { SwipeActionState } from "./../ArkListItemInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts index a818b2bc3..b78ab55cd 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts @@ -1,4 +1,4 @@ -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" export enum CallbackKind { Kind_AccessibilityCallback = 589030517, Kind_AsyncCallback_image_PixelMap_Void = 1289587365, diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 7c510e9b2..3817de406 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -22,16 +22,16 @@ 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, DrawContext, 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, CommonShapeMethod, LinearGradient_common, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, 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, DragBehavior, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, IntentionCode, RepeatMode, TouchTestStrategy, DragResult, LightSource, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, MenuElement, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, Summary, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, 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, 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 { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" -import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkui-customInterfaces" +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, DeleteValue, InsertValue, PreviewText, CaretStyle, TextDataDetectorType, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" +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 { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavPathInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } 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 { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -51,21 +51,19 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo 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, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ColorFilter, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, MarkStyle } from "./../ArkUnitsInterfaces" +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 { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" -import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController } from "./../ArkArkui-externalInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, 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, KeySource, KeyType, MouseAction, MouseButton, AccessibilityHoverType, ImageSize, PixelRoundCalcPolicy, 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, 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 { 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, Tuple_ResourceColor_Number, 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, 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 { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" -import { ImageAttachmentLayoutStyle, BackgroundColorStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, UrlStyle, LineHeightStyle, ParagraphStyle, ParagraphStyleInterface, ImageAttachment, ImageAttachmentInterface, GestureStyle, GestureStyleInterface, TextShadowStyle, LetterSpacingStyle, BaselineOffsetStyle, DecorationStyle, DecorationStyleInterface, TextStyle_styled_string, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" +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 { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" -import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolEffect, EffectFillStyle, EffectScope, EffectDirection } from "./../ArkSymbolglyphInterfaces" +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 { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -74,7 +72,6 @@ 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, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -87,24 +84,27 @@ import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDi import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, DividerOptions, TextCascadePickerRangeContent, TextPickerRangeContent } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { RectAttribute, RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" -import { PathAttribute, PathOptions } from "./../ArkPathInterfaces" -import { EllipseAttribute, EllipseOptions } from "./../ArkEllipseInterfaces" -import { CircleAttribute, CircleOptions } from "./../ArkCircleInterfaces" import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" +import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" 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, FingerInfo, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, FingerInfo, GestureInfo } from "./../ArkGestureInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" -import { Size, RenderingContextSettings, ImageData } from "./../ArkCanvasInterfaces" +import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" @@ -160,6 +160,7 @@ import { StyledStringController, StyledStringControllerInternal } from "./../Ark import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" +import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" import { RadioIndicatorType, RadioStyle, RadioOptions } from "./../ArkRadioInterfaces" import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" import { PasteDescription, PasteIconStyle, PasteButtonOnClickResult, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" @@ -169,12 +170,12 @@ import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptions } from "./../ArkGridInterfaces" import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { LinearGradient_data_panel, ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" @@ -189,17 +190,38 @@ 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 { 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 { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" -import { ScrollMotion, SpringProp, FrictionMotion, SpringMotion } from "./../ArkAnimatorInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" +import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" +import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" 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" +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 { ItemState } from "./../ArkStepperItemInterfaces" @@ -216,25 +238,57 @@ import { PolylineOptions } from "./../ArkPolylineInterfaces" import { Point } from "./../ArkPointInterfaces" import { PolygonOptions } from "./../ArkPolygonInterfaces" import { PatternLockController, PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" +import { PathOptions } from "./../ArkPathInterfaces" import { DisturbanceFieldShape, ParticleUpdater, DistributionType, ParticleEmitterShape, ParticleType } from "./../ArkParticleInterfaces" import { NavRouteMode, RouteInfo } from "./../ArkNavRouterInterfaces" import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" import { SubMenuExpandingMode } from "./../ArkMenuInterfaces" import { MarqueeOptions } from "./../ArkMarqueeInterfaces" import { LoadingProgressStyle } from "./../ArkLoadingProgressInterfaces" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" +import { ListScroller, ListScrollerInternal } from "./../ArkListScrollerMaterialized" 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" +import { PinchGestureEvent, PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" +import { PanGestureEvent, PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" +import { LongPressGestureEvent, LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" +import { TapGestureEvent, TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" import { FormLinkOptions } from "./../ArkFormLinkInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" +import { EllipseOptions } from "./../ArkEllipseInterfaces" +import { DatePickerDialog, DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +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 { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" +import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" +import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" +import { FrictionMotion, FrictionMotionInternal } from "./../ArkFrictionMotionMaterialized" +import { SpringMotion, SpringMotionInternal } from "./../ArkSpringMotionMaterialized" +import { AlertDialog, AlertDialogInternal } from "./../ArkAlertDialogMaterialized" +import { ActionSheet, ActionSheetInternal } from "./../ArkActionSheetMaterialized" +import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMaterialized" +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 { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" +import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Deserializer extends DeserializerBase { constructor(data: KUint8ArrayPtr, length: int32) { @@ -267,6 +321,11 @@ export class Deserializer extends DeserializerBase { let value : Resource = ({bundleName: bundleName_result,moduleName: moduleName_result,id: id_result,params: params_result,type: type_result} as Resource) return value } + readICurve(): ICurve { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ICurveInternal.fromPtr(ptr) + } readPixelMap(): PixelMap { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -277,257 +336,6 @@ export class Deserializer extends DeserializerBase { let ptr : KPointer = valueDeserializer.readPointer() return LengthMetricsInternal.fromPtr(ptr) } - readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { - let valueDeserializer : Deserializer = this - const pixelMap_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_value0 : Dimension = (valueDeserializer.readLength() as Dimension) - const size_buf_value1 : Dimension = (valueDeserializer.readLength() as Dimension) - const size_result : [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) - let value : LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) - return value - } - readICurve(): ICurve { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return ICurveInternal.fromPtr(ptr) - } - readTextBackgroundStyle(): TextBackgroundStyle { - let valueDeserializer : Deserializer = this - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf : ResourceColor | undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector : int32 = valueDeserializer.readInt8() - let color_buf_ : Color | number | string | Resource | undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) - } - const color_result : ResourceColor | undefined = color_buf - const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf : Dimension | BorderRadiuses | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) - { - const radius_buf__selector : int32 = valueDeserializer.readInt8() - let radius_buf_ : Dimension | BorderRadiuses | undefined - if (radius_buf__selector == 0) { - radius_buf_ = (valueDeserializer.readLength() as Dimension) - } - else if (radius_buf__selector == 1) { - const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topLeft : undefined | Length = radius_buf__u_topLeft_buf - const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topRight : undefined | Length = radius_buf__u_topRight_buf - const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomLeft : undefined | Length = radius_buf__u_bottomLeft_buf - const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomRight : undefined | Length = radius_buf__u_bottomRight_buf - radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") - } - radius_buf = (radius_buf_ as Dimension | BorderRadiuses) - } - const radius_result : Dimension | BorderRadiuses | undefined = radius_buf - let value : TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) - return value - } - readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { - let valueDeserializer : Deserializer = this - const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf : LengthMetrics | Margin | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) - { - const margin_buf__selector : int32 = valueDeserializer.readInt8() - let margin_buf_ : LengthMetrics | Margin | undefined - if (margin_buf__selector == 0) { - margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (margin_buf__selector == 1) { - const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_top_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) - { - margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf - const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_right_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) - { - margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf - const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_bottom_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) - { - margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf - const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_left_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) - { - margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf - margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") - } - margin_buf = (margin_buf_ as LengthMetrics | Margin) - } - const margin_result : LengthMetrics | Margin | undefined = margin_buf - const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf : LengthMetrics | Padding | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) - { - const padding_buf__selector : int32 = valueDeserializer.readInt8() - let padding_buf_ : LengthMetrics | Padding | undefined - if (padding_buf__selector == 0) { - padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (padding_buf__selector == 1) { - const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_top_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) - { - padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_top : undefined | Length = padding_buf__u_top_buf - const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_right_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) - { - padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_right : undefined | Length = padding_buf__u_right_buf - const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_bottom_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) - { - padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_bottom : undefined | Length = padding_buf__u_bottom_buf - const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_left_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) - { - padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_left : undefined | Length = padding_buf__u_left_buf - padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") - } - padding_buf = (padding_buf_ as LengthMetrics | Padding) - } - const padding_result : LengthMetrics | Padding | undefined = padding_buf - const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf : LengthMetrics | BorderRadiuses | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) - { - const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() - let borderRadius_buf_ : LengthMetrics | BorderRadiuses | undefined - if (borderRadius_buf__selector == 0) { - borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (borderRadius_buf__selector == 1) { - const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) - { - borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf - const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) - { - borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf - const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomLeft_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) - { - borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf - const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomRight_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) - { - borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf - borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") - } - borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) - } - const borderRadius_result : LengthMetrics | BorderRadiuses | undefined = borderRadius_buf - let value : ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) - return value - } - readSizeOptions(): SizeOptions { - let valueDeserializer : Deserializer = this - const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let width_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) - { - width_buf = (valueDeserializer.readLength() as Length) - } - const width_result : Length | undefined = width_buf - const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let height_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) - { - height_buf = (valueDeserializer.readLength() as Length) - } - const height_result : Length | undefined = height_buf - let value : SizeOptions = ({width: width_result,height: height_result} as SizeOptions) - return value - } readPosition(): Position { let valueDeserializer : Deserializer = this const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -549,8 +357,17 @@ export class Deserializer extends DeserializerBase { } readSymbolGlyphModifier(): SymbolGlyphModifier { let valueDeserializer : Deserializer = this - const __SymbolGlyphModifierStub_result : string = (valueDeserializer.readString() as string) - let value : SymbolGlyphModifier = ({__SymbolGlyphModifierStub: __SymbolGlyphModifierStub_result} as SymbolGlyphModifier) + const _SymbolGlyphModifierStub_result : string = (valueDeserializer.readString() as string) + let value : SymbolGlyphModifier = ({_SymbolGlyphModifierStub: _SymbolGlyphModifierStub_result} as SymbolGlyphModifier) + return value + } + readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { + let valueDeserializer : Deserializer = this + const pixelMap_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_value0 : Dimension = (valueDeserializer.readLength() as Dimension) + const size_buf_value1 : Dimension = (valueDeserializer.readLength() as Dimension) + const size_result : [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) + let value : LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) return value } readShadowOptions(): ShadowOptions { @@ -681,254 +498,14 @@ export class Deserializer extends DeserializerBase { xl_buf = (valueDeserializer.readLength() as Length) } const xl_result : Length | undefined = xl_buf - const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let xxl_buf : Length | undefined - if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) - { - xxl_buf = (valueDeserializer.readLength() as Length) - } - const xxl_result : Length | undefined = xxl_buf - let value : GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) - return value - } - readBackgroundColorStyle(): BackgroundColorStyle { - let valueDeserializer : Deserializer = this - const textBackgroundStyle_result : TextBackgroundStyle = valueDeserializer.readTextBackgroundStyle() - let value : BackgroundColorStyle = ({textBackgroundStyle: textBackgroundStyle_result} as BackgroundColorStyle) - return value - } - readUserDataSpan(): UserDataSpan { - let value : UserDataSpan = ({} as UserDataSpan) - return value - } - readCustomSpan(): CustomSpan { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return CustomSpanInternal.fromPtr(ptr) - } - readUrlStyle(): UrlStyle { - let valueDeserializer : Deserializer = this - const url_result : string = (valueDeserializer.readString() as string) - let value : UrlStyle = ({url: url_result} as UrlStyle) - return value - } - readLineHeightStyle(): LineHeightStyle { - let valueDeserializer : Deserializer = this - const lineHeight_result : number = (valueDeserializer.readNumber() as number) - let value : LineHeightStyle = ({lineHeight: lineHeight_result} as LineHeightStyle) - return value - } - readParagraphStyle(): ParagraphStyle { - let valueDeserializer : Deserializer = this - const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let textAlign_buf : TextAlign | undefined - if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) - { - textAlign_buf = (valueDeserializer.readInt32() as TextAlign) - } - const textAlign_result : TextAlign | undefined = textAlign_buf - const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let textIndent_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) - { - textIndent_buf = (valueDeserializer.readNumber() as number) - } - const textIndent_result : number | undefined = textIndent_buf - const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let maxLines_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) - { - maxLines_buf = (valueDeserializer.readNumber() as number) - } - const maxLines_result : number | undefined = maxLines_buf - const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let overflow_buf : TextOverflow | undefined - if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) - { - overflow_buf = (valueDeserializer.readInt32() as TextOverflow) - } - const overflow_result : TextOverflow | undefined = overflow_buf - const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let wordBreak_buf : WordBreak | undefined - if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) - { - wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) - } - const wordBreak_result : WordBreak | undefined = wordBreak_buf - const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let leadingMargin_buf : number | LeadingMarginPlaceholder | undefined - if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) - { - const leadingMargin_buf__selector : int32 = valueDeserializer.readInt8() - let leadingMargin_buf_ : number | LeadingMarginPlaceholder | undefined - if (leadingMargin_buf__selector == 0) { - leadingMargin_buf_ = (valueDeserializer.readNumber() as number) - } - else if (leadingMargin_buf__selector == 1) { - leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() - } - else { - throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") - } - leadingMargin_buf = (leadingMargin_buf_ as number | LeadingMarginPlaceholder) - } - const leadingMargin_result : number | LeadingMarginPlaceholder | undefined = leadingMargin_buf - let value : ParagraphStyle = ({textAlign: textAlign_result,textIndent: textIndent_result,maxLines: maxLines_result,overflow: overflow_result,wordBreak: wordBreak_result,leadingMargin: leadingMargin_result} as ParagraphStyle) - return value - } - readImageAttachment(): ImageAttachment { - let valueDeserializer : Deserializer = this - const value_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let size_buf : SizeOptions | undefined - if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) - { - size_buf = valueDeserializer.readSizeOptions() - } - const size_result : SizeOptions | undefined = size_buf - const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let verticalAlign_buf : ImageSpanAlignment | undefined - if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) - { - verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) - } - const verticalAlign_result : ImageSpanAlignment | undefined = verticalAlign_buf - const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let objectFit_buf : ImageFit | undefined - if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) - { - objectFit_buf = (valueDeserializer.readInt32() as ImageFit) - } - const objectFit_result : ImageFit | undefined = objectFit_buf - const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let layoutStyle_buf : ImageAttachmentLayoutStyle | undefined - if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) - { - layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() - } - const layoutStyle_result : ImageAttachmentLayoutStyle | undefined = layoutStyle_buf - let value : ImageAttachment = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachment) - return value - } - readGestureStyle(): GestureStyle { - let value : GestureStyle = ({} as GestureStyle) - return value - } - readTextShadowStyle(): TextShadowStyle { - let valueDeserializer : Deserializer = this - const textShadow_buf_length : int32 = valueDeserializer.readInt32() - let textShadow_buf : Array = new Array() - for (let textShadow_buf_i = 0; textShadow_buf_i < textShadow_buf_length; textShadow_buf_i++) { - textShadow_buf[textShadow_buf_i] = valueDeserializer.readShadowOptions() - } - const textShadow_result : Array = textShadow_buf - let value : TextShadowStyle = ({textShadow: textShadow_result} as TextShadowStyle) - return value - } - readLetterSpacingStyle(): LetterSpacingStyle { - let valueDeserializer : Deserializer = this - const letterSpacing_result : number = (valueDeserializer.readNumber() as number) - let value : LetterSpacingStyle = ({letterSpacing: letterSpacing_result} as LetterSpacingStyle) - return value - } - readBaselineOffsetStyle(): BaselineOffsetStyle { - let valueDeserializer : Deserializer = this - const baselineOffset_result : number = (valueDeserializer.readNumber() as number) - let value : BaselineOffsetStyle = ({baselineOffset: baselineOffset_result} as BaselineOffsetStyle) - return value - } - readDecorationStyle(): DecorationStyle { - let valueDeserializer : Deserializer = this - const type_result : TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf : ResourceColor | undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector : int32 = valueDeserializer.readInt8() - let color_buf_ : Color | number | string | Resource | undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) - } - const color_result : ResourceColor | undefined = color_buf - const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let style_buf : TextDecorationStyle | undefined - if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) - { - style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) - } - const style_result : TextDecorationStyle | undefined = style_buf - let value : DecorationStyle = ({type: type_result,color: color_result,style: style_result} as DecorationStyle) - return value - } - readTextStyle_styled_string(): TextStyle_styled_string { - let valueDeserializer : Deserializer = this - const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontColor_buf : ResourceColor | undefined - if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) - { - const fontColor_buf__selector : int32 = valueDeserializer.readInt8() - let fontColor_buf_ : Color | number | string | Resource | undefined - if (fontColor_buf__selector == 0) { - fontColor_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (fontColor_buf__selector == 1) { - fontColor_buf_ = (valueDeserializer.readNumber() as number) - } - else if (fontColor_buf__selector == 2) { - fontColor_buf_ = (valueDeserializer.readString() as string) - } - else if (fontColor_buf__selector == 3) { - fontColor_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") - } - fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) - } - const fontColor_result : ResourceColor | undefined = fontColor_buf - const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontFamily_buf : string | undefined - if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) - { - fontFamily_buf = (valueDeserializer.readString() as string) - } - const fontFamily_result : string | undefined = fontFamily_buf - const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontSize_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) - { - fontSize_buf = (valueDeserializer.readNumber() as number) - } - const fontSize_result : number | undefined = fontSize_buf - const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontWeight_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) - { - fontWeight_buf = (valueDeserializer.readNumber() as number) - } - const fontWeight_result : number | undefined = fontWeight_buf - const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontStyle_buf : FontStyle | undefined - if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) + const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let xxl_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) { - fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) + xxl_buf = (valueDeserializer.readLength() as Length) } - const fontStyle_result : FontStyle | undefined = fontStyle_buf - let value : TextStyle_styled_string = ({fontColor: fontColor_result,fontFamily: fontFamily_result,fontSize: fontSize_result,fontWeight: fontWeight_result,fontStyle: fontStyle_result} as TextStyle_styled_string) + const xxl_result : Length | undefined = xxl_buf + let value : GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) return value } readArea(): Area { @@ -1019,8 +596,8 @@ export class Deserializer extends DeserializerBase { } readComponentContent(): ComponentContent { let valueDeserializer : Deserializer = this - const __ComponentContentStub_result : string = (valueDeserializer.readString() as string) - let value : ComponentContent = ({__ComponentContentStub: __ComponentContentStub_result} as ComponentContent) + const _ComponentContentStub_result : string = (valueDeserializer.readString() as string) + let value : ComponentContent = ({_ComponentContentStub: _ComponentContentStub_result} as ComponentContent) return value } readScrollAnimationOptions(): ScrollAnimationOptions { @@ -1575,8 +1152,176 @@ return; } } readColorMetrics(): ColorMetrics { let valueDeserializer : Deserializer = this - const __ColorMetricsStub_result : string = (valueDeserializer.readString() as string) - let value : ColorMetrics = ({__ColorMetricsStub: __ColorMetricsStub_result} as ColorMetrics) + const _ColorMetricsStub_result : string = (valueDeserializer.readString() as string) + let value : ColorMetrics = ({_ColorMetricsStub: _ColorMetricsStub_result} as ColorMetrics) + return value + } + readStyledStringValue(): StyledStringValue { + let valueDeserializer : Deserializer = this + const stub_result : string = (valueDeserializer.readString() as string) + let value : StyledStringValue = ({stub: stub_result} as StyledStringValue) + return value + } + readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { + let valueDeserializer : Deserializer = this + const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf : LengthMetrics | Margin | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) + { + const margin_buf__selector : int32 = valueDeserializer.readInt8() + let margin_buf_ : LengthMetrics | Margin | undefined + if (margin_buf__selector == 0) { + margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (margin_buf__selector == 1) { + const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_top_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) + { + margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf + const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_right_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) + { + margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf + const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_bottom_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) + { + margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf + const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_left_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) + { + margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf + margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") + } + margin_buf = (margin_buf_ as LengthMetrics | Margin) + } + const margin_result : LengthMetrics | Margin | undefined = margin_buf + const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf : LengthMetrics | Padding | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) + { + const padding_buf__selector : int32 = valueDeserializer.readInt8() + let padding_buf_ : LengthMetrics | Padding | undefined + if (padding_buf__selector == 0) { + padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (padding_buf__selector == 1) { + const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_top_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) + { + padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_top : undefined | Length = padding_buf__u_top_buf + const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_right_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) + { + padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_right : undefined | Length = padding_buf__u_right_buf + const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_bottom_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) + { + padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_bottom : undefined | Length = padding_buf__u_bottom_buf + const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_left_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) + { + padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_left : undefined | Length = padding_buf__u_left_buf + padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") + } + padding_buf = (padding_buf_ as LengthMetrics | Padding) + } + const padding_result : LengthMetrics | Padding | undefined = padding_buf + const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf : LengthMetrics | BorderRadiuses | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) + { + const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() + let borderRadius_buf_ : LengthMetrics | BorderRadiuses | undefined + if (borderRadius_buf__selector == 0) { + borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (borderRadius_buf__selector == 1) { + const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) + { + borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf + const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) + { + borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf + const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) + { + borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf + const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) + { + borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf + borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") + } + borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) + } + const borderRadius_result : LengthMetrics | BorderRadiuses | undefined = borderRadius_buf + let value : ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) + return value + } + readSizeOptions(): SizeOptions { + let valueDeserializer : Deserializer = this + const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let width_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) + { + width_buf = (valueDeserializer.readLength() as Length) + } + const width_result : Length | undefined = width_buf + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readLength() as Length) + } + const height_result : Length | undefined = height_buf + let value : SizeOptions = ({width: width_result,height: height_result} as SizeOptions) return value } readGetItemMainSizeByIndex(isSync: boolean = false): GetItemMainSizeByIndex { @@ -1636,8 +1381,8 @@ return; } } readDateTimeOptions(): DateTimeOptions { let valueDeserializer : Deserializer = this - const __DateTimeOptionsStub_result : string = (valueDeserializer.readString() as string) - let value : DateTimeOptions = ({__DateTimeOptionsStub: __DateTimeOptionsStub_result} as DateTimeOptions) + const _DateTimeOptionsStub_result : string = (valueDeserializer.readString() as string) + let value : DateTimeOptions = ({_DateTimeOptionsStub: _DateTimeOptionsStub_result} as DateTimeOptions) return value } readCallback_TimePickerResult_Void(isSync: boolean = false): ((value: TimePickerResult) => void) { @@ -2206,18 +1951,6 @@ _argsSerializer.writeTabContentTransitionProxy(parameter); _argsSerializer.release(); return; } } - readRectAttribute(): RectAttribute { - throw new Error("Interface with functions is not supported") - } - readPathAttribute(): PathAttribute { - throw new Error("Interface with functions is not supported") - } - readEllipseAttribute(): EllipseAttribute { - throw new Error("Interface with functions is not supported") - } - readCircleAttribute(): CircleAttribute { - throw new Error("Interface with functions is not supported") - } readIconOptions(): IconOptions { let valueDeserializer : Deserializer = this const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -2753,30 +2486,8 @@ return (_continuationValue as boolean); } } readNavPathInfo(): NavPathInfo { let valueDeserializer : Deserializer = this - const name_result : string = (valueDeserializer.readString() as string) - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf : object | undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Any") as Object) - } - const param_result : object | undefined = param_buf - const onPop_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let onPop_buf : ((parameter: PopInfo) => void) | undefined - if ((RuntimeType.UNDEFINED) != (onPop_buf_runtimeType)) - { - onPop_buf = valueDeserializer.readCallback_PopInfo_Void() - } - const onPop_result : ((parameter: PopInfo) => void) | undefined = onPop_buf - const isEntry_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isEntry_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (isEntry_buf_runtimeType)) - { - isEntry_buf = valueDeserializer.readBoolean() - } - const isEntry_result : boolean | undefined = isEntry_buf - let value : NavPathInfo = ({name: name_result,param: param_result,onPop: onPop_result,isEntry: isEntry_result} as NavPathInfo) - return value + let ptr : KPointer = valueDeserializer.readPointer() + return NavPathInfoInternal.fromPtr(ptr) } readInterceptionModeCallback(isSync: boolean = false): InterceptionModeCallback { const _resource : CallbackResource = this.readCallbackResource() @@ -3015,67 +2726,10 @@ return; } let value : GridColColumnOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridColColumnOption) return value } - readLinearGradient_common(): LinearGradient_common { + readLinearGradient(): LinearGradient { let valueDeserializer : Deserializer = this - const angle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let angle_buf : number | string | undefined - if ((RuntimeType.UNDEFINED) != (angle_buf_runtimeType)) - { - const angle_buf__selector : int32 = valueDeserializer.readInt8() - let angle_buf_ : number | string | undefined - if (angle_buf__selector == 0) { - angle_buf_ = (valueDeserializer.readNumber() as number) - } - else if (angle_buf__selector == 1) { - angle_buf_ = (valueDeserializer.readString() as string) - } - else { - throw new Error("One of the branches for angle_buf_ has to be chosen through deserialisation.") - } - angle_buf = (angle_buf_ as number | string) - } - const angle_result : number | string | undefined = angle_buf - const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let direction_buf : GradientDirection | undefined - if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) - { - direction_buf = (valueDeserializer.readInt32() as GradientDirection) - } - const direction_result : GradientDirection | undefined = direction_buf - const colors_buf_length : int32 = valueDeserializer.readInt32() - let colors_buf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>() - for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { - const colors_buf_buf_value0_buf_selector : int32 = valueDeserializer.readInt8() - let colors_buf_buf_value0_buf : Color | number | string | Resource | undefined - if (colors_buf_buf_value0_buf_selector == 0) { - colors_buf_buf_value0_buf = (valueDeserializer.readInt32() as Color) - } - else if (colors_buf_buf_value0_buf_selector == 1) { - colors_buf_buf_value0_buf = (valueDeserializer.readNumber() as number) - } - else if (colors_buf_buf_value0_buf_selector == 2) { - colors_buf_buf_value0_buf = (valueDeserializer.readString() as string) - } - else if (colors_buf_buf_value0_buf_selector == 3) { - colors_buf_buf_value0_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation.") - } - const colors_buf_buf_value0 : ResourceColor = (colors_buf_buf_value0_buf as Color | number | string | Resource) - const colors_buf_buf_value1 : number = (valueDeserializer.readNumber() as number) - colors_buf[colors_buf_i] = ([colors_buf_buf_value0, colors_buf_buf_value1] as [ ResourceColor, number ]) - } - const colors_result : Array<[ ResourceColor, number ]> = colors_buf - const repeating_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let repeating_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (repeating_buf_runtimeType)) - { - repeating_buf = valueDeserializer.readBoolean() - } - const repeating_result : boolean | undefined = repeating_buf - let value : LinearGradient_common = ({angle: angle_result,direction: direction_result,colors: colors_result,repeating: repeating_result} as LinearGradient_common) - return value + let ptr : KPointer = valueDeserializer.readPointer() + return LinearGradientInternal.fromPtr(ptr) } readCallback_Date_Void(isSync: boolean = false): ((parameter: Date) => void) { const _resource : CallbackResource = this.readCallbackResource() @@ -3190,14 +2844,14 @@ return; } } readScene(): Scene { let valueDeserializer : Deserializer = this - const __SceneStub_result : string = (valueDeserializer.readString() as string) - let value : Scene = ({__SceneStub: __SceneStub_result} as Scene) + const _SceneStub_result : string = (valueDeserializer.readString() as string) + let value : Scene = ({_SceneStub: _SceneStub_result} as Scene) return value } readUIContext(): UIContext { let valueDeserializer : Deserializer = this - const __UIContextStub_result : string = (valueDeserializer.readString() as string) - let value : UIContext = ({__UIContextStub: __UIContextStub_result} as UIContext) + const _UIContextStub_result : string = (valueDeserializer.readString() as string) + let value : UIContext = ({_UIContextStub: _UIContextStub_result} as UIContext) return value } readCallback_SheetType_Void(isSync: boolean = false): ((parameter: SheetType) => void) { @@ -3375,8 +3029,8 @@ return; } } readImageModifier(): ImageModifier { let valueDeserializer : Deserializer = this - const __ImageModifierStub_result : string = (valueDeserializer.readString() as string) - let value : ImageModifier = ({__ImageModifierStub: __ImageModifierStub_result} as ImageModifier) + const _ImageModifierStub_result : string = (valueDeserializer.readString() as string) + let value : ImageModifier = ({_ImageModifierStub: _ImageModifierStub_result} as ImageModifier) return value } readMotionPathOptions(): MotionPathOptions { @@ -3636,6 +3290,68 @@ return; } let value : TranslateOptions = ({x: x_result,y: y_result,z: z_result} as TranslateOptions) return value } + readLinearGradient_common(): LinearGradient_common { + let valueDeserializer : Deserializer = this + const angle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let angle_buf : number | string | undefined + if ((RuntimeType.UNDEFINED) != (angle_buf_runtimeType)) + { + const angle_buf__selector : int32 = valueDeserializer.readInt8() + let angle_buf_ : number | string | undefined + if (angle_buf__selector == 0) { + angle_buf_ = (valueDeserializer.readNumber() as number) + } + else if (angle_buf__selector == 1) { + angle_buf_ = (valueDeserializer.readString() as string) + } + else { + throw new Error("One of the branches for angle_buf_ has to be chosen through deserialisation.") + } + angle_buf = (angle_buf_ as number | string) + } + const angle_result : number | string | undefined = angle_buf + const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let direction_buf : GradientDirection | undefined + if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) + { + direction_buf = (valueDeserializer.readInt32() as GradientDirection) + } + const direction_result : GradientDirection | undefined = direction_buf + const colors_buf_length : int32 = valueDeserializer.readInt32() + let colors_buf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>() + for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { + const colors_buf_buf_value0_buf_selector : int32 = valueDeserializer.readInt8() + let colors_buf_buf_value0_buf : Color | number | string | Resource | undefined + if (colors_buf_buf_value0_buf_selector == 0) { + colors_buf_buf_value0_buf = (valueDeserializer.readInt32() as Color) + } + else if (colors_buf_buf_value0_buf_selector == 1) { + colors_buf_buf_value0_buf = (valueDeserializer.readNumber() as number) + } + else if (colors_buf_buf_value0_buf_selector == 2) { + colors_buf_buf_value0_buf = (valueDeserializer.readString() as string) + } + else if (colors_buf_buf_value0_buf_selector == 3) { + colors_buf_buf_value0_buf = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation.") + } + const colors_buf_buf_value0 : ResourceColor = (colors_buf_buf_value0_buf as Color | number | string | Resource) + const colors_buf_buf_value1 : number = (valueDeserializer.readNumber() as number) + colors_buf[colors_buf_i] = ([colors_buf_buf_value0, colors_buf_buf_value1] as [ ResourceColor, number ]) + } + const colors_result : Array<[ ResourceColor, number ]> = colors_buf + const repeating_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let repeating_buf : boolean | undefined + if ((RuntimeType.UNDEFINED) != (repeating_buf_runtimeType)) + { + repeating_buf = valueDeserializer.readBoolean() + } + const repeating_result : boolean | undefined = repeating_buf + let value : LinearGradient_common = ({angle: angle_result,direction: direction_result,colors: colors_result,repeating: repeating_result} as LinearGradient_common) + return value + } readDrawingCanvas(): DrawingCanvas { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -3866,14 +3582,14 @@ return; } } readCustomTheme(): CustomTheme { let valueDeserializer : Deserializer = this - const __CustomThemeStub_result : string = (valueDeserializer.readString() as string) - let value : CustomTheme = ({__CustomThemeStub: __CustomThemeStub_result} as CustomTheme) + const _CustomThemeStub_result : string = (valueDeserializer.readString() as string) + let value : CustomTheme = ({_CustomThemeStub: _CustomThemeStub_result} as CustomTheme) return value } readRestrictedWorker(): RestrictedWorker { let valueDeserializer : Deserializer = this - const __RestrictedWorkerStub_result : string = (valueDeserializer.readString() as string) - let value : RestrictedWorker = ({__RestrictedWorkerStub: __RestrictedWorkerStub_result} as RestrictedWorker) + const _RestrictedWorkerStub_result : string = (valueDeserializer.readString() as string) + let value : RestrictedWorker = ({_RestrictedWorkerStub: _RestrictedWorkerStub_result} as RestrictedWorker) return value } readWant(): Want { @@ -3996,40 +3712,6 @@ return; } let value : NavigationAnimatedTransition = ({onTransitionEnd: onTransitionEnd_result,timeout: timeout_result,isInteractive: isInteractive_result,transition: transition_result} as NavigationAnimatedTransition) return value } - readNavContentInfo(): NavContentInfo { - let valueDeserializer : Deserializer = this - const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let name_buf : string | undefined - if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) - { - name_buf = (valueDeserializer.readString() as string) - } - const name_result : string | undefined = name_buf - const index_result : number = (valueDeserializer.readNumber() as number) - const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let mode_buf : NavDestinationMode | undefined - if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) - { - mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) - } - const mode_result : NavDestinationMode | undefined = mode_buf - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf : Object | undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Object") as Object) - } - const param_result : Object | undefined = param_buf - const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let navDestinationId_buf : string | undefined - if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) - { - navDestinationId_buf = (valueDeserializer.readString() as string) - } - const navDestinationId_result : string | undefined = navDestinationId_buf - let value : NavContentInfo = ({name: name_result,index: index_result,mode: mode_result,param: param_result,navDestinationId: navDestinationId_result} as NavContentInfo) - return value - } readOnLinearIndicatorChangeCallback(isSync: boolean = false): OnLinearIndicatorChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -4114,8 +3796,8 @@ return; } } readDrawContext(): DrawContext { let valueDeserializer : Deserializer = this - const __DrawContextStub_result : string = (valueDeserializer.readString() as string) - let value : DrawContext = ({__DrawContextStub: __DrawContextStub_result} as DrawContext) + const _DrawContextStub_result : string = (valueDeserializer.readString() as string) + let value : DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) return value } readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { @@ -4129,54 +3811,95 @@ return; } const start_result : number = (valueDeserializer.readNumber() as number) const length_result : number = (valueDeserializer.readNumber() as number) const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_buf_selector : int32 = valueDeserializer.readInt8() - let styledValue_buf : TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined - if (styledValue_buf_selector == 0) { - styledValue_buf = valueDeserializer.readTextStyle_styled_string() - } - else if (styledValue_buf_selector == 1) { - styledValue_buf = valueDeserializer.readDecorationStyle() - } - else if (styledValue_buf_selector == 2) { - styledValue_buf = valueDeserializer.readBaselineOffsetStyle() - } - else if (styledValue_buf_selector == 3) { - styledValue_buf = valueDeserializer.readLetterSpacingStyle() - } - else if (styledValue_buf_selector == 4) { - styledValue_buf = valueDeserializer.readTextShadowStyle() - } - else if (styledValue_buf_selector == 5) { - styledValue_buf = valueDeserializer.readGestureStyle() - } - else if (styledValue_buf_selector == 6) { - styledValue_buf = valueDeserializer.readImageAttachment() - } - else if (styledValue_buf_selector == 7) { - styledValue_buf = valueDeserializer.readParagraphStyle() - } - else if (styledValue_buf_selector == 8) { - styledValue_buf = valueDeserializer.readLineHeightStyle() - } - else if (styledValue_buf_selector == 9) { - styledValue_buf = valueDeserializer.readUrlStyle() - } - else if (styledValue_buf_selector == 10) { - styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) - } - else if (styledValue_buf_selector == 11) { - styledValue_buf = valueDeserializer.readUserDataSpan() - } - else if (styledValue_buf_selector == 12) { - styledValue_buf = valueDeserializer.readBackgroundColorStyle() + const styledValue_result : StyledStringValue = valueDeserializer.readStyledStringValue() + let value : SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) + return value + } + readTextBackgroundStyle(): TextBackgroundStyle { + let valueDeserializer : Deserializer = this + const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let color_buf : ResourceColor | undefined + if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) + { + const color_buf__selector : int32 = valueDeserializer.readInt8() + let color_buf_ : Color | number | string | Resource | undefined + if (color_buf__selector == 0) { + color_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (color_buf__selector == 1) { + color_buf_ = (valueDeserializer.readNumber() as number) + } + else if (color_buf__selector == 2) { + color_buf_ = (valueDeserializer.readString() as string) + } + else if (color_buf__selector == 3) { + color_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") + } + color_buf = (color_buf_ as Color | number | string | Resource) } - else { - throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + const color_result : ResourceColor | undefined = color_buf + const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf : Dimension | BorderRadiuses | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) + { + const radius_buf__selector : int32 = valueDeserializer.readInt8() + let radius_buf_ : Dimension | BorderRadiuses | undefined + if (radius_buf__selector == 0) { + radius_buf_ = (valueDeserializer.readLength() as Dimension) + } + else if (radius_buf__selector == 1) { + const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topLeft : undefined | Length = radius_buf__u_topLeft_buf + const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topRight : undefined | Length = radius_buf__u_topRight_buf + const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomLeft_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomLeft : undefined | Length = radius_buf__u_bottomLeft_buf + const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomRight_buf : Length | undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomRight : undefined | Length = radius_buf__u_bottomRight_buf + radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") + } + radius_buf = (radius_buf_ as Dimension | BorderRadiuses) } - const styledValue_result : StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) - let value : SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) + const radius_result : Dimension | BorderRadiuses | undefined = radius_buf + let value : TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) return value } + readCustomSpan(): CustomSpan { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return CustomSpanInternal.fromPtr(ptr) + } + readImageAttachment(): ImageAttachment { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ImageAttachmentInternal.fromPtr(ptr) + } readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -6075,21 +5798,6 @@ return; } let value : EdgeEffectOptions = ({alwaysEnabled: alwaysEnabled_result} as EdgeEffectOptions) return value } - readScrollOnScrollCallback(isSync: boolean = false): ScrollOnScrollCallback { - 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; } - } readScrollOnWillScrollCallback(isSync: boolean = false): ScrollOnWillScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -6952,6 +6660,40 @@ _argsSerializer.writeInt32((mode.valueOf() as int32)); _argsSerializer.release(); return; } } + readNavContentInfo(): NavContentInfo { + let valueDeserializer : Deserializer = this + const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let name_buf : string | undefined + if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) + { + name_buf = (valueDeserializer.readString() as string) + } + const name_result : string | undefined = name_buf + const index_result : number = (valueDeserializer.readNumber() as number) + const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let mode_buf : NavDestinationMode | undefined + if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) + { + mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) + } + const mode_result : NavDestinationMode | undefined = mode_buf + const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let param_buf : Object | undefined + if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) + { + param_buf = (valueDeserializer.readCustomObject("Object") as Object) + } + const param_result : Object | undefined = param_buf + const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let navDestinationId_buf : string | undefined + if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) + { + navDestinationId_buf = (valueDeserializer.readString() as string) + } + const navDestinationId_result : string | undefined = navDestinationId_buf + let value : NavContentInfo = ({name: name_result,index: index_result,mode: mode_result,param: param_result,navDestinationId: navDestinationId_result} as NavContentInfo) + return value + } readNavDestinationContext(): NavDestinationContext { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -7172,8 +6914,8 @@ return; } } readSystemBarStyle(): SystemBarStyle { let valueDeserializer : Deserializer = this - const __SystemBarStyleStub_result : string = (valueDeserializer.readString() as string) - let value : SystemBarStyle = ({__SystemBarStyleStub: __SystemBarStyleStub_result} as SystemBarStyle) + const _SystemBarStyleStub_result : string = (valueDeserializer.readString() as string) + let value : SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) return value } readMenuItemOptions(): MenuItemOptions { @@ -7338,8 +7080,8 @@ return; } } readDrawableDescriptor(): DrawableDescriptor { let valueDeserializer : Deserializer = this - const __DrawableDescriptorStub_result : string = (valueDeserializer.readString() as string) - let value : DrawableDescriptor = ({__DrawableDescriptorStub: __DrawableDescriptorStub_result} as DrawableDescriptor) + const _DrawableDescriptorStub_result : string = (valueDeserializer.readString() as string) + let value : DrawableDescriptor = ({_DrawableDescriptorStub: _DrawableDescriptorStub_result} as DrawableDescriptor) return value } readMatrix2D(): Matrix2D { @@ -7405,13 +7147,14 @@ return; } } readDrawingColorFilter(): DrawingColorFilter { let valueDeserializer : Deserializer = this - const __DrawingColorFilterStub_result : string = (valueDeserializer.readString() as string) - let value : DrawingColorFilter = ({__DrawingColorFilterStub: __DrawingColorFilterStub_result} as DrawingColorFilter) + const _DrawingColorFilterStub_result : string = (valueDeserializer.readString() as string) + let value : DrawingColorFilter = ({_DrawingColorFilterStub: _DrawingColorFilterStub_result} as DrawingColorFilter) return value } readColorFilter(): ColorFilter { - let value : ColorFilter = ({} as ColorFilter) - return value + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ColorFilterInternal.fromPtr(ptr) } readBreakPoints(): BreakPoints { let valueDeserializer : Deserializer = this @@ -7471,8 +7214,8 @@ return (_continuationValue as [ number, number ]); } } readWindowStatusType(): WindowStatusType { let valueDeserializer : Deserializer = this - const __WindowStatusTypeStub_result : string = (valueDeserializer.readString() as string) - let value : WindowStatusType = ({__WindowStatusTypeStub: __WindowStatusTypeStub_result} as WindowStatusType) + const _WindowStatusTypeStub_result : string = (valueDeserializer.readString() as string) + let value : WindowStatusType = ({_WindowStatusTypeStub: _WindowStatusTypeStub_result} as WindowStatusType) return value } readFlexSpaceOptions(): FlexSpaceOptions { @@ -7746,10 +7489,6 @@ return (_continuationValue as [ number, number ]); } let value : DatePickerDialogOptions = ({start: start_result,end: end_result,selected: selected_result,lunar: lunar_result,lunarSwitch: lunarSwitch_result,lunarSwitchStyle: lunarSwitchStyle_result,showTime: showTime_result,useMilitaryTime: useMilitaryTime_result,disappearTextStyle: disappearTextStyle_result,textStyle: textStyle_result,acceptButtonStyle: acceptButtonStyle_result,cancelButtonStyle: cancelButtonStyle_result,selectedTextStyle: selectedTextStyle_result,maskRect: maskRect_result,alignment: alignment_result,offset: offset_result,onAccept: onAccept_result,onCancel: onCancel_result,onChange: onChange_result,onDateAccept: onDateAccept_result,onDateChange: onDateChange_result,backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,onDidAppear: onDidAppear_result,onDidDisappear: onDidDisappear_result,onWillAppear: onWillAppear_result,onWillDisappear: onWillDisappear_result,shadow: shadow_result,dateTimeOptions: dateTimeOptions_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as DatePickerDialogOptions) return value } - readLinearGradient_data_panel(): LinearGradient_data_panel { - let value : LinearGradient_data_panel = ({} as LinearGradient_data_panel) - return value - } readAnimateParam(): AnimateParam { let valueDeserializer : Deserializer = this const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7962,8 +7701,8 @@ return; } } readRectShape(): RectShape { let valueDeserializer : Deserializer = this - const __RectShapeStub_result : string = (valueDeserializer.readString() as string) - let value : RectShape = ({__RectShapeStub: __RectShapeStub_result} as RectShape) + const _RectShapeStub_result : string = (valueDeserializer.readString() as string) + let value : RectShape = ({_RectShapeStub: _RectShapeStub_result} as RectShape) return value } readConstraintSizeOptions(): ConstraintSizeOptions { @@ -9641,8 +9380,8 @@ return (_continuationValue as GestureJudgeResult); } } readBlender(): Blender { let valueDeserializer : Deserializer = this - const __BlenderStub_result : string = (valueDeserializer.readString() as string) - let value : Blender = ({__BlenderStub: __BlenderStub_result} as Blender) + const _BlenderStub_result : string = (valueDeserializer.readString() as string) + let value : Blender = ({_BlenderStub: _BlenderStub_result} as Blender) return value } readOverlayOptions(): OverlayOptions { @@ -9859,20 +9598,20 @@ return; } } readPathShape(): PathShape { let valueDeserializer : Deserializer = this - const __PathShapeStub_result : string = (valueDeserializer.readString() as string) - let value : PathShape = ({__PathShapeStub: __PathShapeStub_result} as PathShape) + const _PathShapeStub_result : string = (valueDeserializer.readString() as string) + let value : PathShape = ({_PathShapeStub: _PathShapeStub_result} as PathShape) return value } readEllipseShape(): EllipseShape { let valueDeserializer : Deserializer = this - const __EllipseShapeStub_result : string = (valueDeserializer.readString() as string) - let value : EllipseShape = ({__EllipseShapeStub: __EllipseShapeStub_result} as EllipseShape) + const _EllipseShapeStub_result : string = (valueDeserializer.readString() as string) + let value : EllipseShape = ({_EllipseShapeStub: _EllipseShapeStub_result} as EllipseShape) return value } readCircleShape(): CircleShape { let valueDeserializer : Deserializer = this - const __CircleShapeStub_result : string = (valueDeserializer.readString() as string) - let value : CircleShape = ({__CircleShapeStub: __CircleShapeStub_result} as CircleShape) + const _CircleShapeStub_result : string = (valueDeserializer.readString() as string) + let value : CircleShape = ({_CircleShapeStub: _CircleShapeStub_result} as CircleShape) return value } readProgressMask(): ProgressMask { @@ -10027,16 +9766,10 @@ return; } let value : TransitionOptions = ({type: type_result,opacity: opacity_result,translate: translate_result,scale: scale_result,rotate: rotate_result} as TransitionOptions) return value } - readIntentionCode(): IntentionCode { - let valueDeserializer : Deserializer = this - const __IntentionCodeStub_result : string = (valueDeserializer.readString() as string) - let value : IntentionCode = ({__IntentionCodeStub: __IntentionCodeStub_result} as IntentionCode) - return value - } readDrawingLattice(): DrawingLattice { let valueDeserializer : Deserializer = this - const __DrawingLatticeStub_result : string = (valueDeserializer.readString() as string) - let value : DrawingLattice = ({__DrawingLatticeStub: __DrawingLatticeStub_result} as DrawingLattice) + const _DrawingLatticeStub_result : string = (valueDeserializer.readString() as string) + let value : DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) return value } readRectResult(): RectResult { @@ -10053,6 +9786,12 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return DrawModifierInternal.fromPtr(ptr) } + readIntentionCode(): IntentionCode { + let valueDeserializer : Deserializer = this + const _IntentionCodeStub_result : string = (valueDeserializer.readString() as string) + let value : IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) + return value + } readUnifiedData(): UnifiedData { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -10127,11 +9866,8 @@ return; } } readImageData(): ImageData { let valueDeserializer : Deserializer = this - const data_result : NativeBuffer = (valueDeserializer.readBuffer() as NativeBuffer) - const height_result : number = (valueDeserializer.readNumber() as number) - const width_result : number = (valueDeserializer.readNumber() as number) - let value : ImageData = ({data: data_result,height: height_result,width: width_result} as ImageData) - return value + let ptr : KPointer = valueDeserializer.readPointer() + return ImageDataInternal.fromPtr(ptr) } readPath2D(): Path2D { let valueDeserializer : Deserializer = this @@ -10453,18 +10189,6 @@ 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 } - readScrollMotion(): ScrollMotion { - let value : ScrollMotion = ({} as ScrollMotion) - return value - } - readFrictionMotion(): FrictionMotion { - let value : FrictionMotion = ({} as FrictionMotion) - return value - } - readSpringMotion(): SpringMotion { - let value : SpringMotion = ({} as SpringMotion) - return value - } readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { let valueDeserializer : Deserializer = this const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -12494,10 +12218,10 @@ return; } readDoubleAnimationParam(): DoubleAnimationParam { let valueDeserializer : Deserializer = this const propertyName_result : string = (valueDeserializer.readString() as string) - const startValue_result : number = (valueDeserializer.readNumber() as number) - const endValue_result : number = (valueDeserializer.readNumber() as number) - const duration_result : number = (valueDeserializer.readNumber() as number) - const delay_result : number = (valueDeserializer.readNumber() as number) + const startValue_result : float32 = valueDeserializer.readFloat32() + const endValue_result : float32 = valueDeserializer.readFloat32() + const duration_result : int32 = valueDeserializer.readInt32() + const delay_result : int32 = valueDeserializer.readInt32() const curve_buf_selector : int32 = valueDeserializer.readInt8() let curve_buf : Curve | string | ICurve | undefined if (curve_buf_selector == 0) { @@ -12908,11 +12632,6 @@ _argsSerializer.writeOffsetResult(value); _argsSerializer.release(); return; } } - readNavigationTransitionProxy(): NavigationTransitionProxy { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return NavigationTransitionProxyInternal.fromPtr(ptr) - } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -13070,68 +12789,272 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return LinearIndicatorControllerInternal.fromPtr(ptr) } - readStyleOptions(): StyleOptions { + readImageAttachmentInterface(): ImageAttachmentInterface { let valueDeserializer : Deserializer = this - const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let start_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) + const value_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let size_buf : SizeOptions | undefined + if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) { - start_buf = (valueDeserializer.readNumber() as number) + size_buf = valueDeserializer.readSizeOptions() } - const start_result : number | undefined = start_buf - const length_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let length_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (length_buf_runtimeType)) + const size_result : SizeOptions | undefined = size_buf + const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let verticalAlign_buf : ImageSpanAlignment | undefined + if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) { - length_buf = (valueDeserializer.readNumber() as number) + verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) } - const length_result : number | undefined = length_buf - const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_buf_selector : int32 = valueDeserializer.readInt8() - let styledValue_buf : TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined - if (styledValue_buf_selector == 0) { - styledValue_buf = valueDeserializer.readTextStyle_styled_string() + const verticalAlign_result : ImageSpanAlignment | undefined = verticalAlign_buf + const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let objectFit_buf : ImageFit | undefined + if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) + { + objectFit_buf = (valueDeserializer.readInt32() as ImageFit) + } + const objectFit_result : ImageFit | undefined = objectFit_buf + const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let layoutStyle_buf : ImageAttachmentLayoutStyle | undefined + if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) + { + layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() + } + const layoutStyle_result : ImageAttachmentLayoutStyle | undefined = layoutStyle_buf + 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() + return UrlStyleInternal.fromPtr(ptr) + } + readLineHeightStyle(): LineHeightStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LineHeightStyleInternal.fromPtr(ptr) + } + readParagraphStyleInterface(): ParagraphStyleInterface { + let valueDeserializer : Deserializer = this + const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let textAlign_buf : TextAlign | undefined + if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) + { + textAlign_buf = (valueDeserializer.readInt32() as TextAlign) + } + const textAlign_result : TextAlign | undefined = textAlign_buf + const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let textIndent_buf : LengthMetrics | undefined + if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) + { + textIndent_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) } - else if (styledValue_buf_selector == 1) { - styledValue_buf = valueDeserializer.readDecorationStyle() + const textIndent_result : LengthMetrics | undefined = textIndent_buf + const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let maxLines_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) + { + maxLines_buf = (valueDeserializer.readNumber() as number) } - else if (styledValue_buf_selector == 2) { - styledValue_buf = valueDeserializer.readBaselineOffsetStyle() + const maxLines_result : number | undefined = maxLines_buf + const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let overflow_buf : TextOverflow | undefined + if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) + { + overflow_buf = (valueDeserializer.readInt32() as TextOverflow) } - else if (styledValue_buf_selector == 3) { - styledValue_buf = valueDeserializer.readLetterSpacingStyle() + const overflow_result : TextOverflow | undefined = overflow_buf + const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let wordBreak_buf : WordBreak | undefined + if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) + { + wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) } - else if (styledValue_buf_selector == 4) { - styledValue_buf = valueDeserializer.readTextShadowStyle() + const wordBreak_result : WordBreak | undefined = wordBreak_buf + const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let leadingMargin_buf : LengthMetrics | LeadingMarginPlaceholder | undefined + if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) + { + const leadingMargin_buf__selector : int32 = valueDeserializer.readInt8() + let leadingMargin_buf_ : LengthMetrics | LeadingMarginPlaceholder | undefined + if (leadingMargin_buf__selector == 0) { + leadingMargin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (leadingMargin_buf__selector == 1) { + leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() + } + else { + throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") + } + leadingMargin_buf = (leadingMargin_buf_ as LengthMetrics | LeadingMarginPlaceholder) } - else if (styledValue_buf_selector == 5) { - styledValue_buf = valueDeserializer.readGestureStyle() + const leadingMargin_result : LengthMetrics | LeadingMarginPlaceholder | undefined = leadingMargin_buf + let value : ParagraphStyleInterface = ({textAlign: textAlign_result,textIndent: textIndent_result,maxLines: maxLines_result,overflow: overflow_result,wordBreak: wordBreak_result,leadingMargin: leadingMargin_result} as ParagraphStyleInterface) + return value + } + readParagraphStyle(): ParagraphStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ParagraphStyleInternal.fromPtr(ptr) + } + readGestureStyleInterface(): GestureStyleInterface { + let valueDeserializer : Deserializer = this + const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let onClick_buf : ((event: ClickEvent) => void) | undefined + if ((RuntimeType.UNDEFINED) != (onClick_buf_runtimeType)) + { + onClick_buf = valueDeserializer.readCallback_ClickEvent_Void() } - else if (styledValue_buf_selector == 6) { - styledValue_buf = valueDeserializer.readImageAttachment() + const onClick_result : ((event: ClickEvent) => void) | undefined = onClick_buf + const onLongPress_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let onLongPress_buf : ((event: GestureEvent) => void) | undefined + if ((RuntimeType.UNDEFINED) != (onLongPress_buf_runtimeType)) + { + onLongPress_buf = valueDeserializer.readCallback_GestureEvent_Void() } - else if (styledValue_buf_selector == 7) { - styledValue_buf = valueDeserializer.readParagraphStyle() + const onLongPress_result : ((event: GestureEvent) => void) | undefined = onLongPress_buf + let value : GestureStyleInterface = ({onClick: onClick_result,onLongPress: onLongPress_result} as GestureStyleInterface) + return value + } + readGestureStyle(): GestureStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return GestureStyleInternal.fromPtr(ptr) + } + readBackgroundColorStyle(): BackgroundColorStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return BackgroundColorStyleInternal.fromPtr(ptr) + } + readTextShadowStyle(): TextShadowStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextShadowStyleInternal.fromPtr(ptr) + } + readLetterSpacingStyle(): LetterSpacingStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LetterSpacingStyleInternal.fromPtr(ptr) + } + readBaselineOffsetStyle(): BaselineOffsetStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return BaselineOffsetStyleInternal.fromPtr(ptr) + } + readDecorationStyle(): DecorationStyle { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return DecorationStyleInternal.fromPtr(ptr) + } + readTextStyleInterface(): TextStyleInterface { + let valueDeserializer : Deserializer = this + const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontColor_buf : ResourceColor | undefined + if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) + { + const fontColor_buf__selector : int32 = valueDeserializer.readInt8() + let fontColor_buf_ : Color | number | string | Resource | undefined + if (fontColor_buf__selector == 0) { + fontColor_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (fontColor_buf__selector == 1) { + fontColor_buf_ = (valueDeserializer.readNumber() as number) + } + else if (fontColor_buf__selector == 2) { + fontColor_buf_ = (valueDeserializer.readString() as string) + } + else if (fontColor_buf__selector == 3) { + fontColor_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") + } + fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) } - else if (styledValue_buf_selector == 8) { - styledValue_buf = valueDeserializer.readLineHeightStyle() + const fontColor_result : ResourceColor | undefined = fontColor_buf + const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontFamily_buf : ResourceStr | undefined + if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) + { + const fontFamily_buf__selector : int32 = valueDeserializer.readInt8() + let fontFamily_buf_ : string | Resource | undefined + if (fontFamily_buf__selector == 0) { + fontFamily_buf_ = (valueDeserializer.readString() as string) + } + else if (fontFamily_buf__selector == 1) { + fontFamily_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") + } + fontFamily_buf = (fontFamily_buf_ as string | Resource) } - else if (styledValue_buf_selector == 9) { - styledValue_buf = valueDeserializer.readUrlStyle() + const fontFamily_result : ResourceStr | undefined = fontFamily_buf + const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontSize_buf : LengthMetrics | undefined + if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) + { + fontSize_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) } - else if (styledValue_buf_selector == 10) { - styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) + const fontSize_result : LengthMetrics | undefined = fontSize_buf + const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontWeight_buf : number | FontWeight | string | undefined + if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) + { + const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() + let fontWeight_buf_ : number | FontWeight | string | undefined + if (fontWeight_buf__selector == 0) { + fontWeight_buf_ = (valueDeserializer.readNumber() as number) + } + else if (fontWeight_buf__selector == 1) { + fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) + } + else if (fontWeight_buf__selector == 2) { + fontWeight_buf_ = (valueDeserializer.readString() as string) + } + else { + throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") + } + fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) } - else if (styledValue_buf_selector == 11) { - styledValue_buf = valueDeserializer.readUserDataSpan() + const fontWeight_result : number | FontWeight | string | undefined = fontWeight_buf + const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontStyle_buf : FontStyle | undefined + if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) + { + fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) } - else if (styledValue_buf_selector == 12) { - styledValue_buf = valueDeserializer.readBackgroundColorStyle() + const fontStyle_result : FontStyle | undefined = fontStyle_buf + let value : TextStyleInterface = ({fontColor: fontColor_result,fontFamily: fontFamily_result,fontSize: fontSize_result,fontWeight: fontWeight_result,fontStyle: fontStyle_result} as TextStyleInterface) + return value + } + readTextStyle_styled_string(): TextStyle_styled_string { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextStyle_styled_stringInternal.fromPtr(ptr) + } + readStyleOptions(): StyleOptions { + let valueDeserializer : Deserializer = this + const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let start_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) + { + start_buf = (valueDeserializer.readNumber() as number) } - else { - throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + const start_result : number | undefined = start_buf + const length_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let length_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (length_buf_runtimeType)) + { + length_buf = (valueDeserializer.readNumber() as number) } - const styledValue_result : StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) + const length_result : number | undefined = length_buf + const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) + const styledValue_result : StyledStringValue = valueDeserializer.readStyledStringValue() let value : StyleOptions = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as StyleOptions) return value } @@ -13159,8 +13082,8 @@ return; } } readReceiveCallback(): ReceiveCallback { let valueDeserializer : Deserializer = this - const __ReceiveCallbackStub_result : string = (valueDeserializer.readString() as string) - let value : ReceiveCallback = ({__ReceiveCallbackStub: __ReceiveCallbackStub_result} as ReceiveCallback) + const _ReceiveCallbackStub_result : string = (valueDeserializer.readString() as string) + let value : ReceiveCallback = ({_ReceiveCallbackStub: _ReceiveCallbackStub_result} as ReceiveCallback) return value } readUIExtensionOptions(): UIExtensionOptions { @@ -14826,6 +14749,11 @@ 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) @@ -15071,6 +14999,11 @@ return; } let value : ToggleOptions = ({type: type_result,isOn: isOn_result} as ToggleOptions) return value } + readTimePickerDialog(): TimePickerDialog { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TimePickerDialogInternal.fromPtr(ptr) + } readTimePickerResult(): TimePickerResult { let valueDeserializer : Deserializer = this const hour_result : number = (valueDeserializer.readNumber() as number) @@ -15163,6 +15096,11 @@ return; } let value : TextPickerResult = ({value: value_result,index: index_result} as TextPickerResult) return value } + readTextPickerDialog(): TextPickerDialog { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextPickerDialogInternal.fromPtr(ptr) + } readType_TextPickerAttribute_onChange_callback(isSync: boolean = false): ((value: string | Array,index: number | Array) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -15485,6 +15423,26 @@ return; } let value : TextInputOptions = ({placeholder: placeholder_result,text: text_result,controller: controller_result} as TextInputOptions) return value } + readLayoutManager(): LayoutManager { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutManagerInternal.fromPtr(ptr) + } + readStyledStringController(): StyledStringController { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return StyledStringControllerInternal.fromPtr(ptr) + } + readTextEditControllerEx(): TextEditControllerEx { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextEditControllerExInternal.fromPtr(ptr) + } + readTextBaseController(): TextBaseController { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextBaseControllerInternal.fromPtr(ptr) + } readTextClockOptions(): TextClockOptions { let valueDeserializer : Deserializer = this const timeZoneOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -15767,6 +15725,36 @@ return; } let value : TabsOptions = ({barPosition: barPosition_result,index: index_result,controller: controller_result} as TabsOptions) return value } + readReplaceSymbolEffect(): ReplaceSymbolEffect { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ReplaceSymbolEffectInternal.fromPtr(ptr) + } + readBounceSymbolEffect(): BounceSymbolEffect { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return BounceSymbolEffectInternal.fromPtr(ptr) + } + readDisappearSymbolEffect(): DisappearSymbolEffect { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return DisappearSymbolEffectInternal.fromPtr(ptr) + } + readAppearSymbolEffect(): AppearSymbolEffect { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return AppearSymbolEffectInternal.fromPtr(ptr) + } + readHierarchicalSymbolEffect(): HierarchicalSymbolEffect { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return HierarchicalSymbolEffectInternal.fromPtr(ptr) + } + readScaleSymbolEffect(): ScaleSymbolEffect { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ScaleSymbolEffectInternal.fromPtr(ptr) + } readContentDidScrollCallback(isSync: boolean = false): ContentDidScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -15915,29 +15903,12 @@ return; } } const image_result : ResourceStr | undefined = image_buf const shape_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let shape_buf : CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | undefined + let shape_buf : string | undefined if ((RuntimeType.UNDEFINED) != (shape_buf_runtimeType)) { - const shape_buf__selector : int32 = valueDeserializer.readInt8() - let shape_buf_ : CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | undefined - if (shape_buf__selector == 0) { - shape_buf_ = valueDeserializer.readCircleAttribute() - } - else if (shape_buf__selector == 1) { - shape_buf_ = valueDeserializer.readEllipseAttribute() - } - else if (shape_buf__selector == 2) { - shape_buf_ = valueDeserializer.readPathAttribute() - } - else if (shape_buf__selector == 3) { - shape_buf_ = valueDeserializer.readRectAttribute() - } - else { - throw new Error("One of the branches for shape_buf_ has to be chosen through deserialisation.") - } - shape_buf = (shape_buf_ as CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) + shape_buf = (valueDeserializer.readString() as string) } - const shape_result : CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | undefined = shape_buf + const shape_result : string | undefined = shape_buf let value : SliderBlockStyle = ({type: type_result,image: image_result,shape: shape_result} as SliderBlockStyle) return value } @@ -16974,10 +16945,10 @@ return; } let value : StyledStringChangeValue = ({range: range_result,replacementString: replacementString_result,previewText: previewText_result} as StyledStringChangeValue) return value } - readGestureEvent(): GestureEvent { + readRichEditorBaseController(): RichEditorBaseController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() - return GestureEventInternal.fromPtr(ptr) + return RichEditorBaseControllerInternal.fromPtr(ptr) } readLocalizedBarrierStyle(): LocalizedBarrierStyle { let valueDeserializer : Deserializer = this @@ -17497,6 +17468,11 @@ return; } let value : NodeController = ({} as NodeController) return value } + readNavigationTransitionProxy(): NavigationTransitionProxy { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return NavigationTransitionProxyInternal.fromPtr(ptr) + } readRouteInfo(): RouteInfo { let valueDeserializer : Deserializer = this const name_result : string = (valueDeserializer.readString() as string) @@ -17677,7 +17653,7 @@ return (_continuationValue as boolean); } } readPopInfo(): PopInfo { let valueDeserializer : Deserializer = this - const info_result : NavPathInfo = valueDeserializer.readNavPathInfo() + const info_result : NavPathInfo = (valueDeserializer.readNavPathInfo() as NavPathInfo) const result_result : Object = (valueDeserializer.readCustomObject("Object") as Object) let value : PopInfo = ({info: info_result,result: result_result} as PopInfo) return value @@ -18020,11 +17996,6 @@ _argsSerializer.writeNumber(center); _argsSerializer.release(); return; } } - readChildrenMainSize(): ChildrenMainSize { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return ChildrenMainSizeInternal.fromPtr(ptr) - } readChainAnimationOptions(): ChainAnimationOptions { let valueDeserializer : Deserializer = this const minSpace_result : Length = (valueDeserializer.readLength() as Length) @@ -18104,6 +18075,11 @@ return; } let value : ListOptions = ({initialIndex: initialIndex_result,space: space_result,scroller: scroller_result} as ListOptions) return value } + readListScroller(): ListScroller { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ListScrollerInternal.fromPtr(ptr) + } readLineOptions(): LineOptions { let valueDeserializer : Deserializer = this const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -18273,8 +18249,8 @@ return; } } readResolutionQuality(): ResolutionQuality { let valueDeserializer : Deserializer = this - const __ResolutionQualityStub_result : string = (valueDeserializer.readString() as string) - let value : ResolutionQuality = ({__ResolutionQualityStub: __ResolutionQualityStub_result} as ResolutionQuality) + const _ResolutionQualityStub_result : string = (valueDeserializer.readString() as string) + let value : ResolutionQuality = ({_ResolutionQualityStub: _ResolutionQualityStub_result} as ResolutionQuality) return value } readImageError(): ImageError { @@ -18690,6 +18666,61 @@ return (_continuationValue as ComputedBarAttribute); } let value : GridLayoutOptions = ({regularSize: regularSize_result,irregularIndexes: irregularIndexes_result,onGetIrregularSizeByIndex: onGetIrregularSizeByIndex_result,onGetRectByIndex: onGetRectByIndex_result} as GridLayoutOptions) return value } + readPanRecognizer(): PanRecognizer { + let valueDeserializer : Deserializer = this + 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() + return GestureEventInternal.fromPtr(ptr) + } + readSwipeGestureEvent(): SwipeGestureEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return SwipeGestureEventInternal.fromPtr(ptr) + } + readRotationGestureEvent(): RotationGestureEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return RotationGestureEventInternal.fromPtr(ptr) + } + readPinchGestureEvent(): PinchGestureEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return PinchGestureEventInternal.fromPtr(ptr) + } + readPanGestureEvent(): PanGestureEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return PanGestureEventInternal.fromPtr(ptr) + } + readLongPressGestureEvent(): LongPressGestureEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LongPressGestureEventInternal.fromPtr(ptr) + } + readTapGestureEvent(): TapGestureEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TapGestureEventInternal.fromPtr(ptr) + } readGaugeIndicatorOptions(): GaugeIndicatorOptions { let valueDeserializer : Deserializer = this const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -19117,6 +19148,11 @@ return; } let value : EllipseOptions = ({width: width_result,height: height_result} as EllipseOptions) return value } + readDatePickerDialog(): DatePickerDialog { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return DatePickerDialogInternal.fromPtr(ptr) + } readDatePickerResult(): DatePickerResult { let valueDeserializer : Deserializer = this const year_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -19226,14 +19262,14 @@ return; } } const offsetY_result : number | Resource | undefined = offsetY_buf const colors_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let colors_buf : Array | undefined + let colors_buf : Array | undefined if ((RuntimeType.UNDEFINED) != (colors_buf_runtimeType)) { const colors_buf__length : int32 = valueDeserializer.readInt32() - let colors_buf_ : Array = new Array() + let colors_buf_ : Array = new Array() for (let colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { const colors_buf__buf_selector : int32 = valueDeserializer.readInt8() - let colors_buf__buf : ResourceColor | LinearGradient_data_panel | undefined + let colors_buf__buf : ResourceColor | LinearGradient | undefined if (colors_buf__buf_selector == 0) { const colors_buf__buf_u_selector : int32 = valueDeserializer.readInt8() let colors_buf__buf_u : Color | number | string | Resource | undefined @@ -19255,16 +19291,16 @@ return; } colors_buf__buf = (colors_buf__buf_u as Color | number | string | Resource) } else if (colors_buf__buf_selector == 1) { - colors_buf__buf = valueDeserializer.readLinearGradient_data_panel() + colors_buf__buf = (valueDeserializer.readLinearGradient() as LinearGradient) } else { throw new Error("One of the branches for colors_buf__buf has to be chosen through deserialisation.") } - colors_buf_[colors_buf__i] = (colors_buf__buf as ResourceColor | LinearGradient_data_panel) + colors_buf_[colors_buf__i] = (colors_buf__buf as ResourceColor | LinearGradient) } colors_buf = colors_buf_ } - const colors_result : Array | undefined = colors_buf + const colors_result : Array | undefined = colors_buf let value : DataPanelShadowOptions = ({radius: radius_result,offsetX: offsetX_result,offsetY: offsetY_result,colors: colors_result} as DataPanelShadowOptions) return value } @@ -19293,6 +19329,30 @@ return; } let value : DataPanelOptions = ({values: values_result,max: max_result,type: type_result} as DataPanelOptions) return value } + readColorStop(): ColorStop { + let valueDeserializer : Deserializer = this + const color_buf_selector : int32 = valueDeserializer.readInt8() + let color_buf : Color | number | string | Resource | undefined + if (color_buf_selector == 0) { + color_buf = (valueDeserializer.readInt32() as Color) + } + else if (color_buf_selector == 1) { + color_buf = (valueDeserializer.readNumber() as number) + } + else if (color_buf_selector == 2) { + color_buf = (valueDeserializer.readString() as string) + } + else if (color_buf_selector == 3) { + color_buf = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf has to be chosen through deserialisation.") + } + const color_result : ResourceColor = (color_buf as Color | number | string | Resource) + const offset_result : Length = (valueDeserializer.readLength() as Length) + let value : ColorStop = ({color: color_result,offset: offset_result} as ColorStop) + return value + } readCustomDialogControllerOptions(): CustomDialogControllerOptions { let valueDeserializer : Deserializer = this const builder_result : object = (valueDeserializer.readCustomObject("Any") as Object) @@ -19762,6 +19822,16 @@ return; } let value : CustomDialogControllerOptions = ({builder: builder_result,cancel: cancel_result,autoCancel: autoCancel_result,alignment: alignment_result,offset: offset_result,customStyle: customStyle_result,gridCount: gridCount_result,maskColor: maskColor_result,maskRect: maskRect_result,openAnimation: openAnimation_result,closeAnimation: closeAnimation_result,showInSubWindow: showInSubWindow_result,backgroundColor: backgroundColor_result,cornerRadius: cornerRadius_result,isModal: isModal_result,onWillDismiss: onWillDismiss_result,width: width_result,height: height_result,borderWidth: borderWidth_result,borderColor: borderColor_result,borderStyle: borderStyle_result,shadow: shadow_result,backgroundBlurStyle: backgroundBlurStyle_result,keyboardAvoidMode: keyboardAvoidMode_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CustomDialogControllerOptions) return value } + readCustomDialogController(): CustomDialogController { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return CustomDialogControllerInternal.fromPtr(ptr) + } + readContextMenu(): ContextMenu { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ContextMenuInternal.fromPtr(ptr) + } readSceneOptions(): SceneOptions { let valueDeserializer : Deserializer = this const scene_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -19803,6 +19873,31 @@ return; } let value : SceneOptions = ({scene: scene_result,modelType: modelType_result} as SceneOptions) return value } + readUICommonEvent(): UICommonEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return UICommonEventInternal.fromPtr(ptr) + } + readChildrenMainSize(): ChildrenMainSize { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ChildrenMainSizeInternal.fromPtr(ptr) + } + readScrollOnScrollCallback(isSync: boolean = false): ScrollOnScrollCallback { + 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) @@ -19824,6 +19919,21 @@ _argsSerializer.writeNumber(last); _argsSerializer.release(); return; } } + readTextContentControllerBase(): TextContentControllerBase { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return TextContentControllerBaseInternal.fromPtr(ptr) + } + readView(): View { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ViewInternal.fromPtr(ptr) + } + readMeasurable(): Measurable { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return MeasurableInternal.fromPtr(ptr) + } readSpringBackAction(): SpringBackAction { let valueDeserializer : Deserializer = this const springBack_result : (() => void) = valueDeserializer.readCallback_Void() @@ -20104,8 +20214,8 @@ return; } } readUniformDataType(): UniformDataType { let valueDeserializer : Deserializer = this - const __UniformDataTypeStub_result : string = (valueDeserializer.readString() as string) - let value : UniformDataType = ({__UniformDataTypeStub: __UniformDataTypeStub_result} as UniformDataType) + const _UniformDataTypeStub_result : string = (valueDeserializer.readString() as string) + let value : UniformDataType = ({_UniformDataTypeStub: _UniformDataTypeStub_result} as UniformDataType) return value } readCallback_DragEvent_String_Void(isSync: boolean = false): ((event: DragEvent,extraParams?: string) => void) { @@ -20128,11 +20238,6 @@ if ((RuntimeType.UNDEFINED) != (extraParams_type)) { _argsSerializer.release(); return; } } - readDragEvent(): DragEvent { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return DragEventInternal.fromPtr(ptr) - } 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() @@ -20339,21 +20444,6 @@ _argsSerializer.holdAndWriteCallback(_continuationCallback); _argsSerializer.release(); return (_continuationValue as boolean); } } - readKeyEvent(): KeyEvent { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return KeyEventInternal.fromPtr(ptr) - } - readMouseEvent(): MouseEvent { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return MouseEventInternal.fromPtr(ptr) - } - readAccessibilityHoverEvent(): AccessibilityHoverEvent { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return AccessibilityHoverEventInternal.fromPtr(ptr) - } readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -20368,11 +20458,6 @@ _argsSerializer.writeAccessibilityHoverEvent(event); _argsSerializer.release(); return; } } - readHoverEvent(): HoverEvent { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return HoverEventInternal.fromPtr(ptr) - } readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean,event: HoverEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -21234,14 +21319,14 @@ return; } } readFilter(): Filter { let valueDeserializer : Deserializer = this - const __FilterStub_result : string = (valueDeserializer.readString() as string) - let value : Filter = ({__FilterStub: __FilterStub_result} as Filter) + const _FilterStub_result : string = (valueDeserializer.readString() as string) + let value : Filter = ({_FilterStub: _FilterStub_result} as Filter) return value } readVisualEffect(): VisualEffect { let valueDeserializer : Deserializer = this - const __VisualEffectStub_result : string = (valueDeserializer.readString() as string) - let value : VisualEffect = ({__VisualEffectStub: __VisualEffectStub_result} as VisualEffect) + const _VisualEffectStub_result : string = (valueDeserializer.readString() as string) + let value : VisualEffect = ({_VisualEffectStub: _VisualEffectStub_result} as VisualEffect) return value } readForegroundEffectOptions(): ForegroundEffectOptions { @@ -21484,6 +21569,21 @@ _argsSerializer.holdAndWriteCallback(_continuationCallback); _argsSerializer.release(); return (_continuationValue as TouchResult); } } + readKeyEvent(): KeyEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return KeyEventInternal.fromPtr(ptr) + } + readDragEvent(): DragEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return DragEventInternal.fromPtr(ptr) + } + readPixelMapMock(): PixelMapMock { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return PixelMapMockInternal.fromPtr(ptr) + } readTouchObject(): TouchObject { let valueDeserializer : Deserializer = this const type_result : TouchType = (valueDeserializer.readInt32() as TouchType) @@ -21499,6 +21599,26 @@ return (_continuationValue as TouchResult); } 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 } + readAccessibilityHoverEvent(): AccessibilityHoverEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return AccessibilityHoverEventInternal.fromPtr(ptr) + } + readMouseEvent(): MouseEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return MouseEventInternal.fromPtr(ptr) + } + readHoverEvent(): HoverEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return HoverEventInternal.fromPtr(ptr) + } + readBaseEvent(): BaseEvent { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return BaseEventInternal.fromPtr(ptr) + } readPointLightStyle(): PointLightStyle { let valueDeserializer : Deserializer = this const lightSource_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -21708,24 +21828,32 @@ return; } let value : CheckboxOptions = ({name: name_result,group: group_result,indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) return value } + readCanvasRenderer(): CanvasRenderer { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return CanvasRendererInternal.fromPtr(ptr) + } readRenderingContextSettings(): RenderingContextSettings { let valueDeserializer : Deserializer = this - const antialias_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let antialias_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (antialias_buf_runtimeType)) - { - antialias_buf = valueDeserializer.readBoolean() - } - const antialias_result : boolean | undefined = antialias_buf - let value : RenderingContextSettings = ({antialias: antialias_result} as RenderingContextSettings) - return value + let ptr : KPointer = valueDeserializer.readPointer() + return RenderingContextSettingsInternal.fromPtr(ptr) } readLengthMetricsUnit(): LengthMetricsUnit { let valueDeserializer : Deserializer = this - const __LengthMetricsUnitStub_result : string = (valueDeserializer.readString() as string) - let value : LengthMetricsUnit = ({__LengthMetricsUnitStub: __LengthMetricsUnitStub_result} as LengthMetricsUnit) + const _LengthMetricsUnitStub_result : string = (valueDeserializer.readString() as string) + let value : LengthMetricsUnit = ({_LengthMetricsUnitStub: _LengthMetricsUnitStub_result} as LengthMetricsUnit) return value } + readCanvasPath(): CanvasPath { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return CanvasPathInternal.fromPtr(ptr) + } + readCalendarPickerDialog(): CalendarPickerDialog { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return CalendarPickerDialogInternal.fromPtr(ptr) + } readCalendarOptions(): CalendarOptions { let valueDeserializer : Deserializer = this const hintRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -22508,6 +22636,26 @@ return; } let value : BadgeParamWithNumber = ({position: position_result,style: style_result,count: count_result,maxCount: maxCount_result} as BadgeParamWithNumber) return value } + readScrollMotion(): ScrollMotion { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ScrollMotionInternal.fromPtr(ptr) + } + readFrictionMotion(): FrictionMotion { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return FrictionMotionInternal.fromPtr(ptr) + } + readSpringMotion(): SpringMotion { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return SpringMotionInternal.fromPtr(ptr) + } + readSpringProp(): SpringProp { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return SpringPropInternal.fromPtr(ptr) + } readOnAlphabetIndexerPopupSelectCallback(isSync: boolean = false): OnAlphabetIndexerPopupSelectCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -22656,6 +22804,11 @@ return; } let value : AlertDialogButtonOptions = ({enabled: enabled_result,defaultFocus: defaultFocus_result,style: style_result,value: value_result,fontColor: fontColor_result,backgroundColor: backgroundColor_result,action: action_result,primary: primary_result} as AlertDialogButtonOptions) return value } + readAlertDialog(): AlertDialog { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return AlertDialogInternal.fromPtr(ptr) + } readDismissDialogAction(): DismissDialogAction { let valueDeserializer : Deserializer = this const dismiss_result : (() => void) = valueDeserializer.readCallback_Void() @@ -22699,6 +22852,31 @@ return; } let value : SheetInfo = ({title: title_result,icon: icon_result,action: action_result} as SheetInfo) return value } + readActionSheet(): ActionSheet { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return ActionSheetInternal.fromPtr(ptr) + } + readEventEmulator(): EventEmulator { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return EventEmulatorInternal.fromPtr(ptr) + } + readNavExtender(): NavExtender { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return NavExtenderInternal.fromPtr(ptr) + } + readGlobalScope_ohos_arkui_performanceMonitor(): GlobalScope_ohos_arkui_performanceMonitor { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return GlobalScope_ohos_arkui_performanceMonitorInternal.fromPtr(ptr) + } + readGlobalScope_ohos_arkui_componentSnapshot(): GlobalScope_ohos_arkui_componentSnapshot { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return GlobalScope_ohos_arkui_componentSnapshotInternal.fromPtr(ptr) + } readWebHeader(): WebHeader { let valueDeserializer : Deserializer = this const headerKey_result : string = (valueDeserializer.readString() as string) @@ -22706,6 +22884,16 @@ return; } let value : WebHeader = ({headerKey: headerKey_result,headerValue: headerValue_result} as WebHeader) return value } + readLazyForEachOps(): LazyForEachOps { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LazyForEachOpsInternal.fromPtr(ptr) + } + readAnimationExtender(): AnimationExtender { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return AnimationExtenderInternal.fromPtr(ptr) + } readLength(): Length | undefined { const valueType = this.readInt8() if ((RuntimeType.NUMBER) == (valueType)) { diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index a869ede35..fee711b45 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -20,16 +20,16 @@ import { MaterializedBase } from "./../MaterializedBase" 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, DrawContext, 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, CommonShapeMethod, LinearGradient_common, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, 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, DragBehavior, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, IntentionCode, RepeatMode, TouchTestStrategy, DragResult, LightSource, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, MenuElement, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, Summary, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, 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, 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 { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" -import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkui-customInterfaces" +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, DeleteValue, InsertValue, PreviewText, CaretStyle, TextDataDetectorType, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" +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 { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavPathInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } 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 { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -49,21 +49,19 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo 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, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ColorFilter, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, MarkStyle } from "./../ArkUnitsInterfaces" +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 { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" -import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController } from "./../ArkArkui-externalInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, 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, KeySource, KeyType, MouseAction, MouseButton, AccessibilityHoverType, ImageSize, PixelRoundCalcPolicy, 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, 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 { 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, Tuple_ResourceColor_Number, 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, 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 { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" -import { ImageAttachmentLayoutStyle, BackgroundColorStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, UrlStyle, LineHeightStyle, ParagraphStyle, ParagraphStyleInterface, ImageAttachment, ImageAttachmentInterface, GestureStyle, GestureStyleInterface, TextShadowStyle, LetterSpacingStyle, BaselineOffsetStyle, DecorationStyle, DecorationStyleInterface, TextStyle_styled_string, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" +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 { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" -import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolEffect, EffectFillStyle, EffectScope, EffectDirection } from "./../ArkSymbolglyphInterfaces" +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 { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -72,7 +70,6 @@ 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, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -85,24 +82,27 @@ import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDi import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, DividerOptions, TextCascadePickerRangeContent, TextPickerRangeContent } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { RectAttribute, RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" -import { PathAttribute, PathOptions } from "./../ArkPathInterfaces" -import { EllipseAttribute, EllipseOptions } from "./../ArkEllipseInterfaces" -import { CircleAttribute, CircleOptions } from "./../ArkCircleInterfaces" import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" +import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" 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, FingerInfo, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, FingerInfo, GestureInfo } from "./../ArkGestureInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" -import { Size, RenderingContextSettings, ImageData } from "./../ArkCanvasInterfaces" +import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" @@ -158,6 +158,7 @@ import { StyledStringController, StyledStringControllerInternal } from "./../Ark import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" +import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" import { RadioIndicatorType, RadioStyle, RadioOptions } from "./../ArkRadioInterfaces" import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" import { PasteDescription, PasteIconStyle, PasteButtonOnClickResult, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" @@ -167,12 +168,12 @@ import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptions } from "./../ArkGridInterfaces" import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { LinearGradient_data_panel, ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" @@ -187,17 +188,38 @@ 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 { 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 { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" -import { ScrollMotion, SpringProp, FrictionMotion, SpringMotion } from "./../ArkAnimatorInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" +import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" +import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" +import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" 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" +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 { ItemState } from "./../ArkStepperItemInterfaces" @@ -214,25 +236,57 @@ import { PolylineOptions } from "./../ArkPolylineInterfaces" import { Point } from "./../ArkPointInterfaces" import { PolygonOptions } from "./../ArkPolygonInterfaces" import { PatternLockController, PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" +import { PathOptions } from "./../ArkPathInterfaces" import { DisturbanceFieldShape, ParticleUpdater, DistributionType, ParticleEmitterShape, ParticleType } from "./../ArkParticleInterfaces" import { NavRouteMode, RouteInfo } from "./../ArkNavRouterInterfaces" import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" import { SubMenuExpandingMode } from "./../ArkMenuInterfaces" import { MarqueeOptions } from "./../ArkMarqueeInterfaces" import { LoadingProgressStyle } from "./../ArkLoadingProgressInterfaces" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" +import { ListScroller, ListScrollerInternal } from "./../ArkListScrollerMaterialized" 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" +import { PinchGestureEvent, PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" +import { PanGestureEvent, PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" +import { LongPressGestureEvent, LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" +import { TapGestureEvent, TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" import { FormLinkOptions } from "./../ArkFormLinkInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" +import { EllipseOptions } from "./../ArkEllipseInterfaces" +import { DatePickerDialog, DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +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 { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" +import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" +import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" +import { FrictionMotion, FrictionMotionInternal } from "./../ArkFrictionMotionMaterialized" +import { SpringMotion, SpringMotionInternal } from "./../ArkSpringMotionMaterialized" +import { AlertDialog, AlertDialogInternal } from "./../ArkAlertDialogMaterialized" +import { ActionSheet, ActionSheetInternal } from "./../ArkActionSheetMaterialized" +import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMaterialized" +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 { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" +import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Serializer extends SerializerBase { private static pool?: Array | undefined = undefined private static poolTop: int32 = -1 @@ -300,7 +354,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_type_value) } } - writePixelMap(value: PixelMap): void { + writeICurve(value: ICurve): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -317,7 +371,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeLengthMetrics(value: LengthMetrics): void { + writePixelMap(value: PixelMap): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -334,17 +388,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { - let valueSerializer : Serializer = this - const value_pixelMap = value.pixelMap - valueSerializer.writePixelMap(value_pixelMap) - const value_size = value.size - const value_size_0 = value_size[0] - valueSerializer.writeLength(value_size_0) - const value_size_1 = value_size[1] - valueSerializer.writeLength(value_size_1) - } - writeICurve(value: ICurve): void { + writeLengthMetrics(value: LengthMetrics): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -361,8 +405,63 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeTextBackgroundStyle(value: TextBackgroundStyle): void { + writePosition(value: Position): void { + let valueSerializer : Serializer = this + const value_x = value.x + let value_x_type : int32 = RuntimeType.UNDEFINED + value_x_type = runtimeType(value_x) + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + valueSerializer.writeLength(value_x_value) + } + const value_y = value.y + let value_y_type : int32 = RuntimeType.UNDEFINED + value_y_type = runtimeType(value_y) + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + valueSerializer.writeLength(value_y_value) + } + } + writeSymbolGlyphModifier(value: SymbolGlyphModifier): void { + let valueSerializer : Serializer = this + const value__SymbolGlyphModifierStub = value._SymbolGlyphModifierStub + valueSerializer.writeString(value__SymbolGlyphModifierStub) + } + writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { + let valueSerializer : Serializer = this + const value_pixelMap = value.pixelMap + valueSerializer.writePixelMap(value_pixelMap) + const value_size = value.size + const value_size_0 = value_size[0] + valueSerializer.writeLength(value_size_0) + const value_size_1 = value_size[1] + valueSerializer.writeLength(value_size_1) + } + writeShadowOptions(value: ShadowOptions): void { let valueSerializer : Serializer = this + const value_radius = value.radius + let value_radius_type : int32 = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + 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))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_1 = value_radius as Resource + valueSerializer.writeResource(value_radius_1) + } + const value_type = value.type + let value_type_type : int32 = RuntimeType.UNDEFINED + value_type_type = runtimeType(value_type) + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = (value_type as ShadowType) + valueSerializer.writeInt32((value_type_value.valueOf() as int32)) + } const value_color = value.color let value_color_type : int32 = RuntimeType.UNDEFINED value_color_type = runtimeType(value_color) @@ -371,362 +470,63 @@ 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.NUMBER == 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 number - valueSerializer.writeNumber(value_color_value_1) + const value_color_value_1 = value_color_value as string + valueSerializer.writeString(value_color_value_1) } - else if (((RuntimeType.STRING == 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 string - valueSerializer.writeString(value_color_value_2) + const value_color_value_2 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (TypeChecker.isColoringStrategy(value_color_value)) { valueSerializer.writeInt8(3 as int32) - const value_color_value_3 = value_color_value as Resource - valueSerializer.writeResource(value_color_value_3) + const value_color_value_3 = value_color_value as ColoringStrategy + valueSerializer.writeInt32((value_color_value_3 as int32)) } } - const value_radius = value.radius - let value_radius_type : int32 = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - valueSerializer.writeInt8(value_radius_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_type)) { - 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)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + const value_offsetX = value.offsetX + let value_offsetX_type : int32 = RuntimeType.UNDEFINED + value_offsetX_type = runtimeType(value_offsetX) + valueSerializer.writeInt8(value_offsetX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { + 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))) { valueSerializer.writeInt8(0 as int32) - const value_radius_value_0 = value_radius_value as Dimension - valueSerializer.writeLength(value_radius_value_0) + const value_offsetX_value_0 = value_offsetX_value as number + valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isBorderRadiuses(value_radius_value, false, false, false, false))) { + else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_radius_value_1 = value_radius_value as BorderRadiuses - const value_radius_value_1_topLeft = value_radius_value_1.topLeft - let value_radius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) - valueSerializer.writeInt8(value_radius_value_1_topLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! - valueSerializer.writeLength(value_radius_value_1_topLeft_value) - } - const value_radius_value_1_topRight = value_radius_value_1.topRight - let value_radius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) - valueSerializer.writeInt8(value_radius_value_1_topRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { - const value_radius_value_1_topRight_value = value_radius_value_1_topRight! - valueSerializer.writeLength(value_radius_value_1_topRight_value) - } - const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft - let value_radius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) - } - const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight - let value_radius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! - valueSerializer.writeLength(value_radius_value_1_bottomRight_value) - } + const value_offsetX_value_1 = value_offsetX_value as Resource + valueSerializer.writeResource(value_offsetX_value_1) } } - } - writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { - let valueSerializer : Serializer = this - const value_margin = value.margin - let value_margin_type : int32 = RuntimeType.UNDEFINED - value_margin_type = runtimeType(value_margin) - valueSerializer.writeInt8(value_margin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_type)) { - const value_margin_value = value_margin! - let value_margin_value_type : int32 = RuntimeType.UNDEFINED - value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isLengthMetrics(value_margin_value, false, false))) { + const value_offsetY = value.offsetY + let value_offsetY_type : int32 = RuntimeType.UNDEFINED + value_offsetY_type = runtimeType(value_offsetY) + valueSerializer.writeInt8(value_offsetY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { + 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))) { valueSerializer.writeInt8(0 as int32) - const value_margin_value_0 = value_margin_value as LengthMetrics - valueSerializer.writeLengthMetrics(value_margin_value_0) + const value_offsetY_value_0 = value_offsetY_value as number + valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { + else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_margin_value_1 = value_margin_value as Margin - const value_margin_value_1_top = value_margin_value_1.top - let value_margin_value_1_top_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) - valueSerializer.writeInt8(value_margin_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { - const value_margin_value_1_top_value = value_margin_value_1_top! - valueSerializer.writeLength(value_margin_value_1_top_value) - } - const value_margin_value_1_right = value_margin_value_1.right - let value_margin_value_1_right_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) - valueSerializer.writeInt8(value_margin_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { - const value_margin_value_1_right_value = value_margin_value_1_right! - valueSerializer.writeLength(value_margin_value_1_right_value) - } - const value_margin_value_1_bottom = value_margin_value_1.bottom - let value_margin_value_1_bottom_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) - valueSerializer.writeInt8(value_margin_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { - const value_margin_value_1_bottom_value = value_margin_value_1_bottom! - valueSerializer.writeLength(value_margin_value_1_bottom_value) - } - const value_margin_value_1_left = value_margin_value_1.left - let value_margin_value_1_left_type : int32 = RuntimeType.UNDEFINED - value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) - valueSerializer.writeInt8(value_margin_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { - const value_margin_value_1_left_value = value_margin_value_1_left! - valueSerializer.writeLength(value_margin_value_1_left_value) - } - } - } - const value_padding = value.padding - let value_padding_type : int32 = RuntimeType.UNDEFINED - value_padding_type = runtimeType(value_padding) - valueSerializer.writeInt8(value_padding_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_type)) { - const value_padding_value = value_padding! - let value_padding_value_type : int32 = RuntimeType.UNDEFINED - value_padding_value_type = runtimeType(value_padding_value) - if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isLengthMetrics(value_padding_value, false, false))) { - valueSerializer.writeInt8(0 as int32) - const value_padding_value_0 = value_padding_value as LengthMetrics - valueSerializer.writeLengthMetrics(value_padding_value_0) - } - else if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isPadding(value_padding_value, false, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_padding_value_1 = value_padding_value as Padding - const value_padding_value_1_top = value_padding_value_1.top - let value_padding_value_1_top_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) - valueSerializer.writeInt8(value_padding_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { - const value_padding_value_1_top_value = value_padding_value_1_top! - valueSerializer.writeLength(value_padding_value_1_top_value) - } - const value_padding_value_1_right = value_padding_value_1.right - let value_padding_value_1_right_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) - valueSerializer.writeInt8(value_padding_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { - const value_padding_value_1_right_value = value_padding_value_1_right! - valueSerializer.writeLength(value_padding_value_1_right_value) - } - const value_padding_value_1_bottom = value_padding_value_1.bottom - let value_padding_value_1_bottom_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) - valueSerializer.writeInt8(value_padding_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { - const value_padding_value_1_bottom_value = value_padding_value_1_bottom! - valueSerializer.writeLength(value_padding_value_1_bottom_value) - } - const value_padding_value_1_left = value_padding_value_1.left - let value_padding_value_1_left_type : int32 = RuntimeType.UNDEFINED - value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) - valueSerializer.writeInt8(value_padding_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { - const value_padding_value_1_left_value = value_padding_value_1_left! - valueSerializer.writeLength(value_padding_value_1_left_value) - } - } - } - const value_borderRadius = value.borderRadius - let value_borderRadius_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_type = runtimeType(value_borderRadius) - valueSerializer.writeInt8(value_borderRadius_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { - const value_borderRadius_value = value_borderRadius! - let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isLengthMetrics(value_borderRadius_value, false, false))) { - valueSerializer.writeInt8(0 as int32) - const value_borderRadius_value_0 = value_borderRadius_value as LengthMetrics - valueSerializer.writeLengthMetrics(value_borderRadius_value_0) - } - else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses - const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft - let value_borderRadius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { - const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! - valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) - } - const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight - let value_borderRadius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) - valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { - const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! - valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) - } - const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft - let value_borderRadius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { - const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! - valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) - } - const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight - let value_borderRadius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { - const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! - valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) - } - } - } - } - writeSizeOptions(value: SizeOptions): void { - let valueSerializer : Serializer = this - const value_width = value.width - let value_width_type : int32 = RuntimeType.UNDEFINED - value_width_type = runtimeType(value_width) - valueSerializer.writeInt8(value_width_type as int32) - if ((RuntimeType.UNDEFINED) != (value_width_type)) { - const value_width_value = value_width! - valueSerializer.writeLength(value_width_value) - } - 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.writeLength(value_height_value) - } - } - writePosition(value: Position): void { - let valueSerializer : Serializer = this - const value_x = value.x - let value_x_type : int32 = RuntimeType.UNDEFINED - value_x_type = runtimeType(value_x) - valueSerializer.writeInt8(value_x_type as int32) - if ((RuntimeType.UNDEFINED) != (value_x_type)) { - const value_x_value = value_x! - valueSerializer.writeLength(value_x_value) - } - const value_y = value.y - let value_y_type : int32 = RuntimeType.UNDEFINED - value_y_type = runtimeType(value_y) - valueSerializer.writeInt8(value_y_type as int32) - if ((RuntimeType.UNDEFINED) != (value_y_type)) { - const value_y_value = value_y! - valueSerializer.writeLength(value_y_value) - } - } - writeSymbolGlyphModifier(value: SymbolGlyphModifier): void { - let valueSerializer : Serializer = this - const value___SymbolGlyphModifierStub = value.__SymbolGlyphModifierStub - valueSerializer.writeString(value___SymbolGlyphModifierStub) - } - writeShadowOptions(value: ShadowOptions): void { - let valueSerializer : Serializer = this - const value_radius = value.radius - let value_radius_type : int32 = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_radius_1 = value_radius as Resource - valueSerializer.writeResource(value_radius_1) - } - const value_type = value.type - let value_type_type : int32 = RuntimeType.UNDEFINED - value_type_type = runtimeType(value_type) - valueSerializer.writeInt8(value_type_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type_type)) { - const value_type_value = (value_type as ShadowType) - valueSerializer.writeInt32((value_type_value.valueOf() as int32)) - } - const value_color = value.color - let value_color_type : int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type as int32) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - 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)))) { - 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))) { - 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))) { - valueSerializer.writeInt8(2 as int32) - const value_color_value_2 = value_color_value as Resource - valueSerializer.writeResource(value_color_value_2) - } - else if (TypeChecker.isColoringStrategy(value_color_value)) { - valueSerializer.writeInt8(3 as int32) - const value_color_value_3 = value_color_value as ColoringStrategy - valueSerializer.writeInt32((value_color_value_3 as int32)) - } - } - const value_offsetX = value.offsetX - let value_offsetX_type : int32 = RuntimeType.UNDEFINED - value_offsetX_type = runtimeType(value_offsetX) - valueSerializer.writeInt8(value_offsetX_type as int32) - if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_offsetX_value_1 = value_offsetX_value as Resource - valueSerializer.writeResource(value_offsetX_value_1) - } - } - const value_offsetY = value.offsetY - let value_offsetY_type : int32 = RuntimeType.UNDEFINED - value_offsetY_type = runtimeType(value_offsetY) - valueSerializer.writeInt8(value_offsetY_type as int32) - if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_offsetY_value_1 = value_offsetY_value as Resource - valueSerializer.writeResource(value_offsetY_value_1) + const value_offsetY_value_1 = value_offsetY_value as Resource + valueSerializer.writeResource(value_offsetY_value_1) } } const value_fill = value.fill @@ -789,416 +589,156 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_xxl_value) } } - writeBackgroundColorStyle(value: BackgroundColorStyle): void { + writeArea(value: Area): void { let valueSerializer : Serializer = this - const value_textBackgroundStyle = value.textBackgroundStyle - valueSerializer.writeTextBackgroundStyle(value_textBackgroundStyle) - } - writeUserDataSpan(value: UserDataSpan): void { + const value_width = value.width + valueSerializer.writeLength(value_width) + const value_height = value.height + valueSerializer.writeLength(value_height) + const value_position = value.position + valueSerializer.writePosition(value_position) + const value_globalPosition = value.globalPosition + valueSerializer.writePosition(value_globalPosition) } - writeCustomSpan(value: CustomSpan): void { + writeFont(value: Font): 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 + const value_size = value.size + let value_size_type : int32 = RuntimeType.UNDEFINED + value_size_type = runtimeType(value_size) + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeLength(value_size_value) } - else - { - throw new Error("Value is not a MaterializedBase instance!") + const value_weight = value.weight + let value_weight_type : int32 = RuntimeType.UNDEFINED + value_weight_type = runtimeType(value_weight) + valueSerializer.writeInt8(value_weight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weight_type)) { + const value_weight_value = value_weight! + let value_weight_value_type : int32 = RuntimeType.UNDEFINED + value_weight_value_type = runtimeType(value_weight_value) + if (TypeChecker.isFontWeight(value_weight_value)) { + valueSerializer.writeInt8(0 as int32) + 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))) { + 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))) { + valueSerializer.writeInt8(2 as int32) + const value_weight_value_2 = value_weight_value as string + valueSerializer.writeString(value_weight_value_2) + } } - } - writeUrlStyle(value: UrlStyle): void { - let valueSerializer : Serializer = this - const value_url = value.url - valueSerializer.writeString(value_url) - } - writeLineHeightStyle(value: LineHeightStyle): void { - let valueSerializer : Serializer = this - const value_lineHeight = value.lineHeight - valueSerializer.writeNumber(value_lineHeight) - } - writeParagraphStyle(value: ParagraphStyle): void { - let valueSerializer : Serializer = this - const value_textAlign = value.textAlign - let value_textAlign_type : int32 = RuntimeType.UNDEFINED - value_textAlign_type = runtimeType(value_textAlign) - valueSerializer.writeInt8(value_textAlign_type as int32) - if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { - const value_textAlign_value = (value_textAlign as TextAlign) - valueSerializer.writeInt32((value_textAlign_value.valueOf() as int32)) - } - const value_textIndent = value.textIndent - let value_textIndent_type : int32 = RuntimeType.UNDEFINED - value_textIndent_type = runtimeType(value_textIndent) - valueSerializer.writeInt8(value_textIndent_type as int32) - if ((RuntimeType.UNDEFINED) != (value_textIndent_type)) { - const value_textIndent_value = value_textIndent! - valueSerializer.writeNumber(value_textIndent_value) - } - const value_maxLines = value.maxLines - let value_maxLines_type : int32 = RuntimeType.UNDEFINED - value_maxLines_type = runtimeType(value_maxLines) - valueSerializer.writeInt8(value_maxLines_type as int32) - if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { - const value_maxLines_value = value_maxLines! - valueSerializer.writeNumber(value_maxLines_value) - } - const value_overflow = value.overflow - let value_overflow_type : int32 = RuntimeType.UNDEFINED - value_overflow_type = runtimeType(value_overflow) - valueSerializer.writeInt8(value_overflow_type as int32) - if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { - const value_overflow_value = (value_overflow as TextOverflow) - valueSerializer.writeInt32((value_overflow_value.valueOf() as int32)) - } - const value_wordBreak = value.wordBreak - let value_wordBreak_type : int32 = RuntimeType.UNDEFINED - value_wordBreak_type = runtimeType(value_wordBreak) - valueSerializer.writeInt8(value_wordBreak_type as int32) - if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { - const value_wordBreak_value = (value_wordBreak as WordBreak) - valueSerializer.writeInt32((value_wordBreak_value.valueOf() as int32)) - } - const value_leadingMargin = value.leadingMargin - let value_leadingMargin_type : int32 = RuntimeType.UNDEFINED - value_leadingMargin_type = runtimeType(value_leadingMargin) - valueSerializer.writeInt8(value_leadingMargin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_leadingMargin_type)) { - const value_leadingMargin_value = value_leadingMargin! - let value_leadingMargin_value_type : int32 = RuntimeType.UNDEFINED - value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) - if (((RuntimeType.NUMBER == value_leadingMargin_value_type))) { + const value_family = value.family + let value_family_type : int32 = RuntimeType.UNDEFINED + value_family_type = runtimeType(value_family) + valueSerializer.writeInt8(value_family_type as int32) + if ((RuntimeType.UNDEFINED) != (value_family_type)) { + 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))) { valueSerializer.writeInt8(0 as int32) - const value_leadingMargin_value_0 = value_leadingMargin_value as number - valueSerializer.writeNumber(value_leadingMargin_value_0) + const value_family_value_0 = value_family_value as string + valueSerializer.writeString(value_family_value_0) } - else if (((RuntimeType.OBJECT == value_leadingMargin_value_type))) { + else if (((RuntimeType.OBJECT == value_family_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_leadingMargin_value_1 = value_leadingMargin_value as LeadingMarginPlaceholder - valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) + const value_family_value_1 = value_family_value as Resource + valueSerializer.writeResource(value_family_value_1) } } - } - writeImageAttachment(value: ImageAttachment): void { - let valueSerializer : Serializer = this - const value_value = value.value - valueSerializer.writePixelMap(value_value) - const value_size = value.size - let value_size_type : int32 = RuntimeType.UNDEFINED - value_size_type = runtimeType(value_size) - valueSerializer.writeInt8(value_size_type as int32) - if ((RuntimeType.UNDEFINED) != (value_size_type)) { - const value_size_value = value_size! - valueSerializer.writeSizeOptions(value_size_value) - } - const value_verticalAlign = value.verticalAlign - let value_verticalAlign_type : int32 = RuntimeType.UNDEFINED - value_verticalAlign_type = runtimeType(value_verticalAlign) - valueSerializer.writeInt8(value_verticalAlign_type as int32) - if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { - const value_verticalAlign_value = (value_verticalAlign as ImageSpanAlignment) - valueSerializer.writeInt32((value_verticalAlign_value.valueOf() as int32)) - } - const value_objectFit = value.objectFit - let value_objectFit_type : int32 = RuntimeType.UNDEFINED - value_objectFit_type = runtimeType(value_objectFit) - valueSerializer.writeInt8(value_objectFit_type as int32) - if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { - const value_objectFit_value = (value_objectFit as ImageFit) - valueSerializer.writeInt32((value_objectFit_value.valueOf() as int32)) - } - const value_layoutStyle = value.layoutStyle - let value_layoutStyle_type : int32 = RuntimeType.UNDEFINED - value_layoutStyle_type = runtimeType(value_layoutStyle) - valueSerializer.writeInt8(value_layoutStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { - const value_layoutStyle_value = value_layoutStyle! - valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) + const value_style = value.style + let value_style_type : int32 = RuntimeType.UNDEFINED + value_style_type = runtimeType(value_style) + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = (value_style as FontStyle) + valueSerializer.writeInt32((value_style_value.valueOf() as int32)) } } - writeGestureStyle(value: GestureStyle): void { - } - writeTextShadowStyle(value: TextShadowStyle): void { + writeLocalizedPadding(value: LocalizedPadding): void { let valueSerializer : Serializer = this - const value_textShadow = value.textShadow - valueSerializer.writeInt32(value_textShadow.length as int32) - for (let i = 0; i < value_textShadow.length; i++) { - const value_textShadow_element : ShadowOptions = value_textShadow[i] - valueSerializer.writeShadowOptions(value_textShadow_element) - } + const value_stub = value.stub + valueSerializer.writeString(value_stub) } - writeLetterSpacingStyle(value: LetterSpacingStyle): void { + writeTabBarSymbol(value: TabBarSymbol): void { let valueSerializer : Serializer = this - const value_letterSpacing = value.letterSpacing - valueSerializer.writeNumber(value_letterSpacing) + const value_normal = value.normal + valueSerializer.writeSymbolGlyphModifier(value_normal) + const value_selected = value.selected + let value_selected_type : int32 = RuntimeType.UNDEFINED + value_selected_type = runtimeType(value_selected) + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + valueSerializer.writeSymbolGlyphModifier(value_selected_value) + } } - writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { + writeComponentContent(value: ComponentContent): void { let valueSerializer : Serializer = this - const value_baselineOffset = value.baselineOffset - valueSerializer.writeNumber(value_baselineOffset) + const value__ComponentContentStub = value._ComponentContentStub + valueSerializer.writeString(value__ComponentContentStub) } - writeDecorationStyle(value: DecorationStyle): void { + writeScrollAnimationOptions(value: ScrollAnimationOptions): void { let valueSerializer : Serializer = this - const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) - const value_color = value.color - let value_color_type : int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type as int32) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - 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)) { + const value_duration = value.duration + let value_duration_type : int32 = RuntimeType.UNDEFINED + value_duration_type = runtimeType(value_duration) + valueSerializer.writeInt8(value_duration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_duration_type)) { + const value_duration_value = value_duration! + valueSerializer.writeNumber(value_duration_value) + } + const value_curve = value.curve + let value_curve_type : int32 = RuntimeType.UNDEFINED + value_curve_type = runtimeType(value_curve) + valueSerializer.writeInt8(value_curve_type as int32) + if ((RuntimeType.UNDEFINED) != (value_curve_type)) { + 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)))) { valueSerializer.writeInt8(0 as int32) - const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) + const value_curve_value_0 = value_curve_value as Curve + valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (((RuntimeType.OBJECT == value_curve_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))) { - 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))) { - valueSerializer.writeInt8(3 as int32) - const value_color_value_3 = value_color_value as Resource - valueSerializer.writeResource(value_color_value_3) + const value_curve_value_1 = value_curve_value as ICurve + valueSerializer.writeICurve(value_curve_value_1) } } - const value_style = value.style - let value_style_type : int32 = RuntimeType.UNDEFINED - value_style_type = runtimeType(value_style) - valueSerializer.writeInt8(value_style_type as int32) - if ((RuntimeType.UNDEFINED) != (value_style_type)) { - const value_style_value = (value_style as TextDecorationStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + const value_canOverScroll = value.canOverScroll + let value_canOverScroll_type : int32 = RuntimeType.UNDEFINED + value_canOverScroll_type = runtimeType(value_canOverScroll) + valueSerializer.writeInt8(value_canOverScroll_type as int32) + if ((RuntimeType.UNDEFINED) != (value_canOverScroll_type)) { + const value_canOverScroll_value = value_canOverScroll! + valueSerializer.writeBoolean(value_canOverScroll_value) } } - writeTextStyle_styled_string(value: TextStyle_styled_string): void { + writeRichEditorLayoutStyle(value: RichEditorLayoutStyle): void { let valueSerializer : Serializer = this - const value_fontColor = value.fontColor - let value_fontColor_type : int32 = RuntimeType.UNDEFINED - value_fontColor_type = runtimeType(value_fontColor) - valueSerializer.writeInt8(value_fontColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { - const value_fontColor_value = value_fontColor! - let value_fontColor_value_type : int32 = RuntimeType.UNDEFINED - value_fontColor_value_type = runtimeType(value_fontColor_value) - if (TypeChecker.isColor(value_fontColor_value)) { + const value_margin = value.margin + let value_margin_type : int32 = RuntimeType.UNDEFINED + value_margin_type = runtimeType(value_margin) + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + 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)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (isResource(value_margin_value)))) { valueSerializer.writeInt8(0 as int32) - const value_fontColor_value_0 = value_fontColor_value as Color - valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) + const value_margin_value_0 = value_margin_value as Dimension + valueSerializer.writeLength(value_margin_value_0) } - 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))) { - 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))) { - valueSerializer.writeInt8(3 as int32) - const value_fontColor_value_3 = value_fontColor_value as Resource - valueSerializer.writeResource(value_fontColor_value_3) - } - } - const value_fontFamily = value.fontFamily - let value_fontFamily_type : int32 = RuntimeType.UNDEFINED - value_fontFamily_type = runtimeType(value_fontFamily) - valueSerializer.writeInt8(value_fontFamily_type as int32) - if ((RuntimeType.UNDEFINED) != (value_fontFamily_type)) { - const value_fontFamily_value = value_fontFamily! - valueSerializer.writeString(value_fontFamily_value) - } - const value_fontSize = value.fontSize - let value_fontSize_type : int32 = RuntimeType.UNDEFINED - value_fontSize_type = runtimeType(value_fontSize) - valueSerializer.writeInt8(value_fontSize_type as int32) - if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { - const value_fontSize_value = value_fontSize! - valueSerializer.writeNumber(value_fontSize_value) - } - const value_fontWeight = value.fontWeight - let value_fontWeight_type : int32 = RuntimeType.UNDEFINED - value_fontWeight_type = runtimeType(value_fontWeight) - valueSerializer.writeInt8(value_fontWeight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { - const value_fontWeight_value = value_fontWeight! - valueSerializer.writeNumber(value_fontWeight_value) - } - const value_fontStyle = value.fontStyle - let value_fontStyle_type : int32 = RuntimeType.UNDEFINED - value_fontStyle_type = runtimeType(value_fontStyle) - valueSerializer.writeInt8(value_fontStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { - const value_fontStyle_value = (value_fontStyle as FontStyle) - valueSerializer.writeInt32((value_fontStyle_value.valueOf() as int32)) - } - } - writeArea(value: Area): void { - let valueSerializer : Serializer = this - const value_width = value.width - valueSerializer.writeLength(value_width) - const value_height = value.height - valueSerializer.writeLength(value_height) - const value_position = value.position - valueSerializer.writePosition(value_position) - const value_globalPosition = value.globalPosition - valueSerializer.writePosition(value_globalPosition) - } - writeFont(value: Font): void { - let valueSerializer : Serializer = this - const value_size = value.size - let value_size_type : int32 = RuntimeType.UNDEFINED - value_size_type = runtimeType(value_size) - valueSerializer.writeInt8(value_size_type as int32) - if ((RuntimeType.UNDEFINED) != (value_size_type)) { - const value_size_value = value_size! - valueSerializer.writeLength(value_size_value) - } - const value_weight = value.weight - let value_weight_type : int32 = RuntimeType.UNDEFINED - value_weight_type = runtimeType(value_weight) - valueSerializer.writeInt8(value_weight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_weight_type)) { - const value_weight_value = value_weight! - let value_weight_value_type : int32 = RuntimeType.UNDEFINED - value_weight_value_type = runtimeType(value_weight_value) - if (TypeChecker.isFontWeight(value_weight_value)) { - valueSerializer.writeInt8(0 as int32) - 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))) { - 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))) { - valueSerializer.writeInt8(2 as int32) - const value_weight_value_2 = value_weight_value as string - valueSerializer.writeString(value_weight_value_2) - } - } - const value_family = value.family - let value_family_type : int32 = RuntimeType.UNDEFINED - value_family_type = runtimeType(value_family) - valueSerializer.writeInt8(value_family_type as int32) - if ((RuntimeType.UNDEFINED) != (value_family_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_family_value_1 = value_family_value as Resource - valueSerializer.writeResource(value_family_value_1) - } - } - const value_style = value.style - let value_style_type : int32 = RuntimeType.UNDEFINED - value_style_type = runtimeType(value_style) - valueSerializer.writeInt8(value_style_type as int32) - if ((RuntimeType.UNDEFINED) != (value_style_type)) { - const value_style_value = (value_style as FontStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) - } - } - writeLocalizedPadding(value: LocalizedPadding): void { - let valueSerializer : Serializer = this - const value_stub = value.stub - valueSerializer.writeString(value_stub) - } - writeTabBarSymbol(value: TabBarSymbol): void { - let valueSerializer : Serializer = this - const value_normal = value.normal - valueSerializer.writeSymbolGlyphModifier(value_normal) - const value_selected = value.selected - let value_selected_type : int32 = RuntimeType.UNDEFINED - value_selected_type = runtimeType(value_selected) - valueSerializer.writeInt8(value_selected_type as int32) - if ((RuntimeType.UNDEFINED) != (value_selected_type)) { - const value_selected_value = value_selected! - valueSerializer.writeSymbolGlyphModifier(value_selected_value) - } - } - writeComponentContent(value: ComponentContent): void { - let valueSerializer : Serializer = this - const value___ComponentContentStub = value.__ComponentContentStub - valueSerializer.writeString(value___ComponentContentStub) - } - writeScrollAnimationOptions(value: ScrollAnimationOptions): void { - let valueSerializer : Serializer = this - const value_duration = value.duration - let value_duration_type : int32 = RuntimeType.UNDEFINED - value_duration_type = runtimeType(value_duration) - valueSerializer.writeInt8(value_duration_type as int32) - if ((RuntimeType.UNDEFINED) != (value_duration_type)) { - const value_duration_value = value_duration! - valueSerializer.writeNumber(value_duration_value) - } - const value_curve = value.curve - let value_curve_type : int32 = RuntimeType.UNDEFINED - value_curve_type = runtimeType(value_curve) - valueSerializer.writeInt8(value_curve_type as int32) - if ((RuntimeType.UNDEFINED) != (value_curve_type)) { - 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)))) { - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_curve_value_1 = value_curve_value as ICurve - valueSerializer.writeICurve(value_curve_value_1) - } - } - const value_canOverScroll = value.canOverScroll - let value_canOverScroll_type : int32 = RuntimeType.UNDEFINED - value_canOverScroll_type = runtimeType(value_canOverScroll) - valueSerializer.writeInt8(value_canOverScroll_type as int32) - if ((RuntimeType.UNDEFINED) != (value_canOverScroll_type)) { - const value_canOverScroll_value = value_canOverScroll! - valueSerializer.writeBoolean(value_canOverScroll_value) - } - } - writeRichEditorLayoutStyle(value: RichEditorLayoutStyle): void { - let valueSerializer : Serializer = this - const value_margin = value.margin - let value_margin_type : int32 = RuntimeType.UNDEFINED - value_margin_type = runtimeType(value_margin) - valueSerializer.writeInt8(value_margin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_type)) { - 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)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (isResource(value_margin_value)))) { - valueSerializer.writeInt8(0 as int32) - const value_margin_value_0 = value_margin_value as Dimension - valueSerializer.writeLength(value_margin_value_0) - } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { + else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { valueSerializer.writeInt8(1 as int32) const value_margin_value_1 = value_margin_value as Margin const value_margin_value_1_top = value_margin_value_1.top @@ -1641,50 +1181,227 @@ export class Serializer extends SerializerBase { } writeColorMetrics(value: ColorMetrics): void { let valueSerializer : Serializer = this - const value___ColorMetricsStub = value.__ColorMetricsStub - valueSerializer.writeString(value___ColorMetricsStub) - } - writeImageAnalyzerController(value: ImageAnalyzerController): 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__ColorMetricsStub = value._ColorMetricsStub + valueSerializer.writeString(value__ColorMetricsStub) } - writeEventTarget(value: EventTarget): void { + writeStyledStringValue(value: StyledStringValue): void { let valueSerializer : Serializer = this - const value_area = value.area - valueSerializer.writeArea(value_area) + const value_stub = value.stub + valueSerializer.writeString(value_stub) } - writeWebResourceRequest(value: WebResourceRequest): void { + writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): 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_margin = value.margin + let value_margin_type : int32 = RuntimeType.UNDEFINED + value_margin_type = runtimeType(value_margin) + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type : int32 = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isLengthMetrics(value_margin_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_margin_value_0 = value_margin_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_margin_value_0) + } + else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (TypeChecker.isPadding(value_margin_value, false, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_margin_value_1 = value_margin_value as Margin + const value_margin_value_1_top = value_margin_value_1.top + let value_margin_value_1_top_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) + valueSerializer.writeInt8(value_margin_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { + const value_margin_value_1_top_value = value_margin_value_1_top! + valueSerializer.writeLength(value_margin_value_1_top_value) + } + const value_margin_value_1_right = value_margin_value_1.right + let value_margin_value_1_right_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) + valueSerializer.writeInt8(value_margin_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { + const value_margin_value_1_right_value = value_margin_value_1_right! + valueSerializer.writeLength(value_margin_value_1_right_value) + } + const value_margin_value_1_bottom = value_margin_value_1.bottom + let value_margin_value_1_bottom_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) + valueSerializer.writeInt8(value_margin_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { + const value_margin_value_1_bottom_value = value_margin_value_1_bottom! + valueSerializer.writeLength(value_margin_value_1_bottom_value) + } + const value_margin_value_1_left = value_margin_value_1.left + let value_margin_value_1_left_type : int32 = RuntimeType.UNDEFINED + value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) + valueSerializer.writeInt8(value_margin_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { + const value_margin_value_1_left_value = value_margin_value_1_left! + valueSerializer.writeLength(value_margin_value_1_left_value) + } + } } - } - writeWebviewController(value: WebviewController): void { - let valueSerializer : Serializer = this + const value_padding = value.padding + let value_padding_type : int32 = RuntimeType.UNDEFINED + value_padding_type = runtimeType(value_padding) + valueSerializer.writeInt8(value_padding_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_type)) { + const value_padding_value = value_padding! + let value_padding_value_type : int32 = RuntimeType.UNDEFINED + value_padding_value_type = runtimeType(value_padding_value) + if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isLengthMetrics(value_padding_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_padding_value_0 = value_padding_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_padding_value_0) + } + else if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (TypeChecker.isPadding(value_padding_value, false, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_padding_value_1 = value_padding_value as Padding + const value_padding_value_1_top = value_padding_value_1.top + let value_padding_value_1_top_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) + valueSerializer.writeInt8(value_padding_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { + const value_padding_value_1_top_value = value_padding_value_1_top! + valueSerializer.writeLength(value_padding_value_1_top_value) + } + const value_padding_value_1_right = value_padding_value_1.right + let value_padding_value_1_right_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) + valueSerializer.writeInt8(value_padding_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { + const value_padding_value_1_right_value = value_padding_value_1_right! + valueSerializer.writeLength(value_padding_value_1_right_value) + } + const value_padding_value_1_bottom = value_padding_value_1.bottom + let value_padding_value_1_bottom_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) + valueSerializer.writeInt8(value_padding_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { + const value_padding_value_1_bottom_value = value_padding_value_1_bottom! + valueSerializer.writeLength(value_padding_value_1_bottom_value) + } + const value_padding_value_1_left = value_padding_value_1.left + let value_padding_value_1_left_type : int32 = RuntimeType.UNDEFINED + value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) + valueSerializer.writeInt8(value_padding_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { + const value_padding_value_1_left_value = value_padding_value_1_left! + valueSerializer.writeLength(value_padding_value_1_left_value) + } + } + } + const value_borderRadius = value.borderRadius + let value_borderRadius_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_type = runtimeType(value_borderRadius) + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isLengthMetrics(value_borderRadius_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_borderRadius_value_0 = value_borderRadius_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_borderRadius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) + } + } + } + } + writeSizeOptions(value: SizeOptions): void { + let valueSerializer : Serializer = this + const value_width = value.width + let value_width_type : int32 = RuntimeType.UNDEFINED + value_width_type = runtimeType(value_width) + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value) + } + 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.writeLength(value_height_value) + } + } + writeImageAnalyzerController(value: ImageAnalyzerController): 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!") + } + } + writeEventTarget(value: EventTarget): void { + let valueSerializer : Serializer = this + const value_area = value.area + valueSerializer.writeArea(value_area) + } + writeWebResourceRequest(value: WebResourceRequest): 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!") + } + } + writeWebviewController(value: WebviewController): void { + let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { const base : MaterializedBase = TypeChecker.typeCast(value) @@ -1719,8 +1436,8 @@ export class Serializer extends SerializerBase { } writeDateTimeOptions(value: DateTimeOptions): void { let valueSerializer : Serializer = this - const value___DateTimeOptionsStub = value.__DateTimeOptionsStub - valueSerializer.writeString(value___DateTimeOptionsStub) + const value__DateTimeOptionsStub = value._DateTimeOptionsStub + valueSerializer.writeString(value__DateTimeOptionsStub) } writeRectangle(value: Rectangle): void { let valueSerializer : Serializer = this @@ -2300,14 +2017,6 @@ export class Serializer extends SerializerBase { const value_grayscale_1 = value_grayscale[1] valueSerializer.writeNumber(value_grayscale_1) } - writeRectAttribute(value: RectAttribute): void { - } - writePathAttribute(value: PathAttribute): void { - } - writeEllipseAttribute(value: EllipseAttribute): void { - } - writeCircleAttribute(value: CircleAttribute): void { - } writeIconOptions(value: IconOptions): void { let valueSerializer : Serializer = this const value_size = value.size @@ -2875,31 +2584,19 @@ export class Serializer extends SerializerBase { } writeNavPathInfo(value: NavPathInfo): void { let valueSerializer : Serializer = this - const value_name = value.name - valueSerializer.writeString(value_name) - const value_param = value.param - let value_param_type : int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type as int32) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Any", value_param_value) - } - const value_onPop = value.onPop - let value_onPop_type : int32 = RuntimeType.UNDEFINED - value_onPop_type = runtimeType(value_onPop) - valueSerializer.writeInt8(value_onPop_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onPop_type)) { - const value_onPop_value = value_onPop! - valueSerializer.holdAndWriteCallback(value_onPop_value) + 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 } - const value_isEntry = value.isEntry - let value_isEntry_type : int32 = RuntimeType.UNDEFINED - value_isEntry_type = runtimeType(value_isEntry) - valueSerializer.writeInt8(value_isEntry_type as int32) - if ((RuntimeType.UNDEFINED) != (value_isEntry_type)) { - const value_isEntry_value = value_isEntry! - valueSerializer.writeBoolean(value_isEntry_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } writeTextModifier(value: TextModifier): void { @@ -3098,93 +2795,42 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_xxl_value) } } - writeLinearGradient_common(value: LinearGradient_common): void { + writeLinearGradient(value: LinearGradient): void { let valueSerializer : Serializer = this - const value_angle = value.angle - let value_angle_type : int32 = RuntimeType.UNDEFINED - value_angle_type = runtimeType(value_angle) - valueSerializer.writeInt8(value_angle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_angle_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_angle_value_1 = value_angle_value as string - valueSerializer.writeString(value_angle_value_1) - } + 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 } - const value_direction = value.direction - let value_direction_type : int32 = RuntimeType.UNDEFINED - value_direction_type = runtimeType(value_direction) - valueSerializer.writeInt8(value_direction_type as int32) - if ((RuntimeType.UNDEFINED) != (value_direction_type)) { - const value_direction_value = (value_direction as GradientDirection) - valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + else + { + throw new Error("Value is not a MaterializedBase instance!") } - const value_colors = value.colors - valueSerializer.writeInt32(value_colors.length as int32) - for (let i = 0; i < value_colors.length; i++) { - const value_colors_element : [ ResourceColor, number ] = value_colors[i] - const value_colors_element_0 = value_colors_element[0] - let value_colors_element_0_type : int32 = RuntimeType.UNDEFINED - value_colors_element_0_type = runtimeType(value_colors_element_0) - if (TypeChecker.isColor(value_colors_element_0)) { + } + writeLunarSwitchStyle(value: LunarSwitchStyle): void { + let valueSerializer : Serializer = this + const value_selectedColor = value.selectedColor + let value_selectedColor_type : int32 = RuntimeType.UNDEFINED + value_selectedColor_type = runtimeType(value_selectedColor) + valueSerializer.writeInt8(value_selectedColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selectedColor_type)) { + const value_selectedColor_value = value_selectedColor! + let value_selectedColor_value_type : int32 = RuntimeType.UNDEFINED + value_selectedColor_value_type = runtimeType(value_selectedColor_value) + if (TypeChecker.isColor(value_selectedColor_value)) { valueSerializer.writeInt8(0 as int32) - const value_colors_element_0_0 = value_colors_element_0 as Color - valueSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) + const value_selectedColor_value_0 = value_selectedColor_value as Color + valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (((RuntimeType.NUMBER == value_selectedColor_value_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))) { - 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))) { - valueSerializer.writeInt8(3 as int32) - const value_colors_element_0_3 = value_colors_element_0 as Resource - valueSerializer.writeResource(value_colors_element_0_3) - } - const value_colors_element_1 = value_colors_element[1] - valueSerializer.writeNumber(value_colors_element_1) - } - const value_repeating = value.repeating - let value_repeating_type : int32 = RuntimeType.UNDEFINED - value_repeating_type = runtimeType(value_repeating) - valueSerializer.writeInt8(value_repeating_type as int32) - if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { - const value_repeating_value = value_repeating! - valueSerializer.writeBoolean(value_repeating_value) - } - } - writeLunarSwitchStyle(value: LunarSwitchStyle): void { - let valueSerializer : Serializer = this - const value_selectedColor = value.selectedColor - let value_selectedColor_type : int32 = RuntimeType.UNDEFINED - value_selectedColor_type = runtimeType(value_selectedColor) - valueSerializer.writeInt8(value_selectedColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_selectedColor_type)) { - const value_selectedColor_value = value_selectedColor! - let value_selectedColor_value_type : int32 = RuntimeType.UNDEFINED - value_selectedColor_value_type = runtimeType(value_selectedColor_value) - if (TypeChecker.isColor(value_selectedColor_value)) { - valueSerializer.writeInt8(0 as int32) - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_selectedColor_value_1 = value_selectedColor_value as number - valueSerializer.writeNumber(value_selectedColor_value_1) + const value_selectedColor_value_1 = value_selectedColor_value as number + valueSerializer.writeNumber(value_selectedColor_value_1) } else if (((RuntimeType.STRING == value_selectedColor_value_type))) { valueSerializer.writeInt8(2 as int32) @@ -3267,13 +2913,13 @@ export class Serializer extends SerializerBase { } writeScene(value: Scene): void { let valueSerializer : Serializer = this - const value___SceneStub = value.__SceneStub - valueSerializer.writeString(value___SceneStub) + const value__SceneStub = value._SceneStub + valueSerializer.writeString(value__SceneStub) } writeUIContext(value: UIContext): void { let valueSerializer : Serializer = this - const value___UIContextStub = value.__UIContextStub - valueSerializer.writeString(value___UIContextStub) + const value__UIContextStub = value._UIContextStub + valueSerializer.writeString(value__UIContextStub) } writeContextMenuAnimationOptions(value: ContextMenuAnimationOptions): void { let valueSerializer : Serializer = this @@ -3363,8 +3009,8 @@ export class Serializer extends SerializerBase { } writeImageModifier(value: ImageModifier): void { let valueSerializer : Serializer = this - const value___ImageModifierStub = value.__ImageModifierStub - valueSerializer.writeString(value___ImageModifierStub) + const value__ImageModifierStub = value._ImageModifierStub + valueSerializer.writeString(value__ImageModifierStub) } writeMotionPathOptions(value: MotionPathOptions): void { let valueSerializer : Serializer = this @@ -3628,6 +3274,74 @@ export class Serializer extends SerializerBase { } } } + writeLinearGradient_common(value: LinearGradient_common): void { + let valueSerializer : Serializer = this + const value_angle = value.angle + let value_angle_type : int32 = RuntimeType.UNDEFINED + value_angle_type = runtimeType(value_angle) + valueSerializer.writeInt8(value_angle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_angle_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1 as int32) + const value_angle_value_1 = value_angle_value as string + valueSerializer.writeString(value_angle_value_1) + } + } + const value_direction = value.direction + let value_direction_type : int32 = RuntimeType.UNDEFINED + value_direction_type = runtimeType(value_direction) + valueSerializer.writeInt8(value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = (value_direction as GradientDirection) + valueSerializer.writeInt32((value_direction_value.valueOf() as int32)) + } + const value_colors = value.colors + valueSerializer.writeInt32(value_colors.length as int32) + for (let i = 0; i < value_colors.length; i++) { + const value_colors_element : [ ResourceColor, number ] = value_colors[i] + const value_colors_element_0 = value_colors_element[0] + let value_colors_element_0_type : int32 = RuntimeType.UNDEFINED + value_colors_element_0_type = runtimeType(value_colors_element_0) + if (TypeChecker.isColor(value_colors_element_0)) { + valueSerializer.writeInt8(0 as int32) + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(3 as int32) + const value_colors_element_0_3 = value_colors_element_0 as Resource + valueSerializer.writeResource(value_colors_element_0_3) + } + const value_colors_element_1 = value_colors_element[1] + valueSerializer.writeNumber(value_colors_element_1) + } + const value_repeating = value.repeating + let value_repeating_type : int32 = RuntimeType.UNDEFINED + value_repeating_type = runtimeType(value_repeating) + valueSerializer.writeInt8(value_repeating_type as int32) + if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { + const value_repeating_value = value_repeating! + valueSerializer.writeBoolean(value_repeating_value) + } + } writeDrawingCanvas(value: DrawingCanvas): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -3863,13 +3577,13 @@ export class Serializer extends SerializerBase { } writeCustomTheme(value: CustomTheme): void { let valueSerializer : Serializer = this - const value___CustomThemeStub = value.__CustomThemeStub - valueSerializer.writeString(value___CustomThemeStub) + const value__CustomThemeStub = value._CustomThemeStub + valueSerializer.writeString(value__CustomThemeStub) } writeRestrictedWorker(value: RestrictedWorker): void { let valueSerializer : Serializer = this - const value___RestrictedWorkerStub = value.__RestrictedWorkerStub - valueSerializer.writeString(value___RestrictedWorkerStub) + const value__RestrictedWorkerStub = value._RestrictedWorkerStub + valueSerializer.writeString(value__RestrictedWorkerStub) } writeWant(value: Want): void { let valueSerializer : Serializer = this @@ -4005,43 +3719,6 @@ export class Serializer extends SerializerBase { const value_transition = value.transition valueSerializer.holdAndWriteCallback(value_transition) } - writeNavContentInfo(value: NavContentInfo): void { - let valueSerializer : Serializer = this - const value_name = value.name - let value_name_type : int32 = RuntimeType.UNDEFINED - value_name_type = runtimeType(value_name) - valueSerializer.writeInt8(value_name_type as int32) - if ((RuntimeType.UNDEFINED) != (value_name_type)) { - const value_name_value = value_name! - valueSerializer.writeString(value_name_value) - } - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_mode = value.mode - let value_mode_type : int32 = RuntimeType.UNDEFINED - value_mode_type = runtimeType(value_mode) - valueSerializer.writeInt8(value_mode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_mode_type)) { - const value_mode_value = (value_mode as NavDestinationMode) - valueSerializer.writeInt32((value_mode_value.valueOf() as int32)) - } - const value_param = value.param - let value_param_type : int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type as int32) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Object", value_param_value) - } - const value_navDestinationId = value.navDestinationId - let value_navDestinationId_type : int32 = RuntimeType.UNDEFINED - value_navDestinationId_type = runtimeType(value_navDestinationId) - valueSerializer.writeInt8(value_navDestinationId_type as int32) - if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { - const value_navDestinationId_value = value_navDestinationId! - valueSerializer.writeString(value_navDestinationId_value) - } - } writeLinearIndicatorStyle(value: LinearIndicatorStyle): void { let valueSerializer : Serializer = this const value_space = value.space @@ -4117,8 +3794,8 @@ export class Serializer extends SerializerBase { } writeDrawContext(value: DrawContext): void { let valueSerializer : Serializer = this - const value___DrawContextStub = value.__DrawContextStub - valueSerializer.writeString(value___DrawContextStub) + const value__DrawContextStub = value._DrawContextStub + valueSerializer.writeString(value__DrawContextStub) } writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { let valueSerializer : Serializer = this @@ -4134,75 +3811,108 @@ export class Serializer extends SerializerBase { const value_styledKey = value.styledKey valueSerializer.writeInt32((value_styledKey.valueOf() as int32)) const value_styledValue = value.styledValue - let value_styledValue_type : int32 = RuntimeType.UNDEFINED - value_styledValue_type = runtimeType(value_styledValue) - if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextStyle_styled_string(value_styledValue, false, false, false, false, false))) { - valueSerializer.writeInt8(0 as int32) - const value_styledValue_0 = value_styledValue as TextStyle_styled_string - valueSerializer.writeTextStyle_styled_string(value_styledValue_0) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isDecorationStyle(value_styledValue, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_styledValue_1 = value_styledValue as DecorationStyle - valueSerializer.writeDecorationStyle(value_styledValue_1) + valueSerializer.writeStyledStringValue(value_styledValue) + } + writeTextBackgroundStyle(value: TextBackgroundStyle): void { + let valueSerializer : Serializer = this + const value_color = value.color + let value_color_type : int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + 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)) { + 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.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))) { + 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))) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBaselineOffsetStyle(value_styledValue, false))) { - valueSerializer.writeInt8(2 as int32) - const value_styledValue_2 = value_styledValue as BaselineOffsetStyle - valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + const value_radius = value.radius + let value_radius_type : int32 = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + 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)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as Dimension + valueSerializer.writeLength(value_radius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (TypeChecker.isBorderRadiuses(value_radius_value, false, false, false, false))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as BorderRadiuses + const value_radius_value_1_topLeft = value_radius_value_1.topLeft + let value_radius_value_1_topLeft_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) + valueSerializer.writeInt8(value_radius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! + valueSerializer.writeLength(value_radius_value_1_topLeft_value) + } + const value_radius_value_1_topRight = value_radius_value_1.topRight + let value_radius_value_1_topRight_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) + valueSerializer.writeInt8(value_radius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { + const value_radius_value_1_topRight_value = value_radius_value_1_topRight! + valueSerializer.writeLength(value_radius_value_1_topRight_value) + } + const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft + let value_radius_value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) + } + const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight + let value_radius_value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! + valueSerializer.writeLength(value_radius_value_1_bottomRight_value) + } + } } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLetterSpacingStyle(value_styledValue, false))) { - valueSerializer.writeInt8(3 as int32) - const value_styledValue_3 = value_styledValue as LetterSpacingStyle - valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + writeCustomSpan(value: CustomSpan): 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 if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextShadowStyle(value_styledValue, false))) { - valueSerializer.writeInt8(4 as int32) - const value_styledValue_4 = value_styledValue as TextShadowStyle - valueSerializer.writeTextShadowStyle(value_styledValue_4) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isGestureStyle(value_styledValue))) { - valueSerializer.writeInt8(5 as int32) - const value_styledValue_5 = value_styledValue as GestureStyle - valueSerializer.writeGestureStyle(value_styledValue_5) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isImageAttachment(value_styledValue, false, false, false, false, false))) { - valueSerializer.writeInt8(6 as int32) - const value_styledValue_6 = value_styledValue as ImageAttachment - valueSerializer.writeImageAttachment(value_styledValue_6) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isParagraphStyle(value_styledValue, false, false, false, false, false, false))) { - valueSerializer.writeInt8(7 as int32) - const value_styledValue_7 = value_styledValue as ParagraphStyle - valueSerializer.writeParagraphStyle(value_styledValue_7) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLineHeightStyle(value_styledValue, false))) { - valueSerializer.writeInt8(8 as int32) - const value_styledValue_8 = value_styledValue as LineHeightStyle - valueSerializer.writeLineHeightStyle(value_styledValue_8) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isUrlStyle(value_styledValue, false))) { - valueSerializer.writeInt8(9 as int32) - const value_styledValue_9 = value_styledValue as UrlStyle - valueSerializer.writeUrlStyle(value_styledValue_9) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isCustomSpan(value_styledValue))) { - valueSerializer.writeInt8(10 as int32) - const value_styledValue_10 = value_styledValue as CustomSpan - valueSerializer.writeCustomSpan(value_styledValue_10) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isUserDataSpan(value_styledValue))) { - valueSerializer.writeInt8(11 as int32) - const value_styledValue_11 = value_styledValue as UserDataSpan - valueSerializer.writeUserDataSpan(value_styledValue_11) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBackgroundColorStyle(value_styledValue, false))) { - valueSerializer.writeInt8(12 as int32) - const value_styledValue_12 = value_styledValue as BackgroundColorStyle - valueSerializer.writeBackgroundColorStyle(value_styledValue_12) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } - writeWaterFlowSections(value: WaterFlowSections): void { + writeImageAttachment(value: ImageAttachment): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -4219,7 +3929,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeScroller(value: Scroller): void { + writeWaterFlowSections(value: WaterFlowSections): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -4236,11 +3946,28 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeSectionOptions(value: SectionOptions): void { + writeScroller(value: Scroller): void { let valueSerializer : Serializer = this - const value_itemsCount = value.itemsCount - valueSerializer.writeNumber(value_itemsCount) - const value_crossCount = value.crossCount + 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!") + } + } + writeSectionOptions(value: SectionOptions): void { + let valueSerializer : Serializer = this + const value_itemsCount = value.itemsCount + valueSerializer.writeNumber(value_itemsCount) + const value_crossCount = value.crossCount let value_crossCount_type : int32 = RuntimeType.UNDEFINED value_crossCount_type = runtimeType(value_crossCount) valueSerializer.writeInt8(value_crossCount_type as int32) @@ -7910,6 +7637,43 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_enableWaveEffect_value) } } + writeNavContentInfo(value: NavContentInfo): void { + let valueSerializer : Serializer = this + const value_name = value.name + let value_name_type : int32 = RuntimeType.UNDEFINED + value_name_type = runtimeType(value_name) + valueSerializer.writeInt8(value_name_type as int32) + if ((RuntimeType.UNDEFINED) != (value_name_type)) { + const value_name_value = value_name! + valueSerializer.writeString(value_name_value) + } + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_mode = value.mode + let value_mode_type : int32 = RuntimeType.UNDEFINED + value_mode_type = runtimeType(value_mode) + valueSerializer.writeInt8(value_mode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mode_type)) { + const value_mode_value = (value_mode as NavDestinationMode) + valueSerializer.writeInt32((value_mode_value.valueOf() as int32)) + } + const value_param = value.param + let value_param_type : int32 = RuntimeType.UNDEFINED + value_param_type = runtimeType(value_param) + valueSerializer.writeInt8(value_param_type as int32) + if ((RuntimeType.UNDEFINED) != (value_param_type)) { + const value_param_value = value_param! + valueSerializer.writeCustomObject("Object", value_param_value) + } + const value_navDestinationId = value.navDestinationId + let value_navDestinationId_type : int32 = RuntimeType.UNDEFINED + value_navDestinationId_type = runtimeType(value_navDestinationId) + valueSerializer.writeInt8(value_navDestinationId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { + const value_navDestinationId_value = value_navDestinationId! + valueSerializer.writeString(value_navDestinationId_value) + } + } writeNavDestinationContext(value: NavDestinationContext): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -8158,8 +7922,8 @@ export class Serializer extends SerializerBase { } writeSystemBarStyle(value: SystemBarStyle): void { let valueSerializer : Serializer = this - const value___SystemBarStyleStub = value.__SystemBarStyleStub - valueSerializer.writeString(value___SystemBarStyleStub) + const value__SystemBarStyleStub = value._SystemBarStyleStub + valueSerializer.writeString(value__SystemBarStyleStub) } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer : Serializer = this @@ -8333,8 +8097,8 @@ export class Serializer extends SerializerBase { } writeDrawableDescriptor(value: DrawableDescriptor): void { let valueSerializer : Serializer = this - const value___DrawableDescriptorStub = value.__DrawableDescriptorStub - valueSerializer.writeString(value___DrawableDescriptorStub) + const value__DrawableDescriptorStub = value._DrawableDescriptorStub + valueSerializer.writeString(value__DrawableDescriptorStub) } writeMatrix2D(value: Matrix2D): void { let valueSerializer : Serializer = this @@ -8416,10 +8180,25 @@ export class Serializer extends SerializerBase { } writeDrawingColorFilter(value: DrawingColorFilter): void { let valueSerializer : Serializer = this - const value___DrawingColorFilterStub = value.__DrawingColorFilterStub - valueSerializer.writeString(value___DrawingColorFilterStub) + const value__DrawingColorFilterStub = value._DrawingColorFilterStub + valueSerializer.writeString(value__DrawingColorFilterStub) } writeColorFilter(value: ColorFilter): 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!") + } } writeBreakPoints(value: BreakPoints): void { let valueSerializer : Serializer = this @@ -8446,8 +8225,8 @@ export class Serializer extends SerializerBase { } writeWindowStatusType(value: WindowStatusType): void { let valueSerializer : Serializer = this - const value___WindowStatusTypeStub = value.__WindowStatusTypeStub - valueSerializer.writeString(value___WindowStatusTypeStub) + const value__WindowStatusTypeStub = value._WindowStatusTypeStub + valueSerializer.writeString(value__WindowStatusTypeStub) } writeFlexSpaceOptions(value: FlexSpaceOptions): void { let valueSerializer : Serializer = this @@ -8754,8 +8533,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) } } - writeLinearGradient_data_panel(value: LinearGradient_data_panel): void { - } writeAnimateParam(value: AnimateParam): void { let valueSerializer : Serializer = this const value_duration = value.duration @@ -8879,8 +8656,8 @@ export class Serializer extends SerializerBase { } writeRectShape(value: RectShape): void { let valueSerializer : Serializer = this - const value___RectShapeStub = value.__RectShapeStub - valueSerializer.writeString(value___RectShapeStub) + const value__RectShapeStub = value._RectShapeStub + valueSerializer.writeString(value__RectShapeStub) } writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer : Serializer = this @@ -10739,8 +10516,8 @@ export class Serializer extends SerializerBase { } writeBlender(value: Blender): void { let valueSerializer : Serializer = this - const value___BlenderStub = value.__BlenderStub - valueSerializer.writeString(value___BlenderStub) + const value__BlenderStub = value._BlenderStub + valueSerializer.writeString(value__BlenderStub) } writeOverlayOptions(value: OverlayOptions): void { let valueSerializer : Serializer = this @@ -10951,18 +10728,18 @@ export class Serializer extends SerializerBase { } writePathShape(value: PathShape): void { let valueSerializer : Serializer = this - const value___PathShapeStub = value.__PathShapeStub - valueSerializer.writeString(value___PathShapeStub) + const value__PathShapeStub = value._PathShapeStub + valueSerializer.writeString(value__PathShapeStub) } writeEllipseShape(value: EllipseShape): void { let valueSerializer : Serializer = this - const value___EllipseShapeStub = value.__EllipseShapeStub - valueSerializer.writeString(value___EllipseShapeStub) + const value__EllipseShapeStub = value._EllipseShapeStub + valueSerializer.writeString(value__EllipseShapeStub) } writeCircleShape(value: CircleShape): void { let valueSerializer : Serializer = this - const value___CircleShapeStub = value.__CircleShapeStub - valueSerializer.writeString(value___CircleShapeStub) + const value__CircleShapeStub = value._CircleShapeStub + valueSerializer.writeString(value__CircleShapeStub) } writeProgressMask(value: ProgressMask): void { let valueSerializer : Serializer = this @@ -11134,15 +10911,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeRotateOptions(value_rotate_value) } } - writeIntentionCode(value: IntentionCode): void { - let valueSerializer : Serializer = this - const value___IntentionCodeStub = value.__IntentionCodeStub - valueSerializer.writeString(value___IntentionCodeStub) - } writeDrawingLattice(value: DrawingLattice): void { let valueSerializer : Serializer = this - const value___DrawingLatticeStub = value.__DrawingLatticeStub - valueSerializer.writeString(value___DrawingLatticeStub) + const value__DrawingLatticeStub = value._DrawingLatticeStub + valueSerializer.writeString(value__DrawingLatticeStub) } writeRectResult(value: RectResult): void { let valueSerializer : Serializer = this @@ -11172,6 +10944,11 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeIntentionCode(value: IntentionCode): void { + let valueSerializer : Serializer = this + const value__IntentionCodeStub = value._IntentionCodeStub + valueSerializer.writeString(value__IntentionCodeStub) + } writeUnifiedData(value: UnifiedData): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11301,12 +11078,20 @@ export class Serializer extends SerializerBase { } writeImageData(value: ImageData): void { let valueSerializer : Serializer = this - const value_data = value.data - valueSerializer.writeBuffer(value_data) - const value_height = value.height - valueSerializer.writeNumber(value_height) - const value_width = value.width - valueSerializer.writeNumber(value_width) + 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!") + } } writePath2D(value: Path2D): void { let valueSerializer : Serializer = this @@ -11689,12 +11474,6 @@ export class Serializer extends SerializerBase { } } } - writeScrollMotion(value: ScrollMotion): void { - } - writeFrictionMotion(value: FrictionMotion): void { - } - writeSpringMotion(value: SpringMotion): void { - } writeAlertDialogParamWithOptions(value: AlertDialogParamWithOptions): void { let valueSerializer : Serializer = this const value_title = value.title @@ -13896,33 +13675,313 @@ export class Serializer extends SerializerBase { value_shadow_value_type = runtimeType(value_shadow_value) 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) + const value_shadow_value_0 = value_shadow_value as ShadowOptions + valueSerializer.writeShadowOptions(value_shadow_value_0) + } + 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)) + } + } + const value_enableHoverMode = value.enableHoverMode + let value_enableHoverMode_type : int32 = RuntimeType.UNDEFINED + value_enableHoverMode_type = runtimeType(value_enableHoverMode) + valueSerializer.writeInt8(value_enableHoverMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { + const value_enableHoverMode_value = value_enableHoverMode! + valueSerializer.writeBoolean(value_enableHoverMode_value) + } + const value_hoverModeArea = value.hoverModeArea + let value_hoverModeArea_type : int32 = RuntimeType.UNDEFINED + value_hoverModeArea_type = runtimeType(value_hoverModeArea) + valueSerializer.writeInt8(value_hoverModeArea_type as int32) + if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { + const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) + valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) + } + } + writeClickEvent(value: ClickEvent): 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!") + } + } + writeSnapshotOptions(value: SnapshotOptions): void { + let valueSerializer : Serializer = this + const value_scale = value.scale + let value_scale_type : int32 = RuntimeType.UNDEFINED + value_scale_type = runtimeType(value_scale) + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeNumber(value_scale_value) + } + const value_waitUntilRenderFinished = value.waitUntilRenderFinished + let value_waitUntilRenderFinished_type : int32 = RuntimeType.UNDEFINED + value_waitUntilRenderFinished_type = runtimeType(value_waitUntilRenderFinished) + valueSerializer.writeInt8(value_waitUntilRenderFinished_type as int32) + if ((RuntimeType.UNDEFINED) != (value_waitUntilRenderFinished_type)) { + const value_waitUntilRenderFinished_value = value_waitUntilRenderFinished! + valueSerializer.writeBoolean(value_waitUntilRenderFinished_value) + } + } + writeDoubleAnimationParam(value: DoubleAnimationParam): void { + let valueSerializer : Serializer = this + const value_propertyName = value.propertyName + valueSerializer.writeString(value_propertyName) + const value_startValue = value.startValue + valueSerializer.writeFloat32(value_startValue) + const value_endValue = value.endValue + valueSerializer.writeFloat32(value_endValue) + const value_duration = value.duration + valueSerializer.writeInt32(value_duration) + const value_delay = value.delay + valueSerializer.writeInt32(value_delay) + const value_curve = value.curve + let value_curve_type : int32 = RuntimeType.UNDEFINED + value_curve_type = runtimeType(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))) { + 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))) { + valueSerializer.writeInt8(2 as int32) + const value_curve_2 = value_curve as ICurve + valueSerializer.writeICurve(value_curve_2) + } + const value_onProgress = value.onProgress + let value_onProgress_type : int32 = RuntimeType.UNDEFINED + value_onProgress_type = runtimeType(value_onProgress) + valueSerializer.writeInt8(value_onProgress_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onProgress_type)) { + const value_onProgress_value = value_onProgress! + valueSerializer.holdAndWriteCallback(value_onProgress_value) + } + const value_onFinish = value.onFinish + let value_onFinish_type : int32 = RuntimeType.UNDEFINED + value_onFinish_type = runtimeType(value_onFinish) + valueSerializer.writeInt8(value_onFinish_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onFinish_type)) { + const value_onFinish_value = value_onFinish! + valueSerializer.holdAndWriteCallback(value_onFinish_value) + } + } + writeWithThemeOptions(value: WithThemeOptions): void { + let valueSerializer : Serializer = this + const value_theme = value.theme + let value_theme_type : int32 = RuntimeType.UNDEFINED + value_theme_type = runtimeType(value_theme) + valueSerializer.writeInt8(value_theme_type as int32) + if ((RuntimeType.UNDEFINED) != (value_theme_type)) { + const value_theme_value = value_theme! + valueSerializer.writeCustomTheme(value_theme_value) + } + const value_colorMode = value.colorMode + let value_colorMode_type : int32 = RuntimeType.UNDEFINED + value_colorMode_type = runtimeType(value_colorMode) + valueSerializer.writeInt8(value_colorMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { + const value_colorMode_value = (value_colorMode as ThemeColorMode) + valueSerializer.writeInt32((value_colorMode_value.valueOf() as int32)) + } + } + writeIsolatedOptions(value: IsolatedOptions): void { + let valueSerializer : Serializer = this + const value_want = value.want + valueSerializer.writeWant(value_want) + const value_worker = value.worker + valueSerializer.writeRestrictedWorker(value_worker) + } + writeWithThemeAttribute(value: WithThemeAttribute): void { + } + writeIsolatedComponentAttribute(value: IsolatedComponentAttribute): void { + } + writeLinearIndicatorController(value: LinearIndicatorController): 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!") + } + } + writeImageAttachmentInterface(value: ImageAttachmentInterface): void { + let valueSerializer : Serializer = this + const value_value = value.value + valueSerializer.writePixelMap(value_value) + const value_size = value.size + let value_size_type : int32 = RuntimeType.UNDEFINED + value_size_type = runtimeType(value_size) + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeSizeOptions(value_size_value) + } + const value_verticalAlign = value.verticalAlign + let value_verticalAlign_type : int32 = RuntimeType.UNDEFINED + value_verticalAlign_type = runtimeType(value_verticalAlign) + valueSerializer.writeInt8(value_verticalAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { + const value_verticalAlign_value = (value_verticalAlign as ImageSpanAlignment) + valueSerializer.writeInt32((value_verticalAlign_value.valueOf() as int32)) + } + const value_objectFit = value.objectFit + let value_objectFit_type : int32 = RuntimeType.UNDEFINED + value_objectFit_type = runtimeType(value_objectFit) + valueSerializer.writeInt8(value_objectFit_type as int32) + if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { + const value_objectFit_value = (value_objectFit as ImageFit) + valueSerializer.writeInt32((value_objectFit_value.valueOf() as int32)) + } + const value_layoutStyle = value.layoutStyle + let value_layoutStyle_type : int32 = RuntimeType.UNDEFINED + value_layoutStyle_type = runtimeType(value_layoutStyle) + valueSerializer.writeInt8(value_layoutStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { + const value_layoutStyle_value = value_layoutStyle! + 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")) + { + 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!") + } + } + writeLineHeightStyle(value: LineHeightStyle): 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!") + } + } + writeParagraphStyleInterface(value: ParagraphStyleInterface): void { + let valueSerializer : Serializer = this + const value_textAlign = value.textAlign + let value_textAlign_type : int32 = RuntimeType.UNDEFINED + value_textAlign_type = runtimeType(value_textAlign) + valueSerializer.writeInt8(value_textAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { + const value_textAlign_value = (value_textAlign as TextAlign) + valueSerializer.writeInt32((value_textAlign_value.valueOf() as int32)) + } + const value_textIndent = value.textIndent + let value_textIndent_type : int32 = RuntimeType.UNDEFINED + value_textIndent_type = runtimeType(value_textIndent) + valueSerializer.writeInt8(value_textIndent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textIndent_type)) { + const value_textIndent_value = value_textIndent! + valueSerializer.writeLengthMetrics(value_textIndent_value) + } + const value_maxLines = value.maxLines + let value_maxLines_type : int32 = RuntimeType.UNDEFINED + value_maxLines_type = runtimeType(value_maxLines) + valueSerializer.writeInt8(value_maxLines_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { + const value_maxLines_value = value_maxLines! + valueSerializer.writeNumber(value_maxLines_value) + } + const value_overflow = value.overflow + let value_overflow_type : int32 = RuntimeType.UNDEFINED + value_overflow_type = runtimeType(value_overflow) + valueSerializer.writeInt8(value_overflow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { + const value_overflow_value = (value_overflow as TextOverflow) + valueSerializer.writeInt32((value_overflow_value.valueOf() as int32)) + } + const value_wordBreak = value.wordBreak + let value_wordBreak_type : int32 = RuntimeType.UNDEFINED + value_wordBreak_type = runtimeType(value_wordBreak) + valueSerializer.writeInt8(value_wordBreak_type as int32) + if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { + const value_wordBreak_value = (value_wordBreak as WordBreak) + valueSerializer.writeInt32((value_wordBreak_value.valueOf() as int32)) + } + const value_leadingMargin = value.leadingMargin + let value_leadingMargin_type : int32 = RuntimeType.UNDEFINED + value_leadingMargin_type = runtimeType(value_leadingMargin) + valueSerializer.writeInt8(value_leadingMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_leadingMargin_type)) { + const value_leadingMargin_value = value_leadingMargin! + let value_leadingMargin_value_type : int32 = RuntimeType.UNDEFINED + value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) + if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (TypeChecker.isLengthMetrics(value_leadingMargin_value, false, false))) { + valueSerializer.writeInt8(0 as int32) + const value_leadingMargin_value_0 = value_leadingMargin_value as LengthMetrics + valueSerializer.writeLengthMetrics(value_leadingMargin_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isLeadingMarginPlaceholder(value_leadingMargin_value, false, false)) { valueSerializer.writeInt8(1 as int32) - const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) + const value_leadingMargin_value_1 = value_leadingMargin_value as LeadingMarginPlaceholder + valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) } } - const value_enableHoverMode = value.enableHoverMode - let value_enableHoverMode_type : int32 = RuntimeType.UNDEFINED - value_enableHoverMode_type = runtimeType(value_enableHoverMode) - valueSerializer.writeInt8(value_enableHoverMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { - const value_enableHoverMode_value = value_enableHoverMode! - valueSerializer.writeBoolean(value_enableHoverMode_value) - } - const value_hoverModeArea = value.hoverModeArea - let value_hoverModeArea_type : int32 = RuntimeType.UNDEFINED - value_hoverModeArea_type = runtimeType(value_hoverModeArea) - valueSerializer.writeInt8(value_hoverModeArea_type as int32) - if ((RuntimeType.UNDEFINED) != (value_hoverModeArea_type)) { - const value_hoverModeArea_value = (value_hoverModeArea as HoverModeAreaType) - valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) - } } - writeClickEvent(value: ClickEvent): void { + writeParagraphStyle(value: ParagraphStyle): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -13939,101 +13998,111 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeSnapshotOptions(value: SnapshotOptions): void { + writeGestureStyleInterface(value: GestureStyleInterface): void { let valueSerializer : Serializer = this - const value_scale = value.scale - let value_scale_type : int32 = RuntimeType.UNDEFINED - value_scale_type = runtimeType(value_scale) - valueSerializer.writeInt8(value_scale_type as int32) - if ((RuntimeType.UNDEFINED) != (value_scale_type)) { - const value_scale_value = value_scale! - valueSerializer.writeNumber(value_scale_value) + const value_onClick = value.onClick + let value_onClick_type : int32 = RuntimeType.UNDEFINED + value_onClick_type = runtimeType(value_onClick) + valueSerializer.writeInt8(value_onClick_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onClick_type)) { + const value_onClick_value = value_onClick! + valueSerializer.holdAndWriteCallback(value_onClick_value) } - const value_waitUntilRenderFinished = value.waitUntilRenderFinished - let value_waitUntilRenderFinished_type : int32 = RuntimeType.UNDEFINED - value_waitUntilRenderFinished_type = runtimeType(value_waitUntilRenderFinished) - valueSerializer.writeInt8(value_waitUntilRenderFinished_type as int32) - if ((RuntimeType.UNDEFINED) != (value_waitUntilRenderFinished_type)) { - const value_waitUntilRenderFinished_value = value_waitUntilRenderFinished! - valueSerializer.writeBoolean(value_waitUntilRenderFinished_value) + const value_onLongPress = value.onLongPress + let value_onLongPress_type : int32 = RuntimeType.UNDEFINED + value_onLongPress_type = runtimeType(value_onLongPress) + valueSerializer.writeInt8(value_onLongPress_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onLongPress_type)) { + const value_onLongPress_value = value_onLongPress! + valueSerializer.holdAndWriteCallback(value_onLongPress_value) } } - writeDoubleAnimationParam(value: DoubleAnimationParam): void { + writeGestureStyle(value: GestureStyle): void { let valueSerializer : Serializer = this - const value_propertyName = value.propertyName - valueSerializer.writeString(value_propertyName) - const value_startValue = value.startValue - valueSerializer.writeNumber(value_startValue) - const value_endValue = value.endValue - valueSerializer.writeNumber(value_endValue) - const value_duration = value.duration - valueSerializer.writeNumber(value_duration) - const value_delay = value.delay - valueSerializer.writeNumber(value_delay) - const value_curve = value.curve - let value_curve_type : int32 = RuntimeType.UNDEFINED - value_curve_type = runtimeType(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))) { - valueSerializer.writeInt8(1 as int32) - const value_curve_1 = value_curve as string - valueSerializer.writeString(value_curve_1) + 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 if (((RuntimeType.OBJECT == value_curve_type))) { - valueSerializer.writeInt8(2 as int32) - const value_curve_2 = value_curve as ICurve - valueSerializer.writeICurve(value_curve_2) + else + { + throw new Error("Value is not a MaterializedBase instance!") } - const value_onProgress = value.onProgress - let value_onProgress_type : int32 = RuntimeType.UNDEFINED - value_onProgress_type = runtimeType(value_onProgress) - valueSerializer.writeInt8(value_onProgress_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onProgress_type)) { - const value_onProgress_value = value_onProgress! - valueSerializer.holdAndWriteCallback(value_onProgress_value) + } + writeBackgroundColorStyle(value: BackgroundColorStyle): 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 } - const value_onFinish = value.onFinish - let value_onFinish_type : int32 = RuntimeType.UNDEFINED - value_onFinish_type = runtimeType(value_onFinish) - valueSerializer.writeInt8(value_onFinish_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onFinish_type)) { - const value_onFinish_value = value_onFinish! - valueSerializer.holdAndWriteCallback(value_onFinish_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } - writeWithThemeOptions(value: WithThemeOptions): void { + writeTextShadowStyle(value: TextShadowStyle): void { let valueSerializer : Serializer = this - const value_theme = value.theme - let value_theme_type : int32 = RuntimeType.UNDEFINED - value_theme_type = runtimeType(value_theme) - valueSerializer.writeInt8(value_theme_type as int32) - if ((RuntimeType.UNDEFINED) != (value_theme_type)) { - const value_theme_value = value_theme! - valueSerializer.writeCustomTheme(value_theme_value) + 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 } - const value_colorMode = value.colorMode - let value_colorMode_type : int32 = RuntimeType.UNDEFINED - value_colorMode_type = runtimeType(value_colorMode) - valueSerializer.writeInt8(value_colorMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { - const value_colorMode_value = (value_colorMode as ThemeColorMode) - valueSerializer.writeInt32((value_colorMode_value.valueOf() as int32)) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } - writeIsolatedOptions(value: IsolatedOptions): void { + writeLetterSpacingStyle(value: LetterSpacingStyle): void { let valueSerializer : Serializer = this - const value_want = value.want - valueSerializer.writeWant(value_want) - const value_worker = value.worker - valueSerializer.writeRestrictedWorker(value_worker) + 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!") + } } - writeWithThemeAttribute(value: WithThemeAttribute): void { + writeBaselineOffsetStyle(value: BaselineOffsetStyle): 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!") + } } - writeNavigationTransitionProxy(value: NavigationTransitionProxy): void { + writeDecorationStyle(value: DecorationStyle): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -14045,14 +14114,103 @@ export class Serializer extends SerializerBase { valueSerializer.writePointer(ptr) return } - else - { - throw new Error("Value is not a MaterializedBase instance!") + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeTextStyleInterface(value: TextStyleInterface): void { + let valueSerializer : Serializer = this + const value_fontColor = value.fontColor + let value_fontColor_type : int32 = RuntimeType.UNDEFINED + value_fontColor_type = runtimeType(value_fontColor) + valueSerializer.writeInt8(value_fontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { + const value_fontColor_value = value_fontColor! + let value_fontColor_value_type : int32 = RuntimeType.UNDEFINED + value_fontColor_value_type = runtimeType(value_fontColor_value) + if (TypeChecker.isColor(value_fontColor_value)) { + valueSerializer.writeInt8(0 as int32) + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(3 as int32) + const value_fontColor_value_3 = value_fontColor_value as Resource + valueSerializer.writeResource(value_fontColor_value_3) + } + } + const value_fontFamily = value.fontFamily + let value_fontFamily_type : int32 = RuntimeType.UNDEFINED + value_fontFamily_type = runtimeType(value_fontFamily) + valueSerializer.writeInt8(value_fontFamily_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontFamily_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1 as int32) + const value_fontFamily_value_1 = value_fontFamily_value as Resource + valueSerializer.writeResource(value_fontFamily_value_1) + } + } + const value_fontSize = value.fontSize + let value_fontSize_type : int32 = RuntimeType.UNDEFINED + value_fontSize_type = runtimeType(value_fontSize) + valueSerializer.writeInt8(value_fontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { + const value_fontSize_value = value_fontSize! + valueSerializer.writeLengthMetrics(value_fontSize_value) + } + const value_fontWeight = value.fontWeight + let value_fontWeight_type : int32 = RuntimeType.UNDEFINED + value_fontWeight_type = runtimeType(value_fontWeight) + valueSerializer.writeInt8(value_fontWeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { + 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))) { + valueSerializer.writeInt8(0 as int32) + const value_fontWeight_value_0 = value_fontWeight_value as number + valueSerializer.writeNumber(value_fontWeight_value_0) + } + else if (TypeChecker.isFontWeight(value_fontWeight_value)) { + valueSerializer.writeInt8(1 as int32) + 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))) { + valueSerializer.writeInt8(2 as int32) + const value_fontWeight_value_2 = value_fontWeight_value as string + valueSerializer.writeString(value_fontWeight_value_2) + } + } + const value_fontStyle = value.fontStyle + let value_fontStyle_type : int32 = RuntimeType.UNDEFINED + value_fontStyle_type = runtimeType(value_fontStyle) + valueSerializer.writeInt8(value_fontStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { + const value_fontStyle_value = (value_fontStyle as FontStyle) + valueSerializer.writeInt32((value_fontStyle_value.valueOf() as int32)) } } - writeIsolatedComponentAttribute(value: IsolatedComponentAttribute): void { - } - writeLinearIndicatorController(value: LinearIndicatorController): void { + writeTextStyle_styled_string(value: TextStyle_styled_string): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -14090,78 +14248,12 @@ export class Serializer extends SerializerBase { const value_styledKey = value.styledKey valueSerializer.writeInt32((value_styledKey.valueOf() as int32)) const value_styledValue = value.styledValue - let value_styledValue_type : int32 = RuntimeType.UNDEFINED - value_styledValue_type = runtimeType(value_styledValue) - if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextStyle_styled_string(value_styledValue, false, false, false, false, false))) { - valueSerializer.writeInt8(0 as int32) - const value_styledValue_0 = value_styledValue as TextStyle_styled_string - valueSerializer.writeTextStyle_styled_string(value_styledValue_0) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isDecorationStyle(value_styledValue, false, false, false))) { - valueSerializer.writeInt8(1 as int32) - const value_styledValue_1 = value_styledValue as DecorationStyle - valueSerializer.writeDecorationStyle(value_styledValue_1) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBaselineOffsetStyle(value_styledValue, false))) { - valueSerializer.writeInt8(2 as int32) - const value_styledValue_2 = value_styledValue as BaselineOffsetStyle - valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLetterSpacingStyle(value_styledValue, false))) { - valueSerializer.writeInt8(3 as int32) - const value_styledValue_3 = value_styledValue as LetterSpacingStyle - valueSerializer.writeLetterSpacingStyle(value_styledValue_3) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isTextShadowStyle(value_styledValue, false))) { - valueSerializer.writeInt8(4 as int32) - const value_styledValue_4 = value_styledValue as TextShadowStyle - valueSerializer.writeTextShadowStyle(value_styledValue_4) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isGestureStyle(value_styledValue))) { - valueSerializer.writeInt8(5 as int32) - const value_styledValue_5 = value_styledValue as GestureStyle - valueSerializer.writeGestureStyle(value_styledValue_5) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isImageAttachment(value_styledValue, false, false, false, false, false))) { - valueSerializer.writeInt8(6 as int32) - const value_styledValue_6 = value_styledValue as ImageAttachment - valueSerializer.writeImageAttachment(value_styledValue_6) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isParagraphStyle(value_styledValue, false, false, false, false, false, false))) { - valueSerializer.writeInt8(7 as int32) - const value_styledValue_7 = value_styledValue as ParagraphStyle - valueSerializer.writeParagraphStyle(value_styledValue_7) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isLineHeightStyle(value_styledValue, false))) { - valueSerializer.writeInt8(8 as int32) - const value_styledValue_8 = value_styledValue as LineHeightStyle - valueSerializer.writeLineHeightStyle(value_styledValue_8) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isUrlStyle(value_styledValue, false))) { - valueSerializer.writeInt8(9 as int32) - const value_styledValue_9 = value_styledValue as UrlStyle - valueSerializer.writeUrlStyle(value_styledValue_9) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isCustomSpan(value_styledValue))) { - valueSerializer.writeInt8(10 as int32) - const value_styledValue_10 = value_styledValue as CustomSpan - valueSerializer.writeCustomSpan(value_styledValue_10) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isUserDataSpan(value_styledValue))) { - valueSerializer.writeInt8(11 as int32) - const value_styledValue_11 = value_styledValue as UserDataSpan - valueSerializer.writeUserDataSpan(value_styledValue_11) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (TypeChecker.isBackgroundColorStyle(value_styledValue, false))) { - valueSerializer.writeInt8(12 as int32) - const value_styledValue_12 = value_styledValue as BackgroundColorStyle - valueSerializer.writeBackgroundColorStyle(value_styledValue_12) - } + valueSerializer.writeStyledStringValue(value_styledValue) } writeReceiveCallback(value: ReceiveCallback): void { let valueSerializer : Serializer = this - const value___ReceiveCallbackStub = value.__ReceiveCallbackStub - valueSerializer.writeString(value___ReceiveCallbackStub) + const value__ReceiveCallbackStub = value._ReceiveCallbackStub + valueSerializer.writeString(value__ReceiveCallbackStub) } writeUIExtensionOptions(value: UIExtensionOptions): void { let valueSerializer : Serializer = this @@ -15011,6 +15103,23 @@ 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 @@ -15231,6 +15340,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_isOn_value) } } + writeTimePickerDialog(value: TimePickerDialog): 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!") + } + } writeTimePickerResult(value: TimePickerResult): void { let valueSerializer : Serializer = this const value_hour = value.hour @@ -15323,6 +15449,23 @@ export class Serializer extends SerializerBase { } } } + writeTextPickerDialog(value: TextPickerDialog): 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!") + } + } writeTextCascadePickerRangeContent(value: TextCascadePickerRangeContent): void { let valueSerializer : Serializer = this const value_text = value.text @@ -15573,6 +15716,74 @@ export class Serializer extends SerializerBase { valueSerializer.writeTextInputController(value_controller_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!") + } + } + writeStyledStringController(value: StyledStringController): 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!") + } + } + writeTextEditControllerEx(value: TextEditControllerEx): 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!") + } + } + writeTextBaseController(value: TextBaseController): 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!") + } + } writeTextClockOptions(value: TextClockOptions): void { let valueSerializer : Serializer = this const value_timeZoneOffset = value.timeZoneOffset @@ -15720,31 +15931,133 @@ export class Serializer extends SerializerBase { const value_velocity = value.velocity valueSerializer.writeNumber(value_velocity) } - writeTabsOptions(value: TabsOptions): void { + writeTabsOptions(value: TabsOptions): void { + let valueSerializer : Serializer = this + const value_barPosition = value.barPosition + let value_barPosition_type : int32 = RuntimeType.UNDEFINED + value_barPosition_type = runtimeType(value_barPosition) + valueSerializer.writeInt8(value_barPosition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_barPosition_type)) { + const value_barPosition_value = (value_barPosition as BarPosition) + valueSerializer.writeInt32((value_barPosition_value.valueOf() as int32)) + } + const value_index = value.index + let value_index_type : int32 = RuntimeType.UNDEFINED + value_index_type = runtimeType(value_index) + valueSerializer.writeInt8(value_index_type as int32) + if ((RuntimeType.UNDEFINED) != (value_index_type)) { + const value_index_value = value_index! + valueSerializer.writeNumber(value_index_value) + } + const value_controller = value.controller + let value_controller_type : int32 = RuntimeType.UNDEFINED + value_controller_type = runtimeType(value_controller) + valueSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeTabsController(value_controller_value) + } + } + writeReplaceSymbolEffect(value: ReplaceSymbolEffect): 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!") + } + } + writeBounceSymbolEffect(value: BounceSymbolEffect): 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!") + } + } + writeDisappearSymbolEffect(value: DisappearSymbolEffect): 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!") + } + } + writeAppearSymbolEffect(value: AppearSymbolEffect): 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!") + } + } + writeHierarchicalSymbolEffect(value: HierarchicalSymbolEffect): 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!") + } + } + writeScaleSymbolEffect(value: ScaleSymbolEffect): void { let valueSerializer : Serializer = this - const value_barPosition = value.barPosition - let value_barPosition_type : int32 = RuntimeType.UNDEFINED - value_barPosition_type = runtimeType(value_barPosition) - valueSerializer.writeInt8(value_barPosition_type as int32) - if ((RuntimeType.UNDEFINED) != (value_barPosition_type)) { - const value_barPosition_value = (value_barPosition as BarPosition) - valueSerializer.writeInt32((value_barPosition_value.valueOf() as int32)) - } - const value_index = value.index - let value_index_type : int32 = RuntimeType.UNDEFINED - value_index_type = runtimeType(value_index) - valueSerializer.writeInt8(value_index_type as int32) - if ((RuntimeType.UNDEFINED) != (value_index_type)) { - const value_index_value = value_index! - valueSerializer.writeNumber(value_index_value) + 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 } - const value_controller = value.controller - let value_controller_type : int32 = RuntimeType.UNDEFINED - value_controller_type = runtimeType(value_controller) - valueSerializer.writeInt8(value_controller_type as int32) - if ((RuntimeType.UNDEFINED) != (value_controller_type)) { - const value_controller_value = value_controller! - valueSerializer.writeTabsController(value_controller_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } writeSwiperContentTransitionProxy(value: SwiperContentTransitionProxy): void { @@ -15879,28 +16192,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_shape_type as int32) if ((RuntimeType.UNDEFINED) != (value_shape_type)) { const value_shape_value = value_shape! - let value_shape_value_type : int32 = RuntimeType.UNDEFINED - value_shape_value_type = runtimeType(value_shape_value) - if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (TypeChecker.isCircleAttribute(value_shape_value))) { - valueSerializer.writeInt8(0 as int32) - const value_shape_value_0 = value_shape_value as CircleAttribute - valueSerializer.writeCircleAttribute(value_shape_value_0) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (TypeChecker.isEllipseAttribute(value_shape_value))) { - valueSerializer.writeInt8(1 as int32) - const value_shape_value_1 = value_shape_value as EllipseAttribute - valueSerializer.writeEllipseAttribute(value_shape_value_1) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (TypeChecker.isPathAttribute(value_shape_value, false))) { - valueSerializer.writeInt8(2 as int32) - const value_shape_value_2 = value_shape_value as PathAttribute - valueSerializer.writePathAttribute(value_shape_value_2) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (TypeChecker.isRectAttribute(value_shape_value, false, false, false))) { - valueSerializer.writeInt8(3 as int32) - const value_shape_value_3 = value_shape_value as RectAttribute - valueSerializer.writeRectAttribute(value_shape_value_3) - } + valueSerializer.writeString(value_shape_value) } } writeSliderOptions(value: SliderOptions): void { @@ -16610,7 +16902,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeStyledString(value_previewText_value) } } - writeGestureEvent(value: GestureEvent): void { + writeRichEditorBaseController(value: RichEditorBaseController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -17108,6 +17400,23 @@ export class Serializer extends SerializerBase { } writeNodeController(value: NodeController): void { } + writeNavigationTransitionProxy(value: NavigationTransitionProxy): 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!") + } + } writeRouteInfo(value: RouteInfo): void { let valueSerializer : Serializer = this const value_name = value.name @@ -17545,23 +17854,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_itemIndexInGroup_value) } } - writeChildrenMainSize(value: ChildrenMainSize): 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!") - } - } writeChainAnimationOptions(value: ChainAnimationOptions): void { let valueSerializer : Serializer = this const value_minSpace = value.minSpace @@ -17647,6 +17939,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeScroller(value_scroller_value) } } + writeListScroller(value: ListScroller): 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!") + } + } writeLineOptions(value: LineOptions): void { let valueSerializer : Serializer = this const value_width = value.width @@ -17816,8 +18125,8 @@ export class Serializer extends SerializerBase { } writeResolutionQuality(value: ResolutionQuality): void { let valueSerializer : Serializer = this - const value___ResolutionQualityStub = value.__ResolutionQualityStub - valueSerializer.writeString(value___ResolutionQualityStub) + const value__ResolutionQualityStub = value._ResolutionQualityStub + valueSerializer.writeString(value__ResolutionQualityStub) } writeImageError(value: ImageError): void { let valueSerializer : Serializer = this @@ -18000,85 +18309,272 @@ export class Serializer extends SerializerBase { valueSerializer.writeGridColColumnOption(value_offset_value_1) } } - const value_order = value.order - let value_order_type : int32 = RuntimeType.UNDEFINED - value_order_type = runtimeType(value_order) - valueSerializer.writeInt8(value_order_type as int32) - if ((RuntimeType.UNDEFINED) != (value_order_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1 as int32) - const value_order_value_1 = value_order_value as GridColColumnOption - valueSerializer.writeGridColColumnOption(value_order_value_1) - } + const value_order = value.order + let value_order_type : int32 = RuntimeType.UNDEFINED + value_order_type = runtimeType(value_order) + valueSerializer.writeInt8(value_order_type as int32) + if ((RuntimeType.UNDEFINED) != (value_order_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1 as int32) + const value_order_value_1 = value_order_value as GridColColumnOption + valueSerializer.writeGridColColumnOption(value_order_value_1) + } + } + } + writeGridItemOptions(value: GridItemOptions): void { + let valueSerializer : Serializer = this + const value_style = value.style + let value_style_type : int32 = RuntimeType.UNDEFINED + value_style_type = runtimeType(value_style) + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = (value_style as GridItemStyle) + valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + } + } + writeItemDragInfo(value: ItemDragInfo): void { + let valueSerializer : Serializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeComputedBarAttribute(value: ComputedBarAttribute): void { + let valueSerializer : Serializer = this + const value_totalOffset = value.totalOffset + valueSerializer.writeNumber(value_totalOffset) + const value_totalLength = value.totalLength + valueSerializer.writeNumber(value_totalLength) + } + writeGridLayoutOptions(value: GridLayoutOptions): void { + let valueSerializer : Serializer = this + const value_regularSize = value.regularSize + const value_regularSize_0 = value_regularSize[0] + valueSerializer.writeNumber(value_regularSize_0) + const value_regularSize_1 = value_regularSize[1] + valueSerializer.writeNumber(value_regularSize_1) + const value_irregularIndexes = value.irregularIndexes + let value_irregularIndexes_type : int32 = RuntimeType.UNDEFINED + value_irregularIndexes_type = runtimeType(value_irregularIndexes) + valueSerializer.writeInt8(value_irregularIndexes_type as int32) + if ((RuntimeType.UNDEFINED) != (value_irregularIndexes_type)) { + const value_irregularIndexes_value = value_irregularIndexes! + valueSerializer.writeInt32(value_irregularIndexes_value.length as int32) + for (let i = 0; i < value_irregularIndexes_value.length; i++) { + const value_irregularIndexes_value_element : number = value_irregularIndexes_value[i] + valueSerializer.writeNumber(value_irregularIndexes_value_element) + } + } + const value_onGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex + let value_onGetIrregularSizeByIndex_type : int32 = RuntimeType.UNDEFINED + value_onGetIrregularSizeByIndex_type = runtimeType(value_onGetIrregularSizeByIndex) + valueSerializer.writeInt8(value_onGetIrregularSizeByIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onGetIrregularSizeByIndex_type)) { + const value_onGetIrregularSizeByIndex_value = value_onGetIrregularSizeByIndex! + valueSerializer.holdAndWriteCallback(value_onGetIrregularSizeByIndex_value) + } + const value_onGetRectByIndex = value.onGetRectByIndex + let value_onGetRectByIndex_type : int32 = RuntimeType.UNDEFINED + value_onGetRectByIndex_type = runtimeType(value_onGetRectByIndex) + valueSerializer.writeInt8(value_onGetRectByIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onGetRectByIndex_type)) { + const value_onGetRectByIndex_value = value_onGetRectByIndex! + valueSerializer.holdAndWriteCallback(value_onGetRectByIndex_value) + } + } + writePanRecognizer(value: PanRecognizer): 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!") + } + } + writeScrollableTargetInfo(value: ScrollableTargetInfo): 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!") + } + } + 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")) + { + 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!") } } - writeGridItemOptions(value: GridItemOptions): void { + writeSwipeGestureEvent(value: SwipeGestureEvent): void { let valueSerializer : Serializer = this - const value_style = value.style - let value_style_type : int32 = RuntimeType.UNDEFINED - value_style_type = runtimeType(value_style) - valueSerializer.writeInt8(value_style_type as int32) - if ((RuntimeType.UNDEFINED) != (value_style_type)) { - const value_style_value = (value_style as GridItemStyle) - valueSerializer.writeInt32((value_style_value.valueOf() as int32)) + 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!") } } - writeItemDragInfo(value: ItemDragInfo): void { + writeRotationGestureEvent(value: RotationGestureEvent): void { let valueSerializer : Serializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) + 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!") + } } - writeComputedBarAttribute(value: ComputedBarAttribute): void { + writePinchGestureEvent(value: PinchGestureEvent): void { let valueSerializer : Serializer = this - const value_totalOffset = value.totalOffset - valueSerializer.writeNumber(value_totalOffset) - const value_totalLength = value.totalLength - valueSerializer.writeNumber(value_totalLength) + 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!") + } } - writeGridLayoutOptions(value: GridLayoutOptions): void { + writePanGestureEvent(value: PanGestureEvent): void { let valueSerializer : Serializer = this - const value_regularSize = value.regularSize - const value_regularSize_0 = value_regularSize[0] - valueSerializer.writeNumber(value_regularSize_0) - const value_regularSize_1 = value_regularSize[1] - valueSerializer.writeNumber(value_regularSize_1) - const value_irregularIndexes = value.irregularIndexes - let value_irregularIndexes_type : int32 = RuntimeType.UNDEFINED - value_irregularIndexes_type = runtimeType(value_irregularIndexes) - valueSerializer.writeInt8(value_irregularIndexes_type as int32) - if ((RuntimeType.UNDEFINED) != (value_irregularIndexes_type)) { - const value_irregularIndexes_value = value_irregularIndexes! - valueSerializer.writeInt32(value_irregularIndexes_value.length as int32) - for (let i = 0; i < value_irregularIndexes_value.length; i++) { - const value_irregularIndexes_value_element : number = value_irregularIndexes_value[i] - valueSerializer.writeNumber(value_irregularIndexes_value_element) - } + 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 } - const value_onGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex - let value_onGetIrregularSizeByIndex_type : int32 = RuntimeType.UNDEFINED - value_onGetIrregularSizeByIndex_type = runtimeType(value_onGetIrregularSizeByIndex) - valueSerializer.writeInt8(value_onGetIrregularSizeByIndex_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onGetIrregularSizeByIndex_type)) { - const value_onGetIrregularSizeByIndex_value = value_onGetIrregularSizeByIndex! - valueSerializer.holdAndWriteCallback(value_onGetIrregularSizeByIndex_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } - const value_onGetRectByIndex = value.onGetRectByIndex - let value_onGetRectByIndex_type : int32 = RuntimeType.UNDEFINED - value_onGetRectByIndex_type = runtimeType(value_onGetRectByIndex) - valueSerializer.writeInt8(value_onGetRectByIndex_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onGetRectByIndex_type)) { - const value_onGetRectByIndex_value = value_onGetRectByIndex! - valueSerializer.holdAndWriteCallback(value_onGetRectByIndex_value) + } + writeLongPressGestureEvent(value: LongPressGestureEvent): 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!") + } + } + writeTapGestureEvent(value: TapGestureEvent): 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!") } } writeGaugeIndicatorOptions(value: GaugeIndicatorOptions): void { @@ -18444,6 +18940,23 @@ export class Serializer extends SerializerBase { } } } + writeDatePickerDialog(value: DatePickerDialog): 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!") + } + } writeDatePickerResult(value: DatePickerResult): void { let valueSerializer : Serializer = this const value_year = value.year @@ -18565,7 +19078,7 @@ export class Serializer extends SerializerBase { const value_colors_value = value_colors! valueSerializer.writeInt32(value_colors_value.length as int32) for (let i = 0; i < value_colors_value.length; i++) { - const value_colors_value_element : ResourceColor | LinearGradient_data_panel = value_colors_value[i] + 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)))) { @@ -18594,10 +19107,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value_colors_value_element_0_3) } } - else if (((RuntimeType.OBJECT) == (value_colors_value_element_type)) && (TypeChecker.isLinearGradient_data_panel(value_colors_value_element))) { + else if (((RuntimeType.OBJECT) == (value_colors_value_element_type)) && (TypeChecker.isLinearGradient(value_colors_value_element))) { valueSerializer.writeInt8(1 as int32) - const value_colors_value_element_1 = value_colors_value_element as LinearGradient_data_panel - valueSerializer.writeLinearGradient_data_panel(value_colors_value_element_1) + const value_colors_value_element_1 = value_colors_value_element as LinearGradient + valueSerializer.writeLinearGradient(value_colors_value_element_1) } } } @@ -18627,6 +19140,34 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_type_value.valueOf() as int32)) } } + writeColorStop(value: ColorStop): void { + let valueSerializer : Serializer = this + const value_color = value.color + let value_color_type : int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + if (TypeChecker.isColor(value_color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_0 = value_color as Color + valueSerializer.writeInt32((value_color_0.valueOf() as int32)) + } + 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))) { + 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))) { + valueSerializer.writeInt8(3 as int32) + const value_color_3 = value_color as Resource + valueSerializer.writeResource(value_color_3) + } + const value_offset = value.offset + valueSerializer.writeLength(value_offset) + } writeCustomDialogControllerOptions(value: CustomDialogControllerOptions): void { let valueSerializer : Serializer = this const value_builder = value.builder @@ -19161,6 +19702,40 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) } } + writeCustomDialogController(value: CustomDialogController): 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!") + } + } + writeContextMenu(value: ContextMenu): 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!") + } + } writeSceneOptions(value: SceneOptions): void { let valueSerializer : Serializer = this const value_scene = value.scene @@ -19202,6 +19777,40 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_modelType_value.valueOf() as int32)) } } + writeUICommonEvent(value: UICommonEvent): 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!") + } + } + writeChildrenMainSize(value: ChildrenMainSize): 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!") + } + } writeOffsetResult(value: OffsetResult): void { let valueSerializer : Serializer = this const value_xOffset = value.xOffset @@ -19209,6 +19818,57 @@ export class Serializer extends SerializerBase { const value_yOffset = value.yOffset valueSerializer.writeNumber(value_yOffset) } + writeTextContentControllerBase(value: TextContentControllerBase): 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!") + } + } + writeView(value: View): 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!") + } + } + writeMeasurable(value: Measurable): 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!") + } + } writeSpringBackAction(value: SpringBackAction): void { let valueSerializer : Serializer = this const value_springBack = value.springBack @@ -19471,25 +20131,8 @@ export class Serializer extends SerializerBase { } writeUniformDataType(value: UniformDataType): void { let valueSerializer : Serializer = this - const value___UniformDataTypeStub = value.__UniformDataTypeStub - valueSerializer.writeString(value___UniformDataTypeStub) - } - writeDragEvent(value: DragEvent): 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__UniformDataTypeStub = value._UniformDataTypeStub + valueSerializer.writeString(value__UniformDataTypeStub) } writeLocalizedAlignRuleOptions(value: LocalizedAlignRuleOptions): void { let valueSerializer : Serializer = this @@ -19661,74 +20304,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeLengthMetrics(value_strokeWidth_value) } } - writeKeyEvent(value: KeyEvent): 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!") - } - } - writeMouseEvent(value: MouseEvent): 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!") - } - } - writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): 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!") - } - } - writeHoverEvent(value: HoverEvent): 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!") - } - } writeOutlineOptions(value: OutlineOptions): void { let valueSerializer : Serializer = this const value_width = value.width @@ -20685,13 +21260,13 @@ export class Serializer extends SerializerBase { } writeFilter(value: Filter): void { let valueSerializer : Serializer = this - const value___FilterStub = value.__FilterStub - valueSerializer.writeString(value___FilterStub) + const value__FilterStub = value._FilterStub + valueSerializer.writeString(value__FilterStub) } writeVisualEffect(value: VisualEffect): void { let valueSerializer : Serializer = this - const value___VisualEffectStub = value.__VisualEffectStub - valueSerializer.writeString(value___VisualEffectStub) + const value__VisualEffectStub = value._VisualEffectStub + valueSerializer.writeString(value__VisualEffectStub) } writeForegroundEffectOptions(value: ForegroundEffectOptions): void { let valueSerializer : Serializer = this @@ -20937,6 +21512,57 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeString(value_id) } + writeKeyEvent(value: KeyEvent): 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!") + } + } + writeDragEvent(value: DragEvent): 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!") + } + } + writePixelMapMock(value: PixelMapMock): 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!") + } + } writeTouchObject(value: TouchObject): void { let valueSerializer : Serializer = this const value_type = value.type @@ -20960,6 +21586,74 @@ export class Serializer extends SerializerBase { const value_y = value.y valueSerializer.writeNumber(value_y) } + writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): 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!") + } + } + writeMouseEvent(value: MouseEvent): 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!") + } + } + writeHoverEvent(value: HoverEvent): 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!") + } + } + writeBaseEvent(value: BaseEvent): 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!") + } + } writePointLightStyle(value: PointLightStyle): void { let valueSerializer : Serializer = this const value_lightSource = value.lightSource @@ -21147,21 +21841,78 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } + writeCanvasRenderer(value: CanvasRenderer): 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 - const value_antialias = value.antialias - let value_antialias_type : int32 = RuntimeType.UNDEFINED - value_antialias_type = runtimeType(value_antialias) - valueSerializer.writeInt8(value_antialias_type as int32) - if ((RuntimeType.UNDEFINED) != (value_antialias_type)) { - const value_antialias_value = value_antialias! - valueSerializer.writeBoolean(value_antialias_value) + 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!") } } writeLengthMetricsUnit(value: LengthMetricsUnit): void { let valueSerializer : Serializer = this - const value___LengthMetricsUnitStub = value.__LengthMetricsUnitStub - valueSerializer.writeString(value___LengthMetricsUnitStub) + const value__LengthMetricsUnitStub = value._LengthMetricsUnitStub + valueSerializer.writeString(value__LengthMetricsUnitStub) + } + writeCanvasPath(value: CanvasPath): 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!") + } + } + writeCalendarPickerDialog(value: CalendarPickerDialog): 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!") + } } writeCalendarOptions(value: CalendarOptions): void { let valueSerializer : Serializer = this @@ -22033,6 +22784,74 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_maxCount_value) } } + writeScrollMotion(value: ScrollMotion): 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!") + } + } + writeFrictionMotion(value: FrictionMotion): 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!") + } + } + writeSpringMotion(value: SpringMotion): 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!") + } + } + writeSpringProp(value: SpringProp): 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!") + } + } writeAlphabetIndexerOptions(value: AlphabetIndexerOptions): void { let valueSerializer : Serializer = this const value_arrayValue = value.arrayValue @@ -22152,6 +22971,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_primary_value) } } + writeAlertDialog(value: AlertDialog): 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!") + } + } writeDismissDialogAction(value: DismissDialogAction): void { let valueSerializer : Serializer = this const value_dismiss = value.dismiss @@ -22196,6 +23032,91 @@ export class Serializer extends SerializerBase { const value_action = value.action valueSerializer.holdAndWriteCallback(value_action) } + writeActionSheet(value: ActionSheet): 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!") + } + } + writeEventEmulator(value: EventEmulator): 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!") + } + } + writeNavExtender(value: NavExtender): 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!") + } + } + writeGlobalScope_ohos_arkui_performanceMonitor(value: GlobalScope_ohos_arkui_performanceMonitor): 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!") + } + } + writeGlobalScope_ohos_arkui_componentSnapshot(value: GlobalScope_ohos_arkui_componentSnapshot): 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!") + } + } writeWebHeader(value: WebHeader): void { let valueSerializer : Serializer = this const value_headerKey = value.headerKey @@ -22203,6 +23124,40 @@ export class Serializer extends SerializerBase { const value_headerValue = value.headerValue valueSerializer.writeString(value_headerValue) } + writeLazyForEachOps(value: LazyForEachOps): 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!") + } + } + writeAnimationExtender(value: AnimationExtender): 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!") + } + } writeLength(value: Length): void { const valueType = runtimeType(value) this.writeInt8(valueType) diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 4dabe5b96..59ba7bca8 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -4,21 +4,21 @@ import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_O 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 { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, 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, TranslateOptions, 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 { PointerStyle, Callback_RangeUpdate } from "./../ArkArkui-customInterfaces" +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 { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkui-externalInterfaces" +import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" 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_common_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_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 { 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, ColorFilter, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" +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 { NavExtender } from "./../ArkNavExtenderMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -33,7 +33,11 @@ import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ActionSheet } from "./../ArkActionSheetMaterialized" import { AlertDialog } from "./../ArkAlertDialogMaterialized" import { IndexerAlign, AlphabetIndexerOptions, AlphabetIndexerInterface, AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" -import { SpringProp, SpringMotion, FrictionMotion, ScrollMotion, AnimatorInterface, AnimatorAttribute } from "./../ArkAnimatorInterfaces" +import { SpringProp } from "./../ArkSpringPropMaterialized" +import { SpringMotion } from "./../ArkSpringMotionMaterialized" +import { FrictionMotion } from "./../ArkFrictionMotionMaterialized" +import { ScrollMotion } from "./../ArkScrollMotionMaterialized" +import { AnimatorInterface, AnimatorAttribute } from "./../ArkAnimatorInterfaces" import { BadgePosition, BadgeStyle, BadgeParam, BadgeParamWithNumber, BadgeParamWithString, BadgeInterface, BadgeAttribute } from "./../ArkBadgeInterfaces" import { BlankInterface, BlankAttribute } from "./../ArkBlankInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole, ButtonConfiguration, ButtonTriggerClickCallback, ControlSize, ButtonOptions, ButtonInterface, ButtonAttribute, LabelStyle } from "./../ArkButtonInterfaces" @@ -46,8 +50,10 @@ import { CanvasPath } from "./../ArkCanvasPathMaterialized" import { Path2D } from "./../ArkPath2DMaterialized" import { Matrix2D } from "./../ArkMatrix2DMaterialized" import { CanvasPattern } from "./../ArkCanvasPatternMaterialized" -import { TextMetrics, ImageData, RenderingContextSettings, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, Size, CanvasInterface, CanvasAttribute } from "./../ArkCanvasInterfaces" +import { TextMetrics, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, Size, CanvasInterface, CanvasAttribute } from "./../ArkCanvasInterfaces" import { ImageBitmap } from "./../ArkImageBitmapMaterialized" +import { ImageData } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMaterialized" import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" @@ -70,9 +76,6 @@ 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 { EllipseAttribute, EllipseOptions, EllipseInterface } from "./../ArkEllipseInterfaces" -import { PathAttribute, PathOptions, PathInterface } from "./../ArkPathInterfaces" -import { RectAttribute, RectOptions, RoundedRectOptions, RectInterface } from "./../ArkRectInterfaces" 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" @@ -92,12 +95,14 @@ import { ContextMenu } from "./../ArkContextMenuMaterialized" import { CounterInterface, CounterAttribute } from "./../ArkCounterInterfaces" import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" import { CustomDialogController } from "./../ArkCustomDialogControllerMaterialized" -import { DataPanelType, ColorStop, LinearGradient_data_panel, DataPanelShadowOptions, DataPanelOptions, DataPanelInterface, DataPanelAttribute, DataPanelConfiguration } from "./../ArkDataPanelInterfaces" +import { DataPanelType, ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelInterface, DataPanelAttribute, DataPanelConfiguration } from "./../ArkDataPanelInterfaces" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { DatePickerResult, DatePickerOptions, DatePickerInterface, DatePickerAttribute, LunarSwitchStyle, DatePickerDialogOptions } from "./../ArkDatePickerInterfaces" import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerOptions, TimePickerInterface, TimePickerAttribute, TimePickerDialogOptions } from "./../ArkTimePickerInterfaces" import { DatePickerDialog } from "./../ArkDatePickerDialogMaterialized" import { DividerInterface, DividerAttribute } from "./../ArkDividerInterfaces" import { EffectComponentInterface, EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" +import { EllipseOptions, EllipseInterface, EllipseAttribute } from "./../ArkEllipseInterfaces" import { EmbeddedComponentInterface, EmbeddedComponentAttribute, TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { ErrorCallback, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute } from "./../ArkIsolatedComponentInterfaces" import { FlexOptions, FlexSpaceOptions, FlexInterface, FlexAttribute } from "./../ArkFlexInterfaces" @@ -127,6 +132,7 @@ import { GridColColumnOption, GridColOptions, GridColInterface, GridColAttribute import { SizeType, GridContainerOptions, GridContainerInterface, GridContainerAttribute } from "./../ArkGridContainerInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakpointsReference, GridRowDirection, BreakPoints, GridRowOptions, GridRowInterface, GridRowAttribute } from "./../ArkGridRowInterfaces" import { HyperlinkInterface, HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" +import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageAnimatorInterface, ImageAnimatorAttribute, ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageSpanInterface, ImageSpanAttribute, ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" @@ -145,7 +151,8 @@ import { MenuItemOptions, MenuItemInterface, MenuItemAttribute } from "./../ArkM import { MenuItemGroupOptions, MenuItemGroupInterface, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavigationSystemTransitionType, NavDestinationMode, NavDestinationInterface, NavDestinationAttribute, RouteMapConfig } from "./../ArkNavDestinationInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition } from "./../ArkNavigationInterfaces" +import { NavPathInfo } from "./../ArkNavPathInfoMaterialized" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition } from "./../ArkNavigationInterfaces" import { RouteInfo, NavRouterInterface, NavRouterAttribute, NavRouteMode } from "./../ArkNavRouterInterfaces" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" import { NavigationType, NavigatorInterface, NavigatorAttribute } from "./../ArkNavigatorInterfaces" @@ -154,6 +161,7 @@ import { RouteType, SlideEffect, PageTransitionOptions, PageTransitionCallback } import { PanelMode, PanelType, PanelHeight, PanelInterface, PanelAttribute } from "./../ArkPanelInterfaces" import { VelocityOptions, ParticleTuple, PointParticleParameters, ImageParticleParameters, ParticleConfigs, EmitterProperty, EmitterParticleOptions, ParticlePropertyUpdaterConfigs, ParticleUpdaterOptions, ParticleColorOptions, ParticleColorUpdaterOptions, ParticleColorPropertyUpdaterConfigs, ParticlePropertyAnimation, ParticleType, ParticleEmitterShape, DistributionType, ParticleUpdater, DisturbanceFieldShape } from "./../ArkParticleInterfaces" import { PasteIconStyle, PasteDescription, PasteButtonOptions, PasteButtonOnClickResult, PasteButtonInterface, PasteButtonAttribute } from "./../ArkPasteButtonInterfaces" +import { PathOptions, PathInterface, PathAttribute } from "./../ArkPathInterfaces" import { PatternLockChallengeResult, CircleStyleOptions, PatternLockInterface, PatternLockAttribute } from "./../ArkPatternLockInterfaces" import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" import { PluginComponentTemplate, PluginComponentOptions, PluginErrorData, PluginComponentInterface, PluginComponentAttribute, PluginErrorCallback } from "./../ArkPluginComponentInterfaces" @@ -163,12 +171,13 @@ import { ProgressOptions, ProgressStyle, ProgressType, ProgressStatus, ProgressS import { QRCodeInterface, QRCodeAttribute } from "./../ArkQrcodeInterfaces" import { RadioIndicatorType, RadioOptions, RadioStyle, RadioInterface, RadioAttribute, RadioConfiguration } from "./../ArkRadioInterfaces" import { RatingOptions, StarStyleOptions, RatingInterface, RatingAttribute, RatingConfiguration } from "./../ArkRatingInterfaces" +import { RectOptions, RoundedRectOptions, RectInterface, RectAttribute } from "./../ArkRectInterfaces" import { RefreshStatus, RefreshOptions, RefreshInterface, RefreshAttribute } from "./../ArkRefreshInterfaces" import { RelativeContainerInterface, RelativeContainerAttribute, GuideLinePosition, GuideLineStyle, BarrierDirection, LocalizedBarrierDirection, BarrierStyle, LocalizedBarrierStyle } from "./../ArkRelativeContainerInterfaces" import { VirtualScrollOptions, TemplateOptions } from "./../ArkRepeatInterfaces" import { RichEditorDeleteDirection, RichEditorSpanType, RichEditorResponseType, RichEditorSpanPosition, RichEditorTextStyle, LeadingMarginPlaceholder, RichEditorParagraphStyle, PasteEvent, RichEditorTextSpan, RichEditorLayoutStyle, RichEditorImageSpanStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorParagraphResult, RichEditorSymbolSpanStyleResult, RichEditorTextSpanResult, RichEditorImageSpanStyleResult, RichEditorImageSpanResult, RichEditorImageSpan, RichEditorRange, RichEditorGesture, RichEditorTextSpanOptions, KeyboardOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, PlaceholderStyle, RichEditorSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorSymbolSpanOptions, RichEditorSelection, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, RichEditorOptions, RichEditorStyledStringOptions, SelectionMenuOptions, MenuOnAppearCallback, RichEditorSpan, RichEditorAttribute, PasteEventCallback, SubmitCallback, CutEvent, CopyEvent, RichEditorInterface } from "./../ArkRichEditorInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue, TextStyle_styled_string, TextStyleInterface, DecorationStyle, BaselineOffsetStyle, LetterSpacingStyle, TextShadowStyle, BackgroundColorStyle, GestureStyle, GestureStyleInterface, ParagraphStyle, ParagraphStyleInterface, LineHeightStyle, UrlStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMetrics, CustomSpanDrawInfo, CustomSpanMeasureInfo, UserDataSpan } from "./../ArkStyledStringInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphInterface, SymbolGlyphAttribute, EffectDirection, EffectScope, EffectFillStyle, SymbolEffect, ScaleSymbolEffect, HierarchicalSymbolEffect, AppearSymbolEffect, DisappearSymbolEffect, BounceSymbolEffect, ReplaceSymbolEffect, PulseSymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue, TextStyleInterface, GestureStyleInterface, ParagraphStyleInterface, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMetrics, CustomSpanDrawInfo, CustomSpanMeasureInfo, UserDataSpan } from "./../ArkStyledStringInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphInterface, SymbolGlyphAttribute, EffectDirection, EffectScope, EffectFillStyle, SymbolEffect, PulseSymbolEffect } from "./../ArkSymbolglyphInterfaces" import { DecorationStyleResult, TextRange, MenuType, PreviewText, StyledStringChangedListener, TextDataDetectorConfig, OnDidChangeCallback, CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, FontSettingOptions, TextDataDetectorType, TextDeleteDirection, StyledStringChangeValue, PositionWithAffinity, LineMetrics, TextBox, Affinity, TextMenuItem } from "./../ArkTextCommonInterfaces" import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" @@ -205,6 +214,12 @@ import { SwiperAutoFill, ArrowStyle, SwiperDisplayMode, SwiperInterface, SwiperA import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" import { IndicatorComponentInterface, IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" +import { ScaleSymbolEffect } from "./../ArkScaleSymbolEffectMaterialized" +import { HierarchicalSymbolEffect } from "./../ArkHierarchicalSymbolEffectMaterialized" +import { AppearSymbolEffect } from "./../ArkAppearSymbolEffectMaterialized" +import { DisappearSymbolEffect } from "./../ArkDisappearSymbolEffectMaterialized" +import { BounceSymbolEffect } from "./../ArkBounceSymbolEffectMaterialized" +import { ReplaceSymbolEffect } from "./../ArkReplaceSymbolEffectMaterialized" import { SymbolSpanInterface, SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" import { BarMode, AnimationMode, BarPosition, LayoutStyle, TabsOptions, TabsInterface, TabsAttribute, DividerStyle, TabsAnimationEvent, BarGridColumnOptions, ScrollableBarModeOptions, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, TabContentAnimatedTransition } from "./../ArkTabsInterfaces" import { TabsController } from "./../ArkTabsControllerMaterialized" @@ -262,7 +277,18 @@ import { SectionOptions, GetItemMainSizeByIndex, WaterFlowLayoutMode, WaterFlowO import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" import { DpiFollowStrategy, UIExtensionOptions, ReceiveCallback, UIExtensionComponentInterface, UIExtensionComponentAttribute } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" +import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { TextStyle_styled_string } from "./../ArkTextStyleStyledStringMaterialized" +import { DecorationStyle } from "./../ArkDecorationStyleMaterialized" +import { BaselineOffsetStyle } from "./../ArkBaselineOffsetStyleMaterialized" +import { LetterSpacingStyle } from "./../ArkLetterSpacingStyleMaterialized" +import { TextShadowStyle } from "./../ArkTextShadowStyleMaterialized" +import { BackgroundColorStyle } from "./../ArkBackgroundColorStyleMaterialized" +import { GestureStyle } from "./../ArkGestureStyleMaterialized" +import { ParagraphStyle } from "./../ArkParagraphStyleMaterialized" +import { LineHeightStyle } from "./../ArkLineHeightStyleMaterialized" +import { UrlStyle } from "./../ArkUrlStyleMaterialized" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { LinearIndicatorStartOptions, LinearIndicatorStyle, LinearIndicatorInterface, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" import { RawFileDescriptor } from "./../ArkRawFileDescriptorInterfaces" @@ -477,8 +503,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof AdsBlockedDetails") } } - static isAffinity(value: object|string|number|undefined|null|boolean, duplicated___AffinityStub: boolean): boolean { - if ((!duplicated___AffinityStub) && (value?.hasOwnProperty("__AffinityStub"))) { + static isAffinity(value: object|string|number|undefined|null|boolean, duplicated__AffinityStub: boolean): boolean { + if ((!duplicated__AffinityStub) && (value?.hasOwnProperty("_AffinityStub"))) { return true } else { @@ -1372,8 +1398,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof BlendApplyType") } } - static isBlender(value: object|string|number|undefined|null|boolean, duplicated___BlenderStub: boolean): boolean { - if ((!duplicated___BlenderStub) && (value?.hasOwnProperty("__BlenderStub"))) { + static isBlender(value: object|string|number|undefined|null|boolean, duplicated__BlenderStub: boolean): boolean { + if ((!duplicated__BlenderStub) && (value?.hasOwnProperty("_BlenderStub"))) { return true } else { @@ -2450,8 +2476,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof CircleOptions") } } - static isCircleShape(value: object|string|number|undefined|null|boolean, duplicated___CircleShapeStub: boolean): boolean { - if ((!duplicated___CircleShapeStub) && (value?.hasOwnProperty("__CircleShapeStub"))) { + static isCircleShape(value: object|string|number|undefined|null|boolean, duplicated__CircleShapeStub: boolean): boolean { + if ((!duplicated__CircleShapeStub) && (value?.hasOwnProperty("_CircleShapeStub"))) { return true } else { @@ -2598,8 +2624,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ColoringStrategy") } } - static isColorMetrics(value: object|string|number|undefined|null|boolean, duplicated___ColorMetricsStub: boolean): boolean { - if ((!duplicated___ColorMetricsStub) && (value?.hasOwnProperty("__ColorMetricsStub"))) { + static isColorMetrics(value: object|string|number|undefined|null|boolean, duplicated__ColorMetricsStub: boolean): boolean { + if ((!duplicated__ColorMetricsStub) && (value?.hasOwnProperty("_ColorMetricsStub"))) { return true } else { @@ -3227,8 +3253,8 @@ export class TypeChecker { static isComponent3DInterface(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof Component3DInterface") } - static isComponentContent(value: object|string|number|undefined|null|boolean, duplicated___ComponentContentStub: boolean): boolean { - if ((!duplicated___ComponentContentStub) && (value?.hasOwnProperty("__ComponentContentStub"))) { + static isComponentContent(value: object|string|number|undefined|null|boolean, duplicated__ComponentContentStub: boolean): boolean { + if ((!duplicated__ComponentContentStub) && (value?.hasOwnProperty("_ComponentContentStub"))) { return true } else { @@ -3302,8 +3328,8 @@ export class TypeChecker { static isContainerSpanInterface(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof ContainerSpanInterface") } - static isContent(value: object|string|number|undefined|null|boolean, duplicated___ContentStub: boolean): boolean { - if ((!duplicated___ContentStub) && (value?.hasOwnProperty("__ContentStub"))) { + static isContent(value: object|string|number|undefined|null|boolean, duplicated__ContentStub: boolean): boolean { + if ((!duplicated__ContentStub) && (value?.hasOwnProperty("_ContentStub"))) { return true } else { @@ -3420,8 +3446,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ContentType") } } - static isContext(value: object|string|number|undefined|null|boolean, duplicated___ContextStub: boolean): boolean { - if ((!duplicated___ContextStub) && (value?.hasOwnProperty("__ContextStub"))) { + static isContext(value: object|string|number|undefined|null|boolean, duplicated__ContextStub: boolean): boolean { + if ((!duplicated__ContextStub) && (value?.hasOwnProperty("_ContextStub"))) { return true } else { @@ -3948,8 +3974,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof CustomSpanMetrics") } } - static isCustomTheme(value: object|string|number|undefined|null|boolean, duplicated___CustomThemeStub: boolean): boolean { - if ((!duplicated___CustomThemeStub) && (value?.hasOwnProperty("__CustomThemeStub"))) { + static isCustomTheme(value: object|string|number|undefined|null|boolean, duplicated__CustomThemeStub: boolean): boolean { + if ((!duplicated__CustomThemeStub) && (value?.hasOwnProperty("_CustomThemeStub"))) { return true } else { @@ -4256,8 +4282,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DatePickerResult") } } - static isDateTimeOptions(value: object|string|number|undefined|null|boolean, duplicated___DateTimeOptionsStub: boolean): boolean { - if ((!duplicated___DateTimeOptionsStub) && (value?.hasOwnProperty("__DateTimeOptionsStub"))) { + static isDateTimeOptions(value: object|string|number|undefined|null|boolean, duplicated__DateTimeOptionsStub: boolean): boolean { + if ((!duplicated__DateTimeOptionsStub) && (value?.hasOwnProperty("_DateTimeOptionsStub"))) { return true } else { @@ -4720,16 +4746,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DragResult") } } - static isDrawableDescriptor(value: object|string|number|undefined|null|boolean, duplicated___DrawableDescriptorStub: boolean): boolean { - if ((!duplicated___DrawableDescriptorStub) && (value?.hasOwnProperty("__DrawableDescriptorStub"))) { + static isDrawableDescriptor(value: object|string|number|undefined|null|boolean, duplicated__DrawableDescriptorStub: boolean): boolean { + if ((!duplicated__DrawableDescriptorStub) && (value?.hasOwnProperty("_DrawableDescriptorStub"))) { return true } else { throw new Error("Can not discriminate value typeof DrawableDescriptor") } } - static isDrawContext(value: object|string|number|undefined|null|boolean, duplicated___DrawContextStub: boolean): boolean { - if ((!duplicated___DrawContextStub) && (value?.hasOwnProperty("__DrawContextStub"))) { + static isDrawContext(value: object|string|number|undefined|null|boolean, duplicated__DrawContextStub: boolean): boolean { + if ((!duplicated__DrawContextStub) && (value?.hasOwnProperty("_DrawContextStub"))) { return true } else { @@ -4739,16 +4765,16 @@ export class TypeChecker { static isDrawingCanvas(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof DrawingCanvas") } - static isDrawingColorFilter(value: object|string|number|undefined|null|boolean, duplicated___DrawingColorFilterStub: boolean): boolean { - if ((!duplicated___DrawingColorFilterStub) && (value?.hasOwnProperty("__DrawingColorFilterStub"))) { + static isDrawingColorFilter(value: object|string|number|undefined|null|boolean, duplicated__DrawingColorFilterStub: boolean): boolean { + if ((!duplicated__DrawingColorFilterStub) && (value?.hasOwnProperty("_DrawingColorFilterStub"))) { return true } else { throw new Error("Can not discriminate value typeof DrawingColorFilter") } } - static isDrawingLattice(value: object|string|number|undefined|null|boolean, duplicated___DrawingLatticeStub: boolean): boolean { - if ((!duplicated___DrawingLatticeStub) && (value?.hasOwnProperty("__DrawingLatticeStub"))) { + static isDrawingLattice(value: object|string|number|undefined|null|boolean, duplicated__DrawingLatticeStub: boolean): boolean { + if ((!duplicated__DrawingLatticeStub) && (value?.hasOwnProperty("_DrawingLatticeStub"))) { return true } else { @@ -5023,8 +5049,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EllipseOptions") } } - static isEllipseShape(value: object|string|number|undefined|null|boolean, duplicated___EllipseShapeStub: boolean): boolean { - if ((!duplicated___EllipseShapeStub) && (value?.hasOwnProperty("__EllipseShapeStub"))) { + static isEllipseShape(value: object|string|number|undefined|null|boolean, duplicated__EllipseShapeStub: boolean): boolean { + if ((!duplicated__EllipseShapeStub) && (value?.hasOwnProperty("_EllipseShapeStub"))) { return true } else { @@ -5132,8 +5158,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EnvPropsOptions") } } - static isErrorCallback(value: object|string|number|undefined|null|boolean, duplicated___ErrorCallbackStub: boolean): boolean { - if ((!duplicated___ErrorCallbackStub) && (value?.hasOwnProperty("__ErrorCallbackStub"))) { + static isErrorCallback(value: object|string|number|undefined|null|boolean, duplicated__ErrorCallbackStub: boolean): boolean { + if ((!duplicated__ErrorCallbackStub) && (value?.hasOwnProperty("_ErrorCallbackStub"))) { return true } else { @@ -5255,8 +5281,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof FillMode") } } - static isFilter(value: object|string|number|undefined|null|boolean, duplicated___FilterStub: boolean): boolean { - if ((!duplicated___FilterStub) && (value?.hasOwnProperty("__FilterStub"))) { + static isFilter(value: object|string|number|undefined|null|boolean, duplicated__FilterStub: boolean): boolean { + if ((!duplicated__FilterStub) && (value?.hasOwnProperty("_FilterStub"))) { return true } else { @@ -7154,8 +7180,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageLoadResult") } } - static isImageModifier(value: object|string|number|undefined|null|boolean, duplicated___ImageModifierStub: boolean): boolean { - if ((!duplicated___ImageModifierStub) && (value?.hasOwnProperty("__ImageModifierStub"))) { + static isImageModifier(value: object|string|number|undefined|null|boolean, duplicated__ImageModifierStub: boolean): boolean { + if ((!duplicated__ImageModifierStub) && (value?.hasOwnProperty("_ImageModifierStub"))) { return true } else { @@ -7424,8 +7450,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof IntelligentTrackingPreventionDetails") } } - static isIntentionCode(value: object|string|number|undefined|null|boolean, duplicated___IntentionCodeStub: boolean): boolean { - if ((!duplicated___IntentionCodeStub) && (value?.hasOwnProperty("__IntentionCodeStub"))) { + static isIntentionCode(value: object|string|number|undefined|null|boolean, duplicated__IntentionCodeStub: boolean): boolean { + if ((!duplicated__IntentionCodeStub) && (value?.hasOwnProperty("_IntentionCodeStub"))) { return true } else { @@ -7862,8 +7888,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LengthMetrics") } } - static isLengthMetricsUnit(value: object|string|number|undefined|null|boolean, duplicated___LengthMetricsUnitStub: boolean): boolean { - if ((!duplicated___LengthMetricsUnitStub) && (value?.hasOwnProperty("__LengthMetricsUnitStub"))) { + static isLengthMetricsUnit(value: object|string|number|undefined|null|boolean, duplicated__LengthMetricsUnitStub: boolean): boolean { + if ((!duplicated__LengthMetricsUnitStub) && (value?.hasOwnProperty("_LengthMetricsUnitStub"))) { return true } else { @@ -7918,6 +7944,9 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LightSource") } } + static isLinearGradient(value: object|string|number|undefined|null|boolean): boolean { + throw new Error("Can not discriminate value typeof LinearGradient") + } static isLinearGradient_common(value: object|string|number|undefined|null|boolean, duplicated_angle: boolean, duplicated_direction: boolean, duplicated_colors: boolean, duplicated_repeating: boolean): boolean { if ((!duplicated_colors) && (value?.hasOwnProperty("colors"))) { return true @@ -7935,9 +7964,6 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LinearGradient_common") } } - static isLinearGradient_data_panel(value: object|string|number|undefined|null|boolean): boolean { - throw new Error("Can not discriminate value typeof LinearGradient_data_panel") - } static isLinearGradientBlurOptions(value: object|string|number|undefined|null|boolean, duplicated_fractionStops: boolean, duplicated_direction: boolean): boolean { if ((!duplicated_fractionStops) && (value?.hasOwnProperty("fractionStops"))) { return true @@ -8075,8 +8101,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LineJoinStyle") } } - static isLineMetrics(value: object|string|number|undefined|null|boolean, duplicated___LineMetricsStub: boolean): boolean { - if ((!duplicated___LineMetricsStub) && (value?.hasOwnProperty("__LineMetricsStub"))) { + static isLineMetrics(value: object|string|number|undefined|null|boolean, duplicated__LineMetricsStub: boolean): boolean { + if ((!duplicated__LineMetricsStub) && (value?.hasOwnProperty("_LineMetricsStub"))) { return true } else { @@ -9851,8 +9877,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavDestinationCustomTitle") } } - static isNavDestinationInfo(value: object|string|number|undefined|null|boolean, duplicated___NavDestinationInfoStub: boolean): boolean { - if ((!duplicated___NavDestinationInfoStub) && (value?.hasOwnProperty("__NavDestinationInfoStub"))) { + static isNavDestinationInfo(value: object|string|number|undefined|null|boolean, duplicated__NavDestinationInfoStub: boolean): boolean { + if ((!duplicated__NavDestinationInfoStub) && (value?.hasOwnProperty("_NavDestinationInfoStub"))) { return true } else { @@ -9986,8 +10012,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavigationCustomTitle") } } - static isNavigationInfo(value: object|string|number|undefined|null|boolean, duplicated___NavigationInfoStub: boolean): boolean { - if ((!duplicated___NavigationInfoStub) && (value?.hasOwnProperty("__NavigationInfoStub"))) { + static isNavigationInfo(value: object|string|number|undefined|null|boolean, duplicated__NavigationInfoStub: boolean): boolean { + if ((!duplicated__NavigationInfoStub) && (value?.hasOwnProperty("_NavigationInfoStub"))) { return true } else { @@ -11317,8 +11343,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PathOptions") } } - static isPathShape(value: object|string|number|undefined|null|boolean, duplicated___PathShapeStub: boolean): boolean { - if ((!duplicated___PathShapeStub) && (value?.hasOwnProperty("__PathShapeStub"))) { + static isPathShape(value: object|string|number|undefined|null|boolean, duplicated__PathShapeStub: boolean): boolean { + if ((!duplicated__PathShapeStub) && (value?.hasOwnProperty("_PathShapeStub"))) { return true } else { @@ -12449,8 +12475,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RawFileDescriptor") } } - static isReceiveCallback(value: object|string|number|undefined|null|boolean, duplicated___ReceiveCallbackStub: boolean): boolean { - if ((!duplicated___ReceiveCallbackStub) && (value?.hasOwnProperty("__ReceiveCallbackStub"))) { + static isReceiveCallback(value: object|string|number|undefined|null|boolean, duplicated__ReceiveCallbackStub: boolean): boolean { + if ((!duplicated__ReceiveCallbackStub) && (value?.hasOwnProperty("_ReceiveCallbackStub"))) { return true } else { @@ -12545,8 +12571,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RectResult") } } - static isRectShape(value: object|string|number|undefined|null|boolean, duplicated___RectShapeStub: boolean): boolean { - if ((!duplicated___RectShapeStub) && (value?.hasOwnProperty("__RectShapeStub"))) { + static isRectShape(value: object|string|number|undefined|null|boolean, duplicated__RectShapeStub: boolean): boolean { + if ((!duplicated__RectShapeStub) && (value?.hasOwnProperty("_RectShapeStub"))) { return true } else { @@ -12817,8 +12843,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ResizableOptions") } } - static isResolutionQuality(value: object|string|number|undefined|null|boolean, duplicated___ResolutionQualityStub: boolean): boolean { - if ((!duplicated___ResolutionQualityStub) && (value?.hasOwnProperty("__ResolutionQualityStub"))) { + static isResolutionQuality(value: object|string|number|undefined|null|boolean, duplicated__ResolutionQualityStub: boolean): boolean { + if ((!duplicated__ResolutionQualityStub) && (value?.hasOwnProperty("_ResolutionQualityStub"))) { return true } else { @@ -12856,8 +12882,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ResponseType") } } - static isRestrictedWorker(value: object|string|number|undefined|null|boolean, duplicated___RestrictedWorkerStub: boolean): boolean { - if ((!duplicated___RestrictedWorkerStub) && (value?.hasOwnProperty("__RestrictedWorkerStub"))) { + static isRestrictedWorker(value: object|string|number|undefined|null|boolean, duplicated__RestrictedWorkerStub: boolean): boolean { + if ((!duplicated__RestrictedWorkerStub) && (value?.hasOwnProperty("_RestrictedWorkerStub"))) { return true } else { @@ -13590,8 +13616,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RouteMapConfig") } } - static isRouterPageInfo(value: object|string|number|undefined|null|boolean, duplicated___RouterPageInfoStub: boolean): boolean { - if ((!duplicated___RouterPageInfoStub) && (value?.hasOwnProperty("__RouterPageInfoStub"))) { + static isRouterPageInfo(value: object|string|number|undefined|null|boolean, duplicated__RouterPageInfoStub: boolean): boolean { + if ((!duplicated__RouterPageInfoStub) && (value?.hasOwnProperty("_RouterPageInfoStub"))) { return true } else { @@ -13846,8 +13872,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ScanEffectOptions") } } - static isScene(value: object|string|number|undefined|null|boolean, duplicated___SceneStub: boolean): boolean { - if ((!duplicated___SceneStub) && (value?.hasOwnProperty("__SceneStub"))) { + static isScene(value: object|string|number|undefined|null|boolean, duplicated__SceneStub: boolean): boolean { + if ((!duplicated__SceneStub) && (value?.hasOwnProperty("_SceneStub"))) { return true } else { @@ -15710,6 +15736,14 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof StyledStringKey") } } + static isStyledStringValue(value: object|string|number|undefined|null|boolean, duplicated_stub: boolean): boolean { + if ((!duplicated_stub) && (value?.hasOwnProperty("stub"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof StyledStringValue") + } + } static isStyleOptions(value: object|string|number|undefined|null|boolean, duplicated_start: boolean, duplicated_length: boolean, duplicated_styledKey: boolean, duplicated_styledValue: boolean): boolean { if ((!duplicated_styledKey) && (value?.hasOwnProperty("styledKey"))) { return true @@ -15755,8 +15789,8 @@ export class TypeChecker { static isSubTabBarStyle(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof SubTabBarStyle") } - static isSummary(value: object|string|number|undefined|null|boolean, duplicated___SummaryStub: boolean): boolean { - if ((!duplicated___SummaryStub) && (value?.hasOwnProperty("__SummaryStub"))) { + static isSummary(value: object|string|number|undefined|null|boolean, duplicated__SummaryStub: boolean): boolean { + if ((!duplicated__SummaryStub) && (value?.hasOwnProperty("_SummaryStub"))) { return true } else { @@ -16113,8 +16147,8 @@ export class TypeChecker { static isSymbolGlyphInterface(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof SymbolGlyphInterface") } - static isSymbolGlyphModifier(value: object|string|number|undefined|null|boolean, duplicated___SymbolGlyphModifierStub: boolean): boolean { - if ((!duplicated___SymbolGlyphModifierStub) && (value?.hasOwnProperty("__SymbolGlyphModifierStub"))) { + static isSymbolGlyphModifier(value: object|string|number|undefined|null|boolean, duplicated__SymbolGlyphModifierStub: boolean): boolean { + if ((!duplicated__SymbolGlyphModifierStub) && (value?.hasOwnProperty("_SymbolGlyphModifierStub"))) { return true } else { @@ -16161,8 +16195,8 @@ export class TypeChecker { static isSymbolSpanInterface(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof SymbolSpanInterface") } - static isSystemBarStyle(value: object|string|number|undefined|null|boolean, duplicated___SystemBarStyleStub: boolean): boolean { - if ((!duplicated___SystemBarStyleStub) && (value?.hasOwnProperty("__SystemBarStyleStub"))) { + static isSystemBarStyle(value: object|string|number|undefined|null|boolean, duplicated__SystemBarStyleStub: boolean): boolean { + if ((!duplicated__SystemBarStyleStub) && (value?.hasOwnProperty("_SystemBarStyleStub"))) { return true } else { @@ -16750,8 +16784,8 @@ export class TypeChecker { static isTextBaseController(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof TextBaseController") } - static isTextBox(value: object|string|number|undefined|null|boolean, duplicated___TextBoxStub: boolean): boolean { - if ((!duplicated___TextBoxStub) && (value?.hasOwnProperty("__TextBoxStub"))) { + static isTextBox(value: object|string|number|undefined|null|boolean, duplicated__TextBoxStub: boolean): boolean { + if ((!duplicated__TextBoxStub) && (value?.hasOwnProperty("_TextBoxStub"))) { return true } else { @@ -17633,8 +17667,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextTimerOptions") } } - static isTheme(value: object|string|number|undefined|null|boolean, duplicated___ThemeStub: boolean): boolean { - if ((!duplicated___ThemeStub) && (value?.hasOwnProperty("__ThemeStub"))) { + static isTheme(value: object|string|number|undefined|null|boolean, duplicated__ThemeStub: boolean): boolean { + if ((!duplicated__ThemeStub) && (value?.hasOwnProperty("_ThemeStub"))) { return true } else { @@ -18318,8 +18352,8 @@ export class TypeChecker { static isUICommonEvent(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof UICommonEvent") } - static isUIContext(value: object|string|number|undefined|null|boolean, duplicated___UIContextStub: boolean): boolean { - if ((!duplicated___UIContextStub) && (value?.hasOwnProperty("__UIContextStub"))) { + static isUIContext(value: object|string|number|undefined|null|boolean, duplicated__UIContextStub: boolean): boolean { + if ((!duplicated__UIContextStub) && (value?.hasOwnProperty("_UIContextStub"))) { return true } else { @@ -18395,8 +18429,8 @@ export class TypeChecker { static isUnifiedData(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof UnifiedData") } - static isUniformDataType(value: object|string|number|undefined|null|boolean, duplicated___UniformDataTypeStub: boolean): boolean { - if ((!duplicated___UniformDataTypeStub) && (value?.hasOwnProperty("__UniformDataTypeStub"))) { + static isUniformDataType(value: object|string|number|undefined|null|boolean, duplicated__UniformDataTypeStub: boolean): boolean { + if ((!duplicated__UniformDataTypeStub) && (value?.hasOwnProperty("_UniformDataTypeStub"))) { return true } else { @@ -18602,8 +18636,8 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof VisibleListContentInfo") } } - static isVisualEffect(value: object|string|number|undefined|null|boolean, duplicated___VisualEffectStub: boolean): boolean { - if ((!duplicated___VisualEffectStub) && (value?.hasOwnProperty("__VisualEffectStub"))) { + static isVisualEffect(value: object|string|number|undefined|null|boolean, duplicated__VisualEffectStub: boolean): boolean { + if ((!duplicated__VisualEffectStub) && (value?.hasOwnProperty("_VisualEffectStub"))) { return true } else { @@ -19360,8 +19394,8 @@ export class TypeChecker { static isWindowSceneInterface(value: object|string|number|undefined|null|boolean): boolean { throw new Error("Can not discriminate value typeof WindowSceneInterface") } - static isWindowStatusType(value: object|string|number|undefined|null|boolean, duplicated___WindowStatusTypeStub: boolean): boolean { - if ((!duplicated___WindowStatusTypeStub) && (value?.hasOwnProperty("__WindowStatusTypeStub"))) { + static isWindowStatusType(value: object|string|number|undefined|null|boolean, duplicated__WindowStatusTypeStub: boolean): boolean { + if ((!duplicated__WindowStatusTypeStub) && (value?.hasOwnProperty("_WindowStatusTypeStub"))) { return true } else { @@ -19551,10 +19585,10 @@ export class TypeChecker { static isArray_ColorStop(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isArray_Union_ResourceColor_LinearGradient_data_panel(value: object|string|number|undefined|null): boolean { + static isArray_Union_ResourceColor_LinearGradient(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isArray_Tuple_Union_ResourceColor_LinearGradient_common_Number(value: object|string|number|undefined|null): boolean { + static isArray_Tuple_Union_ResourceColor_LinearGradient_Number(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } static isArray_FingerInfo(value: object|string|number|undefined|null): boolean { diff --git a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts index d6ad0329a..911c83fd6 100644 --- a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts +++ b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts @@ -17,14 +17,14 @@ // 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 { KPointer } from "@koalaui/interop" import { ComponentBase } from "../generated/ComponentBase" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./../generated/peers/ArkCommonPeer" -import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavPathInfo, PopInfo, LaunchMode, NavigationOptions, NavBar, NavigationOperation, InterceptionShowCallback, NavigationMode, InterceptionModeCallback, NavigationInterception, NavigationInterface, ToolbarItemStatus, ToolbarItem, BarStyle, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition } from "./../generated/ArkNavigationInterfaces" +import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationOperation, NavigationMode, InterceptionModeCallback, NavigationInterception, NavigationInterface, ToolbarItemStatus, ToolbarItem, BarStyle, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition } from "./../generated/ArkNavigationInterfaces" import { Resource } from "./../generated/ArkResourceInterfaces" -import { CustomBuilder, SymbolGlyphModifier, BlurStyle, CommonMethod, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../generated/ArkCommonInterfaces" -import { Length, ResourceStr, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage } from "./../generated/ArkUnitsInterfaces" +import { CustomBuilder, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../generated/ArkCommonInterfaces" +import { Length, ResourceStr, Dimension } from "./../generated/ArkUnitsInterfaces" import { NavPathStack } from "./../generated/ArkNavPathStackMaterialized" import { PixelMap } from "./../generated/ArkPixelMapMaterialized" diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 8fb3a139a..228f2bfde 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -192,10 +192,11 @@ declare interface DoubleAnimationParam { onFinish?: Callback_Extender_OnFinish; } declare class AnimationExtender { - static SetClipRect(peer: number|bigint, left: number, top: number, right: number, bottom: number): void; - static OpenImplicitAnimation(peer: number|bigint, param: AnimateParam): void; - static CloseImplicitAnimation(node: number|bigint): void; - static StartDoubleAnimation(peer: number|bigint, param: DoubleAnimationParam): void; + static SetClipRect(node: number|bigint, x: number, y: number, width: number, height: number): void; + static OpenImplicitAnimation(param: AnimateParam): void; + static CloseImplicitAnimation(): void; + static StartDoubleAnimation(node: number|bigint, param: DoubleAnimationParam): void; + static AnimationTranslate(node: number|bigint, options: TranslateOptions): void; } declare enum PointerStyle { DEFAULT = 0, @@ -331,7 +332,7 @@ declare enum PerfMonitorSourceType { declare class GlobalScope_ohos_arkui_performanceMonitor { static begin(scene: string, startInputType: PerfMonitorActionType, note?: string): void; static end(scene: string): void; - static recordInputEventTime(type: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void; + static recordInputEventTime(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void; } declare class FrameNode { constructor(uiContext: UIContext); @@ -562,7 +563,7 @@ declare class AlphabetIndexerAttribute extends CommonMethod void)): void; + _onChangeEvent_selected(callback_: ((index: number) => void)): void; } declare class SpringProp { constructor(mass: number, stiffness: number, damping: number); @@ -587,7 +588,7 @@ declare class AnimatorAttribute extends CommonMethod { fillMode(value: FillMode): AnimatorAttribute; iterations(value: number): AnimatorAttribute; playMode(value: PlayMode): AnimatorAttribute; - motion(value: (SpringMotion|FrictionMotion|ScrollMotion)): AnimatorAttribute; + motion(value: SpringMotion): AnimatorAttribute; onStart(value: (() => void)): AnimatorAttribute; onPause(value: (() => void)): AnimatorAttribute; onRepeat(value: (() => void)): AnimatorAttribute; @@ -1048,7 +1049,7 @@ declare class CheckboxAttribute extends CommonMethod { mark(value: MarkStyle): CheckboxAttribute; onChange(value: OnCheckboxChangeCallback): CheckboxAttribute; contentModifier(value: ContentModifier): CheckboxAttribute; - __onChangeEvent_select(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_select(callback_: ((parameter: boolean) => void)): void; } declare enum SelectStatus { ALL = 0, @@ -1076,7 +1077,7 @@ declare class CheckboxGroupAttribute extends CommonMethod void)): void; + _onChangeEvent_selectAll(callback_: ((parameter: boolean) => void)): void; } declare interface CircleOptions { width?: (string|number); @@ -1138,7 +1139,7 @@ declare interface AnimatableArithmetic { equals(rhs: AnimatableArithmetic): boolean; } declare interface Context { - __ContextStub: string; + _ContextStub: string; } declare interface Configuration { readonly colorMode: string; @@ -1582,10 +1583,10 @@ declare enum DragBehavior { MOVE = 1, } declare interface Summary { - __SummaryStub: string; + _SummaryStub: string; } declare interface UniformDataType { - __UniformDataTypeStub: string; + _UniformDataTypeStub: string; } declare enum DragResult { DRAG_SUCCESSFUL = 0, @@ -1651,7 +1652,7 @@ declare interface DragEvent { getModifierKeyState?(keys: string[]): boolean; } declare interface IntentionCode { - __IntentionCodeStub: string; + _IntentionCodeStub: string; } declare interface KeyEvent { type: KeyType; @@ -1936,10 +1937,10 @@ declare enum MenuPolicy { SHOW = 2, } declare interface ImageModifier { - __ImageModifierStub: string; + _ImageModifierStub: string; } declare interface SymbolGlyphModifier { - __SymbolGlyphModifierStub: string; + _SymbolGlyphModifierStub: string; } declare interface DragPreviewOptions { mode?: (DragPreviewMode|DragPreviewMode[]); @@ -1957,16 +1958,16 @@ declare interface InvertOptions { thresholdRange: number; } declare interface CircleShape { - __CircleShapeStub: string; + _CircleShapeStub: string; } declare interface EllipseShape { - __EllipseShapeStub: string; + _EllipseShapeStub: string; } declare interface PathShape { - __PathShapeStub: string; + _PathShapeStub: string; } declare interface RectShape { - __RectShapeStub: string; + _RectShapeStub: string; } declare type Optional = T | undefined; declare type Callback_Array_TouchTestInfo_TouchResult = ((value: TouchTestInfo[]) => TouchResult); @@ -2106,11 +2107,11 @@ declare class CommonMethod { radialGradient(value: { center: [ Length, Length ], radius: (number|string), colors: [ ResourceColor, number ][], repeating?: boolean }): T; motionPath(value: MotionPathOptions): T; shadow(value: (ShadowOptions|ShadowStyle)): T; - clip(value: boolean): T; - clip(value: (boolean|CircleAttribute|EllipseAttribute|PathAttribute|RectAttribute)): T; + clip(value: boolean | undefined): T; + clip(value: boolean | undefined): T; clipShape(value: (CircleShape|EllipseShape|PathShape|RectShape)): T; - mask(value: ProgressMask): T; - mask(value: (CircleAttribute|EllipseAttribute|PathAttribute|RectAttribute|ProgressMask)): T; + mask(value: ProgressMask | undefined): T; + mask(value: ProgressMask | undefined): T; maskShape(value: (CircleShape|EllipseShape|PathShape|RectShape)): T; key(value: string): T; id(value: string): T; @@ -2267,34 +2268,34 @@ declare interface SizeResult { declare interface MeasureResult extends SizeResult { } declare interface NavDestinationInfo { - __NavDestinationInfoStub: string; + _NavDestinationInfoStub: string; } declare interface NavigationInfo { - __NavigationInfoStub: string; + _NavigationInfoStub: string; } declare interface RouterPageInfo { - __RouterPageInfoStub: string; + _RouterPageInfoStub: string; } declare interface UIContext { - __UIContextStub: string; + _UIContextStub: string; } declare interface DrawContext { - __DrawContextStub: string; + _DrawContextStub: string; } declare interface VisualEffect { - __VisualEffectStub: string; + _VisualEffectStub: string; } declare interface Filter { - __FilterStub: string; + _FilterStub: string; } declare interface Blender { - __BlenderStub: string; + _BlenderStub: string; } declare interface ComponentContent { - __ComponentContentStub: string; + _ComponentContentStub: string; } declare interface Theme { - __ThemeStub: string; + _ThemeStub: string; } declare type Literal_Empty = { } declare class CustomComponent extends CommonAttribute { @@ -2354,7 +2355,7 @@ declare class ScrollableCommonMethod extends CommonMethod { friction(value: (number|Resource)): T; onScroll(value: ((first: number, last: number) => void)): T; onWillScroll(value: ScrollOnWillScrollCallback | undefined): T; - onDidScroll(value: ScrollOnScrollCallback | undefined): T; + onDidScroll(value: ScrollOnScrollCallback): T; onReachStart(value: (() => void)): T; onReachEnd(value: (() => void)): T; onScrollStart(value: (() => void)): T; @@ -2601,7 +2602,7 @@ declare class LocalStorage { clear(): boolean; } declare interface Scene { - __SceneStub: string; + _SceneStub: string; } declare enum ModelType { TEXTURE = 0, @@ -2631,7 +2632,7 @@ declare class ContainerSpanAttribute { attributeModifier(value: AttributeModifier): ContainerSpanAttribute; } declare interface Content { - __ContentStub: string; + _ContentStub: string; } declare class ContentSlotAttribute { } @@ -2693,11 +2694,11 @@ declare interface ColorStop { color: ResourceColor; offset: Length; } -declare class LinearGradient_data_panel { +declare class LinearGradient { constructor(colorStops: ColorStop[]); } declare interface DataPanelShadowOptions extends MultiShadowOptions { - colors?: (ResourceColor|LinearGradient_data_panel)[]; + colors?: (ResourceColor|LinearGradient)[]; } declare interface DataPanelOptions { values: number[]; @@ -2713,7 +2714,7 @@ declare interface DataPanelConfiguration extends CommonConfiguration { closeEffect(value: boolean): DataPanelAttribute; - valueColors(value: (ResourceColor|LinearGradient_data_panel)[]): DataPanelAttribute; + valueColors(value: (ResourceColor|LinearGradient)[]): DataPanelAttribute; trackBackgroundColor(value: ResourceColor): DataPanelAttribute; strokeWidth(value: Length): DataPanelAttribute; trackShadow(value: DataPanelShadowOptions): DataPanelAttribute; @@ -2740,7 +2741,7 @@ declare class DatePickerAttribute extends CommonMethod { selectedTextStyle(value: PickerTextStyle): DatePickerAttribute; onChange(value: ((value: DatePickerResult) => void)): DatePickerAttribute; onDateChange(value: ((parameter: Date) => void)): DatePickerAttribute; - __onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; } declare interface LunarSwitchStyle { selectedColor?: ResourceColor; @@ -2813,7 +2814,7 @@ declare interface TerminationInfo { } declare type Callback_TerminationInfo_Void = ((parameter: TerminationInfo) => void); declare interface ErrorCallback { - __ErrorCallbackStub: string; + _ErrorCallbackStub: string; } declare class EmbeddedComponentAttribute extends CommonMethod { onTerminated(value: ((parameter: TerminationInfo) => void)): EmbeddedComponentAttribute; @@ -3547,7 +3548,7 @@ declare enum FocusPriority { PREVIOUS = 3000, } declare interface WindowStatusType { - __WindowStatusTypeStub: string; + _WindowStatusTypeStub: string; } declare interface FolderStackOptions { upperItems?: string[]; @@ -3662,12 +3663,12 @@ declare interface GaugeConfiguration extends CommonConfiguration { value(value: number): GaugeAttribute; startAngle(value: number): GaugeAttribute; endAngle(value: number): GaugeAttribute; - colors(value: (ResourceColor|LinearGradient_common|[ (ResourceColor|LinearGradient_common), number ][])): GaugeAttribute; + colors(value: (ResourceColor|LinearGradient|[ (ResourceColor|LinearGradient), number ][])): GaugeAttribute; strokeWidth(value: Length): GaugeAttribute; description(value: CustomBuilder): GaugeAttribute; trackShadow(value: GaugeShadowOptions): GaugeAttribute; @@ -4049,7 +4050,7 @@ declare class GridItemAttribute extends CommonMethod { selectable(value: boolean): GridItemAttribute; selected(value: boolean): GridItemAttribute; onSelect(value: ((parameter: boolean) => void)): GridItemAttribute; - __onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; } declare interface GridColColumnOption { xs?: number; @@ -4148,16 +4149,16 @@ declare class HyperlinkAttribute extends CommonMethod { color(value: (Color|number|string|Resource)): HyperlinkAttribute; } declare interface DrawableDescriptor { - __DrawableDescriptorStub: string; + _DrawableDescriptorStub: string; } declare interface DrawingColorFilter { - __DrawingColorFilterStub: string; + _DrawingColorFilterStub: string; } declare interface ResolutionQuality { - __ResolutionQualityStub: string; + _ResolutionQualityStub: string; } declare interface DrawingLattice { - __DrawingLatticeStub: string; + _DrawingLatticeStub: string; } declare enum ImageRenderMode { ORIGINAL = 0, @@ -4537,7 +4538,7 @@ declare class ListItemAttribute extends CommonMethod { selected(value: boolean): ListItemAttribute; swipeAction(value: SwipeActionOptions): ListItemAttribute; onSelect(value: ((parameter: boolean) => void)): ListItemAttribute; - __onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; } declare enum ListItemGroupStyle { NONE = 0, @@ -4695,7 +4696,7 @@ declare class MenuItemAttribute extends CommonMethod { contentFontColor(value: ResourceColor): MenuItemAttribute; labelFont(value: Font): MenuItemAttribute; labelFontColor(value: ResourceColor): MenuItemAttribute; - __onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; } declare interface MenuItemGroupOptions { header?: (ResourceStr|CustomBuilder); @@ -4780,7 +4781,7 @@ declare class NavRouterAttribute extends CommonMethod { mode(value: NavRouteMode): NavRouterAttribute; } declare interface SystemBarStyle { - __SystemBarStyleStub: string; + _SystemBarStyleStub: string; } declare interface NavigationCommonTitle { main: (string|Resource); @@ -5087,7 +5088,7 @@ declare class PanelAttribute extends CommonMethod { showCloseIcon(value: boolean): PanelAttribute; onChange(value: ((width: number, height: number, mode: PanelMode) => void)): PanelAttribute; onHeightChange(value: ((index: number) => void)): PanelAttribute; - __onChangeEvent_mode(callback_: ((mode: PanelMode) => void)): void; + _onChangeEvent_mode(callback_: ((mode: PanelMode) => void)): void; } declare type ParticleTuple = [ T1, T2 ] declare interface VelocityOptions { @@ -5158,10 +5159,10 @@ declare enum ParticleUpdater { CURVE = "curve", } declare interface SizeT { - __SizeTStub: string; + _SizeTStub: string; } declare interface PositionT { - __PositionTStub: string; + _PositionTStub: string; } declare enum DisturbanceFieldShape { RECT = 0, @@ -5353,7 +5354,7 @@ declare interface ProgressInterface { } declare class ProgressAttribute extends CommonMethod { value(value: number): ProgressAttribute; - color(value: (ResourceColor|LinearGradient_common)): ProgressAttribute; + color(value: (ResourceColor|LinearGradient)): ProgressAttribute; style(value: (LinearStyleOptions|RingStyleOptions|CapsuleStyleOptions|ProgressStyleOptions)): ProgressAttribute; privacySensitive(value: boolean | undefined): ProgressAttribute; contentModifier(value: ContentModifier): ProgressAttribute; @@ -5394,7 +5395,7 @@ declare class RadioAttribute extends CommonMethod { onChange(value: ((parameter: boolean) => void)): RadioAttribute; radioStyle(value: RadioStyle): RadioAttribute; contentModifier(value: ContentModifier): RadioAttribute; - __onChangeEvent_checked(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_checked(callback_: ((parameter: boolean) => void)): void; } declare interface RadioConfiguration extends CommonConfiguration { value: string; @@ -5426,7 +5427,7 @@ declare class RatingAttribute extends CommonMethod { starStyle(value: StarStyleOptions): RatingAttribute; onChange(value: ((index: number) => void)): RatingAttribute; contentModifier(value: ContentModifier): RatingAttribute; - __onChangeEvent_rating(callback_: ((index: number) => void)): void; + _onChangeEvent_rating(callback_: ((index: number) => void)): void; } declare interface RectOptions { width?: (number|string); @@ -5479,7 +5480,7 @@ declare class RefreshAttribute extends CommonMethod { pullToRefresh(value: boolean): RefreshAttribute; onOffsetChange(value: ((index: number) => void)): RefreshAttribute; pullDownRatio(value: number | undefined): RefreshAttribute; - __onChangeEvent_refreshing(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_refreshing(callback_: ((parameter: boolean) => void)): void; } declare interface RelativeContainerInterface { (): RelativeContainerAttribute; @@ -5958,7 +5959,7 @@ declare class ScrollAttribute extends ScrollableCommonMethod { scrollable(value: ScrollDirection): ScrollAttribute; onScroll(value: ((first: number, last: number) => void)): ScrollAttribute; onWillScroll(value: ScrollOnWillScrollCallback | undefined): ScrollAttribute; - onDidScroll(value: ScrollOnScrollCallback | undefined): ScrollAttribute; + onDidScroll(value: ScrollOnScrollCallback): ScrollAttribute; onScrollEdge(value: OnScrollEdgeCallback): ScrollAttribute; onScrollStart(value: VoidCallback): ScrollAttribute; onScrollEnd(value: (() => void)): ScrollAttribute; @@ -6087,7 +6088,7 @@ declare class SearchAttribute extends CommonMethod { searchButton(value: string, option?: SearchButtonOptions): SearchAttribute; inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): SearchAttribute; customKeyboard(value: CustomBuilder, options?: KeyboardOptions): SearchAttribute; - __onChangeEvent_value(callback_: ((breakpoints: string) => void)): void; + _onChangeEvent_value(callback_: ((breakpoints: string) => void)): void; } declare enum SecurityComponentLayoutDirection { HORIZONTAL = 0, @@ -6160,8 +6161,8 @@ declare class SelectAttribute extends CommonMethod { menuItemContentModifier(value: ContentModifier): SelectAttribute; divider(value: DividerOptions | undefined): SelectAttribute; menuAlign(alignType: MenuAlignType, offset?: Offset): SelectAttribute; - __onChangeEvent_selected(callback_: ((selected: (number|Resource)) => void)): void; - __onChangeEvent_value(callback_: ((value: ResourceStr) => void)): void; + _onChangeEvent_selected(callback_: ((selected: (number|Resource)) => void)): void; + _onChangeEvent_value(callback_: ((value: ResourceStr) => void)): void; } declare interface MenuItemConfiguration extends CommonConfiguration { value: ResourceStr; @@ -6240,7 +6241,7 @@ declare enum SliderBlockType { declare interface SliderBlockStyle { type: SliderBlockType; image?: ResourceStr; - shape?: (CircleAttribute|EllipseAttribute|PathAttribute|RectAttribute); + shape?: string; } declare type SliderTriggerChangeCallback = ((value: number, mode: SliderChangeMode) => void); declare interface SliderConfiguration extends CommonConfiguration { @@ -6256,7 +6257,7 @@ declare interface SliderInterface { declare type Callback_Number_SliderChangeMode_Void = ((value: number, mode: SliderChangeMode) => void); declare class SliderAttribute extends CommonMethod { blockColor(value: ResourceColor): SliderAttribute; - trackColor(value: (ResourceColor|LinearGradient_common)): SliderAttribute; + trackColor(value: (ResourceColor|LinearGradient)): SliderAttribute; selectedColor(value: ResourceColor): SliderAttribute; minLabel(value: string): SliderAttribute; maxLabel(value: string): SliderAttribute; @@ -6276,7 +6277,7 @@ declare class SliderAttribute extends CommonMethod { contentModifier(value: ContentModifier): SliderAttribute; slideRange(value: SlideRange): SliderAttribute; showTips(value: boolean, content?: ResourceStr): SliderAttribute; - __onChangeEvent_value(callback_: ((index: number) => void)): void; + _onChangeEvent_value(callback_: ((index: number) => void)): void; } declare interface TextBackgroundStyle { color?: ResourceColor; @@ -6339,7 +6340,7 @@ declare class StepperAttribute extends CommonMethod { onChange(value: ((first: number, last: number) => void)): StepperAttribute; onNext(value: ((first: number, last: number) => void)): StepperAttribute; onPrevious(value: ((first: number, last: number) => void)): StepperAttribute; - __onChangeEvent_index(callback_: ((index: number) => void)): void; + _onChangeEvent_index(callback_: ((index: number) => void)): void; } declare enum ItemState { NORMAL = 0, @@ -6466,7 +6467,7 @@ declare class SwiperAttribute extends CommonMethod { displayCount(value: (number|string|SwiperAutoFill), swipeByGroup?: boolean): SwiperAttribute; prevMargin(value: Length, ignoreBlank?: boolean): SwiperAttribute; nextMargin(value: Length, ignoreBlank?: boolean): SwiperAttribute; - __onChangeEvent_index(callback_: ((index: number) => void)): void; + _onChangeEvent_index(callback_: ((index: number) => void)): void; } declare type Callback_SwiperContentTransitionProxy_Void = ((parameter: SwiperContentTransitionProxy) => void); declare interface SwiperContentAnimatedTransition { @@ -6664,7 +6665,7 @@ declare class TabsAttribute extends CommonMethod { barMode(value: BarMode.SCROLLABLE, options: ScrollableBarModeOptions): TabsAttribute; barMode(value: BarMode, options?: ScrollableBarModeOptions): TabsAttribute; barBackgroundBlurStyle(style: BlurStyle, options: BackgroundBlurStyleOptions): TabsAttribute; - __onChangeEvent_index(callback_: ((index: number) => void)): void; + _onChangeEvent_index(callback_: ((index: number) => void)): void; } declare type Callback_TabContentTransitionProxy_Void = ((parameter: TabContentTransitionProxy) => void); declare interface TabContentAnimatedTransition { @@ -6904,7 +6905,7 @@ declare class TextAreaAttribute extends CommonMethod { inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): TextAreaAttribute; showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute; customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextAreaAttribute; - __onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; + _onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; } declare class TextClockController { constructor(); @@ -7009,13 +7010,13 @@ declare interface PositionWithAffinity { affinity: Affinity; } declare interface Affinity { - __AffinityStub: string; + _AffinityStub: string; } declare interface LineMetrics { - __LineMetricsStub: string; + _LineMetricsStub: string; } declare interface TextBox { - __TextBoxStub: string; + _TextBoxStub: string; } declare interface CaretStyle { width?: Length; @@ -7189,7 +7190,7 @@ declare class TextInputAttribute extends CommonMethod { inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): TextInputAttribute; customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextInputAttribute; showCounter(value: boolean, options?: InputCounterOptions): TextInputAttribute; - __onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; + _onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; } declare interface TextPickerRangeContent { icon: (string|Resource); @@ -7229,8 +7230,8 @@ declare class TextPickerAttribute extends CommonMethod { selectedIndex(value: (number|number[])): TextPickerAttribute; divider(value: DividerOptions | undefined): TextPickerAttribute; gradientHeight(value: Dimension): TextPickerAttribute; - __onChangeEvent_selected(callback_: ((selected: (number|number[])) => void)): void; - __onChangeEvent_value(callback_: ((value: (string|string[])) => void)): void; + _onChangeEvent_selected(callback_: ((selected: (number|number[])) => void)): void; + _onChangeEvent_value(callback_: ((value: (string|string[])) => void)): void; } declare interface TextPickerResult { value: (string|string[]); @@ -7312,7 +7313,7 @@ declare interface TimePickerInterface { (options?: TimePickerOptions): TimePickerAttribute; } declare interface DateTimeOptions { - __DateTimeOptionsStub: string; + _DateTimeOptionsStub: string; } declare type Callback_TimePickerResult_Void = ((value: TimePickerResult) => void); declare class TimePickerAttribute extends CommonMethod { @@ -7324,7 +7325,7 @@ declare class TimePickerAttribute extends CommonMethod { dateTimeOptions(value: DateTimeOptions): TimePickerAttribute; onChange(value: ((value: TimePickerResult) => void)): TimePickerAttribute; enableHapticFeedback(value: boolean): TimePickerAttribute; - __onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; } declare interface TimePickerDialogOptions extends TimePickerOptions { useMilitaryTime?: boolean; @@ -7385,10 +7386,10 @@ declare class ToggleAttribute extends CommonMethod { selectedColor(value: ResourceColor): ToggleAttribute; switchPointColor(value: ResourceColor): ToggleAttribute; switchStyle(value: SwitchStyle): ToggleAttribute; - __onChangeEvent_isOn(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_isOn(callback_: ((parameter: boolean) => void)): void; } declare interface CustomTheme { - __CustomThemeStub: string; + _CustomThemeStub: string; } declare interface WithThemeOptions { theme?: CustomTheme; @@ -7450,10 +7451,10 @@ declare type ResourceColor = (Color|number|string|Resource); declare type LengthConstrain = { minLength: Length, maxLength: Length } declare type VoidCallback = (() => void); declare interface LengthMetricsUnit { - __LengthMetricsUnitStub: string; + _LengthMetricsUnitStub: string; } declare interface ColorMetrics { - __ColorMetricsStub: string; + _ColorMetricsStub: string; } declare interface Font { size?: Length; @@ -8469,7 +8470,7 @@ declare class XComponentController { setXComponentSurfaceRect(rect: SurfaceRect): void; getXComponentSurfaceRect(): SurfaceRect; setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void; - getXComponentSurfaceRotation(): Required; + getXComponentSurfaceRotation(): SurfaceRotationOptions; onSurfaceCreated(surfaceId: string): void; onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void; onSurfaceDestroyed(surfaceId: string): void; @@ -8537,7 +8538,7 @@ declare class SideBarContainerAttribute extends CommonMethod void)): void; + _onChangeEvent_showSideBar(callback_: ((parameter: boolean) => void)): void; } declare interface RRect { left: number; @@ -8615,7 +8616,7 @@ declare interface UIExtensionOptions { dpiFollowStrategy?: DpiFollowStrategy; } declare interface ReceiveCallback { - __ReceiveCallbackStub: string; + _ReceiveCallbackStub: string; } declare type Callback_UIExtensionProxy_Void = ((parameter: UIExtensionProxy) => void); declare interface UIExtensionProxy { @@ -8640,7 +8641,7 @@ declare class UIExtensionComponentAttribute extends CommonMethod void)): UIExtensionComponentAttribute; } declare interface RestrictedWorker { - __RestrictedWorkerStub: string; + _RestrictedWorkerStub: string; } declare interface IsolatedOptions { want: Want; @@ -8748,7 +8749,9 @@ declare class UrlStyle { constructor(url: string); readonly url: string; } -declare type StyledStringValue = (TextStyle_styled_string|DecorationStyle|BaselineOffsetStyle|LetterSpacingStyle|TextShadowStyle|GestureStyle|ImageAttachment|ParagraphStyle|LineHeightStyle|UrlStyle|CustomSpan|UserDataSpan|BackgroundColorStyle); +declare interface StyledStringValue { + stub: string; +} declare class MutableStyledString extends StyledString { replaceString(start: number, length: number, other: string): void; insertString(start: number, other: string): void; 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 b5c430cbe..4ddc9ed53 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets @@ -63,7 +63,7 @@ export struct MainPage { num: this.num, ratio: this.ratio } - this.pathInfos.pushPath({name:'searchPage', param: searchParam}) + this.pathInfos.pushPath(new NavPathInfo('searchPage', searchParam)) }) }, (item: SearchTextModel, index: number) => JSON.stringify(item)) } @@ -138,7 +138,7 @@ export struct MainPage { num: this.num, ratio: this.ratio } - this.pathInfos.pushPath({name:'detailPage',param:params}) + this.pathInfos.pushPath(new NavPathInfo('detailPage', params)) }) }, (item: SwiperModel, index: number) => JSON.stringify(item)) diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 48d410737..a4386b04d 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -262,10 +262,11 @@ declare interface DoubleAnimationParam { onFinish?: Callback_Extender_OnFinish; } declare class AnimationExtender { - static SetClipRect(peer: number|bigint, left: number, top: number, right: number, bottom: number): void; - static OpenImplicitAnimation(peer: number|bigint, param: AnimateParam): void; - static CloseImplicitAnimation(node: number|bigint): void; - static StartDoubleAnimation(peer: number|bigint, param: DoubleAnimationParam): void; + static SetClipRect(node: number|bigint, x: number, y: number, width: number, height: number): void; + static OpenImplicitAnimation(param: AnimateParam): void; + static CloseImplicitAnimation(): void; + static StartDoubleAnimation(node: number|bigint, param: DoubleAnimationParam): void; + static AnimationTranslate(node: number|bigint, options: TranslateOptions): void; } declare enum PointerStyle { DEFAULT = 0, @@ -401,7 +402,7 @@ declare enum PerfMonitorSourceType { declare class GlobalScope_ohos_arkui_performanceMonitor { static begin(scene: string, startInputType: PerfMonitorActionType, note?: string): void; static end(scene: string): void; - static recordInputEventTime(type: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void; + static recordInputEventTime(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void; } declare class FrameNode { constructor(uiContext: UIContext); @@ -632,7 +633,7 @@ declare class AlphabetIndexerAttribute extends CommonMethod void)): void; + _onChangeEvent_selected(callback_: ((index: number) => void)): void; } declare class SpringProp { constructor(mass: number, stiffness: number, damping: number); @@ -1118,7 +1119,7 @@ declare class CheckboxAttribute extends CommonMethod { mark(value: MarkStyle): CheckboxAttribute; onChange(value: OnCheckboxChangeCallback): CheckboxAttribute; contentModifier(value: ContentModifier): CheckboxAttribute; - __onChangeEvent_select(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_select(callback_: ((parameter: boolean) => void)): void; } declare enum SelectStatus { ALL = 0, @@ -1146,7 +1147,7 @@ declare class CheckboxGroupAttribute extends CommonMethod void)): void; + _onChangeEvent_selectAll(callback_: ((parameter: boolean) => void)): void; } declare interface CircleOptions { width?: (string|number); @@ -1208,7 +1209,7 @@ declare interface AnimatableArithmetic { equals(rhs: AnimatableArithmetic): boolean; } declare interface Context { - __ContextStub: string; + _ContextStub: string; } declare interface Configuration { readonly colorMode: string; @@ -1652,10 +1653,10 @@ declare enum DragBehavior { MOVE = 1, } declare interface Summary { - __SummaryStub: string; + _SummaryStub: string; } declare interface UniformDataType { - __UniformDataTypeStub: string; + _UniformDataTypeStub: string; } declare enum DragResult { DRAG_SUCCESSFUL = 0, @@ -1721,7 +1722,7 @@ declare interface DragEvent { getModifierKeyState?(keys: string[]): boolean; } declare interface IntentionCode { - __IntentionCodeStub: string; + _IntentionCodeStub: string; } declare interface KeyEvent { type: KeyType; @@ -2006,10 +2007,10 @@ declare enum MenuPolicy { SHOW = 2, } declare interface ImageModifier { - __ImageModifierStub: string; + _ImageModifierStub: string; } declare interface SymbolGlyphModifier { - __SymbolGlyphModifierStub: string; + _SymbolGlyphModifierStub: string; } declare interface DragPreviewOptions { mode?: (DragPreviewMode|DragPreviewMode[]); @@ -2027,16 +2028,16 @@ declare interface InvertOptions { thresholdRange: number; } declare interface CircleShape { - __CircleShapeStub: string; + _CircleShapeStub: string; } declare interface EllipseShape { - __EllipseShapeStub: string; + _EllipseShapeStub: string; } declare interface PathShape { - __PathShapeStub: string; + _PathShapeStub: string; } declare interface RectShape { - __RectShapeStub: string; + _RectShapeStub: string; } declare type Optional = T | undefined; declare type Callback_Array_TouchTestInfo_TouchResult = ((value: TouchTestInfo[]) => TouchResult); @@ -2337,34 +2338,34 @@ declare interface SizeResult { declare interface MeasureResult extends SizeResult { } declare interface NavDestinationInfo { - __NavDestinationInfoStub: string; + _NavDestinationInfoStub: string; } declare interface NavigationInfo { - __NavigationInfoStub: string; + _NavigationInfoStub: string; } declare interface RouterPageInfo { - __RouterPageInfoStub: string; + _RouterPageInfoStub: string; } declare interface UIContext { - __UIContextStub: string; + _UIContextStub: string; } declare interface DrawContext { - __DrawContextStub: string; + _DrawContextStub: string; } declare interface VisualEffect { - __VisualEffectStub: string; + _VisualEffectStub: string; } declare interface Filter { - __FilterStub: string; + _FilterStub: string; } declare interface Blender { - __BlenderStub: string; + _BlenderStub: string; } declare interface ComponentContent { - __ComponentContentStub: string; + _ComponentContentStub: string; } declare interface Theme { - __ThemeStub: string; + _ThemeStub: string; } declare type Literal_Empty = { } declare class CustomComponent extends CommonAttribute { @@ -2424,7 +2425,7 @@ declare class ScrollableCommonMethod extends CommonMethod { friction(value: (number|Resource)): T; onScroll(value: ((first: number, last: number) => void)): T; onWillScroll(value: ScrollOnWillScrollCallback | undefined): T; - onDidScroll(value: ScrollOnScrollCallback | undefined): T; + onDidScroll(value: ScrollOnScrollCallback): T; onReachStart(value: (() => void)): T; onReachEnd(value: (() => void)): T; onScrollStart(value: (() => void)): T; @@ -2671,7 +2672,7 @@ declare class LocalStorage { clear(): boolean; } declare interface Scene { - __SceneStub: string; + _SceneStub: string; } declare enum ModelType { TEXTURE = 0, @@ -2701,7 +2702,7 @@ declare class ContainerSpanAttribute { attributeModifier(value: AttributeModifier): ContainerSpanAttribute; } declare interface Content { - __ContentStub: string; + _ContentStub: string; } declare class ContentSlotAttribute { } @@ -2763,11 +2764,11 @@ declare interface ColorStop { color: ResourceColor; offset: Length; } -declare class LinearGradient_data_panel { +declare class LinearGradient { constructor(colorStops: ColorStop[]); } declare interface DataPanelShadowOptions extends MultiShadowOptions { - colors?: (ResourceColor|LinearGradient_data_panel)[]; + colors?: (ResourceColor|LinearGradient)[]; } declare interface DataPanelOptions { values: number[]; @@ -2783,7 +2784,7 @@ declare interface DataPanelConfiguration extends CommonConfiguration { closeEffect(value: boolean): DataPanelAttribute; - valueColors(value: (ResourceColor|LinearGradient_data_panel)[]): DataPanelAttribute; + valueColors(value: (ResourceColor|LinearGradient)[]): DataPanelAttribute; trackBackgroundColor(value: ResourceColor): DataPanelAttribute; strokeWidth(value: Length): DataPanelAttribute; trackShadow(value: DataPanelShadowOptions): DataPanelAttribute; @@ -2810,7 +2811,7 @@ declare class DatePickerAttribute extends CommonMethod { selectedTextStyle(value: PickerTextStyle): DatePickerAttribute; onChange(value: ((value: DatePickerResult) => void)): DatePickerAttribute; onDateChange(value: ((parameter: Date) => void)): DatePickerAttribute; - __onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; } declare interface LunarSwitchStyle { selectedColor?: ResourceColor; @@ -2883,7 +2884,7 @@ declare interface TerminationInfo { } declare type Callback_TerminationInfo_Void = ((parameter: TerminationInfo) => void); declare interface ErrorCallback { - __ErrorCallbackStub: string; + _ErrorCallbackStub: string; } declare class EmbeddedComponentAttribute extends CommonMethod { onTerminated(value: ((parameter: TerminationInfo) => void)): EmbeddedComponentAttribute; @@ -3617,7 +3618,7 @@ declare enum FocusPriority { PREVIOUS = 3000, } declare interface WindowStatusType { - __WindowStatusTypeStub: string; + _WindowStatusTypeStub: string; } declare interface FolderStackOptions { upperItems?: string[]; @@ -3732,12 +3733,12 @@ declare interface GaugeConfiguration extends CommonConfiguration { value(value: number): GaugeAttribute; startAngle(value: number): GaugeAttribute; endAngle(value: number): GaugeAttribute; - colors(value: (ResourceColor|LinearGradient_common|[ (ResourceColor|LinearGradient_common), number ][])): GaugeAttribute; + colors(value: (ResourceColor|LinearGradient|[ (ResourceColor|LinearGradient), number ][])): GaugeAttribute; strokeWidth(value: Length): GaugeAttribute; description(value: CustomBuilder): GaugeAttribute; trackShadow(value: GaugeShadowOptions): GaugeAttribute; @@ -4119,7 +4120,7 @@ declare class GridItemAttribute extends CommonMethod { selectable(value: boolean): GridItemAttribute; selected(value: boolean): GridItemAttribute; onSelect(value: ((parameter: boolean) => void)): GridItemAttribute; - __onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; } declare interface GridColColumnOption { xs?: number; @@ -4218,16 +4219,16 @@ declare class HyperlinkAttribute extends CommonMethod { color(value: (Color|number|string|Resource)): HyperlinkAttribute; } declare interface DrawableDescriptor { - __DrawableDescriptorStub: string; + _DrawableDescriptorStub: string; } declare interface DrawingColorFilter { - __DrawingColorFilterStub: string; + _DrawingColorFilterStub: string; } declare interface ResolutionQuality { - __ResolutionQualityStub: string; + _ResolutionQualityStub: string; } declare interface DrawingLattice { - __DrawingLatticeStub: string; + _DrawingLatticeStub: string; } declare enum ImageRenderMode { ORIGINAL = 0, @@ -4607,7 +4608,7 @@ declare class ListItemAttribute extends CommonMethod { selected(value: boolean): ListItemAttribute; swipeAction(value: SwipeActionOptions): ListItemAttribute; onSelect(value: ((parameter: boolean) => void)): ListItemAttribute; - __onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; } declare enum ListItemGroupStyle { NONE = 0, @@ -4765,7 +4766,7 @@ declare class MenuItemAttribute extends CommonMethod { contentFontColor(value: ResourceColor): MenuItemAttribute; labelFont(value: Font): MenuItemAttribute; labelFontColor(value: ResourceColor): MenuItemAttribute; - __onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: boolean) => void)): void; } declare interface MenuItemGroupOptions { header?: (ResourceStr|CustomBuilder); @@ -4850,7 +4851,7 @@ declare class NavRouterAttribute extends CommonMethod { mode(value: NavRouteMode): NavRouterAttribute; } declare interface SystemBarStyle { - __SystemBarStyleStub: string; + _SystemBarStyleStub: string; } declare interface NavigationCommonTitle { main: (string|Resource); @@ -5157,7 +5158,7 @@ declare class PanelAttribute extends CommonMethod { showCloseIcon(value: boolean): PanelAttribute; onChange(value: ((width: number, height: number, mode: PanelMode) => void)): PanelAttribute; onHeightChange(value: ((index: number) => void)): PanelAttribute; - __onChangeEvent_mode(callback_: ((mode: PanelMode) => void)): void; + _onChangeEvent_mode(callback_: ((mode: PanelMode) => void)): void; } declare type ParticleTuple = [ T1, T2 ] declare interface VelocityOptions { @@ -5228,10 +5229,10 @@ declare enum ParticleUpdater { CURVE = "curve", } declare interface SizeT { - __SizeTStub: string; + _SizeTStub: string; } declare interface PositionT { - __PositionTStub: string; + _PositionTStub: string; } declare enum DisturbanceFieldShape { RECT = 0, @@ -5423,7 +5424,7 @@ declare interface ProgressInterface { } declare class ProgressAttribute extends CommonMethod { value(value: number): ProgressAttribute; - color(value: (ResourceColor|LinearGradient_common)): ProgressAttribute; + color(value: (ResourceColor|LinearGradient)): ProgressAttribute; style(value: (LinearStyleOptions|RingStyleOptions|CapsuleStyleOptions|ProgressStyleOptions)): ProgressAttribute; privacySensitive(value: boolean | undefined): ProgressAttribute; contentModifier(value: ContentModifier): ProgressAttribute; @@ -5464,7 +5465,7 @@ declare class RadioAttribute extends CommonMethod { onChange(value: ((parameter: boolean) => void)): RadioAttribute; radioStyle(value: RadioStyle): RadioAttribute; contentModifier(value: ContentModifier): RadioAttribute; - __onChangeEvent_checked(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_checked(callback_: ((parameter: boolean) => void)): void; } declare interface RadioConfiguration extends CommonConfiguration { value: string; @@ -5496,7 +5497,7 @@ declare class RatingAttribute extends CommonMethod { starStyle(value: StarStyleOptions): RatingAttribute; onChange(value: ((index: number) => void)): RatingAttribute; contentModifier(value: ContentModifier): RatingAttribute; - __onChangeEvent_rating(callback_: ((index: number) => void)): void; + _onChangeEvent_rating(callback_: ((index: number) => void)): void; } declare interface RectOptions { width?: (number|string); @@ -5549,7 +5550,7 @@ declare class RefreshAttribute extends CommonMethod { pullToRefresh(value: boolean): RefreshAttribute; onOffsetChange(value: ((index: number) => void)): RefreshAttribute; pullDownRatio(value: number | undefined): RefreshAttribute; - __onChangeEvent_refreshing(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_refreshing(callback_: ((parameter: boolean) => void)): void; } declare interface RelativeContainerInterface { (): RelativeContainerAttribute; @@ -6028,7 +6029,7 @@ declare class ScrollAttribute extends ScrollableCommonMethod { scrollable(value: ScrollDirection): ScrollAttribute; onScroll(value: ((first: number, last: number) => void)): ScrollAttribute; onWillScroll(value: ScrollOnWillScrollCallback | undefined): ScrollAttribute; - onDidScroll(value: ScrollOnScrollCallback | undefined): ScrollAttribute; + onDidScroll(value: ScrollOnScrollCallback): ScrollAttribute; onScrollEdge(value: OnScrollEdgeCallback): ScrollAttribute; onScrollStart(value: VoidCallback): ScrollAttribute; onScrollEnd(value: (() => void)): ScrollAttribute; @@ -6157,7 +6158,7 @@ declare class SearchAttribute extends CommonMethod { searchButton(value: string, option?: SearchButtonOptions): SearchAttribute; inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): SearchAttribute; customKeyboard(value: CustomBuilder, options?: KeyboardOptions): SearchAttribute; - __onChangeEvent_value(callback_: ((breakpoints: string) => void)): void; + _onChangeEvent_value(callback_: ((breakpoints: string) => void)): void; } declare enum SecurityComponentLayoutDirection { HORIZONTAL = 0, @@ -6230,8 +6231,8 @@ declare class SelectAttribute extends CommonMethod { menuItemContentModifier(value: ContentModifier): SelectAttribute; divider(value: DividerOptions | undefined): SelectAttribute; menuAlign(alignType: MenuAlignType, offset?: Offset): SelectAttribute; - __onChangeEvent_selected(callback_: ((selected: (number|Resource)) => void)): void; - __onChangeEvent_value(callback_: ((value: ResourceStr) => void)): void; + _onChangeEvent_selected(callback_: ((selected: (number|Resource)) => void)): void; + _onChangeEvent_value(callback_: ((value: ResourceStr) => void)): void; } declare interface MenuItemConfiguration extends CommonConfiguration { value: ResourceStr; @@ -6326,7 +6327,7 @@ declare interface SliderInterface { declare type Callback_Number_SliderChangeMode_Void = ((value: number, mode: SliderChangeMode) => void); declare class SliderAttribute extends CommonMethod { blockColor(value: ResourceColor): SliderAttribute; - trackColor(value: (ResourceColor|LinearGradient_common)): SliderAttribute; + trackColor(value: (ResourceColor|LinearGradient)): SliderAttribute; selectedColor(value: ResourceColor): SliderAttribute; minLabel(value: string): SliderAttribute; maxLabel(value: string): SliderAttribute; @@ -6346,7 +6347,7 @@ declare class SliderAttribute extends CommonMethod { contentModifier(value: ContentModifier): SliderAttribute; slideRange(value: SlideRange): SliderAttribute; showTips(value: boolean, content?: ResourceStr): SliderAttribute; - __onChangeEvent_value(callback_: ((index: number) => void)): void; + _onChangeEvent_value(callback_: ((index: number) => void)): void; } declare interface TextBackgroundStyle { color?: ResourceColor; @@ -6409,7 +6410,7 @@ declare class StepperAttribute extends CommonMethod { onChange(value: ((first: number, last: number) => void)): StepperAttribute; onNext(value: ((first: number, last: number) => void)): StepperAttribute; onPrevious(value: ((first: number, last: number) => void)): StepperAttribute; - __onChangeEvent_index(callback_: ((index: number) => void)): void; + _onChangeEvent_index(callback_: ((index: number) => void)): void; } declare enum ItemState { NORMAL = 0, @@ -6536,7 +6537,7 @@ declare class SwiperAttribute extends CommonMethod { displayCount(value: (number|string|SwiperAutoFill), swipeByGroup?: boolean): SwiperAttribute; prevMargin(value: Length, ignoreBlank?: boolean): SwiperAttribute; nextMargin(value: Length, ignoreBlank?: boolean): SwiperAttribute; - __onChangeEvent_index(callback_: ((index: number) => void)): void; + _onChangeEvent_index(callback_: ((index: number) => void)): void; } declare type Callback_SwiperContentTransitionProxy_Void = ((parameter: SwiperContentTransitionProxy) => void); declare interface SwiperContentAnimatedTransition { @@ -6734,7 +6735,7 @@ declare class TabsAttribute extends CommonMethod { barMode(value: BarMode.SCROLLABLE, options: ScrollableBarModeOptions): TabsAttribute; barMode(value: BarMode, options?: ScrollableBarModeOptions): TabsAttribute; barBackgroundBlurStyle(style: BlurStyle, options: BackgroundBlurStyleOptions): TabsAttribute; - __onChangeEvent_index(callback_: ((index: number) => void)): void; + _onChangeEvent_index(callback_: ((index: number) => void)): void; } declare type Callback_TabContentTransitionProxy_Void = ((parameter: TabContentTransitionProxy) => void); declare interface TabContentAnimatedTransition { @@ -6974,7 +6975,7 @@ declare class TextAreaAttribute extends CommonMethod { inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): TextAreaAttribute; showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute; customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextAreaAttribute; - __onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; + _onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; } declare class TextClockController { constructor(); @@ -7079,13 +7080,13 @@ declare interface PositionWithAffinity { affinity: Affinity; } declare interface Affinity { - __AffinityStub: string; + _AffinityStub: string; } declare interface LineMetrics { - __LineMetricsStub: string; + _LineMetricsStub: string; } declare interface TextBox { - __TextBoxStub: string; + _TextBoxStub: string; } declare interface CaretStyle { width?: Length; @@ -7259,7 +7260,7 @@ declare class TextInputAttribute extends CommonMethod { inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): TextInputAttribute; customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextInputAttribute; showCounter(value: boolean, options?: InputCounterOptions): TextInputAttribute; - __onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; + _onChangeEvent_text(callback_: ((value: ResourceStr) => void)): void; } declare interface TextPickerRangeContent { icon: (string|Resource); @@ -7299,8 +7300,8 @@ declare class TextPickerAttribute extends CommonMethod { selectedIndex(value: (number|number[])): TextPickerAttribute; divider(value: DividerOptions | undefined): TextPickerAttribute; gradientHeight(value: Dimension): TextPickerAttribute; - __onChangeEvent_selected(callback_: ((selected: (number|number[])) => void)): void; - __onChangeEvent_value(callback_: ((value: (string|string[])) => void)): void; + _onChangeEvent_selected(callback_: ((selected: (number|number[])) => void)): void; + _onChangeEvent_value(callback_: ((value: (string|string[])) => void)): void; } declare interface TextPickerResult { value: (string|string[]); @@ -7382,7 +7383,7 @@ declare interface TimePickerInterface { (options?: TimePickerOptions): TimePickerAttribute; } declare interface DateTimeOptions { - __DateTimeOptionsStub: string; + _DateTimeOptionsStub: string; } declare type Callback_TimePickerResult_Void = ((value: TimePickerResult) => void); declare class TimePickerAttribute extends CommonMethod { @@ -7394,7 +7395,7 @@ declare class TimePickerAttribute extends CommonMethod { dateTimeOptions(value: DateTimeOptions): TimePickerAttribute; onChange(value: ((value: TimePickerResult) => void)): TimePickerAttribute; enableHapticFeedback(value: boolean): TimePickerAttribute; - __onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; + _onChangeEvent_selected(callback_: ((parameter: Date) => void)): void; } declare interface TimePickerDialogOptions extends TimePickerOptions { useMilitaryTime?: boolean; @@ -7455,10 +7456,10 @@ declare class ToggleAttribute extends CommonMethod { selectedColor(value: ResourceColor): ToggleAttribute; switchPointColor(value: ResourceColor): ToggleAttribute; switchStyle(value: SwitchStyle): ToggleAttribute; - __onChangeEvent_isOn(callback_: ((parameter: boolean) => void)): void; + _onChangeEvent_isOn(callback_: ((parameter: boolean) => void)): void; } declare interface CustomTheme { - __CustomThemeStub: string; + _CustomThemeStub: string; } declare interface WithThemeOptions { theme?: CustomTheme; @@ -7520,10 +7521,10 @@ declare type ResourceColor = (Color|number|string|Resource); declare type LengthConstrain = { minLength: Length, maxLength: Length } declare type VoidCallback = (() => void); declare interface LengthMetricsUnit { - __LengthMetricsUnitStub: string; + _LengthMetricsUnitStub: string; } declare interface ColorMetrics { - __ColorMetricsStub: string; + _ColorMetricsStub: string; } declare interface Font { size?: Length; @@ -8539,7 +8540,7 @@ declare class XComponentController { setXComponentSurfaceRect(rect: SurfaceRect): void; getXComponentSurfaceRect(): SurfaceRect; setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void; - getXComponentSurfaceRotation(): Required; + getXComponentSurfaceRotation(): SurfaceRotationOptions; onSurfaceCreated(surfaceId: string): void; onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void; onSurfaceDestroyed(surfaceId: string): void; @@ -8607,7 +8608,7 @@ declare class SideBarContainerAttribute extends CommonMethod void)): void; + _onChangeEvent_showSideBar(callback_: ((parameter: boolean) => void)): void; } declare interface RRect { left: number; @@ -8685,7 +8686,7 @@ declare interface UIExtensionOptions { dpiFollowStrategy?: DpiFollowStrategy; } declare interface ReceiveCallback { - __ReceiveCallbackStub: string; + _ReceiveCallbackStub: string; } declare type Callback_UIExtensionProxy_Void = ((parameter: UIExtensionProxy) => void); declare interface UIExtensionProxy { @@ -8710,7 +8711,7 @@ declare class UIExtensionComponentAttribute extends CommonMethod void)): UIExtensionComponentAttribute; } declare interface RestrictedWorker { - __RestrictedWorkerStub: string; + _RestrictedWorkerStub: string; } declare interface IsolatedOptions { want: Want; @@ -8928,7 +8929,6 @@ declare namespace Profiler { function unregisterVsyncCallback(): void; } declare function setAppBgColor(value: string): void; -declare type Callback_T_Any_this = ((instance: any, ...args: any) => any); declare interface RawFileDescriptor { fd: number; offset: number; diff --git a/arkoala/arkui/src/ArkAbilityComponent.ts b/arkoala/arkui/src/ArkAbilityComponent.ts index 657654b95..37eeab222 100644 --- a/arkoala/arkui/src/ArkAbilityComponent.ts +++ b/arkoala/arkui/src/ArkAbilityComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkAbilityComponentPeer) } /** @memo */ - setAbilityComponentOptions(value: { want: Want }): this { + public setAbilityComponentOptions(value: { want: Want }): this { if (this.checkPriority("setAbilityComponentOptions")) { const value_casted = value as ({ want: Want }) this.getPeer()?.setAbilityComponentOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onConnect(value: (() => void)): this { + public onConnect(value: (() => void)): this { if (this.checkPriority("onConnect")) { const value_casted = value as ((() => void)) UseEventsProperties({AbilityComponent_onConnect: value_casted}) @@ -78,7 +78,7 @@ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDisconnect(value: (() => void)): this { + public onDisconnect(value: (() => void)): this { if (this.checkPriority("onDisconnect")) { const value_casted = value as ((() => void)) UseEventsProperties({AbilityComponent_onDisconnect: value_casted}) diff --git a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts b/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts index 123eb7c4a..48ad391c8 100644 --- a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkActionSheetMaterialized.ts b/arkoala/arkui/src/ArkActionSheetMaterialized.ts index ab35ed0b2..aeac07f1b 100644 --- a/arkoala/arkui/src/ArkActionSheetMaterialized.ts +++ b/arkoala/arkui/src/ArkActionSheetMaterialized.ts @@ -31,7 +31,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -54,7 +54,7 @@ export class ActionSheet implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ActionSheet_getFinalizer() } - static show(value: ActionSheetOptions): undefined { + public static show(value: ActionSheetOptions): undefined { const value_casted = value as (ActionSheetOptions) return ActionSheet.show_serialize(value_casted) } diff --git a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts b/arkoala/arkui/src/ArkAlertDialogMaterialized.ts index ccb6e7a70..5540521ca 100644 --- a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkAlertDialogMaterialized.ts @@ -31,7 +31,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -54,7 +54,7 @@ export class AlertDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._AlertDialog_getFinalizer() } - static show(value: AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions): undefined { + public static show(value: AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions): undefined { const value_casted = value as (AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions) return AlertDialog.show_serialize(value_casted) } diff --git a/arkoala/arkui/src/ArkAlphabetIndexer.ts b/arkoala/arkui/src/ArkAlphabetIndexer.ts index 4e51e76c3..a89b75665 100644 --- a/arkoala/arkui/src/ArkAlphabetIndexer.ts +++ b/arkoala/arkui/src/ArkAlphabetIndexer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return (this.peer as ArkAlphabetIndexerPeer) } /** @memo */ - setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { + public setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { if (this.checkPriority("setAlphabetIndexerOptions")) { const options_casted = options as (AlphabetIndexerOptions) this.getPeer()?.setAlphabetIndexerOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelected(value: ((index: number) => void)): this { + public onSelected(value: ((index: number) => void)): this { if (this.checkPriority("onSelected")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({AlphabetIndexer_onSelected: value_casted}) @@ -78,7 +78,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupColor(value: ResourceColor): this { + public popupColor(value: ResourceColor): this { if (this.checkPriority("popupColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupColorAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupBackground(value: ResourceColor): this { + public popupBackground(value: ResourceColor): this { if (this.checkPriority("popupBackground")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupBackgroundAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupSelectedColor(value: ResourceColor): this { + public popupSelectedColor(value: ResourceColor): this { if (this.checkPriority("popupSelectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupSelectedColorAttribute(value_casted) @@ -132,7 +132,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupUnselectedColor(value: ResourceColor): this { + public popupUnselectedColor(value: ResourceColor): this { if (this.checkPriority("popupUnselectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupUnselectedColorAttribute(value_casted) @@ -141,7 +141,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupItemBackgroundColor(value: ResourceColor): this { + public popupItemBackgroundColor(value: ResourceColor): this { if (this.checkPriority("popupItemBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupItemBackgroundColorAttribute(value_casted) @@ -150,7 +150,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - usingPopup(value: boolean): this { + public usingPopup(value: boolean): this { if (this.checkPriority("usingPopup")) { const value_casted = value as (boolean) this.getPeer()?.usingPopupAttribute(value_casted) @@ -159,7 +159,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedFont(value: Font): this { + public selectedFont(value: Font): this { if (this.checkPriority("selectedFont")) { const value_casted = value as (Font) this.getPeer()?.selectedFontAttribute(value_casted) @@ -168,7 +168,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupFont(value: Font): this { + public popupFont(value: Font): this { if (this.checkPriority("popupFont")) { const value_casted = value as (Font) this.getPeer()?.popupFontAttribute(value_casted) @@ -177,7 +177,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupItemFont(value: Font): this { + public popupItemFont(value: Font): this { if (this.checkPriority("popupItemFont")) { const value_casted = value as (Font) this.getPeer()?.popupItemFontAttribute(value_casted) @@ -186,7 +186,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - itemSize(value: string | number): this { + public itemSize(value: string | number): this { if (this.checkPriority("itemSize")) { const value_casted = value as (string | number) this.getPeer()?.itemSizeAttribute(value_casted) @@ -195,7 +195,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -204,7 +204,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: OnAlphabetIndexerSelectCallback): this { + public onSelect(value: OnAlphabetIndexerSelectCallback): this { if (this.checkPriority("onSelect")) { const value_casted = value as (OnAlphabetIndexerSelectCallback) UseEventsProperties({AlphabetIndexer_onSelect: value_casted}) @@ -214,7 +214,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback): this { + public onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback): this { if (this.checkPriority("onRequestPopupData")) { const value_casted = value as (OnAlphabetIndexerRequestPopupDataCallback) UseEventsProperties({AlphabetIndexer_onRequestPopupData: value_casted}) @@ -224,7 +224,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback): this { + public onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback): this { if (this.checkPriority("onPopupSelect")) { const value_casted = value as (OnAlphabetIndexerPopupSelectCallback) UseEventsProperties({AlphabetIndexer_onPopupSelect: value_casted}) @@ -234,7 +234,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: number): this { + public selected(value: number): this { if (this.checkPriority("selected")) { const value_casted = value as (number) this.getPeer()?.selectedAttribute(value_casted) @@ -243,7 +243,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupPosition(value: Position): this { + public popupPosition(value: Position): this { if (this.checkPriority("popupPosition")) { const value_casted = value as (Position) this.getPeer()?.popupPositionAttribute(value_casted) @@ -252,7 +252,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoCollapse(value: boolean): this { + public autoCollapse(value: boolean): this { if (this.checkPriority("autoCollapse")) { const value_casted = value as (boolean) this.getPeer()?.autoCollapseAttribute(value_casted) @@ -261,7 +261,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupItemBorderRadius(value: number): this { + public popupItemBorderRadius(value: number): this { if (this.checkPriority("popupItemBorderRadius")) { const value_casted = value as (number) this.getPeer()?.popupItemBorderRadiusAttribute(value_casted) @@ -270,7 +270,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - itemBorderRadius(value: number): this { + public itemBorderRadius(value: number): this { if (this.checkPriority("itemBorderRadius")) { const value_casted = value as (number) this.getPeer()?.itemBorderRadiusAttribute(value_casted) @@ -279,7 +279,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupBackgroundBlurStyle(value: BlurStyle): this { + public popupBackgroundBlurStyle(value: BlurStyle): this { if (this.checkPriority("popupBackgroundBlurStyle")) { const value_casted = value as (BlurStyle) this.getPeer()?.popupBackgroundBlurStyleAttribute(value_casted) @@ -288,7 +288,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - popupTitleBackground(value: ResourceColor): this { + public popupTitleBackground(value: ResourceColor): this { if (this.checkPriority("popupTitleBackground")) { const value_casted = value as (ResourceColor) this.getPeer()?.popupTitleBackgroundAttribute(value_casted) @@ -297,7 +297,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -306,7 +306,7 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignStyle(value: IndexerAlign, offset?: Length): this { + public alignStyle(value: IndexerAlign, offset?: Length): this { if (this.checkPriority("alignStyle")) { const value_casted = value as (IndexerAlign) const offset_casted = offset as (Length | undefined) @@ -316,11 +316,11 @@ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({AlphabetIndexer___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({AlphabetIndexer__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts b/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts index 6aca3900f..f4da08a22 100644 --- a/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts +++ b/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts @@ -21,14 +21,14 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { Curve } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" -export type Callback_Extender_OnProgress = (value: number) => void; +export type Callback_Extender_OnProgress = (value: float32) => void; export type Callback_Extender_OnFinish = () => void; export interface DoubleAnimationParam { propertyName: string; - startValue: number; - endValue: number; - duration: number; - delay: number; + startValue: float32; + endValue: float32; + duration: int32; + delay: int32; curve: Curve | string | ICurve; onProgress?: Callback_Extender_OnProgress; onFinish?: Callback_Extender_OnFinish; diff --git a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts b/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts index 3d0e19519..1651af2bb 100644 --- a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts +++ b/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./ArkAnimationExtenderInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -48,48 +48,58 @@ export class AnimationExtender implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._AnimationExtender_getFinalizer() } - static SetClipRect(peer: KPointer, left: number, top: number, right: number, bottom: number): void { - const peer_casted = peer as (KPointer) - const left_casted = left as (number) - const top_casted = top as (number) - const right_casted = right as (number) - const bottom_casted = bottom as (number) - AnimationExtender.SetClipRect_serialize(peer_casted, left_casted, top_casted, right_casted, bottom_casted) + public static SetClipRect(node: KPointer, x: float32, y: float32, width: float32, height: float32): void { + const node_casted = node as (KPointer) + const x_casted = x as (float32) + const y_casted = y as (float32) + const width_casted = width as (float32) + const height_casted = height as (float32) + AnimationExtender.SetClipRect_serialize(node_casted, x_casted, y_casted, width_casted, height_casted) return } - static OpenImplicitAnimation(peer: KPointer, param: AnimateParam): void { - const peer_casted = peer as (KPointer) + public static OpenImplicitAnimation(param: AnimateParam): void { const param_casted = param as (AnimateParam) - AnimationExtender.OpenImplicitAnimation_serialize(peer_casted, param_casted) + AnimationExtender.OpenImplicitAnimation_serialize(param_casted) return } - static CloseImplicitAnimation(node: KPointer): void { - const node_casted = node as (KPointer) - AnimationExtender.CloseImplicitAnimation_serialize(node_casted) + public static CloseImplicitAnimation(): void { + AnimationExtender.CloseImplicitAnimation_serialize() return } - static StartDoubleAnimation(peer: KPointer, param: DoubleAnimationParam): void { - const peer_casted = peer as (KPointer) + public static StartDoubleAnimation(node: KPointer, param: DoubleAnimationParam): void { + const node_casted = node as (KPointer) const param_casted = param as (DoubleAnimationParam) - AnimationExtender.StartDoubleAnimation_serialize(peer_casted, param_casted) + AnimationExtender.StartDoubleAnimation_serialize(node_casted, param_casted) return } - private static SetClipRect_serialize(peer: KPointer, left: number, top: number, right: number, bottom: number): void { - ArkUIGeneratedNativeModule._AnimationExtender_SetClipRect(peer, left, top, right, bottom) + public static AnimationTranslate(node: KPointer, options: TranslateOptions): void { + const node_casted = node as (KPointer) + const options_casted = options as (TranslateOptions) + AnimationExtender.AnimationTranslate_serialize(node_casted, options_casted) + return } - private static OpenImplicitAnimation_serialize(peer: KPointer, param: AnimateParam): void { + private static SetClipRect_serialize(node: KPointer, x: float32, y: float32, width: float32, height: float32): void { + ArkUIGeneratedNativeModule._AnimationExtender_SetClipRect(node, x, y, width, height) + } + private static OpenImplicitAnimation_serialize(param: AnimateParam): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeAnimateParam(param) - ArkUIGeneratedNativeModule._AnimationExtender_OpenImplicitAnimation(peer, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AnimationExtender_OpenImplicitAnimation(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private static CloseImplicitAnimation_serialize(node: KPointer): void { - ArkUIGeneratedNativeModule._AnimationExtender_CloseImplicitAnimation(node) + private static CloseImplicitAnimation_serialize(): void { + ArkUIGeneratedNativeModule._AnimationExtender_CloseImplicitAnimation() } - private static StartDoubleAnimation_serialize(peer: KPointer, param: DoubleAnimationParam): void { + private static StartDoubleAnimation_serialize(node: KPointer, param: DoubleAnimationParam): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeDoubleAnimationParam(param) - ArkUIGeneratedNativeModule._AnimationExtender_StartDoubleAnimation(peer, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AnimationExtender_StartDoubleAnimation(node, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private static AnimationTranslate_serialize(node: KPointer, options: TranslateOptions): void { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeTranslateOptions(options) + ArkUIGeneratedNativeModule._AnimationExtender_AnimationTranslate(node, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/ArkAnimator.ts b/arkoala/arkui/src/ArkAnimator.ts index 85aee6934..902087bc5 100644 --- a/arkoala/arkui/src/ArkAnimator.ts +++ b/arkoala/arkui/src/ArkAnimator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ import { AttributeModifier } from "./handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" -import { SpringMotion, SpringProp, AnimatorAttribute } from "./ArkAnimatorInterfaces" +import { SpringMotion } from "./ArkSpringMotionMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { ClickEvent } from "./ArkClickEventMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" @@ -48,18 +48,20 @@ import { KeyEvent } from "./ArkKeyEventMaterialized" import { ICurve } from "./ArkICurveMaterialized" import { DragEvent } from "./ArkDragEventMaterialized" import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { SpringProp } from "./ArkSpringPropMaterialized" import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { AnimatorAttribute } from "./ArkAnimatorInterfaces" /** @memo:stable */ export class ArkAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkAnimatorPeer { return (this.peer as ArkAnimatorPeer) } /** @memo */ - setAnimatorOptions(value: string): this { + public setAnimatorOptions(value: string): this { if (this.checkPriority("setAnimatorOptions")) { const value_casted = value as (string) this.getPeer()?.setAnimatorOptionsAttribute(value_casted) @@ -68,7 +70,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - state(value: AnimationStatus): this { + public state(value: AnimationStatus): this { if (this.checkPriority("state")) { const value_casted = value as (AnimationStatus) this.getPeer()?.stateAttribute(value_casted) @@ -77,7 +79,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - duration(value: number): this { + public duration(value: number): this { if (this.checkPriority("duration")) { const value_casted = value as (number) this.getPeer()?.durationAttribute(value_casted) @@ -86,7 +88,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - curve(value: Curve): this { + public curve(value: Curve): this { if (this.checkPriority("curve")) { const value_casted = value as (Curve) this.getPeer()?.curveAttribute(value_casted) @@ -95,7 +97,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - delay(value: number): this { + public delay(value: number): this { if (this.checkPriority("delay")) { const value_casted = value as (number) this.getPeer()?.delayAttribute(value_casted) @@ -104,7 +106,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillMode(value: FillMode): this { + public fillMode(value: FillMode): this { if (this.checkPriority("fillMode")) { const value_casted = value as (FillMode) this.getPeer()?.fillModeAttribute(value_casted) @@ -113,7 +115,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - iterations(value: number): this { + public iterations(value: number): this { if (this.checkPriority("iterations")) { const value_casted = value as (number) this.getPeer()?.iterationsAttribute(value_casted) @@ -122,7 +124,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - playMode(value: PlayMode): this { + public playMode(value: PlayMode): this { if (this.checkPriority("playMode")) { const value_casted = value as (PlayMode) this.getPeer()?.playModeAttribute(value_casted) @@ -131,7 +133,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - motion(value: SpringMotion): this { + public motion(value: SpringMotion): this { if (this.checkPriority("motion")) { const value_casted = value as (SpringMotion) this.getPeer()?.motionAttribute(value_casted) @@ -140,7 +142,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) UseEventsProperties({Animator_onStart: value_casted}) @@ -150,7 +152,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPause(value: (() => void)): this { + public onPause(value: (() => void)): this { if (this.checkPriority("onPause")) { const value_casted = value as ((() => void)) UseEventsProperties({Animator_onPause: value_casted}) @@ -160,7 +162,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRepeat(value: (() => void)): this { + public onRepeat(value: (() => void)): this { if (this.checkPriority("onRepeat")) { const value_casted = value as ((() => void)) UseEventsProperties({Animator_onRepeat: value_casted}) @@ -170,7 +172,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCancel(value: (() => void)): this { + public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) UseEventsProperties({Animator_onCancel: value_casted}) @@ -180,7 +182,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) UseEventsProperties({Animator_onFinish: value_casted}) @@ -190,7 +192,7 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFrame(value: ((index: number) => void)): this { + public onFrame(value: ((index: number) => void)): this { if (this.checkPriority("onFrame")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Animator_onFrame: value_casted}) diff --git a/arkoala/arkui/src/ArkAnimatorInterfaces.ts b/arkoala/arkui/src/ArkAnimatorInterfaces.ts index 47c1b598f..3638ded1c 100644 --- a/arkoala/arkui/src/ArkAnimatorInterfaces.ts +++ b/arkoala/arkui/src/ArkAnimatorInterfaces.ts @@ -33,6 +33,7 @@ import { AttributeModifier } from "./handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { SpringMotion } from "./ArkSpringMotionMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { ClickEvent } from "./ArkClickEventMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" @@ -42,19 +43,12 @@ import { KeyEvent } from "./ArkKeyEventMaterialized" import { ICurve } from "./ArkICurveMaterialized" import { DragEvent } from "./ArkDragEventMaterialized" import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { SpringProp } from "./ArkSpringPropMaterialized" import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" -export interface SpringProp { -} -export interface SpringMotion { -} -export interface FrictionMotion { -} -export interface ScrollMotion { -} export type AnimatorInterface = (value: string) => AnimatorAttribute; export interface AnimatorAttribute extends CommonMethod { state: AnimationStatus; diff --git a/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts b/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts new file mode 100644 index 000000000..4514a4513 --- /dev/null +++ b/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts @@ -0,0 +1,83 @@ +/* + * 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 { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 AppearSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope { + return this.getScope() + } + set scope(scope: EffectScope) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + static ctor(scope?: EffectScope): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let scope_type: int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = scope! + thisSerializer.writeInt32(scope_value) + } + const retval = ArkUIGeneratedNativeModule._AppearSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope) { + const ctorPtr: KPointer = AppearSymbolEffect.ctor(scope) + this.peer = new Finalizable(ctorPtr, AppearSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._AppearSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this?.setScope_serialize(scope_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._AppearSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + 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/ArkBackgroundColorStyleMaterialized.ts b/arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts new file mode 100644 index 000000000..54979c6cc --- /dev/null +++ b/arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts @@ -0,0 +1,62 @@ +/* + * 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 { 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 { 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 BackgroundColorStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get textBackgroundStyle(): TextBackgroundStyle { + throw new Error("Not implemented") + } + static ctor(textBackgroundStyle: TextBackgroundStyle): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeTextBackgroundStyle(textBackgroundStyle) + const retval = ArkUIGeneratedNativeModule._BackgroundColorStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(textBackgroundStyle?: TextBackgroundStyle) { + if (((textBackgroundStyle) !== (undefined))) + { + const ctorPtr: KPointer = BackgroundColorStyle.ctor(textBackgroundStyle) + this.peer = new Finalizable(ctorPtr, BackgroundColorStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkBadge.ts index a9526ef99..c22d14139 100644 --- a/arkoala/arkui/src/ArkBadge.ts +++ b/arkoala/arkui/src/ArkBadge.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkBadgeComponent extends ArkCommonMethodComponent { return (this.peer as ArkBadgePeer) } /** @memo */ - setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { + public setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { if (this.checkPriority("setBadgeOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("count")))))) { diff --git a/arkoala/arkui/src/ArkBaseEventMaterialized.ts b/arkoala/arkui/src/ArkBaseEventMaterialized.ts index 12644d0d6..ba0a67b32 100644 --- a/arkoala/arkui/src/ArkBaseEventMaterialized.ts +++ b/arkoala/arkui/src/ArkBaseEventMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -119,7 +119,7 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._BaseEvent_getFinalizer() } - getModifierKeyState(keys: Array): boolean { + public getModifierKeyState(keys: Array): boolean { const keys_casted = keys as (Array) return this.getModifierKeyState_serialize(keys_casted) } diff --git a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts b/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts index 1904c1d2c..7c3ac210c 100644 --- a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts b/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts new file mode 100644 index 000000000..05b45b840 --- /dev/null +++ b/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts @@ -0,0 +1,70 @@ +/* + * 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 { 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 { 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 BaselineOffsetStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get baselineOffset(): number { + return this.getBaselineOffset() + } + static ctor(value: LengthMetrics): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeLengthMetrics(value) + const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: LengthMetrics) { + if (((value) !== (undefined))) + { + const ctorPtr: KPointer = BaselineOffsetStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, BaselineOffsetStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._BaselineOffsetStyle_getFinalizer() + } + private getBaselineOffset(): number { + return this.getBaselineOffset_serialize() + } + private getBaselineOffset_serialize(): number { + const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_getBaselineOffset(this.peer!.ptr) + 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/ArkBlank.ts index f19ea85d7..e0a1446e2 100644 --- a/arkoala/arkui/src/ArkBlank.ts +++ b/arkoala/arkui/src/ArkBlank.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkBlankComponent extends ArkCommonMethodComponent { return (this.peer as ArkBlankPeer) } /** @memo */ - setBlankOptions(min?: number | string): this { + public setBlankOptions(min?: number | string): this { if (this.checkPriority("setBlankOptions")) { const min_casted = min as (number | string | undefined) this.getPeer()?.setBlankOptionsAttribute(min_casted) @@ -67,7 +67,7 @@ export class ArkBlankComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts b/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts new file mode 100644 index 000000000..382c01b39 --- /dev/null +++ b/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts @@ -0,0 +1,112 @@ +/* + * 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 { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 BounceSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope { + return this.getScope() + } + set scope(scope: EffectScope) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + get direction(): EffectDirection { + return this.getDirection() + } + set direction(direction: EffectDirection) { + const direction_NonNull = (direction as EffectDirection) + this.setDirection(direction_NonNull) + } + static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let scope_type: int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = scope! + thisSerializer.writeInt32(scope_value) + } + let direction_type: int32 = RuntimeType.UNDEFINED + direction_type = runtimeType(direction) + thisSerializer.writeInt8(direction_type) + if ((RuntimeType.UNDEFINED) != (direction_type)) { + const direction_value = direction! + thisSerializer.writeInt32(direction_value) + } + const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope, direction?: EffectDirection) { + const ctorPtr: KPointer = BounceSymbolEffect.ctor(scope, direction) + this.peer = new Finalizable(ctorPtr, BounceSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._BounceSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this?.setScope_serialize(scope_casted) + return + } + private getDirection(): EffectDirection { + return this.getDirection_serialize() + } + private setDirection(direction: EffectDirection): void { + const direction_casted = direction as (EffectDirection) + this?.setDirection_serialize(direction_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + ArkUIGeneratedNativeModule._BounceSymbolEffect_setScope(this.peer!.ptr, scope) + } + private getDirection_serialize(): EffectDirection { + const retval = ArkUIGeneratedNativeModule._BounceSymbolEffect_getDirection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setDirection_serialize(direction: EffectDirection): void { + 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/ArkButton.ts index 1e5a06421..3aedec305 100644 --- a/arkoala/arkui/src/ArkButton.ts +++ b/arkoala/arkui/src/ArkButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return (this.peer as ArkButtonPeer) } /** @memo */ - setButtonOptions(label?: ButtonOptions | ResourceStr, options?: ButtonOptions): this { + public setButtonOptions(label?: ButtonOptions | ResourceStr, options?: ButtonOptions): this { if (this.checkPriority("setButtonOptions")) { const label_type = runtimeType(label) const options_type = runtimeType(options) @@ -82,7 +82,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: ButtonType): this { + public type(value: ButtonType): this { if (this.checkPriority("type")) { const value_casted = value as (ButtonType) this.getPeer()?.typeAttribute(value_casted) @@ -91,7 +91,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stateEffect(value: boolean): this { + public stateEffect(value: boolean): this { if (this.checkPriority("stateEffect")) { const value_casted = value as (boolean) this.getPeer()?.stateEffectAttribute(value_casted) @@ -100,7 +100,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - buttonStyle(value: ButtonStyleMode): this { + public buttonStyle(value: ButtonStyleMode): this { if (this.checkPriority("buttonStyle")) { const value_casted = value as (ButtonStyleMode) this.getPeer()?.buttonStyleAttribute(value_casted) @@ -109,7 +109,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controlSize(value: ControlSize): this { + public controlSize(value: ControlSize): this { if (this.checkPriority("controlSize")) { const value_casted = value as (ControlSize) this.getPeer()?.controlSizeAttribute(value_casted) @@ -118,7 +118,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - role(value: ButtonRole): this { + public role(value: ButtonRole): this { if (this.checkPriority("role")) { const value_casted = value as (ButtonRole) this.getPeer()?.roleAttribute(value_casted) @@ -127,7 +127,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -136,7 +136,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -145,7 +145,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -154,7 +154,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -163,7 +163,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -172,7 +172,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -181,7 +181,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ - labelStyle(value: LabelStyle): this { + public labelStyle(value: LabelStyle): this { if (this.checkPriority("labelStyle")) { const value_casted = value as (LabelStyle) this.getPeer()?.labelStyleAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkCalendar.ts b/arkoala/arkui/src/ArkCalendar.ts index 005d53b61..e471793d9 100644 --- a/arkoala/arkui/src/ArkCalendar.ts +++ b/arkoala/arkui/src/ArkCalendar.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -33,7 +33,7 @@ export class ArkCalendarComponent extends ComponentBase { return (this.peer as ArkCalendarPeer) } /** @memo */ - setCalendarOptions(value: { date: { year: number, month: number, day: number }, currentData: MonthData, preData: MonthData, nextData: MonthData, controller?: CalendarController }): this { + public setCalendarOptions(value: { date: { year: number, month: number, day: number }, currentData: MonthData, preData: MonthData, nextData: MonthData, controller?: CalendarController }): this { if (this.checkPriority("setCalendarOptions")) { const value_casted = value as ({ date: { year: number, month: number, day: number }, currentData: MonthData, preData: MonthData, nextData: MonthData, controller?: CalendarController }) this.getPeer()?.setCalendarOptionsAttribute(value_casted) @@ -42,7 +42,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - showLunar(value: boolean): this { + public showLunar(value: boolean): this { if (this.checkPriority("showLunar")) { const value_casted = value as (boolean) this.getPeer()?.showLunarAttribute(value_casted) @@ -51,7 +51,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - showHoliday(value: boolean): this { + public showHoliday(value: boolean): this { if (this.checkPriority("showHoliday")) { const value_casted = value as (boolean) this.getPeer()?.showHolidayAttribute(value_casted) @@ -60,7 +60,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - needSlide(value: boolean): this { + public needSlide(value: boolean): this { if (this.checkPriority("needSlide")) { const value_casted = value as (boolean) this.getPeer()?.needSlideAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - startOfWeek(value: number): this { + public startOfWeek(value: number): this { if (this.checkPriority("startOfWeek")) { const value_casted = value as (number) this.getPeer()?.startOfWeekAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - offDays(value: number): this { + public offDays(value: number): this { if (this.checkPriority("offDays")) { const value_casted = value as (number) this.getPeer()?.offDaysAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - direction(value: Axis): this { + public direction(value: Axis): this { if (this.checkPriority("direction")) { const value_casted = value as (Axis) this.getPeer()?.directionAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - currentDayStyle(value: CurrentDayStyle): this { + public currentDayStyle(value: CurrentDayStyle): this { if (this.checkPriority("currentDayStyle")) { const value_casted = value as (CurrentDayStyle) this.getPeer()?.currentDayStyleAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - nonCurrentDayStyle(value: NonCurrentDayStyle): this { + public nonCurrentDayStyle(value: NonCurrentDayStyle): this { if (this.checkPriority("nonCurrentDayStyle")) { const value_casted = value as (NonCurrentDayStyle) this.getPeer()?.nonCurrentDayStyleAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - todayStyle(value: TodayStyle): this { + public todayStyle(value: TodayStyle): this { if (this.checkPriority("todayStyle")) { const value_casted = value as (TodayStyle) this.getPeer()?.todayStyleAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - weekStyle(value: WeekStyle): this { + public weekStyle(value: WeekStyle): this { if (this.checkPriority("weekStyle")) { const value_casted = value as (WeekStyle) this.getPeer()?.weekStyleAttribute(value_casted) @@ -132,7 +132,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - workStateStyle(value: WorkStateStyle): this { + public workStateStyle(value: WorkStateStyle): this { if (this.checkPriority("workStateStyle")) { const value_casted = value as (WorkStateStyle) this.getPeer()?.workStateStyleAttribute(value_casted) @@ -141,7 +141,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - onSelectChange(value: ((event: CalendarSelectedDate) => void)): this { + public onSelectChange(value: ((event: CalendarSelectedDate) => void)): this { if (this.checkPriority("onSelectChange")) { const value_casted = value as (((event: CalendarSelectedDate) => void)) UseEventsProperties({Calendar_onSelectChange: value_casted}) @@ -151,7 +151,7 @@ export class ArkCalendarComponent extends ComponentBase { return this } /** @memo */ - onRequestData(value: ((event: CalendarRequestedData) => void)): this { + public onRequestData(value: ((event: CalendarRequestedData) => void)): this { if (this.checkPriority("onRequestData")) { const value_casted = value as (((event: CalendarRequestedData) => void)) UseEventsProperties({Calendar_onRequestData: value_casted}) diff --git a/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts b/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts index 9636bdd2a..21fde01f6 100644 --- a/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,10 +41,10 @@ export class CalendarController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CalendarController_getFinalizer() } - backToToday(): undefined { + public backToToday(): undefined { return this.backToToday_serialize() } - goTo(value: { year: number, month: number, day: number }): undefined { + public goTo(value: { year: number, month: number, day: number }): undefined { const value_casted = value as ({ year: number, month: number, day: number }) return this.goTo_serialize(value_casted) } diff --git a/arkoala/arkui/src/ArkCalendarPicker.ts b/arkoala/arkui/src/ArkCalendarPicker.ts index c13aa87a2..71e5a491f 100644 --- a/arkoala/arkui/src/ArkCalendarPicker.ts +++ b/arkoala/arkui/src/ArkCalendarPicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkCalendarPickerPeer) } /** @memo */ - setCalendarPickerOptions(options?: CalendarOptions): this { + public setCalendarPickerOptions(options?: CalendarOptions): this { if (this.checkPriority("setCalendarPickerOptions")) { const options_casted = options as (CalendarOptions | undefined) this.getPeer()?.setCalendarPickerOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: Date) => void)): this { + public onChange(value: ((parameter: Date) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: Date) => void)) UseEventsProperties({CalendarPicker_onChange: value_casted}) @@ -87,7 +87,7 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - edgeAlign(alignType: CalendarAlign, offset?: Offset): this { + public edgeAlign(alignType: CalendarAlign, offset?: Offset): this { if (this.checkPriority("edgeAlign")) { const alignType_casted = alignType as (CalendarAlign) const offset_casted = offset as (Offset | undefined) diff --git a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts b/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts index 6759e98f2..68be03512 100644 --- a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -50,7 +50,7 @@ export class CalendarPickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CalendarPickerDialog_getFinalizer() } - static show(options?: CalendarDialogOptions): void { + public static show(options?: CalendarDialogOptions): void { const options_casted = options as (CalendarDialogOptions | undefined) CalendarPickerDialog.show_serialize(options_casted) return diff --git a/arkoala/arkui/src/ArkCanvas.ts b/arkoala/arkui/src/ArkCanvas.ts index 3b6d15357..568768a36 100644 --- a/arkoala/arkui/src/ArkCanvas.ts +++ b/arkoala/arkui/src/ArkCanvas.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -54,7 +54,7 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" -import { CanvasAttribute, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings, Size } from "./ArkCanvasInterfaces" +import { CanvasAttribute, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics, Size } from "./ArkCanvasInterfaces" import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { CanvasRenderer } from "./ArkCanvasRendererMaterialized" import { CanvasPath } from "./ArkCanvasPathMaterialized" @@ -62,8 +62,10 @@ import { CanvasGradient } from "./ArkCanvasGradientMaterialized" import { CanvasPattern } from "./ArkCanvasPatternMaterialized" import { ImageBitmap } from "./ArkImageBitmapMaterialized" import { Path2D } from "./ArkPath2DMaterialized" +import { ImageData } from "./ArkImageDataMaterialized" import { Matrix2D } from "./ArkMatrix2DMaterialized" import { FrameNode } from "./ArkFrameNodeMaterialized" +import { RenderingContextSettings } from "./ArkRenderingContextSettingsMaterialized" import { DrawingCanvas } from "./ArkDrawingCanvasMaterialized" import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" /** @memo:stable */ @@ -72,7 +74,7 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { return (this.peer as ArkCanvasPeer) } /** @memo */ - setCanvasOptions(context?: CanvasRenderingContext2D | DrawingRenderingContext | CanvasRenderingContext2D | DrawingRenderingContext | undefined, imageAIOptions?: ImageAIOptions): this { + public setCanvasOptions(context?: CanvasRenderingContext2D | DrawingRenderingContext | CanvasRenderingContext2D | DrawingRenderingContext | undefined, imageAIOptions?: ImageAIOptions): this { if (this.checkPriority("setCanvasOptions")) { const context_type = runtimeType(context) const imageAIOptions_type = runtimeType(imageAIOptions) @@ -92,7 +94,7 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: VoidCallback): this { + public onReady(value: VoidCallback): this { if (this.checkPriority("onReady")) { const value_casted = value as (VoidCallback) UseEventsProperties({Canvas_onReady: value_casted}) @@ -102,7 +104,7 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts b/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts index e0af635c4..6db4502d6 100644 --- a/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class CanvasGradient implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasGradient_getFinalizer() } - addColorStop(offset: number, color: string): void { + public addColorStop(offset: number, color: string): void { const offset_casted = offset as (number) const color_casted = color as (string) this?.addColorStop_serialize(offset_casted, color_casted) diff --git a/arkoala/arkui/src/ArkCanvasInterfaces.ts b/arkoala/arkui/src/ArkCanvasInterfaces.ts index 604dab895..91e65b587 100644 --- a/arkoala/arkui/src/ArkCanvasInterfaces.ts +++ b/arkoala/arkui/src/ArkCanvasInterfaces.ts @@ -19,7 +19,6 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { LengthMetricsUnit, 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, VoidCallback, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" @@ -30,8 +29,11 @@ import { CanvasPattern } from "./ArkCanvasPatternMaterialized" import { ImageBitmap } from "./ArkImageBitmapMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { Path2D } from "./ArkPath2DMaterialized" +import { ImageData } from "./ArkImageDataMaterialized" import { Matrix2D } from "./ArkMatrix2DMaterialized" import { FrameNode } from "./ArkFrameNodeMaterialized" +import { RenderingContextSettings } from "./ArkRenderingContextSettingsMaterialized" +import { LengthMetricsUnit, 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, VoidCallback, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawingCanvas } from "./ArkDrawingCanvasMaterialized" 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" import { DrawModifier } from "./ArkDrawModifierMaterialized" @@ -82,14 +84,6 @@ export interface TextMetrics { width: number; height: number; } -export interface ImageData { - data: ArrayBuffer; - height: number; - width: number; -} -export interface RenderingContextSettings { - antialias?: boolean; -} export interface Size { width: number; height: number; diff --git a/arkoala/arkui/src/ArkCanvasPathMaterialized.ts b/arkoala/arkui/src/ArkCanvasPathMaterialized.ts index 4cd2812b5..ade5e15e3 100644 --- a/arkoala/arkui/src/ArkCanvasPathMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasPathMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class CanvasPath implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasPath_getFinalizer() } - arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { + public arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { const x_casted = x as (number) const y_casted = y as (number) const radius_casted = radius as (number) @@ -51,7 +51,7 @@ export class CanvasPath implements MaterializedBase { this?.arc_serialize(x_casted, y_casted, radius_casted, startAngle_casted, endAngle_casted, counterclockwise_casted) return } - arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void { + public arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void { const x1_casted = x1 as (number) const y1_casted = y1 as (number) const x2_casted = x2 as (number) @@ -60,7 +60,7 @@ export class CanvasPath implements MaterializedBase { this?.arcTo_serialize(x1_casted, y1_casted, x2_casted, y2_casted, radius_casted) return } - bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void { + public bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void { const cp1x_casted = cp1x as (number) const cp1y_casted = cp1y as (number) const cp2x_casted = cp2x as (number) @@ -70,11 +70,11 @@ export class CanvasPath implements MaterializedBase { this?.bezierCurveTo_serialize(cp1x_casted, cp1y_casted, cp2x_casted, cp2y_casted, x_casted, y_casted) return } - closePath(): void { + public closePath(): void { this?.closePath_serialize() return } - ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { + public ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { const x_casted = x as (number) const y_casted = y as (number) const radiusX_casted = radiusX as (number) @@ -86,19 +86,19 @@ export class CanvasPath implements MaterializedBase { this?.ellipse_serialize(x_casted, y_casted, radiusX_casted, radiusY_casted, rotation_casted, startAngle_casted, endAngle_casted, counterclockwise_casted) return } - lineTo(x: number, y: number): void { + public lineTo(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this?.lineTo_serialize(x_casted, y_casted) return } - moveTo(x: number, y: number): void { + public moveTo(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this?.moveTo_serialize(x_casted, y_casted) return } - quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void { + public quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void { const cpx_casted = cpx as (number) const cpy_casted = cpy as (number) const x_casted = x as (number) @@ -106,7 +106,7 @@ export class CanvasPath implements MaterializedBase { this?.quadraticCurveTo_serialize(cpx_casted, cpy_casted, x_casted, y_casted) return } - rect(x: number, y: number, w: number, h: number): void { + public rect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) diff --git a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts b/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts index e44dc7404..8c847a623 100644 --- a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -46,7 +46,7 @@ export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasPattern_getFinalizer() } - setTransform(transform?: Matrix2D): void { + public setTransform(transform?: Matrix2D): void { const transform_casted = transform as (Matrix2D | undefined) this?.setTransform_serialize(transform_casted) return diff --git a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts b/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts index 8aff75d7d..4a4a085fd 100644 --- a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts @@ -19,10 +19,11 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" -import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics } from "./ArkCanvasInterfaces" +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 { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" @@ -30,7 +31,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -171,7 +172,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderer_getFinalizer() } - drawImage(image: ImageBitmap | PixelMap, sx: number, sy: number, sw?: number, sh?: number, dx?: number, dy?: number, dw?: number, dh?: number): void { + public drawImage(image: ImageBitmap | PixelMap, sx: number, sy: number, sw?: number, sh?: number, dx?: number, dy?: number, dw?: number, dh?: number): void { const image_type = runtimeType(image) const sx_type = runtimeType(sx) const sy_type = runtimeType(sy) @@ -212,11 +213,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - beginPath(): void { + public beginPath(): void { this?.beginPath_serialize() return } - clip(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { + 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)))) { @@ -232,7 +233,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - fill(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { + 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)))) { @@ -248,7 +249,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - stroke(path?: Path2D): void { + public stroke(path?: Path2D): void { const path_type = runtimeType(path) if ((((RuntimeType.UNDEFINED == path_type)))) { this?.stroke0_serialize() @@ -261,19 +262,19 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient { + public createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient { const x0_casted = x0 as (number) const y0_casted = y0 as (number) const x1_casted = x1 as (number) const y1_casted = y1 as (number) return this.createLinearGradient_serialize(x0_casted, y0_casted, x1_casted, y1_casted) } - createPattern(image: ImageBitmap, repetition?: string): CanvasPattern | undefined { + public createPattern(image: ImageBitmap, repetition?: string): CanvasPattern | undefined { const image_casted = image as (ImageBitmap) const repetition_casted = repetition as (string | undefined) return this.createPattern_serialize(image_casted, repetition_casted) } - createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient { + public createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient { const x0_casted = x0 as (number) const y0_casted = y0 as (number) const r0_casted = r0 as (number) @@ -282,13 +283,13 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const r1_casted = r1 as (number) return this.createRadialGradient_serialize(x0_casted, y0_casted, r0_casted, x1_casted, y1_casted, r1_casted) } - createConicGradient(startAngle: number, x: number, y: number): CanvasGradient { + public createConicGradient(startAngle: number, x: number, y: number): CanvasGradient { const startAngle_casted = startAngle as (number) const x_casted = x as (number) const y_casted = y as (number) return this.createConicGradient_serialize(startAngle_casted, x_casted, y_casted) } - createImageData(sw: ImageData | number, sh?: number): ImageData { + 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)))) { @@ -302,21 +303,21 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - getImageData(sx: number, sy: number, sw: number, sh: number): ImageData { + public getImageData(sx: number, sy: number, sw: number, sh: number): ImageData { const sx_casted = sx as (number) const sy_casted = sy as (number) const sw_casted = sw as (number) const sh_casted = sh as (number) return this.getImageData_serialize(sx_casted, sy_casted, sw_casted, sh_casted) } - getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap { + public getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap { const sx_casted = sx as (number) const sy_casted = sy as (number) const sw_casted = sw as (number) const sh_casted = sh as (number) return this.getPixelMap_serialize(sx_casted, sy_casted, sw_casted, sh_casted) } - putImageData(imagedata: ImageData, dx: number | string, dy: number | string, dirtyX?: number | string, dirtyY?: number | string, dirtyWidth?: number | string, dirtyHeight?: number | string): void { + public putImageData(imagedata: ImageData, dx: number | string, dy: number | string, dirtyX?: number | string, dirtyY?: number | string, dirtyWidth?: number | string, dirtyHeight?: number | string): void { const imagedata_type = runtimeType(imagedata) const dx_type = runtimeType(dx) const dy_type = runtimeType(dy) @@ -344,15 +345,15 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - getLineDash(): Array { + public getLineDash(): Array { return this.getLineDash_serialize() } - setLineDash(segments: Array): void { + public setLineDash(segments: Array): void { const segments_casted = segments as (Array) this?.setLineDash_serialize(segments_casted) return } - clearRect(x: number, y: number, w: number, h: number): void { + public clearRect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) @@ -360,7 +361,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.clearRect_serialize(x_casted, y_casted, w_casted, h_casted) return } - fillRect(x: number, y: number, w: number, h: number): void { + public fillRect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) @@ -368,7 +369,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.fillRect_serialize(x_casted, y_casted, w_casted, h_casted) return } - strokeRect(x: number, y: number, w: number, h: number): void { + public strokeRect(x: number, y: number, w: number, h: number): void { const x_casted = x as (number) const y_casted = y as (number) const w_casted = w as (number) @@ -376,15 +377,15 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.strokeRect_serialize(x_casted, y_casted, w_casted, h_casted) return } - restore(): void { + public restore(): void { this?.restore_serialize() return } - save(): void { + public save(): void { this?.save_serialize() return } - fillText(text: string, x: number, y: number, maxWidth?: number): void { + public fillText(text: string, x: number, y: number, maxWidth?: number): void { const text_casted = text as (string) const x_casted = x as (number) const y_casted = y as (number) @@ -392,11 +393,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.fillText_serialize(text_casted, x_casted, y_casted, maxWidth_casted) return } - measureText(text: string): TextMetrics { + public measureText(text: string): TextMetrics { const text_casted = text as (string) return this.measureText_serialize(text_casted) } - strokeText(text: string, x: number, y: number, maxWidth?: number): void { + public strokeText(text: string, x: number, y: number, maxWidth?: number): void { const text_casted = text as (string) const x_casted = x as (number) const y_casted = y as (number) @@ -404,25 +405,25 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.strokeText_serialize(text_casted, x_casted, y_casted, maxWidth_casted) return } - getTransform(): Matrix2D { + public getTransform(): Matrix2D { return this.getTransform_serialize() } - resetTransform(): void { + public resetTransform(): void { this?.resetTransform_serialize() return } - rotate(angle: number): void { + public rotate(angle: number): void { const angle_casted = angle as (number) this?.rotate_serialize(angle_casted) return } - scale(x: number, y: number): void { + public scale(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this?.scale_serialize(x_casted, y_casted) return } - setTransform(a?: Matrix2D | undefined | number, b?: number, c?: number, d?: number, e?: number, f?: number): void { + public setTransform(a?: Matrix2D | undefined | number, b?: number, c?: number, d?: number, e?: number, f?: number): void { const a_type = runtimeType(a) const b_type = runtimeType(b) const c_type = runtimeType(c) @@ -446,7 +447,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - transform(a: number, b: number, c: number, d: number, e: number, f: number): void { + public transform(a: number, b: number, c: number, d: number, e: number, f: number): void { const a_casted = a as (number) const b_casted = b as (number) const c_casted = c as (number) @@ -456,31 +457,31 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.transform_serialize(a_casted, b_casted, c_casted, d_casted, e_casted, f_casted) return } - translate(x: number, y: number): void { + public translate(x: number, y: number): void { const x_casted = x as (number) const y_casted = y as (number) this?.translate_serialize(x_casted, y_casted) return } - setPixelMap(value?: PixelMap): void { + public setPixelMap(value?: PixelMap): void { const value_casted = value as (PixelMap | undefined) this?.setPixelMap_serialize(value_casted) return } - transferFromImageBitmap(bitmap: ImageBitmap): void { + public transferFromImageBitmap(bitmap: ImageBitmap): void { const bitmap_casted = bitmap as (ImageBitmap) this?.transferFromImageBitmap_serialize(bitmap_casted) return } - saveLayer(): void { + public saveLayer(): void { this?.saveLayer_serialize() return } - restoreLayer(): void { + public restoreLayer(): void { this?.restoreLayer_serialize() return } - reset(): void { + public reset(): void { this?.reset_serialize() return } diff --git a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts index c600e4efc..66d72c511 100644 --- a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts @@ -20,12 +20,14 @@ import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMater import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" -import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings } from "./ArkCanvasInterfaces" +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, Position, Length } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { UIContext } from "./ArkCommonInterfaces" @@ -34,7 +36,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -73,35 +75,35 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderingContext2D_getFinalizer() } - toDataURL(type?: string, quality?: number): string { + public toDataURL(type?: string, quality?: number): string { const type_casted = type as (string | undefined) const quality_casted = quality as (number | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } - startImageAnalyzer(config: ImageAnalyzerConfig): Promise { + public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { const config_casted = config as (ImageAnalyzerConfig) return this.startImageAnalyzer_serialize(config_casted) } - stopImageAnalyzer(): void { + public stopImageAnalyzer(): void { this?.stopImageAnalyzer_serialize() return } - onOnAttach(callback_: (() => void)): void { + public onOnAttach(callback_: (() => void)): void { const callback__casted = callback_ as ((() => void)) this?.onOnAttach_serialize(callback__casted) return } - offOnAttach(callback_?: (() => void)): void { + public offOnAttach(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this?.offOnAttach_serialize(callback__casted) return } - onOnDetach(callback_: (() => void)): void { + public onOnDetach(callback_: (() => void)): void { const callback__casted = callback_ as ((() => void)) this?.onOnDetach_serialize(callback__casted) return } - offOnDetach(callback_?: (() => void)): void { + public offOnDetach(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this?.offOnDetach_serialize(callback__casted) return diff --git a/arkoala/arkui/src/ArkCheckbox.ts b/arkoala/arkui/src/ArkCheckbox.ts index 23efb3d21..971329daa 100644 --- a/arkoala/arkui/src/ArkCheckbox.ts +++ b/arkoala/arkui/src/ArkCheckbox.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return (this.peer as ArkCheckboxPeer) } /** @memo */ - setCheckboxOptions(options?: CheckboxOptions): this { + public setCheckboxOptions(options?: CheckboxOptions): this { if (this.checkPriority("setCheckboxOptions")) { const options_casted = options as (CheckboxOptions | undefined) this.getPeer()?.setCheckboxOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - select(value: boolean): this { + public select(value: boolean): this { if (this.checkPriority("select")) { const value_casted = value as (boolean) this.getPeer()?.selectAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shape(value: CheckBoxShape): this { + public shape(value: CheckBoxShape): this { if (this.checkPriority("shape")) { const value_casted = value as (CheckBoxShape) this.getPeer()?.shapeAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - unselectedColor(value: ResourceColor): this { + public unselectedColor(value: ResourceColor): this { if (this.checkPriority("unselectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.unselectedColorAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mark(value: MarkStyle): this { + public mark(value: MarkStyle): this { if (this.checkPriority("mark")) { const value_casted = value as (MarkStyle) this.getPeer()?.markAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: OnCheckboxChangeCallback): this { + public onChange(value: OnCheckboxChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnCheckboxChangeCallback) UseEventsProperties({Checkbox_onChange: value_casted}) @@ -123,7 +123,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -132,11 +132,11 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_select(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_select")) { + public _onChangeEvent_select(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_select")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Checkbox___onChangeEvent_select: callback_casted}) - this.getPeer()?.__onChangeEvent_selectAttribute(callback_casted) + UseEventsProperties({Checkbox__onChangeEvent_select: callback_casted}) + this.getPeer()?._onChangeEvent_selectAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkCheckboxgroup.ts b/arkoala/arkui/src/ArkCheckboxgroup.ts index b185b1311..df435783b 100644 --- a/arkoala/arkui/src/ArkCheckboxgroup.ts +++ b/arkoala/arkui/src/ArkCheckboxgroup.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return (this.peer as ArkCheckboxGroupPeer) } /** @memo */ - setCheckboxGroupOptions(options?: CheckboxGroupOptions): this { + public setCheckboxGroupOptions(options?: CheckboxGroupOptions): this { if (this.checkPriority("setCheckboxGroupOptions")) { const options_casted = options as (CheckboxGroupOptions | undefined) this.getPeer()?.setCheckboxGroupOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectAll(value: boolean): this { + public selectAll(value: boolean): this { if (this.checkPriority("selectAll")) { const value_casted = value as (boolean) this.getPeer()?.selectAllAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - unselectedColor(value: ResourceColor): this { + public unselectedColor(value: ResourceColor): this { if (this.checkPriority("unselectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.unselectedColorAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mark(value: MarkStyle): this { + public mark(value: MarkStyle): this { if (this.checkPriority("mark")) { const value_casted = value as (MarkStyle) this.getPeer()?.markAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: OnCheckboxGroupChangeCallback): this { + public onChange(value: OnCheckboxGroupChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnCheckboxGroupChangeCallback) UseEventsProperties({CheckboxGroup_onChange: value_casted}) @@ -114,7 +114,7 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - checkboxShape(value: CheckBoxShape): this { + public checkboxShape(value: CheckBoxShape): this { if (this.checkPriority("checkboxShape")) { const value_casted = value as (CheckBoxShape) this.getPeer()?.checkboxShapeAttribute(value_casted) @@ -123,11 +123,11 @@ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selectAll(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selectAll")) { + public _onChangeEvent_selectAll(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selectAll")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({CheckboxGroup___onChangeEvent_selectAll: callback_casted}) - this.getPeer()?.__onChangeEvent_selectAllAttribute(callback_casted) + UseEventsProperties({CheckboxGroup__onChangeEvent_selectAll: callback_casted}) + this.getPeer()?._onChangeEvent_selectAllAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts b/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts index 454142883..bb3e70a43 100644 --- a/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -50,14 +50,14 @@ export class ChildrenMainSize implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ChildrenMainSize_getFinalizer() } - splice(start: number, deleteCount?: number, childrenSize?: Array): void { + public splice(start: number, deleteCount?: number, childrenSize?: Array): void { const start_casted = start as (number) const deleteCount_casted = deleteCount as (number | undefined) const childrenSize_casted = childrenSize as (Array | undefined) this?.splice_serialize(start_casted, deleteCount_casted, childrenSize_casted) return } - update(index: number, childSize: number): void { + public update(index: number, childSize: number): void { const index_casted = index as (number) const childSize_casted = childSize as (number) this?.update_serialize(index_casted, childSize_casted) diff --git a/arkoala/arkui/src/ArkCircle.ts b/arkoala/arkui/src/ArkCircle.ts index a51d444c8..750dcc522 100644 --- a/arkoala/arkui/src/ArkCircle.ts +++ b/arkoala/arkui/src/ArkCircle.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkCircleComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkCirclePeer) } /** @memo */ - setCircleOptions(value?: CircleOptions): this { + public setCircleOptions(value?: CircleOptions): this { if (this.checkPriority("setCircleOptions")) { const value_casted = value as (CircleOptions | undefined) this.getPeer()?.setCircleOptionsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkClickEventMaterialized.ts b/arkoala/arkui/src/ArkClickEventMaterialized.ts index 8b6adc3e7..3fcdcce13 100644 --- a/arkoala/arkui/src/ArkClickEventMaterialized.ts +++ b/arkoala/arkui/src/ArkClickEventMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -174,6 +174,9 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize this?.setY_serialize(y_casted) return } + private getPreventDefault(): (() => void) { + return this.getPreventDefault_serialize() + } private setPreventDefault(preventDefault: (() => void)): void { const preventDefault_casted = preventDefault as ((() => void)) this?.setPreventDefault_serialize(preventDefault_casted) @@ -235,6 +238,10 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize private setY_serialize(y: number): void { ArkUIGeneratedNativeModule._ClickEvent_setY(this.peer!.ptr, y) } + private getPreventDefault_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._ClickEvent_getPreventDefault(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setPreventDefault_serialize(preventDefault: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(preventDefault) diff --git a/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts index cda807a1c..dc7919562 100644 --- a/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class ClientAuthenticationHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ClientAuthenticationHandler_getFinalizer() } - confirm(priKeyFile: string, certChainFile?: string): void { + public confirm(priKeyFile: string, certChainFile?: string): void { const priKeyFile_type = runtimeType(priKeyFile) const certChainFile_type = runtimeType(certChainFile) if ((((RuntimeType.UNDEFINED == certChainFile_type)))) { @@ -57,11 +57,11 @@ export class ClientAuthenticationHandler implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - cancel(): void { + public cancel(): void { this?.cancel_serialize() return } - ignore(): void { + public ignore(): void { this?.ignore_serialize() return } diff --git a/arkoala/arkui/src/ArkColorFilterMaterialized.ts b/arkoala/arkui/src/ArkColorFilterMaterialized.ts new file mode 100644 index 000000000..b94bac485 --- /dev/null +++ b/arkoala/arkui/src/ArkColorFilterMaterialized.ts @@ -0,0 +1,61 @@ +/* + * 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 } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 ColorFilter implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(value: Array): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeInt32(value.length) + for (let i = 0; i < value.length; i++) { + const value_element: number = value[i] + thisSerializer.writeNumber(value_element) + } + const retval = ArkUIGeneratedNativeModule._ColorFilter_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: Array) { + if (((value) !== (undefined))) + { + const ctorPtr: KPointer = ColorFilter.ctor(value) + this.peer = new Finalizable(ctorPtr, ColorFilter.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkColumn.ts index 4224b3b78..25918358a 100644 --- a/arkoala/arkui/src/ArkColumn.ts +++ b/arkoala/arkui/src/ArkColumn.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return (this.peer as ArkColumnPeer) } /** @memo */ - setColumnOptions(options?: ColumnOptions): this { + public setColumnOptions(options?: ColumnOptions): this { if (this.checkPriority("setColumnOptions")) { const options_casted = options as (ColumnOptions | undefined) this.getPeer()?.setColumnOptionsAttribute(options_casted) @@ -67,7 +67,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignItems(value: HorizontalAlign): this { + public alignItems(value: HorizontalAlign): this { if (this.checkPriority("alignItems")) { const value_casted = value as (HorizontalAlign) this.getPeer()?.alignItemsAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - justifyContent(value: FlexAlign): this { + public justifyContent(value: FlexAlign): this { if (this.checkPriority("justifyContent")) { const value_casted = value as (FlexAlign) this.getPeer()?.justifyContentAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { return this } /** @memo */ - reverse(value?: boolean): this { + public reverse(value?: boolean): this { if (this.checkPriority("reverse")) { const value_casted = value as (boolean | undefined) this.getPeer()?.reverseAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkColumnSplit.ts b/arkoala/arkui/src/ArkColumnSplit.ts index cd58fd409..bf7ed7934 100644 --- a/arkoala/arkui/src/ArkColumnSplit.ts +++ b/arkoala/arkui/src/ArkColumnSplit.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { return (this.peer as ArkColumnSplitPeer) } /** @memo */ - setColumnSplitOptions(): this { + public setColumnSplitOptions(): this { if (this.checkPriority("setColumnSplitOptions")) { this.getPeer()?.setColumnSplitOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { return this } /** @memo */ - resizeable(value: boolean): this { + public resizeable(value: boolean): this { if (this.checkPriority("resizeable")) { const value_casted = value as (boolean) this.getPeer()?.resizeableAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: ColumnSplitDividerStyle): this { + public divider(value?: ColumnSplitDividerStyle): this { if (this.checkPriority("divider")) { const value_casted = value as (ColumnSplitDividerStyle | undefined) this.getPeer()?.dividerAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkCommon.ts b/arkoala/arkui/src/ArkCommon.ts index f111a349b..c2baa4f42 100644 --- a/arkoala/arkui/src/ArkCommon.ts +++ b/arkoala/arkui/src/ArkCommon.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return (this.peer as ArkCommonMethodPeer) } /** @memo */ - width(value: Length): this { + public width(value: Length): this { if (this.checkPriority("width")) { const value_casted = value as (Length) this.getPeer()?.widthAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - height(value: Length): this { + public height(value: Length): this { if (this.checkPriority("height")) { const value_casted = value as (Length) this.getPeer()?.heightAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - drawModifier(value?: DrawModifier): this { + public drawModifier(value?: DrawModifier): this { if (this.checkPriority("drawModifier")) { const value_casted = value as (DrawModifier | undefined) this.getPeer()?.drawModifierAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - responseRegion(value: Array | Rectangle): this { + public responseRegion(value: Array | Rectangle): this { if (this.checkPriority("responseRegion")) { const value_casted = value as (Array | Rectangle) this.getPeer()?.responseRegionAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - mouseResponseRegion(value: Array | Rectangle): this { + public mouseResponseRegion(value: Array | Rectangle): this { if (this.checkPriority("mouseResponseRegion")) { const value_casted = value as (Array | Rectangle) this.getPeer()?.mouseResponseRegionAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - size(value: SizeOptions): this { + public size(value: SizeOptions): this { if (this.checkPriority("size")) { const value_casted = value as (SizeOptions) this.getPeer()?.sizeAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - constraintSize(value: ConstraintSizeOptions): this { + public constraintSize(value: ConstraintSizeOptions): this { if (this.checkPriority("constraintSize")) { const value_casted = value as (ConstraintSizeOptions) this.getPeer()?.constraintSizeAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - touchable(value: boolean): this { + public touchable(value: boolean): this { if (this.checkPriority("touchable")) { const value_casted = value as (boolean) this.getPeer()?.touchableAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - hitTestBehavior(value: HitTestMode): this { + public hitTestBehavior(value: HitTestMode): this { if (this.checkPriority("hitTestBehavior")) { const value_casted = value as (HitTestMode) this.getPeer()?.hitTestBehaviorAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onChildTouchTest(value: ((value: Array) => TouchResult)): this { + public onChildTouchTest(value: ((value: Array) => TouchResult)): this { if (this.checkPriority("onChildTouchTest")) { const value_casted = value as (((value: Array) => TouchResult)) UseEventsProperties({CommonMethod_onChildTouchTest: value_casted}) @@ -149,7 +149,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - layoutWeight(value: number | string): this { + public layoutWeight(value: number | string): this { if (this.checkPriority("layoutWeight")) { const value_casted = value as (number | string) this.getPeer()?.layoutWeightAttribute(value_casted) @@ -158,7 +158,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - chainWeight(value: ChainWeightOptions): this { + public chainWeight(value: ChainWeightOptions): this { if (this.checkPriority("chainWeight")) { const value_casted = value as (ChainWeightOptions) this.getPeer()?.chainWeightAttribute(value_casted) @@ -167,7 +167,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - padding(value: Padding | Length | LocalizedPadding): this { + public padding(value: Padding | Length | LocalizedPadding): this { if (this.checkPriority("padding")) { const value_casted = value as (Padding | Length | LocalizedPadding) this.getPeer()?.paddingAttribute(value_casted) @@ -176,7 +176,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding): this { + public safeAreaPadding(value: Padding | LengthMetrics | LocalizedPadding): this { if (this.checkPriority("safeAreaPadding")) { const value_casted = value as (Padding | LengthMetrics | LocalizedPadding) this.getPeer()?.safeAreaPaddingAttribute(value_casted) @@ -185,7 +185,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - margin(value: Margin | Length | LocalizedMargin): this { + public margin(value: Margin | Length | LocalizedMargin): this { if (this.checkPriority("margin")) { const value_casted = value as (Margin | Length | LocalizedMargin) this.getPeer()?.marginAttribute(value_casted) @@ -194,7 +194,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -203,7 +203,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - pixelRound(value: PixelRoundPolicy): this { + public pixelRound(value: PixelRoundPolicy): this { if (this.checkPriority("pixelRound")) { const value_casted = value as (PixelRoundPolicy) this.getPeer()?.pixelRoundAttribute(value_casted) @@ -212,7 +212,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImageSize(value: SizeOptions | ImageSize): this { + public backgroundImageSize(value: SizeOptions | ImageSize): this { if (this.checkPriority("backgroundImageSize")) { const value_casted = value as (SizeOptions | ImageSize) this.getPeer()?.backgroundImageSizeAttribute(value_casted) @@ -221,7 +221,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImagePosition(value: Position | Alignment): this { + public backgroundImagePosition(value: Position | Alignment): this { if (this.checkPriority("backgroundImagePosition")) { const value_casted = value as (Position | Alignment) this.getPeer()?.backgroundImagePositionAttribute(value_casted) @@ -230,7 +230,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundEffect(value: BackgroundEffectOptions): this { + public backgroundEffect(value: BackgroundEffectOptions): this { if (this.checkPriority("backgroundEffect")) { const value_casted = value as (BackgroundEffectOptions) this.getPeer()?.backgroundEffectAttribute(value_casted) @@ -239,7 +239,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImageResizable(value: ResizableOptions): this { + public backgroundImageResizable(value: ResizableOptions): this { if (this.checkPriority("backgroundImageResizable")) { const value_casted = value as (ResizableOptions) this.getPeer()?.backgroundImageResizableAttribute(value_casted) @@ -248,7 +248,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundEffect(value: ForegroundEffectOptions): this { + public foregroundEffect(value: ForegroundEffectOptions): this { if (this.checkPriority("foregroundEffect")) { const value_casted = value as (ForegroundEffectOptions) this.getPeer()?.foregroundEffectAttribute(value_casted) @@ -257,7 +257,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - visualEffect(value: VisualEffect): this { + public visualEffect(value: VisualEffect): this { if (this.checkPriority("visualEffect")) { const value_casted = value as (VisualEffect) this.getPeer()?.visualEffectAttribute(value_casted) @@ -266,7 +266,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundFilter(value: Filter): this { + public backgroundFilter(value: Filter): this { if (this.checkPriority("backgroundFilter")) { const value_casted = value as (Filter) this.getPeer()?.backgroundFilterAttribute(value_casted) @@ -275,7 +275,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundFilter(value: Filter): this { + public foregroundFilter(value: Filter): this { if (this.checkPriority("foregroundFilter")) { const value_casted = value as (Filter) this.getPeer()?.foregroundFilterAttribute(value_casted) @@ -284,7 +284,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - compositingFilter(value: Filter): this { + public compositingFilter(value: Filter): this { if (this.checkPriority("compositingFilter")) { const value_casted = value as (Filter) this.getPeer()?.compositingFilterAttribute(value_casted) @@ -293,7 +293,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - opacity(value: number | Resource): this { + public opacity(value: number | Resource): this { if (this.checkPriority("opacity")) { const value_casted = value as (number | Resource) this.getPeer()?.opacityAttribute(value_casted) @@ -302,7 +302,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - border(value: BorderOptions): this { + public border(value: BorderOptions): this { if (this.checkPriority("border")) { const value_casted = value as (BorderOptions) this.getPeer()?.borderAttribute(value_casted) @@ -311,7 +311,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderStyle(value: BorderStyle | EdgeStyles): this { + public borderStyle(value: BorderStyle | EdgeStyles): this { if (this.checkPriority("borderStyle")) { const value_casted = value as (BorderStyle | EdgeStyles) this.getPeer()?.borderStyleAttribute(value_casted) @@ -320,7 +320,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths): this { + public borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths): this { if (this.checkPriority("borderWidth")) { const value_casted = value as (Length | EdgeWidths | LocalizedEdgeWidths) this.getPeer()?.borderWidthAttribute(value_casted) @@ -329,7 +329,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { + public borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { if (this.checkPriority("borderColor")) { const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors) this.getPeer()?.borderColorAttribute(value_casted) @@ -338,7 +338,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses): this { + public borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses): this { if (this.checkPriority("borderRadius")) { const value_casted = value as (Length | BorderRadiuses | LocalizedBorderRadiuses) this.getPeer()?.borderRadiusAttribute(value_casted) @@ -347,7 +347,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - borderImage(value: BorderImageOption): this { + public borderImage(value: BorderImageOption): this { if (this.checkPriority("borderImage")) { const value_casted = value as (BorderImageOption) this.getPeer()?.borderImageAttribute(value_casted) @@ -356,7 +356,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outline(value: OutlineOptions): this { + public outline(value: OutlineOptions): this { if (this.checkPriority("outline")) { const value_casted = value as (OutlineOptions) this.getPeer()?.outlineAttribute(value_casted) @@ -365,7 +365,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this { + public outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this { if (this.checkPriority("outlineStyle")) { const value_casted = value as (OutlineStyle | EdgeOutlineStyles) this.getPeer()?.outlineStyleAttribute(value_casted) @@ -374,7 +374,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineWidth(value: Dimension | EdgeOutlineWidths): this { + public outlineWidth(value: Dimension | EdgeOutlineWidths): this { if (this.checkPriority("outlineWidth")) { const value_casted = value as (Dimension | EdgeOutlineWidths) this.getPeer()?.outlineWidthAttribute(value_casted) @@ -383,7 +383,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { + public outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { if (this.checkPriority("outlineColor")) { const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors) this.getPeer()?.outlineColorAttribute(value_casted) @@ -392,7 +392,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - outlineRadius(value: Dimension | OutlineRadiuses): this { + public outlineRadius(value: Dimension | OutlineRadiuses): this { if (this.checkPriority("outlineRadius")) { const value_casted = value as (Dimension | OutlineRadiuses) this.getPeer()?.outlineRadiusAttribute(value_casted) @@ -401,7 +401,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundColor(value: ResourceColor | ColoringStrategy): this { + public foregroundColor(value: ResourceColor | ColoringStrategy): this { if (this.checkPriority("foregroundColor")) { const value_casted = value as (ResourceColor | ColoringStrategy) this.getPeer()?.foregroundColorAttribute(value_casted) @@ -410,7 +410,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onClick(event: ((event: ClickEvent) => void), distanceThreshold?: number): this { + public onClick(event: ((event: ClickEvent) => void), distanceThreshold?: number): this { if (this.checkPriority("onClick")) { const event_type = runtimeType(event) const distanceThreshold_type = runtimeType(distanceThreshold) @@ -432,7 +432,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onHover(value: ((isHover: boolean, event: HoverEvent) => void)): this { + public onHover(value: ((isHover: boolean, event: HoverEvent) => void)): this { if (this.checkPriority("onHover")) { const value_casted = value as (((isHover: boolean, event: HoverEvent) => void)) UseEventsProperties({CommonMethod_onHover: value_casted}) @@ -442,7 +442,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAccessibilityHover(value: AccessibilityCallback): this { + public onAccessibilityHover(value: AccessibilityCallback): this { if (this.checkPriority("onAccessibilityHover")) { const value_casted = value as (AccessibilityCallback) UseEventsProperties({CommonMethod_onAccessibilityHover: value_casted}) @@ -452,7 +452,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - hoverEffect(value: HoverEffect): this { + public hoverEffect(value: HoverEffect): this { if (this.checkPriority("hoverEffect")) { const value_casted = value as (HoverEffect) this.getPeer()?.hoverEffectAttribute(value_casted) @@ -461,7 +461,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onMouse(value: ((event: MouseEvent) => void)): this { + public onMouse(value: ((event: MouseEvent) => void)): this { if (this.checkPriority("onMouse")) { const value_casted = value as (((event: MouseEvent) => void)) UseEventsProperties({CommonMethod_onMouse: value_casted}) @@ -471,7 +471,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onTouch(value: ((event: TouchEvent) => void)): this { + public onTouch(value: ((event: TouchEvent) => void)): this { if (this.checkPriority("onTouch")) { const value_casted = value as (((event: TouchEvent) => void)) UseEventsProperties({CommonMethod_onTouch: value_casted}) @@ -481,7 +481,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onKeyEvent(value: ((event: KeyEvent) => void)): this { + public onKeyEvent(value: ((event: KeyEvent) => void)): this { if (this.checkPriority("onKeyEvent")) { const value_casted = value as (((event: KeyEvent) => void)) UseEventsProperties({CommonMethod_onKeyEvent: value_casted}) @@ -491,7 +491,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onKeyPreIme(value: ((parameter: KeyEvent) => boolean)): this { + public onKeyPreIme(value: ((parameter: KeyEvent) => boolean)): this { if (this.checkPriority("onKeyPreIme")) { const value_casted = value as (((parameter: KeyEvent) => boolean)) UseEventsProperties({CommonMethod_onKeyPreIme: value_casted}) @@ -501,7 +501,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusable(value: boolean): this { + public focusable(value: boolean): this { if (this.checkPriority("focusable")) { const value_casted = value as (boolean) this.getPeer()?.focusableAttribute(value_casted) @@ -510,7 +510,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onFocus(value: (() => void)): this { + public onFocus(value: (() => void)): this { if (this.checkPriority("onFocus")) { const value_casted = value as ((() => void)) UseEventsProperties({CommonMethod_onFocus: value_casted}) @@ -520,7 +520,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onBlur(value: (() => void)): this { + public onBlur(value: (() => void)): this { if (this.checkPriority("onBlur")) { const value_casted = value as ((() => void)) UseEventsProperties({CommonMethod_onBlur: value_casted}) @@ -530,7 +530,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - tabIndex(value: number): this { + public tabIndex(value: number): this { if (this.checkPriority("tabIndex")) { const value_casted = value as (number) this.getPeer()?.tabIndexAttribute(value_casted) @@ -539,7 +539,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - defaultFocus(value: boolean): this { + public defaultFocus(value: boolean): this { if (this.checkPriority("defaultFocus")) { const value_casted = value as (boolean) this.getPeer()?.defaultFocusAttribute(value_casted) @@ -548,7 +548,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - groupDefaultFocus(value: boolean): this { + public groupDefaultFocus(value: boolean): this { if (this.checkPriority("groupDefaultFocus")) { const value_casted = value as (boolean) this.getPeer()?.groupDefaultFocusAttribute(value_casted) @@ -557,7 +557,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusOnTouch(value: boolean): this { + public focusOnTouch(value: boolean): this { if (this.checkPriority("focusOnTouch")) { const value_casted = value as (boolean) this.getPeer()?.focusOnTouchAttribute(value_casted) @@ -566,7 +566,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusBox(value: FocusBoxStyle): this { + public focusBox(value: FocusBoxStyle): this { if (this.checkPriority("focusBox")) { const value_casted = value as (FocusBoxStyle) this.getPeer()?.focusBoxAttribute(value_casted) @@ -575,7 +575,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - animation(value: AnimateParam): this { + public animation(value: AnimateParam): this { if (this.checkPriority("animation")) { const value_casted = value as (AnimateParam) this.getPeer()?.animationAttribute(value_casted) @@ -584,7 +584,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - transition(effect: TransitionOptions | TransitionEffect | TransitionEffect, onFinish?: TransitionFinishCallback): this { + public transition(effect: TransitionOptions | TransitionEffect | TransitionEffect, onFinish?: TransitionFinishCallback): this { if (this.checkPriority("transition")) { const effect_type = runtimeType(effect) const onFinish_type = runtimeType(onFinish) @@ -604,7 +604,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - motionBlur(value: MotionBlurOptions): this { + public motionBlur(value: MotionBlurOptions): this { if (this.checkPriority("motionBlur")) { const value_casted = value as (MotionBlurOptions) this.getPeer()?.motionBlurAttribute(value_casted) @@ -613,7 +613,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - brightness(value: number): this { + public brightness(value: number): this { if (this.checkPriority("brightness")) { const value_casted = value as (number) this.getPeer()?.brightnessAttribute(value_casted) @@ -622,7 +622,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - contrast(value: number): this { + public contrast(value: number): this { if (this.checkPriority("contrast")) { const value_casted = value as (number) this.getPeer()?.contrastAttribute(value_casted) @@ -631,7 +631,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - grayscale(value: number): this { + public grayscale(value: number): this { if (this.checkPriority("grayscale")) { const value_casted = value as (number) this.getPeer()?.grayscaleAttribute(value_casted) @@ -640,7 +640,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - colorBlend(value: Color | string | Resource): this { + public colorBlend(value: Color | string | Resource): this { if (this.checkPriority("colorBlend")) { const value_casted = value as (Color | string | Resource) this.getPeer()?.colorBlendAttribute(value_casted) @@ -649,7 +649,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - saturate(value: number): this { + public saturate(value: number): this { if (this.checkPriority("saturate")) { const value_casted = value as (number) this.getPeer()?.saturateAttribute(value_casted) @@ -658,7 +658,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sepia(value: number): this { + public sepia(value: number): this { if (this.checkPriority("sepia")) { const value_casted = value as (number) this.getPeer()?.sepiaAttribute(value_casted) @@ -667,7 +667,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - invert(value: number | InvertOptions): this { + public invert(value: number | InvertOptions): this { if (this.checkPriority("invert")) { const value_casted = value as (number | InvertOptions) this.getPeer()?.invertAttribute(value_casted) @@ -676,7 +676,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - hueRotate(value: number | string): this { + public hueRotate(value: number | string): this { if (this.checkPriority("hueRotate")) { const value_casted = value as (number | string) this.getPeer()?.hueRotateAttribute(value_casted) @@ -685,7 +685,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - useShadowBatching(value: boolean): this { + public useShadowBatching(value: boolean): this { if (this.checkPriority("useShadowBatching")) { const value_casted = value as (boolean) this.getPeer()?.useShadowBatchingAttribute(value_casted) @@ -694,7 +694,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - useEffect(useEffect: boolean, effectType?: EffectType): this { + public useEffect(useEffect: boolean, effectType?: EffectType): this { if (this.checkPriority("useEffect")) { const useEffect_type = runtimeType(useEffect) const effectType_type = runtimeType(effectType) @@ -714,7 +714,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - renderGroup(value: boolean): this { + public renderGroup(value: boolean): this { if (this.checkPriority("renderGroup")) { const value_casted = value as (boolean) this.getPeer()?.renderGroupAttribute(value_casted) @@ -723,7 +723,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - freeze(value: boolean): this { + public freeze(value: boolean): this { if (this.checkPriority("freeze")) { const value_casted = value as (boolean) this.getPeer()?.freezeAttribute(value_casted) @@ -732,7 +732,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - translate(value: TranslateOptions): this { + public translate(value: TranslateOptions): this { if (this.checkPriority("translate")) { const value_casted = value as (TranslateOptions) this.getPeer()?.translateAttribute(value_casted) @@ -741,7 +741,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - scale(value: ScaleOptions): this { + public scale(value: ScaleOptions): this { if (this.checkPriority("scale")) { const value_casted = value as (ScaleOptions) this.getPeer()?.scaleAttribute(value_casted) @@ -750,7 +750,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gridSpan(value: number): this { + public gridSpan(value: number): this { if (this.checkPriority("gridSpan")) { const value_casted = value as (number) this.getPeer()?.gridSpanAttribute(value_casted) @@ -759,7 +759,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gridOffset(value: number): this { + public gridOffset(value: number): this { if (this.checkPriority("gridOffset")) { const value_casted = value as (number) this.getPeer()?.gridOffsetAttribute(value_casted) @@ -768,7 +768,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - rotate(value: RotateOptions): this { + public rotate(value: RotateOptions): this { if (this.checkPriority("rotate")) { const value_casted = value as (RotateOptions) this.getPeer()?.rotateAttribute(value_casted) @@ -777,7 +777,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - transform(value: Object): this { + public transform(value: Object): this { if (this.checkPriority("transform")) { const value_casted = value as (Object) this.getPeer()?.transformAttribute(value_casted) @@ -786,7 +786,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAppear(value: (() => void)): this { + public onAppear(value: (() => void)): this { if (this.checkPriority("onAppear")) { const value_casted = value as ((() => void)) UseEventsProperties({CommonMethod_onAppear: value_casted}) @@ -796,7 +796,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDisAppear(value: (() => void)): this { + public onDisAppear(value: (() => void)): this { if (this.checkPriority("onDisAppear")) { const value_casted = value as ((() => void)) UseEventsProperties({CommonMethod_onDisAppear: value_casted}) @@ -806,7 +806,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAttach(value: (() => void)): this { + public onAttach(value: (() => void)): this { if (this.checkPriority("onAttach")) { const value_casted = value as ((() => void)) UseEventsProperties({CommonMethod_onAttach: value_casted}) @@ -816,7 +816,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDetach(value: (() => void)): this { + public onDetach(value: (() => void)): this { if (this.checkPriority("onDetach")) { const value_casted = value as ((() => void)) UseEventsProperties({CommonMethod_onDetach: value_casted}) @@ -826,7 +826,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onAreaChange(value: ((oldValue: Area, newValue: Area) => void)): this { + public onAreaChange(value: ((oldValue: Area, newValue: Area) => void)): this { if (this.checkPriority("onAreaChange")) { const value_casted = value as (((oldValue: Area, newValue: Area) => void)) UseEventsProperties({CommonMethod_onAreaChange: value_casted}) @@ -836,7 +836,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - visibility(value: Visibility): this { + public visibility(value: Visibility): this { if (this.checkPriority("visibility")) { const value_casted = value as (Visibility) this.getPeer()?.visibilityAttribute(value_casted) @@ -845,7 +845,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - flexGrow(value: number): this { + public flexGrow(value: number): this { if (this.checkPriority("flexGrow")) { const value_casted = value as (number) this.getPeer()?.flexGrowAttribute(value_casted) @@ -854,7 +854,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - flexShrink(value: number): this { + public flexShrink(value: number): this { if (this.checkPriority("flexShrink")) { const value_casted = value as (number) this.getPeer()?.flexShrinkAttribute(value_casted) @@ -863,7 +863,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - flexBasis(value: number | string): this { + public flexBasis(value: number | string): this { if (this.checkPriority("flexBasis")) { const value_casted = value as (number | string) this.getPeer()?.flexBasisAttribute(value_casted) @@ -872,7 +872,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - alignSelf(value: ItemAlign): this { + public alignSelf(value: ItemAlign): this { if (this.checkPriority("alignSelf")) { const value_casted = value as (ItemAlign) this.getPeer()?.alignSelfAttribute(value_casted) @@ -881,7 +881,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - displayPriority(value: number): this { + public displayPriority(value: number): this { if (this.checkPriority("displayPriority")) { const value_casted = value as (number) this.getPeer()?.displayPriorityAttribute(value_casted) @@ -890,7 +890,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - zIndex(value: number): this { + public zIndex(value: number): this { if (this.checkPriority("zIndex")) { const value_casted = value as (number) this.getPeer()?.zIndexAttribute(value_casted) @@ -899,7 +899,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - direction(value: Direction): this { + public direction(value: Direction): this { if (this.checkPriority("direction")) { const value_casted = value as (Direction) this.getPeer()?.directionAttribute(value_casted) @@ -908,7 +908,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - align(value: Alignment): this { + public align(value: Alignment): this { if (this.checkPriority("align")) { const value_casted = value as (Alignment) this.getPeer()?.alignAttribute(value_casted) @@ -917,7 +917,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - position(value: Position | Edges | LocalizedEdges): this { + public position(value: Position | Edges | LocalizedEdges): this { if (this.checkPriority("position")) { const value_casted = value as (Position | Edges | LocalizedEdges) this.getPeer()?.positionAttribute(value_casted) @@ -926,7 +926,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - markAnchor(value: Position | LocalizedPosition): this { + public markAnchor(value: Position | LocalizedPosition): this { if (this.checkPriority("markAnchor")) { const value_casted = value as (Position | LocalizedPosition) this.getPeer()?.markAnchorAttribute(value_casted) @@ -935,7 +935,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - offset(value: Position | Edges | LocalizedEdges): this { + public offset(value: Position | Edges | LocalizedEdges): this { if (this.checkPriority("offset")) { const value_casted = value as (Position | Edges | LocalizedEdges) this.getPeer()?.offsetAttribute(value_casted) @@ -944,7 +944,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - enabled(value: boolean): this { + public enabled(value: boolean): this { if (this.checkPriority("enabled")) { const value_casted = value as (boolean) this.getPeer()?.enabledAttribute(value_casted) @@ -953,7 +953,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - useSizeType(value: { xs?: number | { span: number, offset: number }, sm?: number | { span: number, offset: number }, md?: number | { span: number, offset: number }, lg?: number | { span: number, offset: number } }): this { + public useSizeType(value: { xs?: number | { span: number, offset: number }, sm?: number | { span: number, offset: number }, md?: number | { span: number, offset: number }, lg?: number | { span: number, offset: number } }): this { if (this.checkPriority("useSizeType")) { const value_casted = value as ({ xs?: number | { span: number, offset: number }, sm?: number | { span: number, offset: number }, md?: number | { span: number, offset: number }, lg?: number | { span: number, offset: number } }) this.getPeer()?.useSizeTypeAttribute(value_casted) @@ -962,7 +962,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { + 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")))))) { @@ -980,7 +980,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - aspectRatio(value: number): this { + public aspectRatio(value: number): this { if (this.checkPriority("aspectRatio")) { const value_casted = value as (number) this.getPeer()?.aspectRatioAttribute(value_casted) @@ -989,7 +989,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clickEffect(value?: ClickEffect): this { + public clickEffect(value?: ClickEffect): this { if (this.checkPriority("clickEffect")) { const value_casted = value as (ClickEffect | undefined) this.getPeer()?.clickEffectAttribute(value_casted) @@ -998,7 +998,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragStart(value: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo)): this { + public onDragStart(value: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo)): this { if (this.checkPriority("onDragStart")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo)) UseEventsProperties({CommonMethod_onDragStart: value_casted}) @@ -1008,7 +1008,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragEnter(value: ((event: DragEvent, extraParams?: string) => void)): this { + public onDragEnter(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragEnter")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) UseEventsProperties({CommonMethod_onDragEnter: value_casted}) @@ -1018,7 +1018,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragMove(value: ((event: DragEvent, extraParams?: string) => void)): this { + public onDragMove(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragMove")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) UseEventsProperties({CommonMethod_onDragMove: value_casted}) @@ -1028,7 +1028,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragLeave(value: ((event: DragEvent, extraParams?: string) => void)): this { + public onDragLeave(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragLeave")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) UseEventsProperties({CommonMethod_onDragLeave: value_casted}) @@ -1038,7 +1038,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDrop(value: ((event: DragEvent, extraParams?: string) => void)): this { + public onDrop(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDrop")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) UseEventsProperties({CommonMethod_onDrop: value_casted}) @@ -1048,7 +1048,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onDragEnd(value: ((event: DragEvent, extraParams?: string) => void)): this { + public onDragEnd(value: ((event: DragEvent, extraParams?: string) => void)): this { if (this.checkPriority("onDragEnd")) { const value_casted = value as (((event: DragEvent, extraParams?: string) => void)) UseEventsProperties({CommonMethod_onDragEnd: value_casted}) @@ -1058,7 +1058,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - allowDrop(value?: Array): this { + public allowDrop(value?: Array): this { if (this.checkPriority("allowDrop")) { const value_casted = value as (Array | undefined) this.getPeer()?.allowDropAttribute(value_casted) @@ -1067,7 +1067,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - draggable(value: boolean): this { + public draggable(value: boolean): this { if (this.checkPriority("draggable")) { const value_casted = value as (boolean) this.getPeer()?.draggableAttribute(value_casted) @@ -1076,7 +1076,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - dragPreview(value: CustomBuilder | DragItemInfo | string): this { + public dragPreview(value: CustomBuilder | DragItemInfo | string): this { if (this.checkPriority("dragPreview")) { const value_casted = value as (CustomBuilder | DragItemInfo | string) this.getPeer()?.dragPreviewAttribute(value_casted) @@ -1085,7 +1085,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onPreDrag(value: ((parameter: PreDragStatus) => void)): this { + public onPreDrag(value: ((parameter: PreDragStatus) => void)): this { if (this.checkPriority("onPreDrag")) { const value_casted = value as (((parameter: PreDragStatus) => void)) UseEventsProperties({CommonMethod_onPreDrag: value_casted}) @@ -1095,7 +1095,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - linearGradient(value: { angle?: number | string, direction?: GradientDirection, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): this { + public linearGradient(value: { angle?: number | string, direction?: GradientDirection, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): this { if (this.checkPriority("linearGradient")) { const value_casted = value as ({ angle?: number | string, direction?: GradientDirection, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }) this.getPeer()?.linearGradientAttribute(value_casted) @@ -1104,7 +1104,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sweepGradient(value: { center: [ Length, Length ], start?: number | string, end?: number | string, rotation?: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): this { + public sweepGradient(value: { center: [ Length, Length ], start?: number | string, end?: number | string, rotation?: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): this { if (this.checkPriority("sweepGradient")) { const value_casted = value as ({ center: [ Length, Length ], start?: number | string, end?: number | string, rotation?: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }) this.getPeer()?.sweepGradientAttribute(value_casted) @@ -1113,7 +1113,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - radialGradient(value: { center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): this { + public radialGradient(value: { center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): this { if (this.checkPriority("radialGradient")) { const value_casted = value as ({ center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }) this.getPeer()?.radialGradientAttribute(value_casted) @@ -1122,7 +1122,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - motionPath(value: MotionPathOptions): this { + public motionPath(value: MotionPathOptions): this { if (this.checkPriority("motionPath")) { const value_casted = value as (MotionPathOptions) this.getPeer()?.motionPathAttribute(value_casted) @@ -1131,7 +1131,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - shadow(value: ShadowOptions | ShadowStyle): this { + public shadow(value: ShadowOptions | ShadowStyle): this { if (this.checkPriority("shadow")) { const value_casted = value as (ShadowOptions | ShadowStyle) this.getPeer()?.shadowAttribute(value_casted) @@ -1140,7 +1140,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clip(value?: boolean): this { + public clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { @@ -1158,7 +1158,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clipShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { + public clipShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { if (this.checkPriority("clipShape")) { const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape) this.getPeer()?.clipShapeAttribute(value_casted) @@ -1167,7 +1167,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - mask(value?: ProgressMask): this { + public mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { @@ -1185,7 +1185,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - maskShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { + public maskShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { if (this.checkPriority("maskShape")) { const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape) this.getPeer()?.maskShapeAttribute(value_casted) @@ -1194,7 +1194,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - key(value: string): this { + public key(value: string): this { if (this.checkPriority("key")) { const value_casted = value as (string) this.getPeer()?.keyAttribute(value_casted) @@ -1203,7 +1203,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - id(value: string): this { + public id(value: string): this { if (this.checkPriority("id")) { const value_casted = value as (string) this.getPeer()?.idAttribute(value_casted) @@ -1212,7 +1212,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - geometryTransition(id: string, options?: GeometryTransitionOptions): this { + public geometryTransition(id: string, options?: GeometryTransitionOptions): this { if (this.checkPriority("geometryTransition")) { const id_type = runtimeType(id) const options_type = runtimeType(options) @@ -1232,7 +1232,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - stateStyles(value: StateStyles): this { + public stateStyles(value: StateStyles): this { if (this.checkPriority("stateStyles")) { const value_casted = value as (StateStyles) this.getPeer()?.stateStylesAttribute(value_casted) @@ -1241,7 +1241,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - restoreId(value: number): this { + public restoreId(value: number): this { if (this.checkPriority("restoreId")) { const value_casted = value as (number) this.getPeer()?.restoreIdAttribute(value_casted) @@ -1250,7 +1250,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sphericalEffect(value: number): this { + public sphericalEffect(value: number): this { if (this.checkPriority("sphericalEffect")) { const value_casted = value as (number) this.getPeer()?.sphericalEffectAttribute(value_casted) @@ -1259,7 +1259,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - lightUpEffect(value: number): this { + public lightUpEffect(value: number): this { if (this.checkPriority("lightUpEffect")) { const value_casted = value as (number) this.getPeer()?.lightUpEffectAttribute(value_casted) @@ -1268,7 +1268,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - pixelStretchEffect(value: PixelStretchEffectOptions): this { + public pixelStretchEffect(value: PixelStretchEffectOptions): this { if (this.checkPriority("pixelStretchEffect")) { const value_casted = value as (PixelStretchEffectOptions) this.getPeer()?.pixelStretchEffectAttribute(value_casted) @@ -1277,7 +1277,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityGroup(isGroup: boolean, accessibilityOptions?: AccessibilityOptions): this { + public accessibilityGroup(isGroup: boolean, accessibilityOptions?: AccessibilityOptions): this { if (this.checkPriority("accessibilityGroup")) { const isGroup_type = runtimeType(isGroup) const accessibilityOptions_type = runtimeType(accessibilityOptions) @@ -1297,7 +1297,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityText(value: string | Resource): this { + public accessibilityText(value: string | Resource): this { if (this.checkPriority("accessibilityText")) { const value_type = runtimeType(value) if ((((RuntimeType.STRING == value_type)))) { @@ -1315,7 +1315,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityTextHint(value: string): this { + public accessibilityTextHint(value: string): this { if (this.checkPriority("accessibilityTextHint")) { const value_casted = value as (string) this.getPeer()?.accessibilityTextHintAttribute(value_casted) @@ -1324,7 +1324,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityDescription(value: string | Resource): this { + public accessibilityDescription(value: string | Resource): this { if (this.checkPriority("accessibilityDescription")) { const value_type = runtimeType(value) if ((((RuntimeType.STRING == value_type)))) { @@ -1342,7 +1342,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityLevel(value: string): this { + public accessibilityLevel(value: string): this { if (this.checkPriority("accessibilityLevel")) { const value_casted = value as (string) this.getPeer()?.accessibilityLevelAttribute(value_casted) @@ -1351,7 +1351,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityVirtualNode(value: CustomBuilder): this { + public accessibilityVirtualNode(value: CustomBuilder): this { if (this.checkPriority("accessibilityVirtualNode")) { const value_casted = value as (CustomBuilder) UseEventsProperties({CommonMethod_accessibilityVirtualNode: value_casted}) @@ -1361,7 +1361,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilityChecked(value: boolean): this { + public accessibilityChecked(value: boolean): this { if (this.checkPriority("accessibilityChecked")) { const value_casted = value as (boolean) this.getPeer()?.accessibilityCheckedAttribute(value_casted) @@ -1370,7 +1370,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - accessibilitySelected(value: boolean): this { + public accessibilitySelected(value: boolean): this { if (this.checkPriority("accessibilitySelected")) { const value_casted = value as (boolean) this.getPeer()?.accessibilitySelectedAttribute(value_casted) @@ -1379,7 +1379,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - obscured(value: Array): this { + public obscured(value: Array): this { if (this.checkPriority("obscured")) { const value_casted = value as (Array) this.getPeer()?.obscuredAttribute(value_casted) @@ -1388,7 +1388,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - reuseId(value: string): this { + public reuseId(value: string): this { if (this.checkPriority("reuseId")) { const value_casted = value as (string) this.getPeer()?.reuseIdAttribute(value_casted) @@ -1397,7 +1397,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - renderFit(value: RenderFit): this { + public renderFit(value: RenderFit): this { if (this.checkPriority("renderFit")) { const value_casted = value as (RenderFit) this.getPeer()?.renderFitAttribute(value_casted) @@ -1406,7 +1406,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gestureModifier(value: GestureModifier): this { + public gestureModifier(value: GestureModifier): this { if (this.checkPriority("gestureModifier")) { const value_casted = value as (GestureModifier) this.getPeer()?.gestureModifierAttribute(value_casted) @@ -1415,7 +1415,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundBrightness(value: BackgroundBrightnessOptions): this { + public backgroundBrightness(value: BackgroundBrightnessOptions): this { if (this.checkPriority("backgroundBrightness")) { const value_casted = value as (BackgroundBrightnessOptions) this.getPeer()?.backgroundBrightnessAttribute(value_casted) @@ -1424,7 +1424,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onGestureJudgeBegin(value: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): this { + public onGestureJudgeBegin(value: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): this { if (this.checkPriority("onGestureJudgeBegin")) { const value_casted = value as (((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)) UseEventsProperties({CommonMethod_onGestureJudgeBegin: value_casted}) @@ -1434,7 +1434,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback, exposeInnerGesture?: boolean): this { + public onGestureRecognizerJudgeBegin(callback_: GestureRecognizerJudgeBeginCallback, exposeInnerGesture?: boolean): this { if (this.checkPriority("onGestureRecognizerJudgeBegin")) { const callback__type = runtimeType(callback_) const exposeInnerGesture_type = runtimeType(exposeInnerGesture) @@ -1456,7 +1456,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback): this { + public shouldBuiltInRecognizerParallelWith(value: ShouldBuiltInRecognizerParallelWithCallback): this { if (this.checkPriority("shouldBuiltInRecognizerParallelWith")) { const value_casted = value as (ShouldBuiltInRecognizerParallelWithCallback) UseEventsProperties({CommonMethod_shouldBuiltInRecognizerParallelWith: value_casted}) @@ -1466,7 +1466,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - monopolizeEvents(value: boolean): this { + public monopolizeEvents(value: boolean): this { if (this.checkPriority("monopolizeEvents")) { const value_casted = value as (boolean) this.getPeer()?.monopolizeEventsAttribute(value_casted) @@ -1475,7 +1475,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onTouchIntercept(value: ((parameter: TouchEvent) => HitTestMode)): this { + public onTouchIntercept(value: ((parameter: TouchEvent) => HitTestMode)): this { if (this.checkPriority("onTouchIntercept")) { const value_casted = value as (((parameter: TouchEvent) => HitTestMode)) UseEventsProperties({CommonMethod_onTouchIntercept: value_casted}) @@ -1485,7 +1485,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onSizeChange(value: SizeChangeCallback): this { + public onSizeChange(value: SizeChangeCallback): this { if (this.checkPriority("onSizeChange")) { const value_casted = value as (SizeChangeCallback) UseEventsProperties({CommonMethod_onSizeChange: value_casted}) @@ -1495,7 +1495,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - customProperty(name: string, value?: Object): this { + public customProperty(name: string, value?: Object): this { if (this.checkPriority("customProperty")) { const name_casted = name as (string) const value_casted = value as (Object | undefined) @@ -1505,7 +1505,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - expandSafeArea(types?: Array, edges?: Array): this { + public expandSafeArea(types?: Array, edges?: Array): this { if (this.checkPriority("expandSafeArea")) { const types_casted = types as (Array | undefined) const edges_casted = edges as (Array | undefined) @@ -1515,7 +1515,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - background(builder: CustomBuilder, options?: { align?: Alignment }): this { + public background(builder: CustomBuilder, options?: { align?: Alignment }): this { if (this.checkPriority("background")) { const builder_casted = builder as (CustomBuilder) const options_casted = options as ({ align?: Alignment } | undefined) @@ -1526,7 +1526,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundImage(src: ResourceStr | PixelMap, repeat?: ImageRepeat): this { + public backgroundImage(src: ResourceStr | PixelMap, repeat?: ImageRepeat): this { if (this.checkPriority("backgroundImage")) { const src_casted = src as (ResourceStr | PixelMap) const repeat_casted = repeat as (ImageRepeat | undefined) @@ -1536,7 +1536,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this { + public backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this { if (this.checkPriority("backgroundBlurStyle")) { const value_casted = value as (BlurStyle) const options_casted = options as (BackgroundBlurStyleOptions | undefined) @@ -1546,7 +1546,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this { + public foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this { if (this.checkPriority("foregroundBlurStyle")) { const value_casted = value as (BlurStyle) const options_casted = options as (ForegroundBlurStyleOptions | undefined) @@ -1556,7 +1556,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusScopeId(id: string, isGroup?: boolean, arrowStepOut?: boolean): this { + public focusScopeId(id: string, isGroup?: boolean, arrowStepOut?: boolean): this { if (this.checkPriority("focusScopeId")) { const id_type = runtimeType(id) const isGroup_type = runtimeType(isGroup) @@ -1579,7 +1579,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - focusScopePriority(scopeId: string, priority?: FocusPriority): this { + public focusScopePriority(scopeId: string, priority?: FocusPriority): this { if (this.checkPriority("focusScopePriority")) { const scopeId_casted = scopeId as (string) const priority_casted = priority as (FocusPriority | undefined) @@ -1589,7 +1589,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - gesture(gesture: GestureType, mask?: GestureMask): this { + public gesture(gesture: GestureType, mask?: GestureMask): this { if (this.checkPriority("gesture")) { const gesture_casted = gesture as (GestureType) const mask_casted = mask as (GestureMask | undefined) @@ -1599,7 +1599,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - priorityGesture(gesture: GestureType, mask?: GestureMask): this { + public priorityGesture(gesture: GestureType, mask?: GestureMask): this { if (this.checkPriority("priorityGesture")) { const gesture_casted = gesture as (GestureType) const mask_casted = mask as (GestureMask | undefined) @@ -1609,7 +1609,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - parallelGesture(gesture: GestureType, mask?: GestureMask): this { + public parallelGesture(gesture: GestureType, mask?: GestureMask): this { if (this.checkPriority("parallelGesture")) { const gesture_casted = gesture as (GestureType) const mask_casted = mask as (GestureMask | undefined) @@ -1619,7 +1619,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - blur(value: number, options?: BlurOptions): this { + public blur(value: number, options?: BlurOptions): this { if (this.checkPriority("blur")) { const value_casted = value as (number) const options_casted = options as (BlurOptions | undefined) @@ -1629,7 +1629,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - linearGradientBlur(value: number, options: LinearGradientBlurOptions): this { + public linearGradientBlur(value: number, options: LinearGradientBlurOptions): this { if (this.checkPriority("linearGradientBlur")) { const value_casted = value as (number) const options_casted = options as (LinearGradientBlurOptions) @@ -1639,7 +1639,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - systemBarEffect(): this { + public systemBarEffect(): this { if (this.checkPriority("systemBarEffect")) { this.getPeer()?.systemBarEffectAttribute() return this @@ -1647,7 +1647,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backdropBlur(value: number, options?: BlurOptions): this { + public backdropBlur(value: number, options?: BlurOptions): this { if (this.checkPriority("backdropBlur")) { const value_casted = value as (number) const options_casted = options as (BlurOptions | undefined) @@ -1657,7 +1657,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - sharedTransition(id: string, options?: sharedTransitionOptions): this { + public sharedTransition(id: string, options?: sharedTransitionOptions): this { if (this.checkPriority("sharedTransition")) { const id_casted = id as (string) const options_casted = options as (sharedTransitionOptions | undefined) @@ -1667,7 +1667,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - chainMode(direction: Axis, style: ChainStyle): this { + public chainMode(direction: Axis, style: ChainStyle): this { if (this.checkPriority("chainMode")) { const direction_casted = direction as (Axis) const style_casted = style as (ChainStyle) @@ -1677,7 +1677,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this { + public dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this { if (this.checkPriority("dragPreviewOptions")) { const value_casted = value as (DragPreviewOptions) const options_casted = options as (DragInteractionOptions | undefined) @@ -1687,7 +1687,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - overlay(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): this { + public overlay(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): this { if (this.checkPriority("overlay")) { const value_casted = value as (string | CustomBuilder | ComponentContent) const options_casted = options as (OverlayOptions | undefined) @@ -1697,7 +1697,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - blendMode(value: BlendMode, type?: BlendApplyType): this { + public blendMode(value: BlendMode, type?: BlendApplyType): this { if (this.checkPriority("blendMode")) { const value_casted = value as (BlendMode) const type_casted = type as (BlendApplyType | undefined) @@ -1707,7 +1707,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - advancedBlendMode(effect: BlendMode | Blender, type?: BlendApplyType): this { + public advancedBlendMode(effect: BlendMode | Blender, type?: BlendApplyType): this { if (this.checkPriority("advancedBlendMode")) { const effect_casted = effect as (BlendMode | Blender) const type_casted = type as (BlendApplyType | undefined) @@ -1717,7 +1717,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this { + public bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this { if (this.checkPriority("bindPopup")) { const show_casted = show as (boolean) const popup_casted = popup as (PopupOptions | CustomPopupOptions) @@ -1727,7 +1727,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindMenu(isShow: Array | CustomBuilder | boolean, content?: MenuOptions | undefined | Array | CustomBuilder, options?: MenuOptions): this { + public bindMenu(isShow: Array | CustomBuilder | boolean, content?: MenuOptions | undefined | Array | CustomBuilder, options?: MenuOptions): this { if (this.checkPriority("bindMenu")) { const isShow_type = runtimeType(isShow) const content_type = runtimeType(content) @@ -1750,7 +1750,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindContextMenu(content: CustomBuilder | boolean, responseType: ResponseType | CustomBuilder, options?: ContextMenuOptions): this { + public bindContextMenu(content: CustomBuilder | boolean, responseType: ResponseType | CustomBuilder, options?: ContextMenuOptions): this { if (this.checkPriority("bindContextMenu")) { const content_type = runtimeType(content) const responseType_type = runtimeType(responseType) @@ -1776,7 +1776,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindContentCover(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition | undefined | ContentCoverOptions | undefined): this { + public bindContentCover(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition | undefined | ContentCoverOptions | undefined): this { if (this.checkPriority("bindContentCover")) { const isShow_type = runtimeType(isShow) const builder_type = runtimeType(builder) @@ -1802,7 +1802,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - bindSheet(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): this { + public bindSheet(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): this { if (this.checkPriority("bindSheet")) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) @@ -1814,7 +1814,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - onVisibleAreaChange(ratios: Array, event: VisibleAreaChangeCallback): this { + public onVisibleAreaChange(ratios: Array, event: VisibleAreaChangeCallback): this { if (this.checkPriority("onVisibleAreaChange")) { const ratios_casted = ratios as (Array) const event_casted = event as (VisibleAreaChangeCallback) @@ -1825,7 +1825,7 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - keyboardShortcut(value: string | FunctionKey, keys: Array, action?: (() => void)): this { + public keyboardShortcut(value: string | FunctionKey, keys: Array, action?: (() => void)): this { if (this.checkPriority("keyboardShortcut")) { const value_casted = value as (string | FunctionKey) const keys_casted = keys as (Array) @@ -1847,7 +1847,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return (this.peer as ArkCommonShapeMethodPeer) } /** @memo */ - stroke(value: ResourceColor): this { + public stroke(value: ResourceColor): this { if (this.checkPriority("stroke")) { const value_casted = value as (ResourceColor) this.getPeer()?.strokeAttribute(value_casted) @@ -1856,7 +1856,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fill(value: ResourceColor): this { + public fill(value: ResourceColor): this { if (this.checkPriority("fill")) { const value_casted = value as (ResourceColor) this.getPeer()?.fillAttribute(value_casted) @@ -1865,7 +1865,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashOffset(value: number | string): this { + public strokeDashOffset(value: number | string): this { if (this.checkPriority("strokeDashOffset")) { const value_casted = value as (number | string) this.getPeer()?.strokeDashOffsetAttribute(value_casted) @@ -1874,7 +1874,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineCap(value: LineCapStyle): this { + public strokeLineCap(value: LineCapStyle): this { if (this.checkPriority("strokeLineCap")) { const value_casted = value as (LineCapStyle) this.getPeer()?.strokeLineCapAttribute(value_casted) @@ -1883,7 +1883,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineJoin(value: LineJoinStyle): this { + public strokeLineJoin(value: LineJoinStyle): this { if (this.checkPriority("strokeLineJoin")) { const value_casted = value as (LineJoinStyle) this.getPeer()?.strokeLineJoinAttribute(value_casted) @@ -1892,7 +1892,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeMiterLimit(value: number | string): this { + public strokeMiterLimit(value: number | string): this { if (this.checkPriority("strokeMiterLimit")) { const value_casted = value as (number | string) this.getPeer()?.strokeMiterLimitAttribute(value_casted) @@ -1901,7 +1901,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeOpacity(value: number | string | Resource): this { + public strokeOpacity(value: number | string | Resource): this { if (this.checkPriority("strokeOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.strokeOpacityAttribute(value_casted) @@ -1910,7 +1910,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillOpacity(value: number | string | Resource): this { + public fillOpacity(value: number | string | Resource): this { if (this.checkPriority("fillOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fillOpacityAttribute(value_casted) @@ -1919,7 +1919,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: Length): this { + public strokeWidth(value: Length): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (Length) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -1928,7 +1928,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - antiAlias(value: boolean): this { + public antiAlias(value: boolean): this { if (this.checkPriority("antiAlias")) { const value_casted = value as (boolean) this.getPeer()?.antiAliasAttribute(value_casted) @@ -1937,7 +1937,7 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashArray(value: Array): this { + public strokeDashArray(value: Array): this { if (this.checkPriority("strokeDashArray")) { const value_casted = value as (Array) this.getPeer()?.strokeDashArrayAttribute(value_casted) @@ -1956,7 +1956,7 @@ export class ArkCommonComponent extends ArkCommonMethodComponent { return (this.peer as ArkCommonPeer) } /** @memo */ - setCommonOptions(): this { + public setCommonOptions(): this { if (this.checkPriority("setCommonOptions")) { this.getPeer()?.setCommonOptionsAttribute() return this @@ -1993,7 +1993,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return (this.peer as ArkScrollableCommonMethodPeer) } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -2002,7 +2002,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - scrollBarColor(value: Color | number | string): this { + public scrollBarColor(value: Color | number | string): this { if (this.checkPriority("scrollBarColor")) { const value_casted = value as (Color | number | string) this.getPeer()?.scrollBarColorAttribute(value_casted) @@ -2011,7 +2011,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - scrollBarWidth(value: number | string): this { + public scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) this.getPeer()?.scrollBarWidthAttribute(value_casted) @@ -2020,7 +2020,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -2029,7 +2029,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -2038,7 +2038,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -2047,7 +2047,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onScroll(value: ((first: number, last: number) => void)): this { + public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({ScrollableCommonMethod_onScroll: value_casted}) @@ -2057,7 +2057,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onWillScroll(value?: ScrollOnWillScrollCallback): this { + public onWillScroll(value?: ScrollOnWillScrollCallback): this { if (this.checkPriority("onWillScroll")) { const value_casted = value as (ScrollOnWillScrollCallback | undefined) this.getPeer()?.onWillScrollAttribute(value_casted) @@ -2066,16 +2066,17 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onDidScroll(value?: ScrollOnScrollCallback): this { + public onDidScroll(value: ScrollOnScrollCallback): this { if (this.checkPriority("onDidScroll")) { - const value_casted = value as (ScrollOnScrollCallback | undefined) + const value_casted = value as (ScrollOnScrollCallback) + UseEventsProperties({ScrollableCommonMethod_onDidScroll: value_casted}) this.getPeer()?.onDidScrollAttribute(value_casted) return this } return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) UseEventsProperties({ScrollableCommonMethod_onReachStart: value_casted}) @@ -2085,7 +2086,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) UseEventsProperties({ScrollableCommonMethod_onReachEnd: value_casted}) @@ -2095,7 +2096,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onScrollStart(value: (() => void)): this { + public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) UseEventsProperties({ScrollableCommonMethod_onScrollStart: value_casted}) @@ -2105,7 +2106,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - onScrollStop(value: (() => void)): this { + public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) UseEventsProperties({ScrollableCommonMethod_onScrollStop: value_casted}) @@ -2115,7 +2116,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - flingSpeedLimit(value: number): this { + public flingSpeedLimit(value: number): this { if (this.checkPriority("flingSpeedLimit")) { const value_casted = value as (number) this.getPeer()?.flingSpeedLimitAttribute(value_casted) @@ -2124,7 +2125,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - clipContent(value: ContentClipMode | RectShape): this { + public clipContent(value: ContentClipMode | RectShape): this { if (this.checkPriority("clipContent")) { const value_casted = value as (ContentClipMode | RectShape) this.getPeer()?.clipContentAttribute(value_casted) @@ -2133,7 +2134,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const edgeEffect_casted = edgeEffect as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) @@ -2143,7 +2144,7 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent return this } /** @memo */ - fadingEdge(enabled?: boolean, options?: FadingEdgeOptions): this { + public fadingEdge(enabled?: boolean, options?: FadingEdgeOptions): this { if (this.checkPriority("fadingEdge")) { const enabled_casted = enabled as (boolean | undefined) const options_casted = options as (FadingEdgeOptions | undefined) diff --git a/arkoala/arkui/src/ArkCommonInterfaces.ts b/arkoala/arkui/src/ArkCommonInterfaces.ts index 0c04b7879..f5b2e1f9a 100644 --- a/arkoala/arkui/src/ArkCommonInterfaces.ts +++ b/arkoala/arkui/src/ArkCommonInterfaces.ts @@ -70,7 +70,7 @@ export interface ProvideOptions { export interface AnimatableArithmetic { } export interface Context { - __ContextStub: string; + _ContextStub: string; } export interface Configuration { colorMode: string; @@ -435,10 +435,10 @@ export enum DragBehavior { MOVE = 1, } export interface Summary { - __SummaryStub: string; + _SummaryStub: string; } export interface UniformDataType { - __UniformDataTypeStub: string; + _UniformDataTypeStub: string; } export enum DragResult { DRAG_SUCCESSFUL, @@ -484,7 +484,7 @@ export enum BlendApplyType { OFFSCREEN = 1, } export interface IntentionCode { - __IntentionCodeStub: string; + _IntentionCodeStub: string; } export interface BindOptions { backgroundColor?: ResourceColor; @@ -735,10 +735,10 @@ export enum MenuPolicy { SHOW = 2, } export interface ImageModifier { - __ImageModifierStub: string; + _ImageModifierStub: string; } export interface SymbolGlyphModifier { - __SymbolGlyphModifierStub: string; + _SymbolGlyphModifierStub: string; } export interface DragPreviewOptions { mode?: DragPreviewMode | Array; @@ -756,16 +756,16 @@ export interface InvertOptions { thresholdRange: number; } export interface CircleShape { - __CircleShapeStub: string; + _CircleShapeStub: string; } export interface EllipseShape { - __EllipseShapeStub: string; + _EllipseShapeStub: string; } export interface PathShape { - __PathShapeStub: string; + _PathShapeStub: string; } export interface RectShape { - __RectShapeStub: string; + _RectShapeStub: string; } export interface CommonMethod { width: Length; @@ -1011,34 +1011,34 @@ export interface SizeResult { export interface MeasureResult extends SizeResult { } export interface NavDestinationInfo { - __NavDestinationInfoStub: string; + _NavDestinationInfoStub: string; } export interface NavigationInfo { - __NavigationInfoStub: string; + _NavigationInfoStub: string; } export interface RouterPageInfo { - __RouterPageInfoStub: string; + _RouterPageInfoStub: string; } export interface UIContext { - __UIContextStub: string; + _UIContextStub: string; } export interface DrawContext { - __DrawContextStub: string; + _DrawContextStub: string; } export interface VisualEffect { - __VisualEffectStub: string; + _VisualEffectStub: string; } export interface Filter { - __FilterStub: string; + _FilterStub: string; } export interface Blender { - __BlenderStub: string; + _BlenderStub: string; } export interface ComponentContent { - __ComponentContentStub: string; + _ComponentContentStub: string; } export interface Theme { - __ThemeStub: string; + _ThemeStub: string; } export interface RectResult { x: number; @@ -1065,7 +1065,7 @@ export interface ScrollableCommonMethod extends CommonMethod { friction: number | Resource; onScroll: ((first: number, last: number) => void); onWillScroll: ScrollOnWillScrollCallback | undefined; - onDidScroll: ScrollOnScrollCallback | undefined; + onDidScroll: ScrollOnScrollCallback; onReachStart: (() => void); onReachEnd: (() => void); onScrollStart: (() => void); diff --git a/arkoala/arkui/src/ArkComponent3d.ts b/arkoala/arkui/src/ArkComponent3d.ts index 8498526ff..611cbc1a5 100644 --- a/arkoala/arkui/src/ArkComponent3d.ts +++ b/arkoala/arkui/src/ArkComponent3d.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return (this.peer as ArkComponent3DPeer) } /** @memo */ - setComponent3DOptions(sceneOptions?: SceneOptions): this { + public setComponent3DOptions(sceneOptions?: SceneOptions): this { if (this.checkPriority("setComponent3DOptions")) { const sceneOptions_casted = sceneOptions as (SceneOptions | undefined) this.getPeer()?.setComponent3DOptionsAttribute(sceneOptions_casted) @@ -67,7 +67,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - environment(value: ResourceStr): this { + public environment(value: ResourceStr): this { if (this.checkPriority("environment")) { const value_casted = value as (ResourceStr) this.getPeer()?.environmentAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shader(value: ResourceStr): this { + public shader(value: ResourceStr): this { if (this.checkPriority("shader")) { const value_casted = value as (ResourceStr) this.getPeer()?.shaderAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shaderImageTexture(value: ResourceStr): this { + public shaderImageTexture(value: ResourceStr): this { if (this.checkPriority("shaderImageTexture")) { const value_casted = value as (ResourceStr) this.getPeer()?.shaderImageTextureAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - shaderInputBuffer(value: Array): this { + public shaderInputBuffer(value: Array): this { if (this.checkPriority("shaderInputBuffer")) { const value_casted = value as (Array) this.getPeer()?.shaderInputBufferAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderWidth(value: Dimension): this { + public renderWidth(value: Dimension): this { if (this.checkPriority("renderWidth")) { const value_casted = value as (Dimension) this.getPeer()?.renderWidthAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderHeight(value: Dimension): this { + public renderHeight(value: Dimension): this { if (this.checkPriority("renderHeight")) { const value_casted = value as (Dimension) this.getPeer()?.renderHeightAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkComponent3DComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customRender(uri: ResourceStr, selfRenderUpdate: boolean): this { + public customRender(uri: ResourceStr, selfRenderUpdate: boolean): this { if (this.checkPriority("customRender")) { const uri_casted = uri as (ResourceStr) const selfRenderUpdate_casted = selfRenderUpdate as (boolean) diff --git a/arkoala/arkui/src/ArkComponent3dInterfaces.ts b/arkoala/arkui/src/ArkComponent3dInterfaces.ts index 6b7fd2f92..58961e662 100644 --- a/arkoala/arkui/src/ArkComponent3dInterfaces.ts +++ b/arkoala/arkui/src/ArkComponent3dInterfaces.ts @@ -48,7 +48,7 @@ import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" export interface Scene { - __SceneStub: string; + _SceneStub: string; } export enum ModelType { TEXTURE, diff --git a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts b/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts index 2fe9b37c1..a4772167e 100644 --- a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts +++ b/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,16 +45,16 @@ export class ConsoleMessage implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ConsoleMessage_getFinalizer() } - getMessage(): string { + public getMessage(): string { return this.getMessage_serialize() } - getSourceId(): string { + public getSourceId(): string { return this.getSourceId_serialize() } - getLineNumber(): number { + public getLineNumber(): number { return this.getLineNumber_serialize() } - getMessageLevel(): MessageLevel { + public getMessageLevel(): MessageLevel { return this.getMessageLevel_serialize() } private getMessage_serialize(): string { diff --git a/arkoala/arkui/src/ArkContainerSpan.ts b/arkoala/arkui/src/ArkContainerSpan.ts index ef98a29bb..519391964 100644 --- a/arkoala/arkui/src/ArkContainerSpan.ts +++ b/arkoala/arkui/src/ArkContainerSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -32,7 +32,7 @@ export class ArkContainerSpanComponent extends ComponentBase { return (this.peer as ArkContainerSpanPeer) } /** @memo */ - setContainerSpanOptions(): this { + public setContainerSpanOptions(): this { if (this.checkPriority("setContainerSpanOptions")) { this.getPeer()?.setContainerSpanOptionsAttribute() return this @@ -40,7 +40,7 @@ export class ArkContainerSpanComponent extends ComponentBase { return this } /** @memo */ - textBackgroundStyle(value: TextBackgroundStyle): this { + public textBackgroundStyle(value: TextBackgroundStyle): this { if (this.checkPriority("textBackgroundStyle")) { const value_casted = value as (TextBackgroundStyle) this.getPeer()?.textBackgroundStyleAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkContentSlotInterfaces.ts b/arkoala/arkui/src/ArkContentSlotInterfaces.ts index 7a471e480..2adac3bc1 100644 --- a/arkoala/arkui/src/ArkContentSlotInterfaces.ts +++ b/arkoala/arkui/src/ArkContentSlotInterfaces.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" export interface Content { - __ContentStub: string; + _ContentStub: string; } export interface ContentSlotAttribute { } diff --git a/arkoala/arkui/src/ArkContextMenuMaterialized.ts b/arkoala/arkui/src/ArkContextMenuMaterialized.ts index 09cd43592..eb97c9b74 100644 --- a/arkoala/arkui/src/ArkContextMenuMaterialized.ts +++ b/arkoala/arkui/src/ArkContextMenuMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,7 +44,7 @@ export class ContextMenu implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ContextMenu_getFinalizer() } - static close(): undefined { + public static close(): undefined { return ContextMenu.close_serialize() } private static close_serialize(): undefined { diff --git a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts b/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts index bf471fe2a..4fe650371 100644 --- a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,7 +44,7 @@ export class ControllerHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ControllerHandler_getFinalizer() } - setWebController(controller: WebviewController): void { + public setWebController(controller: WebviewController): void { const controller_casted = controller as (WebviewController) this?.setWebController_serialize(controller_casted) return diff --git a/arkoala/arkui/src/ArkCounter.ts b/arkoala/arkui/src/ArkCounter.ts index 479a46928..7e5dea1d4 100644 --- a/arkoala/arkui/src/ArkCounter.ts +++ b/arkoala/arkui/src/ArkCounter.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return (this.peer as ArkCounterPeer) } /** @memo */ - setCounterOptions(): this { + public setCounterOptions(): this { if (this.checkPriority("setCounterOptions")) { this.getPeer()?.setCounterOptionsAttribute() return this @@ -67,7 +67,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInc(value: VoidCallback): this { + public onInc(value: VoidCallback): this { if (this.checkPriority("onInc")) { const value_casted = value as (VoidCallback) UseEventsProperties({Counter_onInc: value_casted}) @@ -77,7 +77,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDec(value: VoidCallback): this { + public onDec(value: VoidCallback): this { if (this.checkPriority("onDec")) { const value_casted = value as (VoidCallback) UseEventsProperties({Counter_onDec: value_casted}) @@ -87,7 +87,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableDec(value: boolean): this { + public enableDec(value: boolean): this { if (this.checkPriority("enableDec")) { const value_casted = value as (boolean) this.getPeer()?.enableDecAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkCounterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableInc(value: boolean): this { + public enableInc(value: boolean): this { if (this.checkPriority("enableInc")) { const value_casted = value as (boolean) this.getPeer()?.enableIncAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts b/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts index 91303020f..7c06f4fd7 100644 --- a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts @@ -29,7 +29,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -55,10 +55,10 @@ export class CustomDialogController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CustomDialogController_getFinalizer() } - open(): undefined { + public open(): undefined { return this.open_serialize() } - close(): undefined { + public close(): undefined { return this.close_serialize() } private open_serialize(): undefined { diff --git a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts b/arkoala/arkui/src/ArkCustomSpanMaterialized.ts index 68ab01687..40e0197b9 100644 --- a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts +++ b/arkoala/arkui/src/ArkCustomSpanMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,17 +43,17 @@ export class CustomSpan implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CustomSpan_getFinalizer() } - onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + public onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { const measureInfo_casted = measureInfo as (CustomSpanMeasureInfo) return this.onMeasure_serialize(measureInfo_casted) } - onDraw(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { + public onDraw(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const context_casted = context as (DrawContext) const drawInfo_casted = drawInfo as (CustomSpanDrawInfo) this?.onDraw_serialize(context_casted, drawInfo_casted) return } - invalidate(): void { + public invalidate(): void { this?.invalidate_serialize() return } diff --git a/arkoala/arkui/src/ArkDataPanel.ts b/arkoala/arkui/src/ArkDataPanel.ts index d5356c1e5..64d336400 100644 --- a/arkoala/arkui/src/ArkDataPanel.ts +++ b/arkoala/arkui/src/ArkDataPanel.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -51,14 +51,15 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" -import { LinearGradient_data_panel, DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./ArkDataPanelInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./ArkDataPanelInterfaces" /** @memo:stable */ export class ArkDataPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkDataPanelPeer { return (this.peer as ArkDataPanelPeer) } /** @memo */ - setDataPanelOptions(options: DataPanelOptions): this { + public setDataPanelOptions(options: DataPanelOptions): this { if (this.checkPriority("setDataPanelOptions")) { const options_casted = options as (DataPanelOptions) this.getPeer()?.setDataPanelOptionsAttribute(options_casted) @@ -67,7 +68,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - closeEffect(value: boolean): this { + public closeEffect(value: boolean): this { if (this.checkPriority("closeEffect")) { const value_casted = value as (boolean) this.getPeer()?.closeEffectAttribute(value_casted) @@ -76,16 +77,16 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - valueColors(value: Array): this { + public valueColors(value: Array): this { if (this.checkPriority("valueColors")) { - const value_casted = value as (Array) + const value_casted = value as (Array) this.getPeer()?.valueColorsAttribute(value_casted) return this } return this } /** @memo */ - trackBackgroundColor(value: ResourceColor): this { + public trackBackgroundColor(value: ResourceColor): this { if (this.checkPriority("trackBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.trackBackgroundColorAttribute(value_casted) @@ -94,7 +95,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: Length): this { + public strokeWidth(value: Length): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (Length) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -103,7 +104,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackShadow(value: DataPanelShadowOptions): this { + public trackShadow(value: DataPanelShadowOptions): this { if (this.checkPriority("trackShadow")) { const value_casted = value as (DataPanelShadowOptions) this.getPeer()?.trackShadowAttribute(value_casted) @@ -112,7 +113,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkDataPanelInterfaces.ts b/arkoala/arkui/src/ArkDataPanelInterfaces.ts index b99334bdb..7614adc97 100644 --- a/arkoala/arkui/src/ArkDataPanelInterfaces.ts +++ b/arkoala/arkui/src/ArkDataPanelInterfaces.ts @@ -22,6 +22,7 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, 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 { MultiShadowOptions, 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" 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, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" @@ -57,10 +58,8 @@ export interface ColorStop { color: ResourceColor; offset: Length; } -export interface LinearGradient_data_panel { -} export interface DataPanelShadowOptions extends MultiShadowOptions { - colors?: Array; + colors?: Array; } export interface DataPanelOptions { values: Array; @@ -74,7 +73,7 @@ export interface DataPanelConfiguration extends CommonConfiguration { closeEffect: boolean; - valueColors: Array; + valueColors: Array; trackBackgroundColor: ResourceColor; strokeWidth: Length; trackShadow: DataPanelShadowOptions; diff --git a/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts b/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts index bd08c0d10..1d21bd95d 100644 --- a/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,11 +41,11 @@ export class DataResubmissionHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DataResubmissionHandler_getFinalizer() } - resend(): void { + public resend(): void { this?.resend_serialize() return } - cancel(): void { + public cancel(): void { this?.cancel_serialize() return } diff --git a/arkoala/arkui/src/ArkDatePicker.ts b/arkoala/arkui/src/ArkDatePicker.ts index 8b1f8de1a..0eec52abc 100644 --- a/arkoala/arkui/src/ArkDatePicker.ts +++ b/arkoala/arkui/src/ArkDatePicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkDatePickerPeer) } /** @memo */ - setDatePickerOptions(options?: DatePickerOptions): this { + public setDatePickerOptions(options?: DatePickerOptions): this { if (this.checkPriority("setDatePickerOptions")) { const options_casted = options as (DatePickerOptions | undefined) this.getPeer()?.setDatePickerOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lunar(value: boolean): this { + public lunar(value: boolean): this { if (this.checkPriority("lunar")) { const value_casted = value as (boolean) this.getPeer()?.lunarAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disappearTextStyle(value: PickerTextStyle): this { + public disappearTextStyle(value: PickerTextStyle): this { if (this.checkPriority("disappearTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.disappearTextStyleAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedTextStyle(value: PickerTextStyle): this { + public selectedTextStyle(value: PickerTextStyle): this { if (this.checkPriority("selectedTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.selectedTextStyleAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: DatePickerResult) => void)): this { + public onChange(value: ((value: DatePickerResult) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: DatePickerResult) => void)) UseEventsProperties({DatePicker_onChange: value_casted}) @@ -114,7 +114,7 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDateChange(value: ((parameter: Date) => void)): this { + public onDateChange(value: ((parameter: Date) => void)): this { if (this.checkPriority("onDateChange")) { const value_casted = value as (((parameter: Date) => void)) UseEventsProperties({DatePicker_onDateChange: value_casted}) @@ -124,11 +124,11 @@ export class ArkDatePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: Date) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: Date) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: Date) => void)) - UseEventsProperties({DatePicker___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({DatePicker__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts b/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts index 9ace128df..6ffe8405e 100644 --- a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts @@ -29,7 +29,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,7 +52,7 @@ export class DatePickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DatePickerDialog_getFinalizer() } - static show(options?: DatePickerDialogOptions): undefined { + public static show(options?: DatePickerDialogOptions): undefined { const options_casted = options as (DatePickerDialogOptions | undefined) return DatePickerDialog.show_serialize(options_casted) } diff --git a/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts b/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts new file mode 100644 index 000000000..68e1c7eab --- /dev/null +++ b/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts @@ -0,0 +1,84 @@ +/* + * 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 { TextDecorationType, TextDecorationStyle, Color } from "./ArkEnumsInterfaces" +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 { 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 DecorationStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get type(): TextDecorationType { + return this.getType() + } + get color(): ResourceColor { + throw new Error("Not implemented") + } + get style(): TextDecorationStyle { + return this.getStyle() + } + static ctor(value: DecorationStyleInterface): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeDecorationStyleInterface(value) + const retval = ArkUIGeneratedNativeModule._DecorationStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: DecorationStyleInterface) { + if (((value) !== (undefined))) + { + const ctorPtr: KPointer = DecorationStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, DecorationStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DecorationStyle_getFinalizer() + } + private getType(): TextDecorationType { + return this.getType_serialize() + } + private getStyle(): TextDecorationStyle { + return this.getStyle_serialize() + } + private getType_serialize(): TextDecorationType { + const retval = ArkUIGeneratedNativeModule._DecorationStyle_getType(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getStyle_serialize(): TextDecorationStyle { + const retval = ArkUIGeneratedNativeModule._DecorationStyle_getStyle(this.peer!.ptr) + 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/ArkDisappearSymbolEffectMaterialized.ts b/arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts new file mode 100644 index 000000000..d6dabd63a --- /dev/null +++ b/arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts @@ -0,0 +1,83 @@ +/* + * 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 { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 DisappearSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope { + return this.getScope() + } + set scope(scope: EffectScope) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + static ctor(scope?: EffectScope): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let scope_type: int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = scope! + thisSerializer.writeInt32(scope_value) + } + const retval = ArkUIGeneratedNativeModule._DisappearSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope) { + const ctorPtr: KPointer = DisappearSymbolEffect.ctor(scope) + this.peer = new Finalizable(ctorPtr, DisappearSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._DisappearSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this?.setScope_serialize(scope_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._DisappearSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + 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/ArkDivider.ts index e6ab6681d..c16926aee 100644 --- a/arkoala/arkui/src/ArkDivider.ts +++ b/arkoala/arkui/src/ArkDivider.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return (this.peer as ArkDividerPeer) } /** @memo */ - setDividerOptions(): this { + public setDividerOptions(): this { if (this.checkPriority("setDividerOptions")) { this.getPeer()?.setDividerOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: number | string): this { + public strokeWidth(value: number | string): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (number | string) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkDividerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineCap(value: LineCapStyle): this { + public lineCap(value: LineCapStyle): this { if (this.checkPriority("lineCap")) { const value_casted = value as (LineCapStyle) this.getPeer()?.lineCapAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkDragEventMaterialized.ts b/arkoala/arkui/src/ArkDragEventMaterialized.ts index 8fde451f9..f6e245835 100644 --- a/arkoala/arkui/src/ArkDragEventMaterialized.ts +++ b/arkoala/arkui/src/ArkDragEventMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -76,56 +76,56 @@ export class DragEventInternal implements MaterializedBase,DragEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DragEvent_getFinalizer() } - getDisplayX(): number { + public getDisplayX(): number { return this.getDisplayX_serialize() } - getDisplayY(): number { + public getDisplayY(): number { return this.getDisplayY_serialize() } - getWindowX(): number { + public getWindowX(): number { return this.getWindowX_serialize() } - getWindowY(): number { + public getWindowY(): number { return this.getWindowY_serialize() } - getX(): number { + public getX(): number { return this.getX_serialize() } - getY(): number { + public getY(): number { return this.getY_serialize() } - setData(unifiedData: UnifiedData): void { + public setData(unifiedData: UnifiedData): void { const unifiedData_casted = unifiedData as (UnifiedData) this?.setData_serialize(unifiedData_casted) return } - getData(): UnifiedData { + public getData(): UnifiedData { return this.getData_serialize() } - getSummary(): Summary { + public getSummary(): Summary { return this.getSummary_serialize() } - setResult(dragResult: DragResult): void { + public setResult(dragResult: DragResult): void { const dragResult_casted = dragResult as (DragResult) this?.setResult_serialize(dragResult_casted) return } - getResult(): DragResult { + public getResult(): DragResult { return this.getResult_serialize() } - getPreviewRect(): Rectangle { + public getPreviewRect(): Rectangle { return this.getPreviewRect_serialize() } - getVelocityX(): number { + public getVelocityX(): number { return this.getVelocityX_serialize() } - getVelocityY(): number { + public getVelocityY(): number { return this.getVelocityY_serialize() } - getVelocity(): number { + public getVelocity(): number { return this.getVelocity_serialize() } - getModifierKeyState(keys: Array): boolean { + public getModifierKeyState(keys: Array): boolean { const keys_casted = keys as (Array) return this.getModifierKeyState_serialize(keys_casted) } diff --git a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts b/arkoala/arkui/src/ArkDrawModifierMaterialized.ts index 8bea789a7..ad2be30b0 100644 --- a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts +++ b/arkoala/arkui/src/ArkDrawModifierMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,22 +42,22 @@ export class DrawModifier implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DrawModifier_getFinalizer() } - drawBehind(drawContext: DrawContext): void { + public drawBehind(drawContext: DrawContext): void { const drawContext_casted = drawContext as (DrawContext) this?.drawBehind_serialize(drawContext_casted) return } - drawContent(drawContext: DrawContext): void { + public drawContent(drawContext: DrawContext): void { const drawContext_casted = drawContext as (DrawContext) this?.drawContent_serialize(drawContext_casted) return } - drawFront(drawContext: DrawContext): void { + public drawFront(drawContext: DrawContext): void { const drawContext_casted = drawContext as (DrawContext) this?.drawFront_serialize(drawContext_casted) return } - invalidate(): void { + public invalidate(): void { this?.invalidate_serialize() return } diff --git a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts b/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts index 278f9f22e..542d34301 100644 --- a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts +++ b/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -48,7 +48,7 @@ export class DrawingCanvas implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DrawingCanvas_getFinalizer() } - drawRect(left: number, top: number, right: number, bottom: number): void { + public drawRect(left: number, top: number, right: number, bottom: number): void { const left_casted = left as (number) const top_casted = top as (number) const right_casted = right as (number) diff --git a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts b/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts index 3f8d8ff74..aa2970a4f 100644 --- a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -60,7 +60,7 @@ export class DrawingRenderingContext implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DrawingRenderingContext_getFinalizer() } - invalidate(): void { + public invalidate(): void { this?.invalidate_serialize() return } diff --git a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts b/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts index 109fb1255..79b47879c 100644 --- a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts +++ b/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,7 +42,7 @@ export class DynamicNode implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._DynamicNode_getFinalizer() } - onMove(handler?: OnMoveHandler): T { + public onMove(handler?: OnMoveHandler): T { const handler_casted = handler as (OnMoveHandler | undefined) return this.onMove_serialize(handler_casted) } diff --git a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts b/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts index 03f6893f1..dff3d3684 100644 --- a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -49,11 +49,11 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EditMenuOptions_getFinalizer() } - onCreateMenu(menuItems: Array): Array { + public onCreateMenu(menuItems: Array): Array { const menuItems_casted = menuItems as (Array) return this.onCreateMenu_serialize(menuItems_casted) } - onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean { + public onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean { const menuItem_casted = menuItem as (TextMenuItem) const range_casted = range as (TextRange) return this.onMenuItemClick_serialize(menuItem_casted, range_casted) diff --git a/arkoala/arkui/src/ArkEffectComponent.ts b/arkoala/arkui/src/ArkEffectComponent.ts index fd5905abb..174dd20e3 100644 --- a/arkoala/arkui/src/ArkEffectComponent.ts +++ b/arkoala/arkui/src/ArkEffectComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkEffectComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkEffectComponentPeer) } /** @memo */ - setEffectComponentOptions(): this { + public setEffectComponentOptions(): this { if (this.checkPriority("setEffectComponentOptions")) { this.getPeer()?.setEffectComponentOptionsAttribute() return this diff --git a/arkoala/arkui/src/ArkEllipse.ts b/arkoala/arkui/src/ArkEllipse.ts index 3f5a7cbda..9df03fe3f 100644 --- a/arkoala/arkui/src/ArkEllipse.ts +++ b/arkoala/arkui/src/ArkEllipse.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkEllipseComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkEllipsePeer) } /** @memo */ - setEllipseOptions(options?: EllipseOptions): this { + public setEllipseOptions(options?: EllipseOptions): this { if (this.checkPriority("setEllipseOptions")) { const options_casted = options as (EllipseOptions | undefined) this.getPeer()?.setEllipseOptionsAttribute(options_casted) diff --git a/arkoala/arkui/src/ArkEmbeddedComponent.ts b/arkoala/arkui/src/ArkEmbeddedComponent.ts index d8a50a536..8b4ad74f1 100644 --- a/arkoala/arkui/src/ArkEmbeddedComponent.ts +++ b/arkoala/arkui/src/ArkEmbeddedComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkEmbeddedComponentPeer) } /** @memo */ - setEmbeddedComponentOptions(loader: Want, type: EmbeddedType): this { + public setEmbeddedComponentOptions(loader: Want, type: EmbeddedType): this { if (this.checkPriority("setEmbeddedComponentOptions")) { const loader_casted = loader as (Want) const type_casted = type as (EmbeddedType) @@ -70,7 +70,7 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTerminated(value: ((parameter: TerminationInfo) => void)): this { + public onTerminated(value: ((parameter: TerminationInfo) => void)): this { if (this.checkPriority("onTerminated")) { const value_casted = value as (((parameter: TerminationInfo) => void)) UseEventsProperties({EmbeddedComponent_onTerminated: value_casted}) @@ -80,7 +80,7 @@ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ErrorCallback): this { + public onError(value: ErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts b/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts index 5c8c13293..5024cdc44 100644 --- a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts +++ b/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -48,13 +48,13 @@ export class EventEmulator implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EventEmulator_getFinalizer() } - static emitClickEvent(node: KPointer, event: ClickEvent): void { + public static emitClickEvent(node: KPointer, event: ClickEvent): void { const node_casted = node as (KPointer) const event_casted = event as (ClickEvent) EventEmulator.emitClickEvent_serialize(node_casted, event_casted) return } - static emitTextInputEvent(node: KPointer, text: string): void { + public static emitTextInputEvent(node: KPointer, text: string): void { const node_casted = node as (KPointer) const text_casted = text as (string) EventEmulator.emitTextInputEvent_serialize(node_casted, text_casted) diff --git a/arkoala/arkui/src/ArkEventResultMaterialized.ts b/arkoala/arkui/src/ArkEventResultMaterialized.ts index 201cfe81a..ae32b7c07 100644 --- a/arkoala/arkui/src/ArkEventResultMaterialized.ts +++ b/arkoala/arkui/src/ArkEventResultMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class EventResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EventResult_getFinalizer() } - setGestureEventResult(result: boolean): void { + public setGestureEventResult(result: boolean): void { const result_casted = result as (boolean) this?.setGestureEventResult_serialize(result_casted) return diff --git a/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts b/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts index a2cd400c9..cd5baa79a 100644 --- a/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class EventTargetInfo implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._EventTargetInfo_getFinalizer() } - getId(): string { + public getId(): string { return this.getId_serialize() } private getId_serialize(): string { diff --git a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts b/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts index e304fdf27..e8cc5f306 100644 --- a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts +++ b/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,16 +42,16 @@ export class FileSelectorParam implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FileSelectorParam_getFinalizer() } - getTitle(): string { + public getTitle(): string { return this.getTitle_serialize() } - getMode(): FileSelectorMode { + public getMode(): FileSelectorMode { return this.getMode_serialize() } - getAcceptType(): Array { + public getAcceptType(): Array { return this.getAcceptType_serialize() } - isCapture(): boolean { + public isCapture(): boolean { return this.isCapture_serialize() } private getTitle_serialize(): string { diff --git a/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts b/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts index bf2892420..4a912028e 100644 --- a/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts +++ b/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class FileSelectorResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FileSelectorResult_getFinalizer() } - handleFileList(fileList: Array): void { + public handleFileList(fileList: Array): void { const fileList_casted = fileList as (Array) this?.handleFileList_serialize(fileList_casted) return diff --git a/arkoala/arkui/src/ArkFlex.ts b/arkoala/arkui/src/ArkFlex.ts index f79b72374..16caa8a5b 100644 --- a/arkoala/arkui/src/ArkFlex.ts +++ b/arkoala/arkui/src/ArkFlex.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkFlexComponent extends ArkCommonMethodComponent { return (this.peer as ArkFlexPeer) } /** @memo */ - setFlexOptions(value?: FlexOptions): this { + public setFlexOptions(value?: FlexOptions): this { if (this.checkPriority("setFlexOptions")) { const value_casted = value as (FlexOptions | undefined) this.getPeer()?.setFlexOptionsAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkFlexComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkFlowItem.ts b/arkoala/arkui/src/ArkFlowItem.ts index aeccd95db..5bd108f32 100644 --- a/arkoala/arkui/src/ArkFlowItem.ts +++ b/arkoala/arkui/src/ArkFlowItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkFlowItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkFlowItemPeer) } /** @memo */ - setFlowItemOptions(): this { + public setFlowItemOptions(): this { if (this.checkPriority("setFlowItemOptions")) { this.getPeer()?.setFlowItemOptionsAttribute() return this diff --git a/arkoala/arkui/src/ArkFolderStack.ts b/arkoala/arkui/src/ArkFolderStack.ts index e41ed6088..2d8c16d86 100644 --- a/arkoala/arkui/src/ArkFolderStack.ts +++ b/arkoala/arkui/src/ArkFolderStack.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return (this.peer as ArkFolderStackPeer) } /** @memo */ - setFolderStackOptions(options?: FolderStackOptions): this { + public setFolderStackOptions(options?: FolderStackOptions): this { if (this.checkPriority("setFolderStackOptions")) { const options_casted = options as (FolderStackOptions | undefined) this.getPeer()?.setFolderStackOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignContent(value: Alignment): this { + public alignContent(value: Alignment): this { if (this.checkPriority("alignContent")) { const value_casted = value as (Alignment) this.getPeer()?.alignContentAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFolderStateChange(value: OnFoldStatusChangeCallback): this { + public onFolderStateChange(value: OnFoldStatusChangeCallback): this { if (this.checkPriority("onFolderStateChange")) { const value_casted = value as (OnFoldStatusChangeCallback) UseEventsProperties({FolderStack_onFolderStateChange: value_casted}) @@ -87,7 +87,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHoverStatusChange(value: OnHoverStatusChangeCallback): this { + public onHoverStatusChange(value: OnHoverStatusChangeCallback): this { if (this.checkPriority("onHoverStatusChange")) { const value_casted = value as (OnHoverStatusChangeCallback) UseEventsProperties({FolderStack_onHoverStatusChange: value_casted}) @@ -97,7 +97,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnimation(value: boolean): this { + public enableAnimation(value: boolean): this { if (this.checkPriority("enableAnimation")) { const value_casted = value as (boolean) this.getPeer()?.enableAnimationAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkFolderStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoHalfFold(value: boolean): this { + public autoHalfFold(value: boolean): this { if (this.checkPriority("autoHalfFold")) { const value_casted = value as (boolean) this.getPeer()?.autoHalfFoldAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkFolderStackInterfaces.ts b/arkoala/arkui/src/ArkFolderStackInterfaces.ts index d62502520..b42fe6d9a 100644 --- a/arkoala/arkui/src/ArkFolderStackInterfaces.ts +++ b/arkoala/arkui/src/ArkFolderStackInterfaces.ts @@ -48,7 +48,7 @@ import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" export interface WindowStatusType { - __WindowStatusTypeStub: string; + _WindowStatusTypeStub: string; } export interface FolderStackOptions { upperItems?: Array; diff --git a/arkoala/arkui/src/ArkFormComponent.ts b/arkoala/arkui/src/ArkFormComponent.ts index 2a8740e0b..187992b71 100644 --- a/arkoala/arkui/src/ArkFormComponent.ts +++ b/arkoala/arkui/src/ArkFormComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkFormComponentPeer) } /** @memo */ - setFormComponentOptions(value: FormInfo): this { + public setFormComponentOptions(value: FormInfo): this { if (this.checkPriority("setFormComponentOptions")) { const value_casted = value as (FormInfo) this.getPeer()?.setFormComponentOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - size(value: SizeOptions): this { + public size(value: SizeOptions): this { if (this.checkPriority("size")) { const value_casted = value as (SizeOptions) this.getPeer()?.sizeAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - moduleName(value: string): this { + public moduleName(value: string): this { if (this.checkPriority("moduleName")) { const value_casted = value as (string) this.getPeer()?.moduleNameAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dimension(value: FormDimension): this { + public dimension(value: FormDimension): this { if (this.checkPriority("dimension")) { const value_casted = value as (FormDimension) this.getPeer()?.dimensionAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - allowUpdate(value: boolean): this { + public allowUpdate(value: boolean): this { if (this.checkPriority("allowUpdate")) { const value_casted = value as (boolean) this.getPeer()?.allowUpdateAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - visibility(value: Visibility): this { + public visibility(value: Visibility): this { if (this.checkPriority("visibility")) { const value_casted = value as (Visibility) this.getPeer()?.visibilityAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAcquired(value: ((parameter: FormCallbackInfo) => void)): this { + public onAcquired(value: ((parameter: FormCallbackInfo) => void)): this { if (this.checkPriority("onAcquired")) { const value_casted = value as (((parameter: FormCallbackInfo) => void)) UseEventsProperties({FormComponent_onAcquired: value_casted}) @@ -123,7 +123,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ((info: { errcode: number, msg: string }) => void)): this { + public onError(value: ((info: { errcode: number, msg: string }) => void)): this { if (this.checkPriority("onError")) { const value_casted = value as (((info: { errcode: number, msg: string }) => void)) UseEventsProperties({FormComponent_onError: value_casted}) @@ -133,7 +133,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRouter(value: ((info: any) => void)): this { + public onRouter(value: ((info: any) => void)): this { if (this.checkPriority("onRouter")) { const value_casted = value as (((info: any) => void)) UseEventsProperties({FormComponent_onRouter: value_casted}) @@ -143,7 +143,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onUninstall(value: ((parameter: FormCallbackInfo) => void)): this { + public onUninstall(value: ((parameter: FormCallbackInfo) => void)): this { if (this.checkPriority("onUninstall")) { const value_casted = value as (((parameter: FormCallbackInfo) => void)) UseEventsProperties({FormComponent_onUninstall: value_casted}) @@ -153,7 +153,7 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLoad(value: (() => void)): this { + public onLoad(value: (() => void)): this { if (this.checkPriority("onLoad")) { const value_casted = value as ((() => void)) UseEventsProperties({FormComponent_onLoad: value_casted}) diff --git a/arkoala/arkui/src/ArkFormLink.ts b/arkoala/arkui/src/ArkFormLink.ts index df4906374..1e5194e0a 100644 --- a/arkoala/arkui/src/ArkFormLink.ts +++ b/arkoala/arkui/src/ArkFormLink.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkFormLinkComponent extends ArkCommonMethodComponent { return (this.peer as ArkFormLinkPeer) } /** @memo */ - setFormLinkOptions(options: FormLinkOptions): this { + public setFormLinkOptions(options: FormLinkOptions): this { if (this.checkPriority("setFormLinkOptions")) { const options_casted = options as (FormLinkOptions) this.getPeer()?.setFormLinkOptionsAttribute(options_casted) diff --git a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts b/arkoala/arkui/src/ArkFrameNodeMaterialized.ts index c4fdc18ae..8b1132e48 100644 --- a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts +++ b/arkoala/arkui/src/ArkFrameNodeMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -49,56 +49,56 @@ export class FrameNode implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FrameNode_getFinalizer() } - isModifiable(): boolean { + public isModifiable(): boolean { return this.isModifiable_serialize() } - appendChild(node: FrameNode): void { + public appendChild(node: FrameNode): void { const node_casted = node as (FrameNode) this?.appendChild_serialize(node_casted) return } - insertChildAfter(child: FrameNode, sibling: FrameNode): void { + public insertChildAfter(child: FrameNode, sibling: FrameNode): void { const child_casted = child as (FrameNode) const sibling_casted = sibling as (FrameNode) this?.insertChildAfter_serialize(child_casted, sibling_casted) return } - removeChild(node: FrameNode): void { + public removeChild(node: FrameNode): void { const node_casted = node as (FrameNode) this?.removeChild_serialize(node_casted) return } - clearChildren(): void { + public clearChildren(): void { this?.clearChildren_serialize() return } - getChild(index: number): FrameNode { + public getChild(index: number): FrameNode { const index_casted = index as (number) return this.getChild_serialize(index_casted) } - getFirstChild(): FrameNode { + public getFirstChild(): FrameNode { return this.getFirstChild_serialize() } - getNextSibling(): FrameNode { + public getNextSibling(): FrameNode { return this.getNextSibling_serialize() } - getPreviousSibling(): FrameNode { + public getPreviousSibling(): FrameNode { return this.getPreviousSibling_serialize() } - getParent(): FrameNode { + public getParent(): FrameNode { return this.getParent_serialize() } - getChildrenCount(): int32 { + public getChildrenCount(): int32 { return this.getChildrenCount_serialize() } - dispose(): void { + public dispose(): void { this?.dispose_serialize() return } - getOpacity(): number { + public getOpacity(): number { return this.getOpacity_serialize() } - getPositionToWindowWithTransform(): Position { + public getPositionToWindowWithTransform(): Position { return this.getPositionToWindowWithTransform_serialize() } private isModifiable_serialize(): boolean { diff --git a/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts b/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts new file mode 100644 index 000000000..ed526f5e9 --- /dev/null +++ b/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts @@ -0,0 +1,54 @@ +/* + * 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 } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 FrictionMotion implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(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) + this.peer = new Finalizable(ctorPtr, FrictionMotion.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkFullScreenExitHandlerMaterialized.ts index 53b8f4378..8dff82d9d 100644 --- a/arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class FullScreenExitHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._FullScreenExitHandler_getFinalizer() } - exitFullScreen(): void { + public exitFullScreen(): void { this?.exitFullScreen_serialize() return } diff --git a/arkoala/arkui/src/ArkGauge.ts b/arkoala/arkui/src/ArkGauge.ts index 69a5c6858..984793a04 100644 --- a/arkoala/arkui/src/ArkGauge.ts +++ b/arkoala/arkui/src/ArkGauge.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -52,14 +52,16 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearGradient } from "./ArkLinearGradientMaterialized" import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./ArkGaugeInterfaces" +import { ColorStop } from "./ArkDataPanelInterfaces" /** @memo:stable */ export class ArkGaugeComponent extends ArkCommonMethodComponent { getPeer(): ArkGaugePeer { return (this.peer as ArkGaugePeer) } /** @memo */ - setGaugeOptions(options: GaugeOptions): this { + public setGaugeOptions(options: GaugeOptions): this { if (this.checkPriority("setGaugeOptions")) { const options_casted = options as (GaugeOptions) this.getPeer()?.setGaugeOptionsAttribute(options_casted) @@ -68,7 +70,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - value(value: number): this { + public value(value: number): this { if (this.checkPriority("value")) { const value_casted = value as (number) this.getPeer()?.valueAttribute(value_casted) @@ -77,7 +79,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - startAngle(value: number): this { + public startAngle(value: number): this { if (this.checkPriority("startAngle")) { const value_casted = value as (number) this.getPeer()?.startAngleAttribute(value_casted) @@ -86,7 +88,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - endAngle(value: number): this { + public endAngle(value: number): this { if (this.checkPriority("endAngle")) { const value_casted = value as (number) this.getPeer()?.endAngleAttribute(value_casted) @@ -95,16 +97,16 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - colors(value: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>): this { + public colors(value: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>): this { if (this.checkPriority("colors")) { - const value_casted = value as (ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>) + const value_casted = value as (ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>) this.getPeer()?.colorsAttribute(value_casted) return this } return this } /** @memo */ - strokeWidth(value: Length): this { + public strokeWidth(value: Length): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (Length) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -113,7 +115,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - description(value: CustomBuilder): this { + public description(value: CustomBuilder): this { if (this.checkPriority("description")) { const value_casted = value as (CustomBuilder) UseEventsProperties({Gauge_description: value_casted}) @@ -123,7 +125,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackShadow(value: GaugeShadowOptions): this { + public trackShadow(value: GaugeShadowOptions): this { if (this.checkPriority("trackShadow")) { const value_casted = value as (GaugeShadowOptions) this.getPeer()?.trackShadowAttribute(value_casted) @@ -132,7 +134,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicator(value: GaugeIndicatorOptions): this { + public indicator(value: GaugeIndicatorOptions): this { if (this.checkPriority("indicator")) { const value_casted = value as (GaugeIndicatorOptions) this.getPeer()?.indicatorAttribute(value_casted) @@ -141,7 +143,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value?: boolean): this { + public privacySensitive(value?: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean | undefined) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -150,7 +152,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkGaugeInterfaces.ts b/arkoala/arkui/src/ArkGaugeInterfaces.ts index 5965fe292..35ba2b0ea 100644 --- a/arkoala/arkui/src/ArkGaugeInterfaces.ts +++ b/arkoala/arkui/src/ArkGaugeInterfaces.ts @@ -47,6 +47,8 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { ColorStop } from "./ArkDataPanelInterfaces" export interface GaugeOptions { value: number; min?: number; @@ -68,7 +70,7 @@ export interface GaugeAttribute extends CommonMethod { value: number; startAngle: number; endAngle: number; - colors: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>; + colors: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>; strokeWidth: Length; description: CustomBuilder; trackShadow: GaugeShadowOptions; diff --git a/arkoala/arkui/src/ArkGestureEventMaterialized.ts b/arkoala/arkui/src/ArkGestureEventMaterialized.ts index 5d40250fe..a27ee6e21 100644 --- a/arkoala/arkui/src/ArkGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkGestureEventMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts b/arkoala/arkui/src/ArkGestureModifierMaterialized.ts index b2d173ca2..40dce61c6 100644 --- a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts +++ b/arkoala/arkui/src/ArkGestureModifierMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -46,7 +46,7 @@ export class GestureModifierInternal implements MaterializedBase,GestureModifier static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureModifier_getFinalizer() } - applyGesture(event: UIGestureEvent): void { + public applyGesture(event: UIGestureEvent): void { const event_casted = event as (UIGestureEvent) this?.applyGesture_serialize(event_casted) return diff --git a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts b/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts index 647a6605f..2193cdf8e 100644 --- a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts +++ b/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,30 +44,30 @@ export class GestureRecognizer implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureRecognizer_getFinalizer() } - getTag(): string { + public getTag(): string { return this.getTag_serialize() } - getType(): GestureControl.GestureType { + public getType(): GestureControl.GestureType { return this.getType_serialize() } - isBuiltIn(): boolean { + public isBuiltIn(): boolean { return this.isBuiltIn_serialize() } - setEnabled(isEnabled: boolean): void { + public setEnabled(isEnabled: boolean): void { const isEnabled_casted = isEnabled as (boolean) this?.setEnabled_serialize(isEnabled_casted) return } - isEnabled(): boolean { + public isEnabled(): boolean { return this.isEnabled_serialize() } - getState(): GestureRecognizerState { + public getState(): GestureRecognizerState { return this.getState_serialize() } - getEventTargetInfo(): EventTargetInfo { + public getEventTargetInfo(): EventTargetInfo { return this.getEventTargetInfo_serialize() } - isValid(): boolean { + public isValid(): boolean { return this.isValid_serialize() } private getTag_serialize(): string { diff --git a/arkoala/arkui/src/ArkGestureStyleMaterialized.ts b/arkoala/arkui/src/ArkGestureStyleMaterialized.ts new file mode 100644 index 000000000..6af754a3e --- /dev/null +++ b/arkoala/arkui/src/ArkGestureStyleMaterialized.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 { GestureStyleInterface } from "./ArkStyledStringInterfaces" +import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +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 { 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 GestureStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(value?: GestureStyleInterface): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let value_type: int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeGestureStyleInterface(value_value) + } + const retval = ArkUIGeneratedNativeModule._GestureStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: GestureStyleInterface) { + const ctorPtr: KPointer = GestureStyle.ctor(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/ArkGlobalScopeCommonMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts index 9ae03728e..74b2afec3 100644 --- a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts @@ -26,76 +26,76 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +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 { - static getContext(component?: Object): Context { + public static getContext(component?: Object): Context { const component_casted = component as (Object | undefined) return GlobalScope_common.getContext_serialize(component_casted) } - static postCardAction(component: Object, action: Object): void { + 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 } - static dollar_r(value: string, params: Array): Resource { + 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) } - static dollar_rawfile(value: string): Resource { + public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) return GlobalScope_common.dollar_rawfile_serialize(value_casted) } - static animateTo(value: AnimateParam, event: (() => void)): void { + 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 } - static animateToImmediately(value: AnimateParam, event: (() => void)): void { + 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 } - static vp2px(value: number): number { + public static vp2px(value: number): number { const value_casted = value as (number) return GlobalScope_common.vp2px_serialize(value_casted) } - static px2vp(value: number): number { + public static px2vp(value: number): number { const value_casted = value as (number) return GlobalScope_common.px2vp_serialize(value_casted) } - static fp2px(value: number): number { + public static fp2px(value: number): number { const value_casted = value as (number) return GlobalScope_common.fp2px_serialize(value_casted) } - static px2fp(value: number): number { + public static px2fp(value: number): number { const value_casted = value as (number) return GlobalScope_common.px2fp_serialize(value_casted) } - static lpx2px(value: number): number { + public static lpx2px(value: number): number { const value_casted = value as (number) return GlobalScope_common.lpx2px_serialize(value_casted) } - static px2lpx(value: number): number { + public static px2lpx(value: number): number { const value_casted = value as (number) return GlobalScope_common.px2lpx_serialize(value_casted) } - static requestFocus(value: string): boolean { + public static requestFocus(value: string): boolean { const value_casted = value as (string) return GlobalScope_common.requestFocus_serialize(value_casted) } - static setCursor(value: PointerStyle): void { + public static setCursor(value: PointerStyle): void { const value_casted = value as (PointerStyle) GlobalScope_common.setCursor_serialize(value_casted) return } - static restoreDefault(): void { + public static restoreDefault(): void { GlobalScope_common.restoreDefault_serialize() return } diff --git a/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts index cb1eef880..ac348a075 100644 --- a/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts @@ -21,28 +21,28 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +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 { - static getInspectorNodes(): Object { + public static getInspectorNodes(): Object { return GlobalScope_inspector.getInspectorNodes_serialize() } - static getInspectorNodeById(id: number): Object { + public static getInspectorNodeById(id: number): Object { const id_casted = id as (number) return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) } - static registerVsyncCallback(callback_: ((info: string) => void)): void { + public static registerVsyncCallback(callback_: ((info: string) => void)): void { const callback__casted = callback_ as (((info: string) => void)) GlobalScope_inspector.registerVsyncCallback_serialize(callback__casted) return } - static unregisterVsyncCallback(): void { + public static unregisterVsyncCallback(): void { GlobalScope_inspector.unregisterVsyncCallback_serialize() return } - static setAppBgColor(value: string): void { + public static setAppBgColor(value: string): void { const value_casted = value as (string) GlobalScope_inspector.setAppBgColor_serialize(value_casted) return diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index 7c8e34d29..48fbd6788 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -46,7 +46,7 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_componentSnapshot_getFinalizer() } - static get(id: string, callback: ((result: PixelMap) => void), options?: SnapshotOptions): void { + public static get(id: string, callback: ((result: PixelMap) => void), options?: SnapshotOptions): void { const id_casted = id as (string) const callback_casted = callback as (((result: PixelMap) => void)) const options_casted = options as (SnapshotOptions | undefined) diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index e9bc9b183..24b4d5a91 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,23 +45,23 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_getFinalizer() } - static begin(scene: string, startInputType: PerfMonitorActionType, note?: string): void { + public static begin(scene: string, startInputType: PerfMonitorActionType, note?: string): void { const scene_casted = scene as (string) const startInputType_casted = startInputType as (PerfMonitorActionType) const note_casted = note as (string | undefined) GlobalScope_ohos_arkui_performanceMonitor.begin_serialize(scene_casted, startInputType_casted, note_casted) return } - static end(scene: string): void { + public static end(scene: string): void { const scene_casted = scene as (string) GlobalScope_ohos_arkui_performanceMonitor.end_serialize(scene_casted) return } - static recordInputEventTime(type: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { - const type_casted = type as (PerfMonitorActionType) + public static recordInputEventTime(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { + const actionType_casted = actionType as (PerfMonitorActionType) const sourceType_casted = sourceType as (PerfMonitorSourceType) const time_casted = time as (number) - GlobalScope_ohos_arkui_performanceMonitor.recordInputEventTime_serialize(type_casted, sourceType_casted, time_casted) + GlobalScope_ohos_arkui_performanceMonitor.recordInputEventTime_serialize(actionType_casted, sourceType_casted, time_casted) return } private static begin_serialize(scene: string, startInputType: PerfMonitorActionType, note?: string): void { @@ -79,8 +79,8 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa private static end_serialize(scene: string): void { ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_end(scene) } - private static recordInputEventTime_serialize(type: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { - ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(type, sourceType, time) + private static recordInputEventTime_serialize(actionType: PerfMonitorActionType, sourceType: PerfMonitorSourceType, time: number): void { + ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType, sourceType, time) } } export class GlobalScope_ohos_arkui_performanceMonitorInternal { diff --git a/arkoala/arkui/src/ArkGrid.ts b/arkoala/arkui/src/ArkGrid.ts index 2e95a48f5..b32d15421 100644 --- a/arkoala/arkui/src/ArkGrid.ts +++ b/arkoala/arkui/src/ArkGrid.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -62,7 +62,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkGridPeer) } /** @memo */ - setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { + public setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { if (this.checkPriority("setGridOptions")) { const scroller_casted = scroller as (Scroller | undefined) const layoutOptions_casted = layoutOptions as (GridLayoutOptions | undefined) @@ -72,7 +72,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsTemplate(value: string): this { + public columnsTemplate(value: string): this { if (this.checkPriority("columnsTemplate")) { const value_casted = value as (string) this.getPeer()?.columnsTemplateAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsTemplate(value: string): this { + public rowsTemplate(value: string): this { if (this.checkPriority("rowsTemplate")) { const value_casted = value as (string) this.getPeer()?.rowsTemplateAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsGap(value: Length): this { + public columnsGap(value: Length): this { if (this.checkPriority("columnsGap")) { const value_casted = value as (Length) this.getPeer()?.columnsGapAttribute(value_casted) @@ -99,7 +99,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsGap(value: Length): this { + public rowsGap(value: Length): this { if (this.checkPriority("rowsGap")) { const value_casted = value as (Length) this.getPeer()?.rowsGapAttribute(value_casted) @@ -108,7 +108,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarWidth(value: number | string): this { + public scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) this.getPeer()?.scrollBarWidthAttribute(value_casted) @@ -117,7 +117,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarColor(value: Color | number | string): this { + public scrollBarColor(value: Color | number | string): this { if (this.checkPriority("scrollBarColor")) { const value_casted = value as (Color | number | string) this.getPeer()?.scrollBarColorAttribute(value_casted) @@ -126,7 +126,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -135,7 +135,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollBarUpdate(value: ((index: number, offset: number) => ComputedBarAttribute)): this { + public onScrollBarUpdate(value: ((index: number, offset: number) => ComputedBarAttribute)): this { if (this.checkPriority("onScrollBarUpdate")) { const value_casted = value as (((index: number, offset: number) => ComputedBarAttribute)) UseEventsProperties({Grid_onScrollBarUpdate: value_casted}) @@ -145,7 +145,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollIndex(value: ((first: number, last: number) => void)): this { + public onScrollIndex(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Grid_onScrollIndex: value_casted}) @@ -155,7 +155,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cachedCount(count: number, show?: boolean): this { + public cachedCount(count: number, show?: boolean): this { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) @@ -175,7 +175,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - editMode(value: boolean): this { + public editMode(value: boolean): this { if (this.checkPriority("editMode")) { const value_casted = value as (boolean) this.getPeer()?.editModeAttribute(value_casted) @@ -184,7 +184,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - multiSelectable(value: boolean): this { + public multiSelectable(value: boolean): this { if (this.checkPriority("multiSelectable")) { const value_casted = value as (boolean) this.getPeer()?.multiSelectableAttribute(value_casted) @@ -193,7 +193,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - maxCount(value: number): this { + public maxCount(value: number): this { if (this.checkPriority("maxCount")) { const value_casted = value as (number) this.getPeer()?.maxCountAttribute(value_casted) @@ -202,7 +202,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - minCount(value: number): this { + public minCount(value: number): this { if (this.checkPriority("minCount")) { const value_casted = value as (number) this.getPeer()?.minCountAttribute(value_casted) @@ -211,7 +211,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cellLength(value: number): this { + public cellLength(value: number): this { if (this.checkPriority("cellLength")) { const value_casted = value as (number) this.getPeer()?.cellLengthAttribute(value_casted) @@ -220,7 +220,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - layoutDirection(value: GridDirection): this { + public layoutDirection(value: GridDirection): this { if (this.checkPriority("layoutDirection")) { const value_casted = value as (GridDirection) this.getPeer()?.layoutDirectionAttribute(value_casted) @@ -229,7 +229,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - supportAnimation(value: boolean): this { + public supportAnimation(value: boolean): this { if (this.checkPriority("supportAnimation")) { const value_casted = value as (boolean) this.getPeer()?.supportAnimationAttribute(value_casted) @@ -238,7 +238,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragStart(value: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder)): this { + public onItemDragStart(value: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder)): this { if (this.checkPriority("onItemDragStart")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => CustomBuilder)) UseEventsProperties({Grid_onItemDragStart: value_casted}) @@ -248,7 +248,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { + public onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { if (this.checkPriority("onItemDragEnter")) { const value_casted = value as (((event: ItemDragInfo) => void)) UseEventsProperties({Grid_onItemDragEnter: value_casted}) @@ -258,7 +258,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragMove(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { + public onItemDragMove(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { if (this.checkPriority("onItemDragMove")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)) UseEventsProperties({Grid_onItemDragMove: value_casted}) @@ -268,7 +268,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragLeave(value: ((event: ItemDragInfo, itemIndex: number) => void)): this { + public onItemDragLeave(value: ((event: ItemDragInfo, itemIndex: number) => void)): this { if (this.checkPriority("onItemDragLeave")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => void)) UseEventsProperties({Grid_onItemDragLeave: value_casted}) @@ -278,7 +278,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDrop(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { + public onItemDrop(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { if (this.checkPriority("onItemDrop")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)) UseEventsProperties({Grid_onItemDrop: value_casted}) @@ -288,7 +288,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -297,7 +297,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -306,7 +306,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -315,7 +315,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - alignItems(value?: GridItemAlignment): this { + public alignItems(value?: GridItemAlignment): this { if (this.checkPriority("alignItems")) { const value_casted = value as (GridItemAlignment | undefined) this.getPeer()?.alignItemsAttribute(value_casted) @@ -324,7 +324,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((first: number, last: number) => void)): this { + public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Grid_onScroll: value_casted}) @@ -334,7 +334,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) UseEventsProperties({Grid_onReachStart: value_casted}) @@ -344,7 +344,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) UseEventsProperties({Grid_onReachEnd: value_casted}) @@ -354,7 +354,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStart(value: (() => void)): this { + public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) UseEventsProperties({Grid_onScrollStart: value_casted}) @@ -364,7 +364,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStop(value: (() => void)): this { + public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) UseEventsProperties({Grid_onScrollStop: value_casted}) @@ -374,7 +374,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { + public onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number, state: ScrollState) => { offsetRemain: number })) UseEventsProperties({Grid_onScrollFrameBegin: value_casted}) @@ -384,7 +384,7 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const value_casted = value as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) diff --git a/arkoala/arkui/src/ArkGridCol.ts b/arkoala/arkui/src/ArkGridCol.ts index 2a7987734..6d1b0e483 100644 --- a/arkoala/arkui/src/ArkGridCol.ts +++ b/arkoala/arkui/src/ArkGridCol.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return (this.peer as ArkGridColPeer) } /** @memo */ - setGridColOptions(option?: GridColOptions): this { + public setGridColOptions(option?: GridColOptions): this { if (this.checkPriority("setGridColOptions")) { const option_casted = option as (GridColOptions | undefined) this.getPeer()?.setGridColOptionsAttribute(option_casted) @@ -67,7 +67,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return this } /** @memo */ - span(value: number | GridColColumnOption): this { + public span(value: number | GridColColumnOption): this { if (this.checkPriority("span")) { const value_casted = value as (number | GridColColumnOption) this.getPeer()?.spanAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return this } /** @memo */ - gridColOffset(value: number | GridColColumnOption): this { + public gridColOffset(value: number | GridColColumnOption): this { if (this.checkPriority("gridColOffset")) { const value_casted = value as (number | GridColColumnOption) this.getPeer()?.gridColOffsetAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkGridColComponent extends ArkCommonMethodComponent { return this } /** @memo */ - order(value: number | GridColColumnOption): this { + public order(value: number | GridColColumnOption): this { if (this.checkPriority("order")) { const value_casted = value as (number | GridColColumnOption) this.getPeer()?.orderAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkGridContainer.ts b/arkoala/arkui/src/ArkGridContainer.ts index 5ba2f45c8..168437aed 100644 --- a/arkoala/arkui/src/ArkGridContainer.ts +++ b/arkoala/arkui/src/ArkGridContainer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkGridContainerComponent extends ArkColumnComponent { return (this.peer as ArkGridContainerPeer) } /** @memo */ - setGridContainerOptions(value?: GridContainerOptions): this { + public setGridContainerOptions(value?: GridContainerOptions): this { if (this.checkPriority("setGridContainerOptions")) { const value_casted = value as (GridContainerOptions | undefined) this.getPeer()?.setGridContainerOptionsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkGridItem.ts b/arkoala/arkui/src/ArkGridItem.ts index 2192647a3..4b775117b 100644 --- a/arkoala/arkui/src/ArkGridItem.ts +++ b/arkoala/arkui/src/ArkGridItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkGridItemPeer) } /** @memo */ - setGridItemOptions(value?: GridItemOptions): this { + public setGridItemOptions(value?: GridItemOptions): this { if (this.checkPriority("setGridItemOptions")) { const value_casted = value as (GridItemOptions | undefined) this.getPeer()?.setGridItemOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - rowStart(value: number): this { + public rowStart(value: number): this { if (this.checkPriority("rowStart")) { const value_casted = value as (number) this.getPeer()?.rowStartAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - rowEnd(value: number): this { + public rowEnd(value: number): this { if (this.checkPriority("rowEnd")) { const value_casted = value as (number) this.getPeer()?.rowEndAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - columnStart(value: number): this { + public columnStart(value: number): this { if (this.checkPriority("columnStart")) { const value_casted = value as (number) this.getPeer()?.columnStartAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - columnEnd(value: number): this { + public columnEnd(value: number): this { if (this.checkPriority("columnEnd")) { const value_casted = value as (number) this.getPeer()?.columnEndAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - forceRebuild(value: boolean): this { + public forceRebuild(value: boolean): this { if (this.checkPriority("forceRebuild")) { const value_casted = value as (boolean) this.getPeer()?.forceRebuildAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectable(value: boolean): this { + public selectable(value: boolean): this { if (this.checkPriority("selectable")) { const value_casted = value as (boolean) this.getPeer()?.selectableAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: boolean): this { + public selected(value: boolean): this { if (this.checkPriority("selected")) { const value_casted = value as (boolean) this.getPeer()?.selectedAttribute(value_casted) @@ -131,7 +131,7 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((parameter: boolean) => void)): this { + public onSelect(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({GridItem_onSelect: value_casted}) @@ -141,11 +141,11 @@ export class ArkGridItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({GridItem___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({GridItem__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkGridRow.ts b/arkoala/arkui/src/ArkGridRow.ts index c1cb833a0..702b65ad5 100644 --- a/arkoala/arkui/src/ArkGridRow.ts +++ b/arkoala/arkui/src/ArkGridRow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { return (this.peer as ArkGridRowPeer) } /** @memo */ - setGridRowOptions(option?: GridRowOptions): this { + public setGridRowOptions(option?: GridRowOptions): this { if (this.checkPriority("setGridRowOptions")) { const option_casted = option as (GridRowOptions | undefined) this.getPeer()?.setGridRowOptionsAttribute(option_casted) @@ -68,7 +68,7 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBreakpointChange(value: ((breakpoints: string) => void)): this { + public onBreakpointChange(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onBreakpointChange")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({GridRow_onBreakpointChange: value_casted}) @@ -78,7 +78,7 @@ export class ArkGridRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignItems(value: ItemAlign): this { + public alignItems(value: ItemAlign): this { if (this.checkPriority("alignItems")) { const value_casted = value as (ItemAlign) this.getPeer()?.alignItemsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts new file mode 100644 index 000000000..44a25301c --- /dev/null +++ b/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts @@ -0,0 +1,83 @@ +/* + * 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 { SymbolEffect, EffectFillStyle } from "./ArkSymbolglyphInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get fillStyle(): EffectFillStyle { + return this.getFillStyle() + } + set fillStyle(fillStyle: EffectFillStyle) { + const fillStyle_NonNull = (fillStyle as EffectFillStyle) + this.setFillStyle(fillStyle_NonNull) + } + static ctor(fillStyle?: EffectFillStyle): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let fillStyle_type: int32 = RuntimeType.UNDEFINED + fillStyle_type = runtimeType(fillStyle) + thisSerializer.writeInt8(fillStyle_type) + if ((RuntimeType.UNDEFINED) != (fillStyle_type)) { + const fillStyle_value = fillStyle! + thisSerializer.writeInt32(fillStyle_value) + } + const retval = ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(fillStyle?: EffectFillStyle) { + const ctorPtr: KPointer = HierarchicalSymbolEffect.ctor(fillStyle) + this.peer = new Finalizable(ctorPtr, HierarchicalSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_getFinalizer() + } + private getFillStyle(): EffectFillStyle { + return this.getFillStyle_serialize() + } + private setFillStyle(fillStyle: EffectFillStyle): void { + const fillStyle_casted = fillStyle as (EffectFillStyle) + this?.setFillStyle_serialize(fillStyle_casted) + return + } + private getFillStyle_serialize(): EffectFillStyle { + const retval = ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_getFillStyle(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setFillStyle_serialize(fillStyle: EffectFillStyle): void { + 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/ArkHoverEventMaterialized.ts index 18edb20bc..ceae53107 100644 --- a/arkoala/arkui/src/ArkHoverEventMaterialized.ts +++ b/arkoala/arkui/src/ArkHoverEventMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -54,11 +54,18 @@ export class HoverEventInternal extends BaseEventInternal implements Materialize static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._HoverEvent_getFinalizer() } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this?.setStopPropagation_serialize(stopPropagation_casted) return } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._HoverEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) diff --git a/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts b/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts index ff147f3cd..d2c8c14c6 100644 --- a/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,16 +41,16 @@ export class HttpAuthHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._HttpAuthHandler_getFinalizer() } - confirm(userName: string, password: string): boolean { + public confirm(userName: string, password: string): boolean { const userName_casted = userName as (string) const password_casted = password as (string) return this.confirm_serialize(userName_casted, password_casted) } - cancel(): void { + public cancel(): void { this?.cancel_serialize() return } - isHttpAuthInfoSaved(): boolean { + public isHttpAuthInfoSaved(): boolean { return this.isHttpAuthInfoSaved_serialize() } private confirm_serialize(userName: string, password: string): boolean { diff --git a/arkoala/arkui/src/ArkHyperlink.ts b/arkoala/arkui/src/ArkHyperlink.ts index 8a7105ca3..ec08a8f48 100644 --- a/arkoala/arkui/src/ArkHyperlink.ts +++ b/arkoala/arkui/src/ArkHyperlink.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { return (this.peer as ArkHyperlinkPeer) } /** @memo */ - setHyperlinkOptions(address: string | Resource, content?: string | Resource): this { + public setHyperlinkOptions(address: string | Resource, content?: string | Resource): this { if (this.checkPriority("setHyperlinkOptions")) { const address_casted = address as (string | Resource) const content_casted = content as (string | Resource | undefined) @@ -68,7 +68,7 @@ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: Color | number | string | Resource): this { + public color(value: Color | number | string | Resource): this { if (this.checkPriority("color")) { const value_casted = value as (Color | number | string | Resource) this.getPeer()?.colorAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkICurveMaterialized.ts b/arkoala/arkui/src/ArkICurveMaterialized.ts index a5652edd4..7c70763ad 100644 --- a/arkoala/arkui/src/ArkICurveMaterialized.ts +++ b/arkoala/arkui/src/ArkICurveMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,7 +44,7 @@ export class ICurveInternal implements MaterializedBase,ICurve { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ICurve_getFinalizer() } - interpolate(fraction: number): number { + public interpolate(fraction: number): number { const fraction_casted = fraction as (number) return this.interpolate_serialize(fraction_casted) } diff --git a/arkoala/arkui/src/ArkImage.ts b/arkoala/arkui/src/ArkImage.ts index 7c0336354..63bd982a8 100644 --- a/arkoala/arkui/src/ArkImage.ts +++ b/arkoala/arkui/src/ArkImage.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,7 +25,7 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" import { UseEventsProperties } from "./use_properties" 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" -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, ColorFilter } from "./ArkUnitsInterfaces" +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" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" @@ -52,6 +52,7 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./ArkImageCommonInterfaces" import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" /** @memo:stable */ @@ -60,22 +61,22 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return (this.peer as ArkImagePeer) } /** @memo */ - setImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | ImageContent, imageAIOptions?: ImageAIOptions): this { + public setImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | ImageContent, imageAIOptions?: ImageAIOptions): this { 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 @@ -85,7 +86,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alt(value: string | Resource | PixelMap): this { + public alt(value: string | Resource | PixelMap): this { if (this.checkPriority("alt")) { const value_casted = value as (string | Resource | PixelMap) this.getPeer()?.altAttribute(value_casted) @@ -94,7 +95,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - matchTextDirection(value: boolean): this { + public matchTextDirection(value: boolean): this { if (this.checkPriority("matchTextDirection")) { const value_casted = value as (boolean) this.getPeer()?.matchTextDirectionAttribute(value_casted) @@ -103,7 +104,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fitOriginalSize(value: boolean): this { + public fitOriginalSize(value: boolean): this { if (this.checkPriority("fitOriginalSize")) { const value_casted = value as (boolean) this.getPeer()?.fitOriginalSizeAttribute(value_casted) @@ -112,7 +113,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillColor(value: ResourceColor): this { + public fillColor(value: ResourceColor): this { if (this.checkPriority("fillColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fillColorAttribute(value_casted) @@ -121,7 +122,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - objectFit(value: ImageFit): this { + public objectFit(value: ImageFit): this { if (this.checkPriority("objectFit")) { const value_casted = value as (ImageFit) this.getPeer()?.objectFitAttribute(value_casted) @@ -130,7 +131,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - objectRepeat(value: ImageRepeat): this { + public objectRepeat(value: ImageRepeat): this { if (this.checkPriority("objectRepeat")) { const value_casted = value as (ImageRepeat) this.getPeer()?.objectRepeatAttribute(value_casted) @@ -139,7 +140,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoResize(value: boolean): this { + public autoResize(value: boolean): this { if (this.checkPriority("autoResize")) { const value_casted = value as (boolean) this.getPeer()?.autoResizeAttribute(value_casted) @@ -148,7 +149,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderMode(value: ImageRenderMode): this { + public renderMode(value: ImageRenderMode): this { if (this.checkPriority("renderMode")) { const value_casted = value as (ImageRenderMode) this.getPeer()?.renderModeAttribute(value_casted) @@ -157,7 +158,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dynamicRangeMode(value: DynamicRangeMode): this { + public dynamicRangeMode(value: DynamicRangeMode): this { if (this.checkPriority("dynamicRangeMode")) { const value_casted = value as (DynamicRangeMode) this.getPeer()?.dynamicRangeModeAttribute(value_casted) @@ -166,7 +167,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - interpolation(value: ImageInterpolation): this { + public interpolation(value: ImageInterpolation): this { if (this.checkPriority("interpolation")) { const value_casted = value as (ImageInterpolation) this.getPeer()?.interpolationAttribute(value_casted) @@ -175,7 +176,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sourceSize(value: ImageSourceSize): this { + public sourceSize(value: ImageSourceSize): this { if (this.checkPriority("sourceSize")) { const value_casted = value as (ImageSourceSize) this.getPeer()?.sourceSizeAttribute(value_casted) @@ -184,7 +185,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - syncLoad(value: boolean): this { + public syncLoad(value: boolean): this { if (this.checkPriority("syncLoad")) { const value_casted = value as (boolean) this.getPeer()?.syncLoadAttribute(value_casted) @@ -193,7 +194,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - colorFilter(value: ColorFilter | DrawingColorFilter): this { + public colorFilter(value: ColorFilter | DrawingColorFilter): this { if (this.checkPriority("colorFilter")) { const value_casted = value as (ColorFilter | DrawingColorFilter) this.getPeer()?.colorFilterAttribute(value_casted) @@ -202,7 +203,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -211,7 +212,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - draggable(value: boolean): this { + public draggable(value: boolean): this { if (this.checkPriority("draggable")) { const value_casted = value as (boolean) this.getPeer()?.draggableAttribute(value_casted) @@ -220,7 +221,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) @@ -229,7 +230,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - edgeAntialiasing(value: number): this { + public edgeAntialiasing(value: number): this { if (this.checkPriority("edgeAntialiasing")) { const value_casted = value as (number) this.getPeer()?.edgeAntialiasingAttribute(value_casted) @@ -238,7 +239,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onComplete(value: ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void)): this { + public onComplete(value: ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void)): this { if (this.checkPriority("onComplete")) { const value_casted = value as (((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void)) UseEventsProperties({Image_onComplete: value_casted}) @@ -248,7 +249,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ImageErrorCallback): this { + public onError(value: ImageErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ImageErrorCallback) UseEventsProperties({Image_onError: value_casted}) @@ -258,7 +259,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) UseEventsProperties({Image_onFinish: value_casted}) @@ -268,7 +269,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) @@ -277,7 +278,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - analyzerConfig(value: ImageAnalyzerConfig): this { + public analyzerConfig(value: ImageAnalyzerConfig): this { if (this.checkPriority("analyzerConfig")) { const value_casted = value as (ImageAnalyzerConfig) this.getPeer()?.analyzerConfigAttribute(value_casted) @@ -286,7 +287,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - resizable(value: ResizableOptions): this { + public resizable(value: ResizableOptions): this { if (this.checkPriority("resizable")) { const value_casted = value as (ResizableOptions) this.getPeer()?.resizableAttribute(value_casted) @@ -295,7 +296,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value: boolean): this { + public privacySensitive(value: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -304,7 +305,7 @@ export class ArkImageComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enhancedImageQuality(value: ResolutionQuality): this { + public enhancedImageQuality(value: ResolutionQuality): this { if (this.checkPriority("enhancedImageQuality")) { const value_casted = value as (ResolutionQuality) this.getPeer()?.enhancedImageQualityAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts b/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts index d17ac6cfd..6566b71aa 100644 --- a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,7 +42,7 @@ export class ImageAnalyzerController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ImageAnalyzerController_getFinalizer() } - getImageAnalyzerSupportTypes(): Array { + public getImageAnalyzerSupportTypes(): Array { return this.getImageAnalyzerSupportTypes_serialize() } private getImageAnalyzerSupportTypes_serialize(): Array { diff --git a/arkoala/arkui/src/ArkImageAnimator.ts b/arkoala/arkui/src/ArkImageAnimator.ts index e40d6783d..82571e076 100644 --- a/arkoala/arkui/src/ArkImageAnimator.ts +++ b/arkoala/arkui/src/ArkImageAnimator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkImageAnimatorPeer) } /** @memo */ - setImageAnimatorOptions(): this { + public setImageAnimatorOptions(): this { if (this.checkPriority("setImageAnimatorOptions")) { this.getPeer()?.setImageAnimatorOptionsAttribute() return this @@ -67,7 +67,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - images(value: Array): this { + public images(value: Array): this { if (this.checkPriority("images")) { const value_casted = value as (Array) this.getPeer()?.imagesAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - state(value: AnimationStatus): this { + public state(value: AnimationStatus): this { if (this.checkPriority("state")) { const value_casted = value as (AnimationStatus) this.getPeer()?.stateAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - duration(value: number): this { + public duration(value: number): this { if (this.checkPriority("duration")) { const value_casted = value as (number) this.getPeer()?.durationAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - reverse(value: boolean): this { + public reverse(value: boolean): this { if (this.checkPriority("reverse")) { const value_casted = value as (boolean) this.getPeer()?.reverseAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fixedSize(value: boolean): this { + public fixedSize(value: boolean): this { if (this.checkPriority("fixedSize")) { const value_casted = value as (boolean) this.getPeer()?.fixedSizeAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - preDecode(value: number): this { + public preDecode(value: number): this { if (this.checkPriority("preDecode")) { const value_casted = value as (number) this.getPeer()?.preDecodeAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillMode(value: FillMode): this { + public fillMode(value: FillMode): this { if (this.checkPriority("fillMode")) { const value_casted = value as (FillMode) this.getPeer()?.fillModeAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - iterations(value: number): this { + public iterations(value: number): this { if (this.checkPriority("iterations")) { const value_casted = value as (number) this.getPeer()?.iterationsAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) UseEventsProperties({ImageAnimator_onStart: value_casted}) @@ -149,7 +149,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPause(value: (() => void)): this { + public onPause(value: (() => void)): this { if (this.checkPriority("onPause")) { const value_casted = value as ((() => void)) UseEventsProperties({ImageAnimator_onPause: value_casted}) @@ -159,7 +159,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRepeat(value: (() => void)): this { + public onRepeat(value: (() => void)): this { if (this.checkPriority("onRepeat")) { const value_casted = value as ((() => void)) UseEventsProperties({ImageAnimator_onRepeat: value_casted}) @@ -169,7 +169,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCancel(value: (() => void)): this { + public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) UseEventsProperties({ImageAnimator_onCancel: value_casted}) @@ -179,7 +179,7 @@ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) UseEventsProperties({ImageAnimator_onFinish: value_casted}) diff --git a/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts b/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts new file mode 100644 index 000000000..8f5dded25 --- /dev/null +++ b/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts @@ -0,0 +1,93 @@ +/* + * 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 { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyledStringInterfaces" +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 { 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 ImageAttachment implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get value(): PixelMap { + throw new Error("Not implemented") + } + get size(): SizeOptions { + throw new Error("Not implemented") + } + get verticalAlign(): ImageSpanAlignment { + return this.getVerticalAlign() + } + get objectFit(): ImageFit { + return this.getObjectFit() + } + get layoutStyle(): ImageAttachmentLayoutStyle { + throw new Error("Not implemented") + } + static ctor(value: ImageAttachmentInterface): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeImageAttachmentInterface(value) + const retval = ArkUIGeneratedNativeModule._ImageAttachment_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: ImageAttachmentInterface) { + if (((value) !== (undefined))) + { + const ctorPtr: KPointer = ImageAttachment.ctor(value) + this.peer = new Finalizable(ctorPtr, ImageAttachment.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ImageAttachment_getFinalizer() + } + private getVerticalAlign(): ImageSpanAlignment { + return this.getVerticalAlign_serialize() + } + private getObjectFit(): ImageFit { + return this.getObjectFit_serialize() + } + private getVerticalAlign_serialize(): ImageSpanAlignment { + const retval = ArkUIGeneratedNativeModule._ImageAttachment_getVerticalAlign(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getObjectFit_serialize(): ImageFit { + const retval = ArkUIGeneratedNativeModule._ImageAttachment_getObjectFit(this.peer!.ptr) + 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/ArkImageBitmapMaterialized.ts index df8149188..7ee93d18f 100644 --- a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts +++ b/arkoala/arkui/src/ArkImageBitmapMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,7 +52,7 @@ export class ImageBitmap implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ImageBitmap_getFinalizer() } - close(): void { + public close(): void { this?.close_serialize() return } diff --git a/arkoala/arkui/src/ArkImageDataMaterialized.ts b/arkoala/arkui/src/ArkImageDataMaterialized.ts new file mode 100644 index 000000000..d467de1b5 --- /dev/null +++ b/arkoala/arkui/src/ArkImageDataMaterialized.ts @@ -0,0 +1,87 @@ +/* + * 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 { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 ImageData implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get data(): ArrayBuffer { + throw new Error("Not implemented") + } + get height(): number { + return this.getHeight() + } + get width(): number { + return this.getWidth() + } + static ctor(width: number, height: number, data?: ArrayBuffer): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let data_type: int32 = RuntimeType.UNDEFINED + data_type = runtimeType(data) + thisSerializer.writeInt8(data_type) + if ((RuntimeType.UNDEFINED) != (data_type)) { + const data_value = data! + thisSerializer.writeBuffer(data_value) + } + const retval = ArkUIGeneratedNativeModule._ImageData_ctor(width, height, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(width?: number, height?: number, data?: ArrayBuffer) { + if (((width) !== (undefined)) && ((height) !== (undefined)) && ((data) !== (undefined))) + { + const ctorPtr: KPointer = ImageData.ctor(width, height, data) + this.peer = new Finalizable(ctorPtr, ImageData.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ImageData_getFinalizer() + } + private getHeight(): number { + return this.getHeight_serialize() + } + private getWidth(): number { + return this.getWidth_serialize() + } + private getHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ImageData_getHeight(this.peer!.ptr) + return retval + } + private getWidth_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ImageData_getWidth(this.peer!.ptr) + 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/ArkImageInterfaces.ts index cd4a766aa..eec90f312 100644 --- a/arkoala/arkui/src/ArkImageInterfaces.ts +++ b/arkoala/arkui/src/ArkImageInterfaces.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 { PixelMap } from "./ArkPixelMapMaterialized" -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, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } 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, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" 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" @@ -47,18 +47,19 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" export interface DrawableDescriptor { - __DrawableDescriptorStub: string; + _DrawableDescriptorStub: string; } export interface DrawingColorFilter { - __DrawingColorFilterStub: string; + _DrawingColorFilterStub: string; } export interface ResolutionQuality { - __ResolutionQualityStub: string; + _ResolutionQualityStub: string; } export interface DrawingLattice { - __DrawingLatticeStub: string; + _DrawingLatticeStub: string; } export enum ImageRenderMode { ORIGINAL, diff --git a/arkoala/arkui/src/ArkImageSpan.ts b/arkoala/arkui/src/ArkImageSpan.ts index 14d25e6b7..7b937558d 100644 --- a/arkoala/arkui/src/ArkImageSpan.ts +++ b/arkoala/arkui/src/ArkImageSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -26,7 +26,7 @@ import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" import { UseEventsProperties } from "./use_properties" import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" 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" -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, ColorFilter } from "./ArkUnitsInterfaces" +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" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" @@ -53,6 +53,7 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { ImageCompleteCallback, ImageSpanAttribute } from "./ArkImageSpanInterfaces" /** @memo:stable */ export class ArkImageSpanComponent extends ArkBaseSpanComponent { @@ -60,7 +61,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return (this.peer as ArkImageSpanPeer) } /** @memo */ - setImageSpanOptions(value: ResourceStr | PixelMap): this { + public setImageSpanOptions(value: ResourceStr | PixelMap): this { if (this.checkPriority("setImageSpanOptions")) { const value_casted = value as (ResourceStr | PixelMap) this.getPeer()?.setImageSpanOptionsAttribute(value_casted) @@ -69,7 +70,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - verticalAlign(value: ImageSpanAlignment): this { + public verticalAlign(value: ImageSpanAlignment): this { if (this.checkPriority("verticalAlign")) { const value_casted = value as (ImageSpanAlignment) this.getPeer()?.verticalAlignAttribute(value_casted) @@ -78,7 +79,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - colorFilter(value: ColorFilter | DrawingColorFilter): this { + public colorFilter(value: ColorFilter | DrawingColorFilter): this { if (this.checkPriority("colorFilter")) { const value_casted = value as (ColorFilter | DrawingColorFilter) this.getPeer()?.colorFilterAttribute(value_casted) @@ -87,7 +88,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - objectFit(value: ImageFit): this { + public objectFit(value: ImageFit): this { if (this.checkPriority("objectFit")) { const value_casted = value as (ImageFit) this.getPeer()?.objectFitAttribute(value_casted) @@ -96,7 +97,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - onComplete(value: ImageCompleteCallback): this { + public onComplete(value: ImageCompleteCallback): this { if (this.checkPriority("onComplete")) { const value_casted = value as (ImageCompleteCallback) UseEventsProperties({ImageSpan_onComplete: value_casted}) @@ -106,7 +107,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - onError(value: ImageErrorCallback): this { + public onError(value: ImageErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ImageErrorCallback) UseEventsProperties({ImageSpan_onError: value_casted}) @@ -116,7 +117,7 @@ export class ArkImageSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - alt(value: PixelMap): this { + public alt(value: PixelMap): this { if (this.checkPriority("alt")) { const value_casted = value as (PixelMap) this.getPeer()?.altAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkImageSpanInterfaces.ts b/arkoala/arkui/src/ArkImageSpanInterfaces.ts index 0b502ffc8..fe0da8e63 100644 --- a/arkoala/arkui/src/ArkImageSpanInterfaces.ts +++ b/arkoala/arkui/src/ArkImageSpanInterfaces.ts @@ -19,7 +19,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -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, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } 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, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { Resource } from "./ArkResourceInterfaces" import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" @@ -48,6 +48,7 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" export type ImageSpanInterface = (value: ResourceStr | PixelMap) => ImageSpanAttribute; export interface ImageSpanAttribute extends BaseSpan { verticalAlign: ImageSpanAlignment; diff --git a/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts b/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts index ae89e70d0..f5be89f2f 100644 --- a/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,15 +41,15 @@ export class IndicatorComponentController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._IndicatorComponentController_getFinalizer() } - showNext(): void { + public showNext(): void { this?.showNext_serialize() return } - showPrevious(): void { + public showPrevious(): void { this?.showPrevious_serialize() return } - changeIndex(index: number, useAnimation?: boolean): void { + public changeIndex(index: number, useAnimation?: boolean): void { const index_casted = index as (number) const useAnimation_casted = useAnimation as (boolean | undefined) this?.changeIndex_serialize(index_casted, useAnimation_casted) diff --git a/arkoala/arkui/src/ArkIndicatorcomponent.ts b/arkoala/arkui/src/ArkIndicatorcomponent.ts index 408881a35..4c111db2c 100644 --- a/arkoala/arkui/src/ArkIndicatorcomponent.ts +++ b/arkoala/arkui/src/ArkIndicatorcomponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -63,7 +63,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkIndicatorComponentPeer) } /** @memo */ - setIndicatorComponentOptions(controller?: IndicatorComponentController): this { + public setIndicatorComponentOptions(controller?: IndicatorComponentController): this { if (this.checkPriority("setIndicatorComponentOptions")) { const controller_casted = controller as (IndicatorComponentController | undefined) this.getPeer()?.setIndicatorComponentOptionsAttribute(controller_casted) @@ -72,7 +72,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - initialIndex(value: number): this { + public initialIndex(value: number): this { if (this.checkPriority("initialIndex")) { const value_casted = value as (number) this.getPeer()?.initialIndexAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - count(value: number): this { + public count(value: number): this { if (this.checkPriority("count")) { const value_casted = value as (number) this.getPeer()?.countAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - style(value: DotIndicator | DigitIndicator): this { + public style(value: DotIndicator | DigitIndicator): this { if (this.checkPriority("style")) { const value_casted = value as (DotIndicator | DigitIndicator) this.getPeer()?.styleAttribute(value_casted) @@ -99,7 +99,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -108,7 +108,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -117,7 +117,7 @@ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({IndicatorComponent_onChange: value_casted}) diff --git a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts b/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts index 55e6409c3..1e0ca34a4 100644 --- a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts +++ b/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts @@ -48,10 +48,10 @@ import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" export interface ErrorCallback { - __ErrorCallbackStub: string; + _ErrorCallbackStub: string; } export interface RestrictedWorker { - __RestrictedWorkerStub: string; + _RestrictedWorkerStub: string; } export interface IsolatedOptions { want: Want; diff --git a/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts b/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts index 9bd09f7e1..ce2f13d0e 100644 --- a/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts +++ b/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class JsGeolocation implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._JsGeolocation_getFinalizer() } - invoke(origin: string, allow: boolean, retain: boolean): void { + public invoke(origin: string, allow: boolean, retain: boolean): void { const origin_casted = origin as (string) const allow_casted = allow as (boolean) const retain_casted = retain as (boolean) diff --git a/arkoala/arkui/src/ArkJsResultMaterialized.ts b/arkoala/arkui/src/ArkJsResultMaterialized.ts index 26c1dcaeb..b49f64934 100644 --- a/arkoala/arkui/src/ArkJsResultMaterialized.ts +++ b/arkoala/arkui/src/ArkJsResultMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,15 +41,15 @@ export class JsResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._JsResult_getFinalizer() } - handleCancel(): void { + public handleCancel(): void { this?.handleCancel_serialize() return } - handleConfirm(): void { + public handleConfirm(): void { this?.handleConfirm_serialize() return } - handlePromptConfirm(result: string): void { + public handlePromptConfirm(result: string): void { const result_casted = result as (string) this?.handlePromptConfirm_serialize(result_casted) return diff --git a/arkoala/arkui/src/ArkKeyEventMaterialized.ts b/arkoala/arkui/src/ArkKeyEventMaterialized.ts index e071f6d5c..74a0dc443 100644 --- a/arkoala/arkui/src/ArkKeyEventMaterialized.ts +++ b/arkoala/arkui/src/ArkKeyEventMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -117,7 +117,7 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._KeyEvent_getFinalizer() } - getModifierKeyState(keys: Array): boolean { + public getModifierKeyState(keys: Array): boolean { const keys_casted = keys as (Array) return this.getModifierKeyState_serialize(keys_casted) } @@ -177,6 +177,9 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { this?.setTimestamp_serialize(timestamp_casted) return } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this?.setStopPropagation_serialize(stopPropagation_casted) @@ -255,6 +258,10 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { private setTimestamp_serialize(timestamp: number): void { ArkUIGeneratedNativeModule._KeyEvent_setTimestamp(this.peer!.ptr, timestamp) } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._KeyEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) diff --git a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts b/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts index b368356d4..ed3beb9b7 100644 --- a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts +++ b/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -49,19 +49,19 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LayoutManager_getFinalizer() } - getLineCount(): number { + public getLineCount(): number { return this.getLineCount_serialize() } - getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity { + public getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity { const x_casted = x as (number) const y_casted = y as (number) return this.getGlyphPositionAtCoordinate_serialize(x_casted, y_casted) } - getLineMetrics(lineNumber: number): LineMetrics { + public getLineMetrics(lineNumber: number): LineMetrics { const lineNumber_casted = lineNumber as (number) return this.getLineMetrics_serialize(lineNumber_casted) } - getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { + public getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const range_casted = range as (TextRange) const widthStyle_casted = widthStyle as (RectWidthStyle) const heightStyle_casted = heightStyle as (RectHeightStyle) diff --git a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts b/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts index 16d1c31a6..9cf3affba 100644 --- a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,26 +45,26 @@ export class LazyForEachOps implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LazyForEachOps_getFinalizer() } - static NeedMoreElements(node: KPointer, mark: KPointer, direction: int32): KPointer { + public static NeedMoreElements(node: KPointer, mark: KPointer, direction: int32): KPointer { const node_casted = node as (KPointer) const mark_casted = mark as (KPointer) const direction_casted = direction as (int32) return LazyForEachOps.NeedMoreElements_serialize(node_casted, mark_casted, direction_casted) } - static OnRangeUpdate(node: KPointer, totalCount: int32, updater: Callback_RangeUpdate): void { + public static OnRangeUpdate(node: KPointer, totalCount: int32, updater: Callback_RangeUpdate): void { const node_casted = node as (KPointer) const totalCount_casted = totalCount as (int32) const updater_casted = updater as (Callback_RangeUpdate) LazyForEachOps.OnRangeUpdate_serialize(node_casted, totalCount_casted, updater_casted) return } - static SetCurrentIndex(node: KPointer, index: int32): void { + public static SetCurrentIndex(node: KPointer, index: int32): void { const node_casted = node as (KPointer) const index_casted = index as (int32) LazyForEachOps.SetCurrentIndex_serialize(node_casted, index_casted) return } - static Prepare(node: KPointer): void { + public static Prepare(node: KPointer): void { const node_casted = node as (KPointer) LazyForEachOps.Prepare_serialize(node_casted) return diff --git a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts b/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts index cc3d9092c..4a7f1bdee 100644 --- a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts +++ b/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -58,11 +58,11 @@ export class LengthMetrics implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LengthMetrics_getFinalizer() } - static px(value: number): LengthMetrics { + public static px(value: number): LengthMetrics { const value_casted = value as (number) return LengthMetrics.px_serialize(value_casted) } - static resource(value: Resource): LengthMetrics { + public static resource(value: Resource): LengthMetrics { const value_casted = value as (Resource) return LengthMetrics.resource_serialize(value_casted) } diff --git a/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts b/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts new file mode 100644 index 000000000..dc5eca95a --- /dev/null +++ b/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts @@ -0,0 +1,70 @@ +/* + * 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 { 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 { 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 LetterSpacingStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get letterSpacing(): number { + return this.getLetterSpacing() + } + static ctor(value: LengthMetrics): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeLengthMetrics(value) + const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: LengthMetrics) { + if (((value) !== (undefined))) + { + const ctorPtr: KPointer = LetterSpacingStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, LetterSpacingStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LetterSpacingStyle_getFinalizer() + } + private getLetterSpacing(): number { + return this.getLetterSpacing_serialize() + } + private getLetterSpacing_serialize(): number { + const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_getLetterSpacing(this.peer!.ptr) + 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/ArkLine.ts index b0d7b4fca..1c5ece0d9 100644 --- a/arkoala/arkui/src/ArkLine.ts +++ b/arkoala/arkui/src/ArkLine.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkLineComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkLinePeer) } /** @memo */ - setLineOptions(options?: LineOptions): this { + public setLineOptions(options?: LineOptions): this { if (this.checkPriority("setLineOptions")) { const options_casted = options as (LineOptions | undefined) this.getPeer()?.setLineOptionsAttribute(options_casted) @@ -67,7 +67,7 @@ export class ArkLineComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - startPoint(value: Array): this { + public startPoint(value: Array): this { if (this.checkPriority("startPoint")) { const value_casted = value as (Array) this.getPeer()?.startPointAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkLineComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - endPoint(value: Array): this { + public endPoint(value: Array): this { if (this.checkPriority("endPoint")) { const value_casted = value as (Array) this.getPeer()?.endPointAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts b/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts new file mode 100644 index 000000000..d1f636c97 --- /dev/null +++ b/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts @@ -0,0 +1,70 @@ +/* + * 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 { 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 { 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 LineHeightStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get lineHeight(): number { + return this.getLineHeight() + } + static ctor(lineHeight: LengthMetrics): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeLengthMetrics(lineHeight) + const retval = ArkUIGeneratedNativeModule._LineHeightStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(lineHeight?: LengthMetrics) { + if (((lineHeight) !== (undefined))) + { + const ctorPtr: KPointer = LineHeightStyle.ctor(lineHeight) + this.peer = new Finalizable(ctorPtr, LineHeightStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._LineHeightStyle_getFinalizer() + } + private getLineHeight(): number { + return this.getLineHeight_serialize() + } + private getLineHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._LineHeightStyle_getLineHeight(this.peer!.ptr) + 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/ArkLinearGradientMaterialized.ts b/arkoala/arkui/src/ArkLinearGradientMaterialized.ts new file mode 100644 index 000000000..96ebf16d2 --- /dev/null +++ b/arkoala/arkui/src/ArkLinearGradientMaterialized.ts @@ -0,0 +1,63 @@ +/* + * 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 { 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 { 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 LinearGradient implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(colorStops: Array): KPointer { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeInt32(colorStops.length) + for (let i = 0; i < colorStops.length; i++) { + const colorStops_element: ColorStop = colorStops[i] + thisSerializer.writeColorStop(colorStops_element) + } + const retval = ArkUIGeneratedNativeModule._LinearGradient_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(colorStops?: Array) { + if (((colorStops) !== (undefined))) + { + const ctorPtr: KPointer = LinearGradient.ctor(colorStops) + this.peer = new Finalizable(ctorPtr, LinearGradient.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkLinearIndicatorControllerMaterialized.ts index abf0bbafe..35f8b7268 100644 --- a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,22 +42,22 @@ export class LinearIndicatorController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._LinearIndicatorController_getFinalizer() } - setProgress(index: number, progress: number): void { + public setProgress(index: number, progress: number): void { const index_casted = index as (number) const progress_casted = progress as (number) this?.setProgress_serialize(index_casted, progress_casted) return } - start(options?: LinearIndicatorStartOptions): void { + public start(options?: LinearIndicatorStartOptions): void { const options_casted = options as (LinearIndicatorStartOptions | undefined) this?.start_serialize(options_casted) return } - pause(): void { + public pause(): void { this?.pause_serialize() return } - stop(): void { + public stop(): void { this?.stop_serialize() return } diff --git a/arkoala/arkui/src/ArkLinearindicator.ts b/arkoala/arkui/src/ArkLinearindicator.ts index 21ebe29c5..7b81bdd70 100644 --- a/arkoala/arkui/src/ArkLinearindicator.ts +++ b/arkoala/arkui/src/ArkLinearindicator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkLinearIndicatorPeer) } /** @memo */ - setLinearIndicatorOptions(count?: number, controller?: LinearIndicatorController): this { + public setLinearIndicatorOptions(count?: number, controller?: LinearIndicatorController): this { if (this.checkPriority("setLinearIndicatorOptions")) { const count_casted = count as (number | undefined) const controller_casted = controller as (LinearIndicatorController | undefined) @@ -69,7 +69,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorStyle(value?: LinearIndicatorStyle): this { + public indicatorStyle(value?: LinearIndicatorStyle): this { if (this.checkPriority("indicatorStyle")) { const value_casted = value as (LinearIndicatorStyle | undefined) this.getPeer()?.indicatorStyleAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorLoop(value?: boolean): this { + public indicatorLoop(value?: boolean): this { if (this.checkPriority("indicatorLoop")) { const value_casted = value as (boolean | undefined) this.getPeer()?.indicatorLoopAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value?: OnLinearIndicatorChangeCallback): this { + public onChange(value?: OnLinearIndicatorChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (OnLinearIndicatorChangeCallback | undefined) this.getPeer()?.onChangeAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkList.ts b/arkoala/arkui/src/ArkList.ts index db7aa6793..e9d428bf8 100644 --- a/arkoala/arkui/src/ArkList.ts +++ b/arkoala/arkui/src/ArkList.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -62,7 +62,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkListPeer) } /** @memo */ - setListOptions(options?: ListOptions): this { + public setListOptions(options?: ListOptions): this { if (this.checkPriority("setListOptions")) { const options_casted = options as (ListOptions | undefined) this.getPeer()?.setListOptionsAttribute(options_casted) @@ -71,7 +71,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - alignListItem(value: ListItemAlign): this { + public alignListItem(value: ListItemAlign): this { if (this.checkPriority("alignListItem")) { const value_casted = value as (ListItemAlign) this.getPeer()?.alignListItemAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - listDirection(value: Axis): this { + public listDirection(value: Axis): this { if (this.checkPriority("listDirection")) { const value_casted = value as (Axis) this.getPeer()?.listDirectionAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - contentStartOffset(value: number): this { + public contentStartOffset(value: number): this { if (this.checkPriority("contentStartOffset")) { const value_casted = value as (number) this.getPeer()?.contentStartOffsetAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - contentEndOffset(value: number): this { + public contentEndOffset(value: number): this { if (this.checkPriority("contentEndOffset")) { const value_casted = value as (number) this.getPeer()?.contentEndOffsetAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - divider(value?: ListDividerOptions): this { + public divider(value?: ListDividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (ListDividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -125,7 +125,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - editMode(value: boolean): this { + public editMode(value: boolean): this { if (this.checkPriority("editMode")) { const value_casted = value as (boolean) this.getPeer()?.editModeAttribute(value_casted) @@ -134,7 +134,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - multiSelectable(value: boolean): this { + public multiSelectable(value: boolean): this { if (this.checkPriority("multiSelectable")) { const value_casted = value as (boolean) this.getPeer()?.multiSelectableAttribute(value_casted) @@ -143,7 +143,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cachedCount(count: number, show?: boolean): this { + public cachedCount(count: number, show?: boolean): this { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) @@ -163,7 +163,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - chainAnimation(value: boolean): this { + public chainAnimation(value: boolean): this { if (this.checkPriority("chainAnimation")) { const value_casted = value as (boolean) this.getPeer()?.chainAnimationAttribute(value_casted) @@ -172,7 +172,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - chainAnimationOptions(value: ChainAnimationOptions): this { + public chainAnimationOptions(value: ChainAnimationOptions): this { if (this.checkPriority("chainAnimationOptions")) { const value_casted = value as (ChainAnimationOptions) this.getPeer()?.chainAnimationOptionsAttribute(value_casted) @@ -181,7 +181,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - sticky(value: StickyStyle): this { + public sticky(value: StickyStyle): this { if (this.checkPriority("sticky")) { const value_casted = value as (StickyStyle) this.getPeer()?.stickyAttribute(value_casted) @@ -190,7 +190,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollSnapAlign(value: ScrollSnapAlign): this { + public scrollSnapAlign(value: ScrollSnapAlign): this { if (this.checkPriority("scrollSnapAlign")) { const value_casted = value as (ScrollSnapAlign) this.getPeer()?.scrollSnapAlignAttribute(value_casted) @@ -199,7 +199,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -208,7 +208,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -217,7 +217,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -226,7 +226,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - childrenMainSize(value: ChildrenMainSize): this { + public childrenMainSize(value: ChildrenMainSize): this { if (this.checkPriority("childrenMainSize")) { const value_casted = value as (ChildrenMainSize) this.getPeer()?.childrenMainSizeAttribute(value_casted) @@ -235,7 +235,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - maintainVisibleContentPosition(value: boolean): this { + public maintainVisibleContentPosition(value: boolean): this { if (this.checkPriority("maintainVisibleContentPosition")) { const value_casted = value as (boolean) this.getPeer()?.maintainVisibleContentPositionAttribute(value_casted) @@ -244,7 +244,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((first: number, last: number) => void)): this { + public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({List_onScroll: value_casted}) @@ -254,7 +254,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollIndex(value: ((start: number, end: number, center: number) => void)): this { + public onScrollIndex(value: ((start: number, end: number, center: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((start: number, end: number, center: number) => void)) UseEventsProperties({List_onScrollIndex: value_casted}) @@ -264,7 +264,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback): this { + public onScrollVisibleContentChange(value: OnScrollVisibleContentChangeCallback): this { if (this.checkPriority("onScrollVisibleContentChange")) { const value_casted = value as (OnScrollVisibleContentChangeCallback) UseEventsProperties({List_onScrollVisibleContentChange: value_casted}) @@ -274,7 +274,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) UseEventsProperties({List_onReachStart: value_casted}) @@ -284,7 +284,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) UseEventsProperties({List_onReachEnd: value_casted}) @@ -294,7 +294,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStart(value: (() => void)): this { + public onScrollStart(value: (() => void)): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as ((() => void)) UseEventsProperties({List_onScrollStart: value_casted}) @@ -304,7 +304,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStop(value: (() => void)): this { + public onScrollStop(value: (() => void)): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as ((() => void)) UseEventsProperties({List_onScrollStop: value_casted}) @@ -314,7 +314,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDelete(value: ((index: number) => boolean)): this { + public onItemDelete(value: ((index: number) => boolean)): this { if (this.checkPriority("onItemDelete")) { const value_casted = value as (((index: number) => boolean)) UseEventsProperties({List_onItemDelete: value_casted}) @@ -324,7 +324,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemMove(value: ((from: number, to: number) => boolean)): this { + public onItemMove(value: ((from: number, to: number) => boolean)): this { if (this.checkPriority("onItemMove")) { const value_casted = value as (((from: number, to: number) => boolean)) UseEventsProperties({List_onItemMove: value_casted}) @@ -334,7 +334,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragStart(value: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder)): this { + public onItemDragStart(value: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder)): this { if (this.checkPriority("onItemDragStart")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => CustomBuilder)) UseEventsProperties({List_onItemDragStart: value_casted}) @@ -344,7 +344,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { + public onItemDragEnter(value: ((event: ItemDragInfo) => void)): this { if (this.checkPriority("onItemDragEnter")) { const value_casted = value as (((event: ItemDragInfo) => void)) UseEventsProperties({List_onItemDragEnter: value_casted}) @@ -354,7 +354,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragMove(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { + public onItemDragMove(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { if (this.checkPriority("onItemDragMove")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)) UseEventsProperties({List_onItemDragMove: value_casted}) @@ -364,7 +364,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDragLeave(value: ((event: ItemDragInfo, itemIndex: number) => void)): this { + public onItemDragLeave(value: ((event: ItemDragInfo, itemIndex: number) => void)): this { if (this.checkPriority("onItemDragLeave")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number) => void)) UseEventsProperties({List_onItemDragLeave: value_casted}) @@ -374,7 +374,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onItemDrop(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { + public onItemDrop(value: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { if (this.checkPriority("onItemDrop")) { const value_casted = value as (((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)) UseEventsProperties({List_onItemDrop: value_casted}) @@ -384,7 +384,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { + public onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number, state: ScrollState) => { offsetRemain: number })) UseEventsProperties({List_onScrollFrameBegin: value_casted}) @@ -394,7 +394,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - lanes(value: number | LengthConstrain, gutter?: Dimension): this { + public lanes(value: number | LengthConstrain, gutter?: Dimension): this { if (this.checkPriority("lanes")) { const value_casted = value as (number | LengthConstrain) const gutter_casted = gutter as (Dimension | undefined) @@ -404,7 +404,7 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const value_casted = value as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) diff --git a/arkoala/arkui/src/ArkListItem.ts b/arkoala/arkui/src/ArkListItem.ts index b5a125178..b813f01e8 100644 --- a/arkoala/arkui/src/ArkListItem.ts +++ b/arkoala/arkui/src/ArkListItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkListItemPeer) } /** @memo */ - setListItemOptions(value?: ListItemOptions | undefined | string | undefined): this { + 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)))) { @@ -77,7 +77,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sticky(value: Sticky): this { + public sticky(value: Sticky): this { if (this.checkPriority("sticky")) { const value_casted = value as (Sticky) this.getPeer()?.stickyAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editable(value: boolean | EditMode): this { + public editable(value: boolean | EditMode): this { if (this.checkPriority("editable")) { const value_casted = value as (boolean | EditMode) this.getPeer()?.editableAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectable(value: boolean): this { + public selectable(value: boolean): this { if (this.checkPriority("selectable")) { const value_casted = value as (boolean) this.getPeer()?.selectableAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: boolean): this { + public selected(value: boolean): this { if (this.checkPriority("selected")) { const value_casted = value as (boolean) this.getPeer()?.selectedAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - swipeAction(value: SwipeActionOptions): this { + public swipeAction(value: SwipeActionOptions): this { if (this.checkPriority("swipeAction")) { const value_casted = value as (SwipeActionOptions) this.getPeer()?.swipeActionAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((parameter: boolean) => void)): this { + public onSelect(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({ListItem_onSelect: value_casted}) @@ -132,11 +132,11 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({ListItem___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({ListItem__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkListItemGroup.ts b/arkoala/arkui/src/ArkListItemGroup.ts index 285331269..7a8e19e38 100644 --- a/arkoala/arkui/src/ArkListItemGroup.ts +++ b/arkoala/arkui/src/ArkListItemGroup.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { return (this.peer as ArkListItemGroupPeer) } /** @memo */ - setListItemGroupOptions(options?: ListItemGroupOptions): this { + public setListItemGroupOptions(options?: ListItemGroupOptions): this { if (this.checkPriority("setListItemGroupOptions")) { const options_casted = options as (ListItemGroupOptions | undefined) this.getPeer()?.setListItemGroupOptionsAttribute(options_casted) @@ -69,7 +69,7 @@ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: ListDividerOptions): this { + public divider(value?: ListDividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (ListDividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { return this } /** @memo */ - childrenMainSize(value: ChildrenMainSize): this { + public childrenMainSize(value: ChildrenMainSize): this { if (this.checkPriority("childrenMainSize")) { const value_casted = value as (ChildrenMainSize) this.getPeer()?.childrenMainSizeAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkListScrollerMaterialized.ts b/arkoala/arkui/src/ArkListScrollerMaterialized.ts index 4681f200e..2834bdedc 100644 --- a/arkoala/arkui/src/ArkListScrollerMaterialized.ts +++ b/arkoala/arkui/src/ArkListScrollerMaterialized.ts @@ -31,7 +31,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,12 +52,12 @@ export class ListScroller extends Scroller implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ListScroller_getFinalizer() } - getItemRectInGroup(index: number, indexInGroup: number): RectResult { + public getItemRectInGroup(index: number, indexInGroup: number): RectResult { const index_casted = index as (number) const indexInGroup_casted = indexInGroup as (number) return this.getItemRectInGroup_serialize(index_casted, indexInGroup_casted) } - scrollToItemInGroup(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { + public scrollToItemInGroup(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const index_casted = index as (number) const indexInGroup_casted = indexInGroup as (number) const smooth_casted = smooth as (boolean | undefined) @@ -65,12 +65,12 @@ export class ListScroller extends Scroller implements MaterializedBase { this?.scrollToItemInGroup_serialize(index_casted, indexInGroup_casted, smooth_casted, align_casted) return } - closeAllSwipeActions(options?: CloseSwipeActionOptions): void { + public closeAllSwipeActions(options?: CloseSwipeActionOptions): void { const options_casted = options as (CloseSwipeActionOptions | undefined) this?.closeAllSwipeActions_serialize(options_casted) return } - getVisibleListContentInfo(x: number, y: number): VisibleListContentInfo { + public getVisibleListContentInfo(x: number, y: number): VisibleListContentInfo { const x_casted = x as (number) const y_casted = y as (number) return this.getVisibleListContentInfo_serialize(x_casted, y_casted) diff --git a/arkoala/arkui/src/ArkLoadingProgress.ts b/arkoala/arkui/src/ArkLoadingProgress.ts index 1ac67608d..48d6a641c 100644 --- a/arkoala/arkui/src/ArkLoadingProgress.ts +++ b/arkoala/arkui/src/ArkLoadingProgress.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return (this.peer as ArkLoadingProgressPeer) } /** @memo */ - setLoadingProgressOptions(): this { + public setLoadingProgressOptions(): this { if (this.checkPriority("setLoadingProgressOptions")) { this.getPeer()?.setLoadingProgressOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableLoading(value: boolean): this { + public enableLoading(value: boolean): this { if (this.checkPriority("enableLoading")) { const value_casted = value as (boolean) this.getPeer()?.enableLoadingAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkLocationButton.ts b/arkoala/arkui/src/ArkLocationButton.ts index 80a004336..df570efad 100644 --- a/arkoala/arkui/src/ArkLocationButton.ts +++ b/arkoala/arkui/src/ArkLocationButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -41,7 +41,7 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon return (this.peer as ArkLocationButtonPeer) } /** @memo */ - setLocationButtonOptions(options?: LocationButtonOptions): this { + public setLocationButtonOptions(options?: LocationButtonOptions): this { if (this.checkPriority("setLocationButtonOptions")) { const options_type = runtimeType(options) if ((((RuntimeType.UNDEFINED == options_type)))) { @@ -58,7 +58,7 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon return this } /** @memo */ - onClick(value: ((event: ClickEvent, result: LocationButtonOnClickResult) => void)): this { + public onClick(value: ((event: ClickEvent, result: LocationButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent, result: LocationButtonOnClickResult) => void)) UseEventsProperties({LocationButton_onClick: value_casted}) diff --git a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts b/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts index 57a356355..2b7f79782 100644 --- a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkMarquee.ts b/arkoala/arkui/src/ArkMarquee.ts index 86d581bbc..8291ab041 100644 --- a/arkoala/arkui/src/ArkMarquee.ts +++ b/arkoala/arkui/src/ArkMarquee.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return (this.peer as ArkMarqueePeer) } /** @memo */ - setMarqueeOptions(options: MarqueeOptions): this { + public setMarqueeOptions(options: MarqueeOptions): this { if (this.checkPriority("setMarqueeOptions")) { const options_casted = options as (MarqueeOptions) this.getPeer()?.setMarqueeOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - allowScale(value: boolean): this { + public allowScale(value: boolean): this { if (this.checkPriority("allowScale")) { const value_casted = value as (boolean) this.getPeer()?.allowScaleAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - marqueeUpdateStrategy(value: MarqueeUpdateStrategy): this { + public marqueeUpdateStrategy(value: MarqueeUpdateStrategy): this { if (this.checkPriority("marqueeUpdateStrategy")) { const value_casted = value as (MarqueeUpdateStrategy) this.getPeer()?.marqueeUpdateStrategyAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) UseEventsProperties({Marquee_onStart: value_casted}) @@ -132,7 +132,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBounce(value: (() => void)): this { + public onBounce(value: (() => void)): this { if (this.checkPriority("onBounce")) { const value_casted = value as ((() => void)) UseEventsProperties({Marquee_onBounce: value_casted}) @@ -142,7 +142,7 @@ export class ArkMarqueeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) UseEventsProperties({Marquee_onFinish: value_casted}) diff --git a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts b/arkoala/arkui/src/ArkMatrix2DMaterialized.ts index 77442352b..4acd3aa07 100644 --- a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts +++ b/arkoala/arkui/src/ArkMatrix2DMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -84,17 +84,17 @@ export class Matrix2D implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Matrix2D_getFinalizer() } - identity(): Matrix2D { + public identity(): Matrix2D { return this.identity_serialize() } - invert(): Matrix2D { + public invert(): Matrix2D { return this.invert_serialize() } - multiply(other?: Matrix2D): Matrix2D { + public multiply(other?: Matrix2D): Matrix2D { const other_casted = other as (Matrix2D | undefined) return this.multiply_serialize(other_casted) } - rotate(degree?: number | undefined | number, rx?: number, ry?: number): Matrix2D { + public rotate(degree?: number | undefined | number, rx?: number, ry?: number): Matrix2D { const degree_type = runtimeType(degree) const rx_type = runtimeType(rx) const ry_type = runtimeType(ry) @@ -111,12 +111,12 @@ export class Matrix2D implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - translate(tx?: number, ty?: number): Matrix2D { + public translate(tx?: number, ty?: number): Matrix2D { const tx_casted = tx as (number | undefined) const ty_casted = ty as (number | undefined) return this.translate_serialize(tx_casted, ty_casted) } - scale(sx?: number, sy?: number): Matrix2D { + public scale(sx?: number, sy?: number): Matrix2D { const sx_casted = sx as (number | undefined) const sy_casted = sy as (number | undefined) return this.scale_serialize(sx_casted, sy_casted) diff --git a/arkoala/arkui/src/ArkMeasurableMaterialized.ts b/arkoala/arkui/src/ArkMeasurableMaterialized.ts index 6afc331e0..24616a359 100644 --- a/arkoala/arkui/src/ArkMeasurableMaterialized.ts +++ b/arkoala/arkui/src/ArkMeasurableMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -49,17 +49,17 @@ export class MeasurableInternal implements MaterializedBase,Measurable { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Measurable_getFinalizer() } - measure(constraint: ConstraintSizeOptions): MeasureResult { + public measure(constraint: ConstraintSizeOptions): MeasureResult { const constraint_casted = constraint as (ConstraintSizeOptions) return this.measure_serialize(constraint_casted) } - getMargin(): DirectionalEdgesT { + public getMargin(): DirectionalEdgesT { return this.getMargin_serialize() } - getPadding(): DirectionalEdgesT { + public getPadding(): DirectionalEdgesT { return this.getPadding_serialize() } - getBorderWidth(): DirectionalEdgesT { + public getBorderWidth(): DirectionalEdgesT { return this.getBorderWidth_serialize() } private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { diff --git a/arkoala/arkui/src/ArkMediaCachedImage.ts b/arkoala/arkui/src/ArkMediaCachedImage.ts index def4e063c..6c0b2b141 100644 --- a/arkoala/arkui/src/ArkMediaCachedImage.ts +++ b/arkoala/arkui/src/ArkMediaCachedImage.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,7 +25,7 @@ import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" 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" -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, ColorFilter } from "./ArkUnitsInterfaces" +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" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" @@ -51,6 +51,7 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./ArkMediaCachedImageInterfaces" /** @memo:stable */ @@ -59,7 +60,7 @@ export class ArkMediaCachedImageComponent extends ArkImageComponent { return (this.peer as ArkMediaCachedImagePeer) } /** @memo */ - setMediaCachedImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource): this { + public setMediaCachedImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource): this { if (this.checkPriority("setMediaCachedImageOptions")) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ASTCResource) this.getPeer()?.setMediaCachedImageOptionsAttribute(src_casted) diff --git a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts b/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts index a85294be4..ae4a43dc2 100644 --- a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts +++ b/arkoala/arkui/src/ArkMediaCachedImageInterfaces.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 { PixelMap } from "./ArkPixelMapMaterialized" -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, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } 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, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" import { DrawableDescriptor, ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" 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" @@ -47,6 +47,7 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" export interface ASTCResource { sources: Array; diff --git a/arkoala/arkui/src/ArkMenu.ts b/arkoala/arkui/src/ArkMenu.ts index 0719fcb34..ef6f00fd5 100644 --- a/arkoala/arkui/src/ArkMenu.ts +++ b/arkoala/arkui/src/ArkMenu.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return (this.peer as ArkMenuPeer) } /** @memo */ - setMenuOptions(): this { + public setMenuOptions(): this { if (this.checkPriority("setMenuOptions")) { this.getPeer()?.setMenuOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - radius(value: Dimension | BorderRadiuses): this { + public radius(value: Dimension | BorderRadiuses): this { if (this.checkPriority("radius")) { const value_casted = value as (Dimension | BorderRadiuses) this.getPeer()?.radiusAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuItemDivider(value?: DividerStyleOptions): this { + public menuItemDivider(value?: DividerStyleOptions): this { if (this.checkPriority("menuItemDivider")) { const value_casted = value as (DividerStyleOptions | undefined) this.getPeer()?.menuItemDividerAttribute(value_casted) @@ -111,7 +111,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuItemGroupDivider(value?: DividerStyleOptions): this { + public menuItemGroupDivider(value?: DividerStyleOptions): this { if (this.checkPriority("menuItemGroupDivider")) { const value_casted = value as (DividerStyleOptions | undefined) this.getPeer()?.menuItemGroupDividerAttribute(value_casted) @@ -120,7 +120,7 @@ export class ArkMenuComponent extends ArkCommonMethodComponent { return this } /** @memo */ - subMenuExpandingMode(value: SubMenuExpandingMode): this { + public subMenuExpandingMode(value: SubMenuExpandingMode): this { if (this.checkPriority("subMenuExpandingMode")) { const value_casted = value as (SubMenuExpandingMode) this.getPeer()?.subMenuExpandingModeAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkMenuItem.ts b/arkoala/arkui/src/ArkMenuItem.ts index fab44e658..b529ff4bc 100644 --- a/arkoala/arkui/src/ArkMenuItem.ts +++ b/arkoala/arkui/src/ArkMenuItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkMenuItemPeer) } /** @memo */ - setMenuItemOptions(value?: MenuItemOptions | CustomBuilder): this { + public setMenuItemOptions(value?: MenuItemOptions | CustomBuilder): this { if (this.checkPriority("setMenuItemOptions")) { const value_casted = value as (MenuItemOptions | CustomBuilder | undefined) this.getPeer()?.setMenuItemOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: boolean): this { + public selected(value: boolean): this { if (this.checkPriority("selected")) { const value_casted = value as (boolean) this.getPeer()?.selectedAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier): this { + public selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier): this { if (this.checkPriority("selectIcon")) { const value_casted = value as (boolean | ResourceStr | SymbolGlyphModifier) this.getPeer()?.selectIconAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({MenuItem_onChange: value_casted}) @@ -96,7 +96,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentFont(value: Font): this { + public contentFont(value: Font): this { if (this.checkPriority("contentFont")) { const value_casted = value as (Font) this.getPeer()?.contentFontAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentFontColor(value: ResourceColor): this { + public contentFontColor(value: ResourceColor): this { if (this.checkPriority("contentFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.contentFontColorAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - labelFont(value: Font): this { + public labelFont(value: Font): this { if (this.checkPriority("labelFont")) { const value_casted = value as (Font) this.getPeer()?.labelFontAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - labelFontColor(value: ResourceColor): this { + public labelFontColor(value: ResourceColor): this { if (this.checkPriority("labelFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.labelFontColorAttribute(value_casted) @@ -132,11 +132,11 @@ export class ArkMenuItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({MenuItem___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({MenuItem__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkMenuItemGroup.ts b/arkoala/arkui/src/ArkMenuItemGroup.ts index 5c5d02828..db6e1d48d 100644 --- a/arkoala/arkui/src/ArkMenuItemGroup.ts +++ b/arkoala/arkui/src/ArkMenuItemGroup.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkMenuItemGroupComponent extends ArkCommonMethodComponent { return (this.peer as ArkMenuItemGroupPeer) } /** @memo */ - setMenuItemGroupOptions(value?: MenuItemGroupOptions): this { + public setMenuItemGroupOptions(value?: MenuItemGroupOptions): this { if (this.checkPriority("setMenuItemGroupOptions")) { const value_casted = value as (MenuItemGroupOptions | undefined) this.getPeer()?.setMenuItemGroupOptionsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkMouseEventMaterialized.ts b/arkoala/arkui/src/ArkMouseEventMaterialized.ts index 5eaf5c3a5..063e077d1 100644 --- a/arkoala/arkui/src/ArkMouseEventMaterialized.ts +++ b/arkoala/arkui/src/ArkMouseEventMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -205,6 +205,9 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize this?.setY_serialize(y_casted) return } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this?.setStopPropagation_serialize(stopPropagation_casted) @@ -280,6 +283,10 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize private setY_serialize(y: number): void { ArkUIGeneratedNativeModule._MouseEvent_setY(this.peer!.ptr, y) } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._MouseEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) diff --git a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts b/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts index 3571d58b4..61b300cc9 100644 --- a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts +++ b/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts @@ -17,21 +17,22 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,66 +53,66 @@ export class MutableStyledString extends StyledString implements MaterializedBas static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._MutableStyledString_getFinalizer() } - replaceString(start: number, length: number, other: string): void { + public replaceString(start: number, length: number, other: string): void { const start_casted = start as (number) const length_casted = length as (number) const other_casted = other as (string) this?.replaceString_serialize(start_casted, length_casted, other_casted) return } - insertString(start: number, other: string): void { + public insertString(start: number, other: string): void { const start_casted = start as (number) const other_casted = other as (string) this?.insertString_serialize(start_casted, other_casted) return } - removeString(start: number, length: number): void { + public removeString(start: number, length: number): void { const start_casted = start as (number) const length_casted = length as (number) this?.removeString_serialize(start_casted, length_casted) return } - replaceStyle(spanStyle: SpanStyle): void { + public replaceStyle(spanStyle: SpanStyle): void { const spanStyle_casted = spanStyle as (SpanStyle) this?.replaceStyle_serialize(spanStyle_casted) return } - setStyle(spanStyle: SpanStyle): void { + public setStyle(spanStyle: SpanStyle): void { const spanStyle_casted = spanStyle as (SpanStyle) this?.setStyle_serialize(spanStyle_casted) return } - removeStyle(start: number, length: number, styledKey: StyledStringKey): void { + public removeStyle(start: number, length: number, styledKey: StyledStringKey): void { const start_casted = start as (number) const length_casted = length as (number) const styledKey_casted = styledKey as (StyledStringKey) this?.removeStyle_serialize(start_casted, length_casted, styledKey_casted) return } - removeStyles(start: number, length: number): void { + public removeStyles(start: number, length: number): void { const start_casted = start as (number) const length_casted = length as (number) this?.removeStyles_serialize(start_casted, length_casted) return } - clearStyles(): void { + public clearStyles(): void { this?.clearStyles_serialize() return } - replaceStyledString(start: number, length: number, other: StyledString): void { + public replaceStyledString(start: number, length: number, other: StyledString): void { const start_casted = start as (number) const length_casted = length as (number) const other_casted = other as (StyledString) this?.replaceStyledString_serialize(start_casted, length_casted, other_casted) return } - insertStyledString(start: number, other: StyledString): void { + public insertStyledString(start: number, other: StyledString): void { const start_casted = start as (number) const other_casted = other as (StyledString) this?.insertStyledString_serialize(start_casted, other_casted) return } - appendStyledString(other: StyledString): void { + public appendStyledString(other: StyledString): void { const other_casted = other as (StyledString) this?.appendStyledString_serialize(other_casted) return diff --git a/arkoala/arkui/src/ArkNavDestination.ts b/arkoala/arkui/src/ArkNavDestination.ts index 4879ffcfc..75e1c0c7e 100644 --- a/arkoala/arkui/src/ArkNavDestination.ts +++ b/arkoala/arkui/src/ArkNavDestination.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -53,8 +53,9 @@ import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, RouteMapConfig } from "./ArkNavDestinationInterfaces" -import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" /** @memo:stable */ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { @@ -62,7 +63,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return (this.peer as ArkNavDestinationPeer) } /** @memo */ - setNavDestinationOptions(): this { + public setNavDestinationOptions(): this { if (this.checkPriority("setNavDestinationOptions")) { this.getPeer()?.setNavDestinationOptionsAttribute() return this @@ -70,7 +71,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideTitleBar(hide: boolean, animated?: boolean): this { + public hideTitleBar(hide: boolean, animated?: boolean): this { if (this.checkPriority("hideTitleBar")) { const hide_type = runtimeType(hide) const animated_type = runtimeType(animated) @@ -90,7 +91,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onShown(value: (() => void)): this { + public onShown(value: (() => void)): this { if (this.checkPriority("onShown")) { const value_casted = value as ((() => void)) UseEventsProperties({NavDestination_onShown: value_casted}) @@ -100,7 +101,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHidden(value: (() => void)): this { + public onHidden(value: (() => void)): this { if (this.checkPriority("onHidden")) { const value_casted = value as ((() => void)) UseEventsProperties({NavDestination_onHidden: value_casted}) @@ -110,7 +111,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBackPressed(value: (() => boolean)): this { + public onBackPressed(value: (() => boolean)): this { if (this.checkPriority("onBackPressed")) { const value_casted = value as ((() => boolean)) UseEventsProperties({NavDestination_onBackPressed: value_casted}) @@ -120,7 +121,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mode(value: NavDestinationMode): this { + public mode(value: NavDestinationMode): this { if (this.checkPriority("mode")) { const value_casted = value as (NavDestinationMode) this.getPeer()?.modeAttribute(value_casted) @@ -129,7 +130,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier): this { + public backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier): this { if (this.checkPriority("backButtonIcon")) { const value_casted = value as (ResourceStr | PixelMap | SymbolGlyphModifier) this.getPeer()?.backButtonIconAttribute(value_casted) @@ -138,7 +139,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menus(value: Array | CustomBuilder): this { + public menus(value: Array | CustomBuilder): this { if (this.checkPriority("menus")) { const value_casted = value as (Array | CustomBuilder) this.getPeer()?.menusAttribute(value_casted) @@ -147,7 +148,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: ((parameter: NavDestinationContext) => void)): this { + public onReady(value: ((parameter: NavDestinationContext) => void)): this { if (this.checkPriority("onReady")) { const value_casted = value as (((parameter: NavDestinationContext) => void)) UseEventsProperties({NavDestination_onReady: value_casted}) @@ -157,7 +158,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillAppear(value: (() => void)): this { + public onWillAppear(value: (() => void)): this { if (this.checkPriority("onWillAppear")) { const value_casted = value as ((() => void)) UseEventsProperties({NavDestination_onWillAppear: value_casted}) @@ -167,7 +168,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDisappear(value: (() => void)): this { + public onWillDisappear(value: (() => void)): this { if (this.checkPriority("onWillDisappear")) { const value_casted = value as ((() => void)) UseEventsProperties({NavDestination_onWillDisappear: value_casted}) @@ -177,7 +178,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillShow(value: (() => void)): this { + public onWillShow(value: (() => void)): this { if (this.checkPriority("onWillShow")) { const value_casted = value as ((() => void)) UseEventsProperties({NavDestination_onWillShow: value_casted}) @@ -187,7 +188,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillHide(value: (() => void)): this { + public onWillHide(value: (() => void)): this { if (this.checkPriority("onWillHide")) { const value_casted = value as ((() => void)) UseEventsProperties({NavDestination_onWillHide: value_casted}) @@ -197,7 +198,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - systemBarStyle(value?: SystemBarStyle): this { + public systemBarStyle(value?: SystemBarStyle): this { if (this.checkPriority("systemBarStyle")) { const value_casted = value as (SystemBarStyle | undefined) this.getPeer()?.systemBarStyleAttribute(value_casted) @@ -206,7 +207,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - recoverable(value?: boolean): this { + public recoverable(value?: boolean): this { if (this.checkPriority("recoverable")) { const value_casted = value as (boolean | undefined) this.getPeer()?.recoverableAttribute(value_casted) @@ -215,7 +216,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - systemTransition(value: NavigationSystemTransitionType): this { + public systemTransition(value: NavigationSystemTransitionType): this { if (this.checkPriority("systemTransition")) { const value_casted = value as (NavigationSystemTransitionType) this.getPeer()?.systemTransitionAttribute(value_casted) @@ -224,7 +225,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): this { + public title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): this { if (this.checkPriority("title")) { const value_casted = value as (string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource) const options_casted = options as (NavigationTitleOptions | undefined) @@ -234,7 +235,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - toolbarConfiguration(toolbarParam: Array | CustomBuilder, options?: NavigationToolbarOptions): this { + public toolbarConfiguration(toolbarParam: Array | CustomBuilder, options?: NavigationToolbarOptions): this { if (this.checkPriority("toolbarConfiguration")) { const toolbarParam_casted = toolbarParam as (Array | CustomBuilder) const options_casted = options as (NavigationToolbarOptions | undefined) @@ -244,7 +245,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideToolBar(hide: boolean, animated?: boolean): this { + public hideToolBar(hide: boolean, animated?: boolean): this { if (this.checkPriority("hideToolBar")) { const hide_casted = hide as (boolean) const animated_casted = animated as (boolean | undefined) @@ -254,7 +255,7 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - ignoreLayoutSafeArea(types?: Array, edges?: Array): this { + public ignoreLayoutSafeArea(types?: Array, edges?: Array): this { if (this.checkPriority("ignoreLayoutSafeArea")) { const types_casted = types as (Array | undefined) const edges_casted = edges as (Array | undefined) diff --git a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts b/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts index e45810b50..f838f23ad 100644 --- a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts +++ b/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts @@ -16,15 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { NavPathInfo, PopInfo, NavigationOptions, NavigationInterception, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -69,7 +70,7 @@ export class NavDestinationContextInternal implements MaterializedBase,NavDestin static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavDestinationContext_getFinalizer() } - getConfigInRouteMap(): RouteMapConfig | undefined { + public getConfigInRouteMap(): RouteMapConfig | undefined { return this.getConfigInRouteMap_serialize() } private setPathInfo(pathInfo: NavPathInfo): void { diff --git a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts b/arkoala/arkui/src/ArkNavDestinationInterfaces.ts index bb434a974..91587f336 100644 --- a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts +++ b/arkoala/arkui/src/ArkNavDestinationInterfaces.ts @@ -47,8 +47,9 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" -import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" export interface NavDestinationCommonTitle { main: string | Resource; diff --git a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts b/arkoala/arkui/src/ArkNavExtenderMaterialized.ts index 279e36843..2ca57ca19 100644 --- a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts +++ b/arkoala/arkui/src/ArkNavExtenderMaterialized.ts @@ -18,13 +18,14 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" -import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -47,7 +48,7 @@ export class NavExtender implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavExtender_getFinalizer() } - static setUpdateStackCallback(peer: NavPathStack, callback: NavExtender_OnUpdateStack): void { + public static setUpdateStackCallback(peer: NavPathStack, callback: NavExtender_OnUpdateStack): void { const peer_casted = peer as (NavPathStack) const callback_casted = callback as (NavExtender_OnUpdateStack) NavExtender.setUpdateStackCallback_serialize(peer_casted, callback_casted) diff --git a/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts b/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts new file mode 100644 index 000000000..82c2934e7 --- /dev/null +++ b/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts @@ -0,0 +1,158 @@ +/* + * 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 { PopInfo } from "./ArkNavigationInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 NavPathInfo implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get name(): string { + return this.getName() + } + set name(name: string) { + this.setName(name) + } + get param(): unknown { + throw new Error("Not implemented") + } + set param(param: unknown) { + const param_NonNull = (param as unknown) + this.setParam(param_NonNull) + } + get onPop(): ((parameter: PopInfo) => void) { + throw new Error("Not implemented") + } + set onPop(onPop: ((parameter: PopInfo) => void)) { + const onPop_NonNull = (onPop as ((parameter: PopInfo) => void)) + this.setOnPop(onPop_NonNull) + } + get isEntry(): boolean { + return this.getIsEntry() + } + set isEntry(isEntry: boolean) { + const isEntry_NonNull = (isEntry as boolean) + this.setIsEntry(isEntry_NonNull) + } + static ctor(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 + onPop_type = runtimeType(onPop) + thisSerializer.writeInt8(onPop_type) + if ((RuntimeType.UNDEFINED) != (onPop_type)) { + const onPop_value = onPop! + thisSerializer.holdAndWriteCallback(onPop_value) + } + let isEntry_type: int32 = RuntimeType.UNDEFINED + isEntry_type = runtimeType(isEntry) + thisSerializer.writeInt8(isEntry_type) + if ((RuntimeType.UNDEFINED) != (isEntry_type)) { + const isEntry_value = isEntry! + thisSerializer.writeBoolean(isEntry_value) + } + const retval = ArkUIGeneratedNativeModule._NavPathInfo_ctor(name, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + 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) + this.peer = new Finalizable(ctorPtr, NavPathInfo.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._NavPathInfo_getFinalizer() + } + private getName(): string { + return this.getName_serialize() + } + private setName(name: string): void { + const name_casted = name as (string) + this?.setName_serialize(name_casted) + return + } + private setParam(param: unknown): void { + const param_casted = param as (unknown) + this?.setParam_serialize(param_casted) + return + } + private getOnPop(): ((parameter: PopInfo) => void) { + return this.getOnPop_serialize() + } + private setOnPop(onPop: ((parameter: PopInfo) => void)): void { + const onPop_casted = onPop as (((parameter: PopInfo) => void)) + this?.setOnPop_serialize(onPop_casted) + return + } + private getIsEntry(): boolean { + return this.getIsEntry_serialize() + } + private setIsEntry(isEntry: boolean): void { + const isEntry_casted = isEntry as (boolean) + this?.setIsEntry_serialize(isEntry_casted) + return + } + private getName_serialize(): string { + const retval = ArkUIGeneratedNativeModule._NavPathInfo_getName(this.peer!.ptr) + return retval + } + private setName_serialize(name: string): void { + ArkUIGeneratedNativeModule._NavPathInfo_setName(this.peer!.ptr, name) + } + private setParam_serialize(param: unknown): void { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeCustomObject("Any", param) + ArkUIGeneratedNativeModule._NavPathInfo_setParam(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private getOnPop_serialize(): ((parameter: PopInfo) => void) { + const retval = ArkUIGeneratedNativeModule._NavPathInfo_getOnPop(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setOnPop_serialize(onPop: ((parameter: PopInfo) => void)): void { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.holdAndWriteCallback(onPop) + ArkUIGeneratedNativeModule._NavPathInfo_setOnPop(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private getIsEntry_serialize(): boolean { + const retval = ArkUIGeneratedNativeModule._NavPathInfo_getIsEntry(this.peer!.ptr) + return retval + } + private setIsEntry_serialize(isEntry: boolean): void { + 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/ArkNavPathStackMaterialized.ts index f52805708..818dc798f 100644 --- a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts +++ b/arkoala/arkui/src/ArkNavPathStackMaterialized.ts @@ -16,13 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +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 { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,7 +43,7 @@ export class NavPathStack implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavPathStack_getFinalizer() } - pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { + 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)))) { @@ -59,7 +60,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { + 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)))) { @@ -74,7 +75,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - pushPathByName(name: string, param: unknown | Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): void { + public pushPathByName(name: string, param: unknown | Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): void { const name_type = runtimeType(name) const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) @@ -96,7 +97,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - pushDestinationByName(name: string, param: Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): Promise { + public pushDestinationByName(name: string, param: Object, onPop?: boolean | undefined | ((parameter: PopInfo) => void), animated?: boolean): Promise { const name_type = runtimeType(name) const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) @@ -116,7 +117,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - replacePath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { + 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)))) { @@ -133,31 +134,31 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - replaceDestination(info: NavPathInfo, options?: NavigationOptions): Promise { + public replaceDestination(info: NavPathInfo, options?: NavigationOptions): Promise { const info_casted = info as (NavPathInfo) const options_casted = options as (NavigationOptions | undefined) return this.replaceDestination_serialize(info_casted, options_casted) } - replacePathByName(name: string, param: Object, animated?: boolean): void { + public replacePathByName(name: string, param: Object, animated?: boolean): void { const name_casted = name as (string) const param_casted = param as (Object) const animated_casted = animated as (boolean | undefined) this?.replacePathByName_serialize(name_casted, param_casted, animated_casted) return } - removeByIndexes(indexes: Array): number { + public removeByIndexes(indexes: Array): number { const indexes_casted = indexes as (Array) return this.removeByIndexes_serialize(indexes_casted) } - removeByName(name: string): number { + public removeByName(name: string): number { const name_casted = name as (string) return this.removeByName_serialize(name_casted) } - removeByNavDestinationId(navDestinationId: string): boolean { + public removeByNavDestinationId(navDestinationId: string): boolean { const navDestinationId_casted = navDestinationId as (string) return this.removeByNavDestinationId_serialize(navDestinationId_casted) } - pop(result?: boolean | undefined | Object, animated?: boolean): NavPathInfo | undefined { + 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)))) { @@ -171,7 +172,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - popToName(name: string, result?: boolean | undefined | Object, animated?: boolean): number { + public popToName(name: string, result?: boolean | undefined | Object, animated?: boolean): number { const name_type = runtimeType(name) const result_type = runtimeType(result) const animated_type = runtimeType(animated) @@ -188,7 +189,7 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - popToIndex(index: number, result?: boolean | undefined | Object, animated?: boolean): void { + public popToIndex(index: number, result?: boolean | undefined | Object, animated?: boolean): void { const index_type = runtimeType(index) const result_type = runtimeType(result) const animated_type = runtimeType(animated) @@ -207,49 +208,49 @@ export class NavPathStack implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - moveToTop(name: string, animated?: boolean): number { + public moveToTop(name: string, animated?: boolean): number { const name_casted = name as (string) const animated_casted = animated as (boolean | undefined) return this.moveToTop_serialize(name_casted, animated_casted) } - moveIndexToTop(index: number, animated?: boolean): void { + public moveIndexToTop(index: number, animated?: boolean): void { const index_casted = index as (number) const animated_casted = animated as (boolean | undefined) this?.moveIndexToTop_serialize(index_casted, animated_casted) return } - clear(animated?: boolean): void { + public clear(animated?: boolean): void { const animated_casted = animated as (boolean | undefined) this?.clear_serialize(animated_casted) return } - getAllPathName(): Array { + public getAllPathName(): Array { return this.getAllPathName_serialize() } - getParamByIndex(index: number): unknown | undefined { + public getParamByIndex(index: number): unknown | undefined { const index_casted = index as (number) return this.getParamByIndex_serialize(index_casted) } - getParamByName(name: string): Array { + public getParamByName(name: string): Array { const name_casted = name as (string) return this.getParamByName_serialize(name_casted) } - getIndexByName(name: string): Array { + public getIndexByName(name: string): Array { const name_casted = name as (string) return this.getIndexByName_serialize(name_casted) } - getParent(): NavPathStack | undefined { + public getParent(): NavPathStack | undefined { return this.getParent_serialize() } - size(): number { + public size(): number { return this.size_serialize() } - disableAnimation(value: boolean): void { + public disableAnimation(value: boolean): void { const value_casted = value as (boolean) this?.disableAnimation_serialize(value_casted) return } - setInterception(interception: NavigationInterception): void { + public setInterception(interception: NavigationInterception): void { const interception_casted = interception as (NavigationInterception) this?.setInterception_serialize(interception_casted) return diff --git a/arkoala/arkui/src/ArkNavRouter.ts b/arkoala/arkui/src/ArkNavRouter.ts index 328079190..5775d11d1 100644 --- a/arkoala/arkui/src/ArkNavRouter.ts +++ b/arkoala/arkui/src/ArkNavRouter.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { return (this.peer as ArkNavRouterPeer) } /** @memo */ - setNavRouterOptions(value?: RouteInfo): this { + public setNavRouterOptions(value?: RouteInfo): this { if (this.checkPriority("setNavRouterOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.UNDEFINED == value_type)))) { @@ -76,7 +76,7 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStateChange(value: ((parameter: boolean) => void)): this { + public onStateChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onStateChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({NavRouter_onStateChange: value_casted}) @@ -86,7 +86,7 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mode(value: NavRouteMode): this { + public mode(value: NavRouteMode): this { if (this.checkPriority("mode")) { const value_casted = value as (NavRouteMode) this.getPeer()?.modeAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkNavigationInterfaces.ts b/arkoala/arkui/src/ArkNavigationInterfaces.ts index ed0d9a3cb..57ee8b74d 100644 --- a/arkoala/arkui/src/ArkNavigationInterfaces.ts +++ b/arkoala/arkui/src/ArkNavigationInterfaces.ts @@ -23,6 +23,7 @@ import { Resource } from "./ArkResourceInterfaces" import { CustomBuilder, SymbolGlyphModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, 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, 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" import { TitleHeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } 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, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { RouteMapConfig, NavDestinationMode } from "./ArkNavDestinationInterfaces" @@ -52,7 +53,7 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" export interface SystemBarStyle { - __SystemBarStyleStub: string; + _SystemBarStyleStub: string; } export interface NavigationCommonTitle { main: string | Resource; @@ -95,12 +96,6 @@ export interface PopInfo { info: NavPathInfo; result: Object; } -export interface NavPathInfo { - name: string; - param?: unknown; - onPop?: ((parameter: PopInfo) => void); - isEntry?: boolean; -} export enum LaunchMode { STANDARD, MOVE_TO_TOP_SINGLETON = 1, diff --git a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts index 2b053f2fe..c6e4674f0 100644 --- a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -70,15 +70,15 @@ export class NavigationTransitionProxyInternal implements MaterializedBase,Navig static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._NavigationTransitionProxy_getFinalizer() } - finishTransition(): void { + public finishTransition(): void { this?.finishTransition_serialize() return } - cancelTransition(): void { + public cancelTransition(): void { this?.cancelTransition_serialize() return } - updateTransition(progress: number): void { + public updateTransition(progress: number): void { const progress_casted = progress as (number) this?.updateTransition_serialize(progress_casted) return diff --git a/arkoala/arkui/src/ArkNavigator.ts b/arkoala/arkui/src/ArkNavigator.ts index 2eafba78d..6c59d128f 100644 --- a/arkoala/arkui/src/ArkNavigator.ts +++ b/arkoala/arkui/src/ArkNavigator.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return (this.peer as ArkNavigatorPeer) } /** @memo */ - setNavigatorOptions(value?: { target: string, type?: NavigationType }): this { + public setNavigatorOptions(value?: { target: string, type?: NavigationType }): this { if (this.checkPriority("setNavigatorOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.UNDEFINED == value_type)))) { @@ -75,7 +75,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - active(value: boolean): this { + public active(value: boolean): this { if (this.checkPriority("active")) { const value_casted = value as (boolean) this.getPeer()?.activeAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: NavigationType): this { + public type(value: NavigationType): this { if (this.checkPriority("type")) { const value_casted = value as (NavigationType) this.getPeer()?.typeAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - target(value: string): this { + public target(value: string): this { if (this.checkPriority("target")) { const value_casted = value as (string) this.getPeer()?.targetAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - params(value: Object): this { + public params(value: Object): this { if (this.checkPriority("params")) { const value_casted = value as (Object) this.getPeer()?.paramsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkNodeContainer.ts b/arkoala/arkui/src/ArkNodeContainer.ts index a28af62f2..2a56e3c50 100644 --- a/arkoala/arkui/src/ArkNodeContainer.ts +++ b/arkoala/arkui/src/ArkNodeContainer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkNodeContainerComponent extends ArkCommonMethodComponent { return (this.peer as ArkNodeContainerPeer) } /** @memo */ - setNodeContainerOptions(controller: NodeController): this { + public setNodeContainerOptions(controller: NodeController): this { if (this.checkPriority("setNodeContainerOptions")) { const controller_casted = controller as (NodeController) this.getPeer()?.setNodeContainerOptionsAttribute(controller_casted) diff --git a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts b/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts index bf0cb9263..0d276d248 100644 --- a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts b/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts index 89c657340..50d0001a8 100644 --- a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -74,19 +74,19 @@ export class PanGestureOptions implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PanGestureOptions_getFinalizer() } - setDirection(value: PanDirection): undefined { + public setDirection(value: PanDirection): undefined { const value_casted = value as (PanDirection) return this.setDirection_serialize(value_casted) } - setDistance(value: number): undefined { + public setDistance(value: number): undefined { const value_casted = value as (number) return this.setDistance_serialize(value_casted) } - setFingers(value: number): undefined { + public setFingers(value: number): undefined { const value_casted = value as (number) return this.setFingers_serialize(value_casted) } - getDirection(): PanDirection { + public getDirection(): PanDirection { return this.getDirection_serialize() } private setDirection_serialize(value: PanDirection): undefined { diff --git a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts b/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts index caa87cd52..2828db1ea 100644 --- a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts +++ b/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts @@ -26,7 +26,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -47,7 +47,7 @@ export class PanRecognizer extends GestureRecognizer implements MaterializedBase static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PanRecognizer_getFinalizer() } - getPanGestureOptions(): PanGestureOptions { + public getPanGestureOptions(): PanGestureOptions { return this.getPanGestureOptions_serialize() } private getPanGestureOptions_serialize(): PanGestureOptions { diff --git a/arkoala/arkui/src/ArkPanel.ts b/arkoala/arkui/src/ArkPanel.ts index 39b28aba5..2a6d95ba5 100644 --- a/arkoala/arkui/src/ArkPanel.ts +++ b/arkoala/arkui/src/ArkPanel.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return (this.peer as ArkPanelPeer) } /** @memo */ - setPanelOptions(show: boolean): this { + public setPanelOptions(show: boolean): this { if (this.checkPriority("setPanelOptions")) { const show_casted = show as (boolean) this.getPeer()?.setPanelOptionsAttribute(show_casted) @@ -68,7 +68,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mode(value: PanelMode): this { + public mode(value: PanelMode): this { if (this.checkPriority("mode")) { const value_casted = value as (PanelMode) this.getPeer()?.modeAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: PanelType): this { + public type(value: PanelType): this { if (this.checkPriority("type")) { const value_casted = value as (PanelType) this.getPeer()?.typeAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dragBar(value: boolean): this { + public dragBar(value: boolean): this { if (this.checkPriority("dragBar")) { const value_casted = value as (boolean) this.getPeer()?.dragBarAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customHeight(value: Dimension | PanelHeight): this { + public customHeight(value: Dimension | PanelHeight): this { if (this.checkPriority("customHeight")) { const value_casted = value as (Dimension | PanelHeight) this.getPeer()?.customHeightAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fullHeight(value: number | string): this { + public fullHeight(value: number | string): this { if (this.checkPriority("fullHeight")) { const value_casted = value as (number | string) this.getPeer()?.fullHeightAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - halfHeight(value: number | string): this { + public halfHeight(value: number | string): this { if (this.checkPriority("halfHeight")) { const value_casted = value as (number | string) this.getPeer()?.halfHeightAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - miniHeight(value: number | string): this { + public miniHeight(value: number | string): this { if (this.checkPriority("miniHeight")) { const value_casted = value as (number | string) this.getPeer()?.miniHeightAttribute(value_casted) @@ -131,7 +131,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - show(value: boolean): this { + public show(value: boolean): this { if (this.checkPriority("show")) { const value_casted = value as (boolean) this.getPeer()?.showAttribute(value_casted) @@ -140,7 +140,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backgroundMask(value: ResourceColor): this { + public backgroundMask(value: ResourceColor): this { if (this.checkPriority("backgroundMask")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundMaskAttribute(value_casted) @@ -149,7 +149,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showCloseIcon(value: boolean): this { + public showCloseIcon(value: boolean): this { if (this.checkPriority("showCloseIcon")) { const value_casted = value as (boolean) this.getPeer()?.showCloseIconAttribute(value_casted) @@ -158,7 +158,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((width: number, height: number, mode: PanelMode) => void)): this { + public onChange(value: ((width: number, height: number, mode: PanelMode) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((width: number, height: number, mode: PanelMode) => void)) UseEventsProperties({Panel_onChange: value_casted}) @@ -168,7 +168,7 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHeightChange(value: ((index: number) => void)): this { + public onHeightChange(value: ((index: number) => void)): this { if (this.checkPriority("onHeightChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Panel_onHeightChange: value_casted}) @@ -178,11 +178,11 @@ export class ArkPanelComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_mode(callback: ((mode: PanelMode) => void)): void { - if (this.checkPriority("__onChangeEvent_mode")) { + public _onChangeEvent_mode(callback: ((mode: PanelMode) => void)): void { + if (this.checkPriority("_onChangeEvent_mode")) { const callback_casted = callback as (((mode: PanelMode) => void)) - UseEventsProperties({Panel___onChangeEvent_mode: callback_casted}) - this.getPeer()?.__onChangeEvent_modeAttribute(callback_casted) + UseEventsProperties({Panel__onChangeEvent_mode: callback_casted}) + this.getPeer()?._onChangeEvent_modeAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts b/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts new file mode 100644 index 000000000..154770d30 --- /dev/null +++ b/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts @@ -0,0 +1,121 @@ +/* + * 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 { TextAlign, TextOverflow, WordBreak } from "./ArkEnumsInterfaces" +import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" +import { ParagraphStyleInterface } from "./ArkStyledStringInterfaces" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +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 { 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 ParagraphStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get textAlign(): TextAlign { + return this.getTextAlign() + } + get textIndent(): number { + return this.getTextIndent() + } + get maxLines(): number { + return this.getMaxLines() + } + get overflow(): TextOverflow { + return this.getOverflow() + } + get wordBreak(): WordBreak { + return this.getWordBreak() + } + get leadingMargin(): number | LeadingMarginPlaceholder { + throw new Error("Not implemented") + } + static ctor(value?: ParagraphStyleInterface): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let value_type: int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeParagraphStyleInterface(value_value) + } + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: ParagraphStyleInterface) { + const ctorPtr: KPointer = ParagraphStyle.ctor(value) + this.peer = new Finalizable(ctorPtr, ParagraphStyle.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ParagraphStyle_getFinalizer() + } + private getTextAlign(): TextAlign { + return this.getTextAlign_serialize() + } + private getTextIndent(): number { + return this.getTextIndent_serialize() + } + private getMaxLines(): number { + return this.getMaxLines_serialize() + } + private getOverflow(): TextOverflow { + return this.getOverflow_serialize() + } + private getWordBreak(): WordBreak { + return this.getWordBreak_serialize() + } + private getTextAlign_serialize(): TextAlign { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getTextAlign(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getTextIndent_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getTextIndent(this.peer!.ptr) + return retval + } + private getMaxLines_serialize(): number { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getMaxLines(this.peer!.ptr) + return retval + } + private getOverflow_serialize(): TextOverflow { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getOverflow(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getWordBreak_serialize(): WordBreak { + const retval = ArkUIGeneratedNativeModule._ParagraphStyle_getWordBreak(this.peer!.ptr) + 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/ArkPasteButton.ts b/arkoala/arkui/src/ArkPasteButton.ts index 2eb31a2f5..fb4aa04c3 100644 --- a/arkoala/arkui/src/ArkPasteButton.ts +++ b/arkoala/arkui/src/ArkPasteButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -41,7 +41,7 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent return (this.peer as ArkPasteButtonPeer) } /** @memo */ - setPasteButtonOptions(options?: PasteButtonOptions): this { + public setPasteButtonOptions(options?: PasteButtonOptions): this { if (this.checkPriority("setPasteButtonOptions")) { const options_type = runtimeType(options) if ((((RuntimeType.UNDEFINED == options_type)))) { @@ -58,7 +58,7 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent return this } /** @memo */ - onClick(value: ((event: ClickEvent, result: PasteButtonOnClickResult) => void)): this { + public onClick(value: ((event: ClickEvent, result: PasteButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent, result: PasteButtonOnClickResult) => void)) UseEventsProperties({PasteButton_onClick: value_casted}) diff --git a/arkoala/arkui/src/ArkPath.ts b/arkoala/arkui/src/ArkPath.ts index d8c9dd946..1f35d958e 100644 --- a/arkoala/arkui/src/ArkPath.ts +++ b/arkoala/arkui/src/ArkPath.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkPathComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkPathPeer) } /** @memo */ - setPathOptions(options?: PathOptions): this { + public setPathOptions(options?: PathOptions): this { if (this.checkPriority("setPathOptions")) { const options_casted = options as (PathOptions | undefined) this.getPeer()?.setPathOptionsAttribute(options_casted) @@ -67,7 +67,7 @@ export class ArkPathComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - commands(value: string): this { + public commands(value: string): this { if (this.checkPriority("commands")) { const value_casted = value as (string) this.getPeer()?.commandsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkPath2DMaterialized.ts b/arkoala/arkui/src/ArkPath2DMaterialized.ts index 20ad20acf..57d2aa7d1 100644 --- a/arkoala/arkui/src/ArkPath2DMaterialized.ts +++ b/arkoala/arkui/src/ArkPath2DMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,7 +45,7 @@ export class Path2D extends CanvasPath implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Path2D_getFinalizer() } - addPath(path: Path2D, transform?: Matrix2D): void { + public addPath(path: Path2D, transform?: Matrix2D): void { const path_casted = path as (Path2D) const transform_casted = transform as (Matrix2D | undefined) this?.addPath_serialize(path_casted, transform_casted) diff --git a/arkoala/arkui/src/ArkPatternLock.ts b/arkoala/arkui/src/ArkPatternLock.ts index 576e1c4e0..1e3e908f0 100644 --- a/arkoala/arkui/src/ArkPatternLock.ts +++ b/arkoala/arkui/src/ArkPatternLock.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return (this.peer as ArkPatternLockPeer) } /** @memo */ - setPatternLockOptions(controller?: PatternLockController): this { + public setPatternLockOptions(controller?: PatternLockController): this { if (this.checkPriority("setPatternLockOptions")) { const controller_casted = controller as (PatternLockController | undefined) this.getPeer()?.setPatternLockOptionsAttribute(controller_casted) @@ -69,7 +69,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sideLength(value: Length): this { + public sideLength(value: Length): this { if (this.checkPriority("sideLength")) { const value_casted = value as (Length) this.getPeer()?.sideLengthAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - circleRadius(value: Length): this { + public circleRadius(value: Length): this { if (this.checkPriority("circleRadius")) { const value_casted = value as (Length) this.getPeer()?.circleRadiusAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - regularColor(value: ResourceColor): this { + public regularColor(value: ResourceColor): this { if (this.checkPriority("regularColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.regularColorAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - activeColor(value: ResourceColor): this { + public activeColor(value: ResourceColor): this { if (this.checkPriority("activeColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.activeColorAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pathColor(value: ResourceColor): this { + public pathColor(value: ResourceColor): this { if (this.checkPriority("pathColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.pathColorAttribute(value_casted) @@ -132,7 +132,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pathStrokeWidth(value: number | string): this { + public pathStrokeWidth(value: number | string): this { if (this.checkPriority("pathStrokeWidth")) { const value_casted = value as (number | string) this.getPeer()?.pathStrokeWidthAttribute(value_casted) @@ -141,7 +141,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPatternComplete(value: ((input: Array) => void)): this { + public onPatternComplete(value: ((input: Array) => void)): this { if (this.checkPriority("onPatternComplete")) { const value_casted = value as (((input: Array) => void)) UseEventsProperties({PatternLock_onPatternComplete: value_casted}) @@ -151,7 +151,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoReset(value: boolean): this { + public autoReset(value: boolean): this { if (this.checkPriority("autoReset")) { const value_casted = value as (boolean) this.getPeer()?.autoResetAttribute(value_casted) @@ -160,7 +160,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDotConnect(value: ((index: number) => void)): this { + public onDotConnect(value: ((index: number) => void)): this { if (this.checkPriority("onDotConnect")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({PatternLock_onDotConnect: value_casted}) @@ -170,7 +170,7 @@ export class ArkPatternLockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - activateCircleStyle(value?: CircleStyleOptions): this { + public activateCircleStyle(value?: CircleStyleOptions): this { if (this.checkPriority("activateCircleStyle")) { const value_casted = value as (CircleStyleOptions | undefined) this.getPeer()?.activateCircleStyleAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts b/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts index fbffa34bb..49807a325 100644 --- a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,10 +42,10 @@ export class PatternLockController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PatternLockController_getFinalizer() } - reset(): undefined { + public reset(): undefined { return this.reset_serialize() } - setChallengeResult(result: PatternLockChallengeResult): void { + public setChallengeResult(result: PatternLockChallengeResult): void { const result_casted = result as (PatternLockChallengeResult) this?.setChallengeResult_serialize(result_casted) return diff --git a/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts b/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts index dbb503da2..79a4fb587 100644 --- a/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts +++ b/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,17 +41,17 @@ export class PermissionRequest implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PermissionRequest_getFinalizer() } - deny(): void { + public deny(): void { this?.deny_serialize() return } - getOrigin(): string { + public getOrigin(): string { return this.getOrigin_serialize() } - getAccessibleResource(): Array { + public getAccessibleResource(): Array { return this.getAccessibleResource_serialize() } - grant(resources: Array): void { + public grant(resources: Array): void { const resources_casted = resources as (Array) this?.grant_serialize(resources_casted) return diff --git a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts b/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts index fafe68a90..9212a4730 100644 --- a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkPixelMapMaterialized.ts b/arkoala/arkui/src/ArkPixelMapMaterialized.ts index ca85d052c..cc3418184 100644 --- a/arkoala/arkui/src/ArkPixelMapMaterialized.ts +++ b/arkoala/arkui/src/ArkPixelMapMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,12 +59,12 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PixelMap_getFinalizer() } - readPixelsToBufferSync(dst: ArrayBuffer): void { + public readPixelsToBufferSync(dst: ArrayBuffer): void { const dst_casted = dst as (ArrayBuffer) this?.readPixelsToBufferSync_serialize(dst_casted) return } - writeBufferToPixels(src: ArrayBuffer): void { + public writeBufferToPixels(src: ArrayBuffer): void { const src_casted = src as (ArrayBuffer) this?.writeBufferToPixels_serialize(src_casted) return diff --git a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts b/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts index 8dba6ae57..c1f714084 100644 --- a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts +++ b/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,7 +44,7 @@ export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._PixelMapMock_getFinalizer() } - release(): void { + public release(): void { this?.release_serialize() return } diff --git a/arkoala/arkui/src/ArkPluginComponent.ts b/arkoala/arkui/src/ArkPluginComponent.ts index bc9d9fc4a..c0f917f19 100644 --- a/arkoala/arkui/src/ArkPluginComponent.ts +++ b/arkoala/arkui/src/ArkPluginComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkPluginComponentPeer) } /** @memo */ - setPluginComponentOptions(options: PluginComponentOptions): this { + public setPluginComponentOptions(options: PluginComponentOptions): this { if (this.checkPriority("setPluginComponentOptions")) { const options_casted = options as (PluginComponentOptions) this.getPeer()?.setPluginComponentOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onComplete(value: VoidCallback): this { + public onComplete(value: VoidCallback): this { if (this.checkPriority("onComplete")) { const value_casted = value as (VoidCallback) UseEventsProperties({PluginComponent_onComplete: value_casted}) @@ -78,7 +78,7 @@ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: PluginErrorCallback): this { + public onError(value: PluginErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (PluginErrorCallback) UseEventsProperties({PluginComponent_onError: value_casted}) diff --git a/arkoala/arkui/src/ArkPolygon.ts b/arkoala/arkui/src/ArkPolygon.ts index 27cd3baff..6515d6cc3 100644 --- a/arkoala/arkui/src/ArkPolygon.ts +++ b/arkoala/arkui/src/ArkPolygon.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkPolygonPeer) } /** @memo */ - setPolygonOptions(options?: PolygonOptions): this { + public setPolygonOptions(options?: PolygonOptions): this { if (this.checkPriority("setPolygonOptions")) { const options_casted = options as (PolygonOptions | undefined) this.getPeer()?.setPolygonOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - points(value: Array): this { + public points(value: Array): this { if (this.checkPriority("points")) { const value_casted = value as (Array) this.getPeer()?.pointsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkPolyline.ts b/arkoala/arkui/src/ArkPolyline.ts index 53828a4ff..8b23617d4 100644 --- a/arkoala/arkui/src/ArkPolyline.ts +++ b/arkoala/arkui/src/ArkPolyline.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkPolylinePeer) } /** @memo */ - setPolylineOptions(options?: PolylineOptions): this { + public setPolylineOptions(options?: PolylineOptions): this { if (this.checkPriority("setPolylineOptions")) { const options_casted = options as (PolylineOptions | undefined) this.getPeer()?.setPolylineOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - points(value: Array): this { + public points(value: Array): this { if (this.checkPriority("points")) { const value_casted = value as (Array) this.getPeer()?.pointsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkProgress.ts b/arkoala/arkui/src/ArkProgress.ts index c9264a436..973e0d409 100644 --- a/arkoala/arkui/src/ArkProgress.ts +++ b/arkoala/arkui/src/ArkProgress.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -51,14 +51,16 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" 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" /** @memo:stable */ export class ArkProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkProgressPeer { return (this.peer as ArkProgressPeer) } /** @memo */ - setProgressOptions(options: ProgressOptions): this { + public setProgressOptions(options: ProgressOptions): this { if (this.checkPriority("setProgressOptions")) { const options_casted = options as (ProgressOptions) this.getPeer()?.setProgressOptionsAttribute(options_casted) @@ -67,7 +69,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - value(value: number): this { + public value(value: number): this { if (this.checkPriority("value")) { const value_casted = value as (number) this.getPeer()?.valueAttribute(value_casted) @@ -76,16 +78,16 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor | LinearGradient_common): this { + public color(value: ResourceColor | LinearGradient): this { if (this.checkPriority("color")) { - const value_casted = value as (ResourceColor | LinearGradient_common) + const value_casted = value as (ResourceColor | LinearGradient) this.getPeer()?.colorAttribute(value_casted) return this } return this } /** @memo */ - style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions): this { + public style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions): this { if (this.checkPriority("style")) { const value_casted = value as (LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions) this.getPeer()?.styleAttribute(value_casted) @@ -94,7 +96,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value?: boolean): this { + public privacySensitive(value?: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean | undefined) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -103,7 +105,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkProgressInterfaces.ts b/arkoala/arkui/src/ArkProgressInterfaces.ts index 2a747c90e..141e0f67c 100644 --- a/arkoala/arkui/src/ArkProgressInterfaces.ts +++ b/arkoala/arkui/src/ArkProgressInterfaces.ts @@ -47,6 +47,8 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { ColorStop } from "./ArkDataPanelInterfaces" export interface ProgressOptions { value: number; total?: number; @@ -121,7 +123,7 @@ export interface ProgressStyleMap { export type ProgressInterface = (options: ProgressOptions) => ProgressAttribute; export interface ProgressAttribute extends CommonMethod { value: number; - color: ResourceColor | LinearGradient_common; + color: ResourceColor | LinearGradient; style: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions; privacySensitive: boolean | undefined; contentModifier: ContentModifier; diff --git a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts b/arkoala/arkui/src/ArkProgressMaskMaterialized.ts index 56ebef9d4..bcb80e5dc 100644 --- a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts +++ b/arkoala/arkui/src/ArkProgressMaskMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -71,17 +71,17 @@ export class ProgressMask implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ProgressMask_getFinalizer() } - updateProgress(value: number): void { + public updateProgress(value: number): void { const value_casted = value as (number) this?.updateProgress_serialize(value_casted) return } - updateColor(value: ResourceColor): void { + public updateColor(value: ResourceColor): void { const value_casted = value as (ResourceColor) this?.updateColor_serialize(value_casted) return } - enableBreathingAnimation(value: boolean): void { + public enableBreathingAnimation(value: boolean): void { const value_casted = value as (boolean) this?.enableBreathingAnimation_serialize(value_casted) return diff --git a/arkoala/arkui/src/ArkQrcode.ts b/arkoala/arkui/src/ArkQrcode.ts index 39d8d8c7b..9994822ef 100644 --- a/arkoala/arkui/src/ArkQrcode.ts +++ b/arkoala/arkui/src/ArkQrcode.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return (this.peer as ArkQRCodePeer) } /** @memo */ - setQRCodeOptions(value: string): this { + public setQRCodeOptions(value: string): this { if (this.checkPriority("setQRCodeOptions")) { const value_casted = value as (string) this.getPeer()?.setQRCodeOptionsAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - color(value: ResourceColor): this { + public color(value: ResourceColor): this { if (this.checkPriority("color")) { const value_casted = value as (ResourceColor) this.getPeer()?.colorAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkQRCodeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentOpacity(value: number | Resource): this { + public contentOpacity(value: number | Resource): this { if (this.checkPriority("contentOpacity")) { const value_casted = value as (number | Resource) this.getPeer()?.contentOpacityAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkRadio.ts b/arkoala/arkui/src/ArkRadio.ts index 8b291a682..054737315 100644 --- a/arkoala/arkui/src/ArkRadio.ts +++ b/arkoala/arkui/src/ArkRadio.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return (this.peer as ArkRadioPeer) } /** @memo */ - setRadioOptions(options: RadioOptions): this { + public setRadioOptions(options: RadioOptions): this { if (this.checkPriority("setRadioOptions")) { const options_casted = options as (RadioOptions) this.getPeer()?.setRadioOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - checked(value: boolean): this { + public checked(value: boolean): this { if (this.checkPriority("checked")) { const value_casted = value as (boolean) this.getPeer()?.checkedAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({Radio_onChange: value_casted}) @@ -87,7 +87,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - radioStyle(value?: RadioStyle): this { + public radioStyle(value?: RadioStyle): this { if (this.checkPriority("radioStyle")) { const value_casted = value as (RadioStyle | undefined) this.getPeer()?.radioStyleAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -105,11 +105,11 @@ export class ArkRadioComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_checked(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_checked")) { + public _onChangeEvent_checked(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_checked")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Radio___onChangeEvent_checked: callback_casted}) - this.getPeer()?.__onChangeEvent_checkedAttribute(callback_casted) + UseEventsProperties({Radio__onChangeEvent_checked: callback_casted}) + this.getPeer()?._onChangeEvent_checkedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkRating.ts b/arkoala/arkui/src/ArkRating.ts index d6824732b..da26b0121 100644 --- a/arkoala/arkui/src/ArkRating.ts +++ b/arkoala/arkui/src/ArkRating.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return (this.peer as ArkRatingPeer) } /** @memo */ - setRatingOptions(options?: RatingOptions): this { + public setRatingOptions(options?: RatingOptions): this { if (this.checkPriority("setRatingOptions")) { const options_casted = options as (RatingOptions | undefined) this.getPeer()?.setRatingOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stars(value: number): this { + public stars(value: number): this { if (this.checkPriority("stars")) { const value_casted = value as (number) this.getPeer()?.starsAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stepSize(value: number): this { + public stepSize(value: number): this { if (this.checkPriority("stepSize")) { const value_casted = value as (number) this.getPeer()?.stepSizeAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - starStyle(value: StarStyleOptions): this { + public starStyle(value: StarStyleOptions): this { if (this.checkPriority("starStyle")) { const value_casted = value as (StarStyleOptions) this.getPeer()?.starStyleAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Rating_onChange: value_casted}) @@ -105,7 +105,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -114,11 +114,11 @@ export class ArkRatingComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_rating(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_rating")) { + public _onChangeEvent_rating(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_rating")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Rating___onChangeEvent_rating: callback_casted}) - this.getPeer()?.__onChangeEvent_ratingAttribute(callback_casted) + UseEventsProperties({Rating__onChangeEvent_rating: callback_casted}) + this.getPeer()?._onChangeEvent_ratingAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkRect.ts b/arkoala/arkui/src/ArkRect.ts index 2b56abd58..4743efaa0 100644 --- a/arkoala/arkui/src/ArkRect.ts +++ b/arkoala/arkui/src/ArkRect.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return (this.peer as ArkRectPeer) } /** @memo */ - setRectOptions(options?: RectOptions | RoundedRectOptions): this { + public setRectOptions(options?: RectOptions | RoundedRectOptions): this { if (this.checkPriority("setRectOptions")) { const options_casted = options as (RectOptions | RoundedRectOptions | undefined) this.getPeer()?.setRectOptionsAttribute(options_casted) @@ -67,7 +67,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - radiusWidth(value: number | string): this { + public radiusWidth(value: number | string): this { if (this.checkPriority("radiusWidth")) { const value_casted = value as (number | string) this.getPeer()?.radiusWidthAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - radiusHeight(value: number | string): this { + public radiusHeight(value: number | string): this { if (this.checkPriority("radiusHeight")) { const value_casted = value as (number | string) this.getPeer()?.radiusHeightAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkRectComponent extends ArkCommonShapeMethodComponent { return this } /** @memo */ - radius(value: number | string | Array): this { + public radius(value: number | string | Array): this { if (this.checkPriority("radius")) { const value_casted = value as (number | string | Array) this.getPeer()?.radiusAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkRefresh.ts b/arkoala/arkui/src/ArkRefresh.ts index 04de4f614..e160d0721 100644 --- a/arkoala/arkui/src/ArkRefresh.ts +++ b/arkoala/arkui/src/ArkRefresh.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return (this.peer as ArkRefreshPeer) } /** @memo */ - setRefreshOptions(value: RefreshOptions): this { + public setRefreshOptions(value: RefreshOptions): this { if (this.checkPriority("setRefreshOptions")) { const value_casted = value as (RefreshOptions) this.getPeer()?.setRefreshOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStateChange(value: ((state: RefreshStatus) => void)): this { + public onStateChange(value: ((state: RefreshStatus) => void)): this { if (this.checkPriority("onStateChange")) { const value_casted = value as (((state: RefreshStatus) => void)) UseEventsProperties({Refresh_onStateChange: value_casted}) @@ -78,7 +78,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRefreshing(value: (() => void)): this { + public onRefreshing(value: (() => void)): this { if (this.checkPriority("onRefreshing")) { const value_casted = value as ((() => void)) UseEventsProperties({Refresh_onRefreshing: value_casted}) @@ -88,7 +88,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - refreshOffset(value: number): this { + public refreshOffset(value: number): this { if (this.checkPriority("refreshOffset")) { const value_casted = value as (number) this.getPeer()?.refreshOffsetAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pullToRefresh(value: boolean): this { + public pullToRefresh(value: boolean): this { if (this.checkPriority("pullToRefresh")) { const value_casted = value as (boolean) this.getPeer()?.pullToRefreshAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onOffsetChange(value: ((index: number) => void)): this { + public onOffsetChange(value: ((index: number) => void)): this { if (this.checkPriority("onOffsetChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Refresh_onOffsetChange: value_casted}) @@ -116,7 +116,7 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pullDownRatio(value?: number): this { + public pullDownRatio(value?: number): this { if (this.checkPriority("pullDownRatio")) { const value_casted = value as (number | undefined) this.getPeer()?.pullDownRatioAttribute(value_casted) @@ -125,11 +125,11 @@ export class ArkRefreshComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_refreshing(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_refreshing")) { + public _onChangeEvent_refreshing(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_refreshing")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Refresh___onChangeEvent_refreshing: callback_casted}) - this.getPeer()?.__onChangeEvent_refreshingAttribute(callback_casted) + UseEventsProperties({Refresh__onChangeEvent_refreshing: callback_casted}) + this.getPeer()?._onChangeEvent_refreshingAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkRelativeContainer.ts b/arkoala/arkui/src/ArkRelativeContainer.ts index c276001fb..b19756cab 100644 --- a/arkoala/arkui/src/ArkRelativeContainer.ts +++ b/arkoala/arkui/src/ArkRelativeContainer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { return (this.peer as ArkRelativeContainerPeer) } /** @memo */ - setRelativeContainerOptions(): this { + public setRelativeContainerOptions(): this { if (this.checkPriority("setRelativeContainerOptions")) { this.getPeer()?.setRelativeContainerOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - guideLine(value: Array): this { + public guideLine(value: Array): this { if (this.checkPriority("guideLine")) { const value_casted = value as (Array) this.getPeer()?.guideLineAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barrier(value: Array | Array): this { + public barrier(value: Array | Array): this { if (this.checkPriority("barrier")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { diff --git a/arkoala/arkui/src/ArkRemoteWindow.ts b/arkoala/arkui/src/ArkRemoteWindow.ts index 5a99db48f..af3f081fe 100644 --- a/arkoala/arkui/src/ArkRemoteWindow.ts +++ b/arkoala/arkui/src/ArkRemoteWindow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkRemoteWindowComponent extends ArkCommonMethodComponent { return (this.peer as ArkRemoteWindowPeer) } /** @memo */ - setRemoteWindowOptions(target: WindowAnimationTarget): this { + public setRemoteWindowOptions(target: WindowAnimationTarget): this { if (this.checkPriority("setRemoteWindowOptions")) { const target_casted = target as (WindowAnimationTarget) this.getPeer()?.setRemoteWindowOptionsAttribute(target_casted) diff --git a/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts b/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts new file mode 100644 index 000000000..2701193fc --- /dev/null +++ b/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts @@ -0,0 +1,82 @@ +/* + * 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 } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 RenderingContextSettings implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get antialias(): boolean { + return this.getAntialias() + } + set antialias(antialias: boolean) { + const antialias_NonNull = (antialias as boolean) + this.setAntialias(antialias_NonNull) + } + static ctor(antialias?: boolean): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let antialias_type: int32 = RuntimeType.UNDEFINED + antialias_type = runtimeType(antialias) + thisSerializer.writeInt8(antialias_type) + if ((RuntimeType.UNDEFINED) != (antialias_type)) { + const antialias_value = antialias! + thisSerializer.writeBoolean(antialias_value) + } + const retval = ArkUIGeneratedNativeModule._RenderingContextSettings_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(antialias?: boolean) { + const ctorPtr: KPointer = RenderingContextSettings.ctor(antialias) + this.peer = new Finalizable(ctorPtr, RenderingContextSettings.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._RenderingContextSettings_getFinalizer() + } + private getAntialias(): boolean { + return this.getAntialias_serialize() + } + private setAntialias(antialias: boolean): void { + const antialias_casted = antialias as (boolean) + this?.setAntialias_serialize(antialias_casted) + return + } + private getAntialias_serialize(): boolean { + const retval = ArkUIGeneratedNativeModule._RenderingContextSettings_getAntialias(this.peer!.ptr) + return retval + } + private setAntialias_serialize(antialias: boolean): void { + 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/ArkReplaceSymbolEffectMaterialized.ts b/arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts new file mode 100644 index 000000000..37b9b2a84 --- /dev/null +++ b/arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts @@ -0,0 +1,83 @@ +/* + * 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 { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope { + return this.getScope() + } + set scope(scope: EffectScope) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + static ctor(scope?: EffectScope): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let scope_type: int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = scope! + thisSerializer.writeInt32(scope_value) + } + const retval = ArkUIGeneratedNativeModule._ReplaceSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope) { + const ctorPtr: KPointer = ReplaceSymbolEffect.ctor(scope) + this.peer = new Finalizable(ctorPtr, ReplaceSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ReplaceSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this?.setScope_serialize(scope_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._ReplaceSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + 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/ArkRichEditor.ts b/arkoala/arkui/src/ArkRichEditor.ts index 2849df675..7c4ae4b48 100644 --- a/arkoala/arkui/src/ArkRichEditor.ts +++ b/arkoala/arkui/src/ArkRichEditor.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -56,7 +56,7 @@ import { PasteEventCallback, SubmitCallback, RichEditorSpanType, RichEditorRespo import { TextDataDetectorConfig, OnDidChangeCallback, TextRange, TextDataDetectorType, TextMenuItem, MenuType, DecorationStyleResult, PreviewText, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, Affinity, StyledStringChangeValue } from "./ArkTextCommonInterfaces" import { EnterKeyType } from "./ArkTextInputInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" import { RichEditorController } from "./ArkRichEditorControllerMaterialized" @@ -68,6 +68,7 @@ import { LayoutManager } from "./ArkLayoutManagerMaterialized" import { StyledString } from "./ArkStyledStringMaterialized" import { StyledStringController } from "./ArkStyledStringControllerMaterialized" import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" import { CustomSpan } from "./ArkCustomSpanMaterialized" /** @memo:stable */ export class ArkRichEditorComponent extends ArkCommonMethodComponent { @@ -75,7 +76,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return (this.peer as ArkRichEditorPeer) } /** @memo */ - setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { + public setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { if (this.checkPriority("setRichEditorOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT == value_type)))) { @@ -93,7 +94,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: (() => void)): this { + public onReady(value: (() => void)): this { if (this.checkPriority("onReady")) { const value_casted = value as ((() => void)) UseEventsProperties({RichEditor_onReady: value_casted}) @@ -103,7 +104,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((parameter: RichEditorSelection) => void)): this { + public onSelect(value: ((parameter: RichEditorSelection) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((parameter: RichEditorSelection) => void)) UseEventsProperties({RichEditor_onSelect: value_casted}) @@ -113,7 +114,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelectionChange(value: ((parameter: RichEditorRange) => void)): this { + public onSelectionChange(value: ((parameter: RichEditorRange) => void)): this { if (this.checkPriority("onSelectionChange")) { const value_casted = value as (((parameter: RichEditorRange) => void)) UseEventsProperties({RichEditor_onSelectionChange: value_casted}) @@ -123,7 +124,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - aboutToIMEInput(value: ((parameter: RichEditorInsertValue) => boolean)): this { + public aboutToIMEInput(value: ((parameter: RichEditorInsertValue) => boolean)): this { if (this.checkPriority("aboutToIMEInput")) { const value_casted = value as (((parameter: RichEditorInsertValue) => boolean)) UseEventsProperties({RichEditor_aboutToIMEInput: value_casted}) @@ -133,7 +134,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onIMEInputComplete(value: ((parameter: RichEditorTextSpanResult) => void)): this { + public onIMEInputComplete(value: ((parameter: RichEditorTextSpanResult) => void)): this { if (this.checkPriority("onIMEInputComplete")) { const value_casted = value as (((parameter: RichEditorTextSpanResult) => void)) UseEventsProperties({RichEditor_onIMEInputComplete: value_casted}) @@ -143,7 +144,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidIMEInput(value: ((parameter: TextRange) => void)): this { + public onDidIMEInput(value: ((parameter: TextRange) => void)): this { if (this.checkPriority("onDidIMEInput")) { const value_casted = value as (((parameter: TextRange) => void)) UseEventsProperties({RichEditor_onDidIMEInput: value_casted}) @@ -153,7 +154,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - aboutToDelete(value: ((parameter: RichEditorDeleteValue) => boolean)): this { + public aboutToDelete(value: ((parameter: RichEditorDeleteValue) => boolean)): this { if (this.checkPriority("aboutToDelete")) { const value_casted = value as (((parameter: RichEditorDeleteValue) => boolean)) UseEventsProperties({RichEditor_aboutToDelete: value_casted}) @@ -163,7 +164,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDeleteComplete(value: (() => void)): this { + public onDeleteComplete(value: (() => void)): this { if (this.checkPriority("onDeleteComplete")) { const value_casted = value as ((() => void)) UseEventsProperties({RichEditor_onDeleteComplete: value_casted}) @@ -173,7 +174,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOptions(value: CopyOptions): this { + public copyOptions(value: CopyOptions): this { if (this.checkPriority("copyOptions")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionsAttribute(value_casted) @@ -182,7 +183,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: PasteEventCallback): this { + public onPaste(value: PasteEventCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (PasteEventCallback) UseEventsProperties({RichEditor_onPaste: value_casted}) @@ -192,7 +193,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableDataDetector(value: boolean): this { + public enableDataDetector(value: boolean): this { if (this.checkPriority("enableDataDetector")) { const value_casted = value as (boolean) this.getPeer()?.enableDataDetectorAttribute(value_casted) @@ -201,7 +202,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -210,7 +211,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dataDetectorConfig(value: TextDataDetectorConfig): this { + public dataDetectorConfig(value: TextDataDetectorConfig): this { if (this.checkPriority("dataDetectorConfig")) { const value_casted = value as (TextDataDetectorConfig) this.getPeer()?.dataDetectorConfigAttribute(value_casted) @@ -219,7 +220,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -228,7 +229,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -237,7 +238,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditingChange(value: ((parameter: boolean) => void)): this { + public onEditingChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditingChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({RichEditor_onEditingChange: value_casted}) @@ -247,7 +248,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -256,7 +257,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: SubmitCallback): this { + public onSubmit(value: SubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_casted = value as (SubmitCallback) UseEventsProperties({RichEditor_onSubmit: value_casted}) @@ -266,7 +267,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillChange(value: ((parameter: RichEditorChangeValue) => boolean)): this { + public onWillChange(value: ((parameter: RichEditorChangeValue) => boolean)): this { if (this.checkPriority("onWillChange")) { const value_casted = value as (((parameter: RichEditorChangeValue) => boolean)) UseEventsProperties({RichEditor_onWillChange: value_casted}) @@ -276,7 +277,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidChange(value: OnDidChangeCallback): this { + public onDidChange(value: OnDidChangeCallback): this { if (this.checkPriority("onDidChange")) { const value_casted = value as (OnDidChangeCallback) UseEventsProperties({RichEditor_onDidChange: value_casted}) @@ -286,7 +287,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((parameter: CutEvent) => void)): this { + public onCut(value: ((parameter: CutEvent) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((parameter: CutEvent) => void)) UseEventsProperties({RichEditor_onCut: value_casted}) @@ -296,7 +297,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((parameter: CopyEvent) => void)): this { + public onCopy(value: ((parameter: CopyEvent) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((parameter: CopyEvent) => void)) UseEventsProperties({RichEditor_onCopy: value_casted}) @@ -306,7 +307,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -315,7 +316,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -324,7 +325,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -333,7 +334,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barState(value: BarState): this { + public barState(value: BarState): this { if (this.checkPriority("barState")) { const value_casted = value as (BarState) this.getPeer()?.barStateAttribute(value_casted) @@ -342,7 +343,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): this { + public bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): this { if (this.checkPriority("bindSelectionMenu")) { const spanType_casted = spanType as (RichEditorSpanType) const content_casted = content as (CustomBuilder) @@ -355,7 +356,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -366,7 +367,7 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholder(value: ResourceStr, style?: PlaceholderStyle): this { + public placeholder(value: ResourceStr, style?: PlaceholderStyle): this { if (this.checkPriority("placeholder")) { const value_casted = value as (ResourceStr) const style_casted = style as (PlaceholderStyle | undefined) diff --git a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts b/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts index 2b1a9cf11..cf3211a33 100644 --- a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts @@ -32,7 +32,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,43 +52,43 @@ export class RichEditorBaseController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RichEditorBaseController_getFinalizer() } - getCaretOffset(): number { + public getCaretOffset(): number { return this.getCaretOffset_serialize() } - setCaretOffset(offset: number): boolean { + public setCaretOffset(offset: number): boolean { const offset_casted = offset as (number) return this.setCaretOffset_serialize(offset_casted) } - closeSelectionMenu(): void { + public closeSelectionMenu(): void { this?.closeSelectionMenu_serialize() return } - getTypingStyle(): RichEditorTextStyle { + public getTypingStyle(): RichEditorTextStyle { return this.getTypingStyle_serialize() } - setTypingStyle(value: RichEditorTextStyle): void { + public setTypingStyle(value: RichEditorTextStyle): void { const value_casted = value as (RichEditorTextStyle) this?.setTypingStyle_serialize(value_casted) return } - setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this?.setSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - isEditing(): boolean { + public isEditing(): boolean { return this.isEditing_serialize() } - stopEditing(): void { + public stopEditing(): void { this?.stopEditing_serialize() return } - getLayoutManager(): LayoutManager { + public getLayoutManager(): LayoutManager { return this.getLayoutManager_serialize() } - getPreviewText(): PreviewText { + public getPreviewText(): PreviewText { return this.getPreviewText_serialize() } private getCaretOffset_serialize(): number { diff --git a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts b/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts index fee30dfc9..35c2665cd 100644 --- a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts @@ -30,11 +30,12 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialize import { ImageSpanAlignment, ImageFit, FontStyle, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, FontWeight, TextAlign, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { GestureEvent, GestureEventInternal } from "./ArkGestureEventMaterialized" 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" @@ -42,7 +43,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -63,57 +64,57 @@ export class RichEditorController extends RichEditorBaseController implements Ma static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RichEditorController_getFinalizer() } - addTextSpan(value: string, options?: RichEditorTextSpanOptions): number { + public addTextSpan(value: string, options?: RichEditorTextSpanOptions): number { const value_casted = value as (string) const options_casted = options as (RichEditorTextSpanOptions | undefined) return this.addTextSpan_serialize(value_casted, options_casted) } - addImageSpan(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number { + public addImageSpan(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number { const value_casted = value as (PixelMap | ResourceStr) const options_casted = options as (RichEditorImageSpanOptions | undefined) return this.addImageSpan_serialize(value_casted, options_casted) } - addBuilderSpan(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number { + public addBuilderSpan(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number { const value_casted = value as (CustomBuilder) const options_casted = options as (RichEditorBuilderSpanOptions | undefined) return this.addBuilderSpan_serialize(value_casted, options_casted) } - addSymbolSpan(value: Resource, options?: RichEditorSymbolSpanOptions): number { + public addSymbolSpan(value: Resource, options?: RichEditorSymbolSpanOptions): number { const value_casted = value as (Resource) const options_casted = options as (RichEditorSymbolSpanOptions | undefined) return this.addSymbolSpan_serialize(value_casted, options_casted) } - updateSpanStyle(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void { + public updateSpanStyle(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void { const value_casted = value as (RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions) this?.updateSpanStyle_serialize(value_casted) return } - updateParagraphStyle(value: RichEditorParagraphStyleOptions): void { + public updateParagraphStyle(value: RichEditorParagraphStyleOptions): void { const value_casted = value as (RichEditorParagraphStyleOptions) this?.updateParagraphStyle_serialize(value_casted) return } - deleteSpans(value?: RichEditorRange): void { + public deleteSpans(value?: RichEditorRange): void { const value_casted = value as (RichEditorRange | undefined) this?.deleteSpans_serialize(value_casted) return } - getSpans(value?: RichEditorRange): Array { + public getSpans(value?: RichEditorRange): Array { const value_casted = value as (RichEditorRange | undefined) return this.getSpans_serialize(value_casted) } - getParagraphs(value?: RichEditorRange): Array { + public getParagraphs(value?: RichEditorRange): Array { const value_casted = value as (RichEditorRange | undefined) return this.getParagraphs_serialize(value_casted) } - getSelection(): RichEditorSelection { + public getSelection(): RichEditorSelection { return this.getSelection_serialize() } - fromStyledString(value: StyledString): Array { + public fromStyledString(value: StyledString): Array { const value_casted = value as (StyledString) return this.fromStyledString_serialize(value_casted) } - toStyledString(value: RichEditorRange): StyledString { + public toStyledString(value: RichEditorRange): StyledString { const value_casted = value as (RichEditorRange) return this.toStyledString_serialize(value_casted) } diff --git a/arkoala/arkui/src/ArkRichEditorInterfaces.ts b/arkoala/arkui/src/ArkRichEditorInterfaces.ts index ca4430236..8a17cda38 100644 --- a/arkoala/arkui/src/ArkRichEditorInterfaces.ts +++ b/arkoala/arkui/src/ArkRichEditorInterfaces.ts @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Area, Position, Font, SizeOptions, Padding, ConstraintSizeOptions, ChainWeightOptions, LocalizedPadding, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Bias } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, CopyOptions, BarState } from "./ArkEnumsInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { ShadowOptions, ShadowType, EventTarget, SourceType, SourceTool, SelectionOptions, CustomBuilder, MenuPolicy, DrawContext, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, 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, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" @@ -38,6 +38,7 @@ import { TextBaseController } from "./ArkTextBaseControllerMaterialized" import { LayoutManager } from "./ArkLayoutManagerMaterialized" import { StyledString } from "./ArkStyledStringMaterialized" import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" import { CustomSpan } from "./ArkCustomSpanMaterialized" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" diff --git a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts index 20874574a..c5d0afc38 100644 --- a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts @@ -29,8 +29,9 @@ import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableSt import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" import { ResourceColor, Length, ResourceStr, SizeOptions, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" @@ -39,7 +40,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -60,18 +61,18 @@ export class RichEditorStyledStringController extends RichEditorBaseController i static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._RichEditorStyledStringController_getFinalizer() } - setStyledString(styledString: StyledString): void { + public setStyledString(styledString: StyledString): void { const styledString_casted = styledString as (StyledString) this?.setStyledString_serialize(styledString_casted) return } - getStyledString(): MutableStyledString { + public getStyledString(): MutableStyledString { return this.getStyledString_serialize() } - getSelection(): RichEditorRange { + public getSelection(): RichEditorRange { return this.getSelection_serialize() } - onContentChanged(listener: StyledStringChangedListener): void { + public onContentChanged(listener: StyledStringChangedListener): void { const listener_casted = listener as (StyledStringChangedListener) this?.onContentChanged_serialize(listener_casted) return diff --git a/arkoala/arkui/src/ArkRichText.ts b/arkoala/arkui/src/ArkRichText.ts index 24ea67fec..e5386d4f2 100644 --- a/arkoala/arkui/src/ArkRichText.ts +++ b/arkoala/arkui/src/ArkRichText.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { return (this.peer as ArkRichTextPeer) } /** @memo */ - setRichTextOptions(content: string): this { + public setRichTextOptions(content: string): this { if (this.checkPriority("setRichTextOptions")) { const content_casted = content as (string) this.getPeer()?.setRichTextOptionsAttribute(content_casted) @@ -68,7 +68,7 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: (() => void)): this { + public onStart(value: (() => void)): this { if (this.checkPriority("onStart")) { const value_casted = value as ((() => void)) UseEventsProperties({RichText_onStart: value_casted}) @@ -78,7 +78,7 @@ export class ArkRichTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onComplete(value: (() => void)): this { + public onComplete(value: (() => void)): this { if (this.checkPriority("onComplete")) { const value_casted = value as ((() => void)) UseEventsProperties({RichText_onComplete: value_casted}) diff --git a/arkoala/arkui/src/ArkRootScene.ts b/arkoala/arkui/src/ArkRootScene.ts index efb1bfc8e..183da8882 100644 --- a/arkoala/arkui/src/ArkRootScene.ts +++ b/arkoala/arkui/src/ArkRootScene.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkRootSceneComponent extends ArkCommonMethodComponent { return (this.peer as ArkRootScenePeer) } /** @memo */ - setRootSceneOptions(session: RootSceneSession): this { + public setRootSceneOptions(session: RootSceneSession): this { if (this.checkPriority("setRootSceneOptions")) { const session_casted = session as (RootSceneSession) this.getPeer()?.setRootSceneOptionsAttribute(session_casted) diff --git a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts b/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts index a593df6e2..c9f3d503b 100644 --- a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkRow.ts b/arkoala/arkui/src/ArkRow.ts index 62479035d..7382348c8 100644 --- a/arkoala/arkui/src/ArkRow.ts +++ b/arkoala/arkui/src/ArkRow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return (this.peer as ArkRowPeer) } /** @memo */ - setRowOptions(options?: RowOptions): this { + public setRowOptions(options?: RowOptions): this { if (this.checkPriority("setRowOptions")) { const options_casted = options as (RowOptions | undefined) this.getPeer()?.setRowOptionsAttribute(options_casted) @@ -67,7 +67,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignItems(value: VerticalAlign): this { + public alignItems(value: VerticalAlign): this { if (this.checkPriority("alignItems")) { const value_casted = value as (VerticalAlign) this.getPeer()?.alignItemsAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - justifyContent(value: FlexAlign): this { + public justifyContent(value: FlexAlign): this { if (this.checkPriority("justifyContent")) { const value_casted = value as (FlexAlign) this.getPeer()?.justifyContentAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkRowComponent extends ArkCommonMethodComponent { return this } /** @memo */ - reverse(value?: boolean): this { + public reverse(value?: boolean): this { if (this.checkPriority("reverse")) { const value_casted = value as (boolean | undefined) this.getPeer()?.reverseAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkRowSplit.ts b/arkoala/arkui/src/ArkRowSplit.ts index d105e5bdf..4050b13f5 100644 --- a/arkoala/arkui/src/ArkRowSplit.ts +++ b/arkoala/arkui/src/ArkRowSplit.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkRowSplitComponent extends ArkCommonMethodComponent { return (this.peer as ArkRowSplitPeer) } /** @memo */ - setRowSplitOptions(): this { + public setRowSplitOptions(): this { if (this.checkPriority("setRowSplitOptions")) { this.getPeer()?.setRowSplitOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkRowSplitComponent extends ArkCommonMethodComponent { return this } /** @memo */ - resizeable(value: boolean): this { + public resizeable(value: boolean): this { if (this.checkPriority("resizeable")) { const value_casted = value as (boolean) this.getPeer()?.resizeableAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkSaveButton.ts b/arkoala/arkui/src/ArkSaveButton.ts index 48b7137d9..08608ee31 100644 --- a/arkoala/arkui/src/ArkSaveButton.ts +++ b/arkoala/arkui/src/ArkSaveButton.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -41,7 +41,7 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent return (this.peer as ArkSaveButtonPeer) } /** @memo */ - setSaveButtonOptions(options?: SaveButtonOptions): this { + public setSaveButtonOptions(options?: SaveButtonOptions): this { if (this.checkPriority("setSaveButtonOptions")) { const options_type = runtimeType(options) if ((((RuntimeType.UNDEFINED == options_type)))) { @@ -58,7 +58,7 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent return this } /** @memo */ - onClick(value: ((event: ClickEvent, result: SaveButtonOnClickResult) => void)): this { + public onClick(value: ((event: ClickEvent, result: SaveButtonOnClickResult) => void)): this { if (this.checkPriority("onClick")) { const value_casted = value as (((event: ClickEvent, result: SaveButtonOnClickResult) => void)) UseEventsProperties({SaveButton_onClick: value_casted}) diff --git a/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts b/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts new file mode 100644 index 000000000..5b199f0cc --- /dev/null +++ b/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts @@ -0,0 +1,112 @@ +/* + * 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 { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 ScaleSymbolEffect implements MaterializedBase,SymbolEffect { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get scope(): EffectScope { + return this.getScope() + } + set scope(scope: EffectScope) { + const scope_NonNull = (scope as EffectScope) + this.setScope(scope_NonNull) + } + get direction(): EffectDirection { + return this.getDirection() + } + set direction(direction: EffectDirection) { + const direction_NonNull = (direction as EffectDirection) + this.setDirection(direction_NonNull) + } + static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let scope_type: int32 = RuntimeType.UNDEFINED + scope_type = runtimeType(scope) + thisSerializer.writeInt8(scope_type) + if ((RuntimeType.UNDEFINED) != (scope_type)) { + const scope_value = scope! + thisSerializer.writeInt32(scope_value) + } + let direction_type: int32 = RuntimeType.UNDEFINED + direction_type = runtimeType(direction) + thisSerializer.writeInt8(direction_type) + if ((RuntimeType.UNDEFINED) != (direction_type)) { + const direction_value = direction! + thisSerializer.writeInt32(direction_value) + } + const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(scope?: EffectScope, direction?: EffectDirection) { + const ctorPtr: KPointer = ScaleSymbolEffect.ctor(scope, direction) + this.peer = new Finalizable(ctorPtr, ScaleSymbolEffect.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._ScaleSymbolEffect_getFinalizer() + } + private getScope(): EffectScope { + return this.getScope_serialize() + } + private setScope(scope: EffectScope): void { + const scope_casted = scope as (EffectScope) + this?.setScope_serialize(scope_casted) + return + } + private getDirection(): EffectDirection { + return this.getDirection_serialize() + } + private setDirection(direction: EffectDirection): void { + const direction_casted = direction as (EffectDirection) + this?.setDirection_serialize(direction_casted) + return + } + private getScope_serialize(): EffectScope { + const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_getScope(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setScope_serialize(scope: EffectScope): void { + ArkUIGeneratedNativeModule._ScaleSymbolEffect_setScope(this.peer!.ptr, scope) + } + private getDirection_serialize(): EffectDirection { + const retval = ArkUIGeneratedNativeModule._ScaleSymbolEffect_getDirection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setDirection_serialize(direction: EffectDirection): void { + 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/ArkScreen.ts index d811e5331..936e15ac8 100644 --- a/arkoala/arkui/src/ArkScreen.ts +++ b/arkoala/arkui/src/ArkScreen.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkScreenComponent extends ArkCommonMethodComponent { return (this.peer as ArkScreenPeer) } /** @memo */ - setScreenOptions(screenId: number): this { + public setScreenOptions(screenId: number): this { if (this.checkPriority("setScreenOptions")) { const screenId_casted = screenId as (number) this.getPeer()?.setScreenOptionsAttribute(screenId_casted) diff --git a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts b/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts index aafae18d2..a75a3501d 100644 --- a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,15 +42,15 @@ export class ScreenCaptureHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ScreenCaptureHandler_getFinalizer() } - getOrigin(): string { + public getOrigin(): string { return this.getOrigin_serialize() } - grant(config: ScreenCaptureConfig): void { + public grant(config: ScreenCaptureConfig): void { const config_casted = config as (ScreenCaptureConfig) this?.grant_serialize(config_casted) return } - deny(): void { + public deny(): void { this?.deny_serialize() return } diff --git a/arkoala/arkui/src/ArkScroll.ts b/arkoala/arkui/src/ArkScroll.ts index 31febded7..47ee5e2d7 100644 --- a/arkoala/arkui/src/ArkScroll.ts +++ b/arkoala/arkui/src/ArkScroll.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -61,7 +61,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkScrollPeer) } /** @memo */ - setScrollOptions(scroller?: Scroller): this { + public setScrollOptions(scroller?: Scroller): this { if (this.checkPriority("setScrollOptions")) { const scroller_casted = scroller as (Scroller | undefined) this.getPeer()?.setScrollOptionsAttribute(scroller_casted) @@ -70,7 +70,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollable(value: ScrollDirection): this { + public scrollable(value: ScrollDirection): this { if (this.checkPriority("scrollable")) { const value_casted = value as (ScrollDirection) this.getPeer()?.scrollableAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((first: number, last: number) => void)): this { + public onScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Scroll_onScroll: value_casted}) @@ -89,7 +89,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onWillScroll(value?: ScrollOnWillScrollCallback): this { + public onWillScroll(value?: ScrollOnWillScrollCallback): this { if (this.checkPriority("onWillScroll")) { const value_casted = value as (ScrollOnWillScrollCallback | undefined) this.getPeer()?.onWillScrollAttribute(value_casted) @@ -98,16 +98,17 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onDidScroll(value?: ScrollOnScrollCallback): this { + public onDidScroll(value: ScrollOnScrollCallback): this { if (this.checkPriority("onDidScroll")) { - const value_casted = value as (ScrollOnScrollCallback | undefined) + const value_casted = value as (ScrollOnScrollCallback) + UseEventsProperties({Scroll_onDidScroll: value_casted}) this.getPeer()?.onDidScrollAttribute(value_casted) return this } return this } /** @memo */ - onScrollEdge(value: OnScrollEdgeCallback): this { + public onScrollEdge(value: OnScrollEdgeCallback): this { if (this.checkPriority("onScrollEdge")) { const value_casted = value as (OnScrollEdgeCallback) UseEventsProperties({Scroll_onScrollEdge: value_casted}) @@ -117,7 +118,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStart(value: VoidCallback): this { + public onScrollStart(value: VoidCallback): this { if (this.checkPriority("onScrollStart")) { const value_casted = value as (VoidCallback) UseEventsProperties({Scroll_onScrollStart: value_casted}) @@ -127,7 +128,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollEnd(value: (() => void)): this { + public onScrollEnd(value: (() => void)): this { if (this.checkPriority("onScrollEnd")) { const value_casted = value as ((() => void)) UseEventsProperties({Scroll_onScrollEnd: value_casted}) @@ -137,7 +138,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollStop(value: VoidCallback): this { + public onScrollStop(value: VoidCallback): this { if (this.checkPriority("onScrollStop")) { const value_casted = value as (VoidCallback) UseEventsProperties({Scroll_onScrollStop: value_casted}) @@ -147,7 +148,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBar(value: BarState): this { + public scrollBar(value: BarState): this { if (this.checkPriority("scrollBar")) { const value_casted = value as (BarState) this.getPeer()?.scrollBarAttribute(value_casted) @@ -156,7 +157,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarColor(value: Color | number | string): this { + public scrollBarColor(value: Color | number | string): this { if (this.checkPriority("scrollBarColor")) { const value_casted = value as (Color | number | string) this.getPeer()?.scrollBarColorAttribute(value_casted) @@ -165,7 +166,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollBarWidth(value: number | string): this { + public scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) this.getPeer()?.scrollBarWidthAttribute(value_casted) @@ -174,7 +175,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: OnScrollFrameBeginCallback): this { + public onScrollFrameBegin(value: OnScrollFrameBeginCallback): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (OnScrollFrameBeginCallback) UseEventsProperties({Scroll_onScrollFrameBegin: value_casted}) @@ -184,7 +185,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -193,7 +194,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -202,7 +203,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -211,7 +212,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - scrollSnap(value: ScrollSnapOptions): this { + public scrollSnap(value: ScrollSnapOptions): this { if (this.checkPriority("scrollSnap")) { const value_casted = value as (ScrollSnapOptions) this.getPeer()?.scrollSnapAttribute(value_casted) @@ -220,7 +221,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enablePaging(value: boolean): this { + public enablePaging(value: boolean): this { if (this.checkPriority("enablePaging")) { const value_casted = value as (boolean) this.getPeer()?.enablePagingAttribute(value_casted) @@ -229,7 +230,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - initialOffset(value: OffsetOptions): this { + public initialOffset(value: OffsetOptions): this { if (this.checkPriority("initialOffset")) { const value_casted = value as (OffsetOptions) this.getPeer()?.initialOffsetAttribute(value_casted) @@ -238,7 +239,7 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { + public edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { if (this.checkPriority("edgeEffect")) { const edgeEffect_casted = edgeEffect as (EdgeEffect) const options_casted = options as (EdgeEffectOptions | undefined) diff --git a/arkoala/arkui/src/ArkScrollBar.ts b/arkoala/arkui/src/ArkScrollBar.ts index a4c7dc215..6e2a099f1 100644 --- a/arkoala/arkui/src/ArkScrollBar.ts +++ b/arkoala/arkui/src/ArkScrollBar.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkScrollBarComponent extends ArkCommonMethodComponent { return (this.peer as ArkScrollBarPeer) } /** @memo */ - setScrollBarOptions(value: ScrollBarOptions): this { + public setScrollBarOptions(value: ScrollBarOptions): this { if (this.checkPriority("setScrollBarOptions")) { const value_casted = value as (ScrollBarOptions) this.getPeer()?.setScrollBarOptionsAttribute(value_casted) @@ -69,7 +69,7 @@ export class ArkScrollBarComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableNestedScroll(value?: boolean): this { + public enableNestedScroll(value?: boolean): this { if (this.checkPriority("enableNestedScroll")) { const value_casted = value as (boolean | undefined) this.getPeer()?.enableNestedScrollAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkScrollInterfaces.ts b/arkoala/arkui/src/ArkScrollInterfaces.ts index 1ee712f35..d9e4afb49 100644 --- a/arkoala/arkui/src/ArkScrollInterfaces.ts +++ b/arkoala/arkui/src/ArkScrollInterfaces.ts @@ -109,7 +109,7 @@ export interface ScrollAttribute extends ScrollableCommonMethod scrollable: ScrollDirection; onScroll: ((first: number, last: number) => void); onWillScroll: ScrollOnWillScrollCallback | undefined; - onDidScroll: ScrollOnScrollCallback | undefined; + onDidScroll: ScrollOnScrollCallback; onScrollEdge: OnScrollEdgeCallback; onScrollStart: VoidCallback; onScrollEnd: (() => void); diff --git a/arkoala/arkui/src/ArkScrollMotionMaterialized.ts b/arkoala/arkui/src/ArkScrollMotionMaterialized.ts new file mode 100644 index 000000000..6957376dc --- /dev/null +++ b/arkoala/arkui/src/ArkScrollMotionMaterialized.ts @@ -0,0 +1,58 @@ +/* + * 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 { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 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 { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.writeSpringProp(prop) + const retval = ArkUIGeneratedNativeModule._ScrollMotion_ctor(position, velocity, min, max, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + 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) + this.peer = new Finalizable(ctorPtr, ScrollMotion.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkScrollableTargetInfoMaterialized.ts index 5c1f9141d..6c8aab064 100644 --- a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,10 +43,10 @@ export class ScrollableTargetInfo extends EventTargetInfo implements Materialize static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._ScrollableTargetInfo_getFinalizer() } - isBegin(): boolean { + public isBegin(): boolean { return this.isBegin_serialize() } - isEnd(): boolean { + public isEnd(): boolean { return this.isEnd_serialize() } private isBegin_serialize(): boolean { diff --git a/arkoala/arkui/src/ArkScrollerMaterialized.ts b/arkoala/arkui/src/ArkScrollerMaterialized.ts index d1057968c..f51436359 100644 --- a/arkoala/arkui/src/ArkScrollerMaterialized.ts +++ b/arkoala/arkui/src/ArkScrollerMaterialized.ts @@ -29,7 +29,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -49,21 +49,21 @@ export class Scroller implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._Scroller_getFinalizer() } - scrollTo(options: ScrollOptions): undefined { + public scrollTo(options: ScrollOptions): undefined { const options_casted = options as (ScrollOptions) return this.scrollTo_serialize(options_casted) } - scrollEdge(value: Edge, options?: ScrollEdgeOptions): undefined { + public scrollEdge(value: Edge, options?: ScrollEdgeOptions): undefined { const value_casted = value as (Edge) const options_casted = options as (ScrollEdgeOptions | undefined) return this.scrollEdge_serialize(value_casted, options_casted) } - fling(velocity: number): void { + public fling(velocity: number): void { const velocity_casted = velocity as (number) this?.fling_serialize(velocity_casted) return } - scrollPage(value: ScrollPageOptions | { next: boolean, direction?: Axis }): undefined { + public scrollPage(value: ScrollPageOptions | { next: boolean, direction?: Axis }): undefined { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("animation")))))) { const value_casted = value as (ScrollPageOptions) @@ -75,29 +75,29 @@ export class Scroller implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - currentOffset(): OffsetResult { + public currentOffset(): OffsetResult { return this.currentOffset_serialize() } - scrollToIndex(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { + public scrollToIndex(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const value_casted = value as (number) const smooth_casted = smooth as (boolean | undefined) const align_casted = align as (ScrollAlign | undefined) const options_casted = options as (ScrollToIndexOptions | undefined) return this.scrollToIndex_serialize(value_casted, smooth_casted, align_casted, options_casted) } - scrollBy(dx: Length, dy: Length): undefined { + public scrollBy(dx: Length, dy: Length): undefined { const dx_casted = dx as (Length) const dy_casted = dy as (Length) return this.scrollBy_serialize(dx_casted, dy_casted) } - isAtEnd(): boolean { + public isAtEnd(): boolean { return this.isAtEnd_serialize() } - getItemRect(index: number): RectResult { + public getItemRect(index: number): RectResult { const index_casted = index as (number) return this.getItemRect_serialize(index_casted) } - getItemIndex(x: number, y: number): number { + public getItemIndex(x: number, y: number): number { const x_casted = x as (number) const y_casted = y as (number) return this.getItemIndex_serialize(x_casted, y_casted) diff --git a/arkoala/arkui/src/ArkSearch.ts b/arkoala/arkui/src/ArkSearch.ts index 9aa7bf3ad..bed45e04a 100644 --- a/arkoala/arkui/src/ArkSearch.ts +++ b/arkoala/arkui/src/ArkSearch.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -66,7 +66,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return (this.peer as ArkSearchPeer) } /** @memo */ - setSearchOptions(options?: SearchOptions): this { + public setSearchOptions(options?: SearchOptions): this { if (this.checkPriority("setSearchOptions")) { const options_casted = options as (SearchOptions | undefined) this.getPeer()?.setSearchOptionsAttribute(options_casted) @@ -75,7 +75,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - searchIcon(value: IconOptions | SymbolGlyphModifier): this { + public searchIcon(value: IconOptions | SymbolGlyphModifier): this { if (this.checkPriority("searchIcon")) { const value_casted = value as (IconOptions | SymbolGlyphModifier) this.getPeer()?.searchIconAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { + public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_casted = value as (CancelButtonOptions | CancelButtonSymbolOptions) this.getPeer()?.cancelButtonAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Dimension): this { + public textIndent(value: Dimension): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Dimension) this.getPeer()?.textIndentAttribute(value_casted) @@ -111,7 +111,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChange(value: ((parameter: boolean) => void)): this { + public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({Search_onEditChange: value_casted}) @@ -121,7 +121,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretStyle(value: CaretStyle): this { + public caretStyle(value: CaretStyle): this { if (this.checkPriority("caretStyle")) { const value_casted = value as (CaretStyle) this.getPeer()?.caretStyleAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderColor(value: ResourceColor): this { + public placeholderColor(value: ResourceColor): this { if (this.checkPriority("placeholderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.placeholderColorAttribute(value_casted) @@ -148,7 +148,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderFont(value?: Font): this { + public placeholderFont(value?: Font): this { if (this.checkPriority("placeholderFont")) { const value_casted = value as (Font | undefined) this.getPeer()?.placeholderFontAttribute(value_casted) @@ -157,7 +157,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textFont(value?: Font): this { + public textFont(value?: Font): this { if (this.checkPriority("textFont")) { const value_casted = value as (Font | undefined) this.getPeer()?.textFontAttribute(value_casted) @@ -166,7 +166,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -175,7 +175,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { + public onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) if ((((RuntimeType.FUNCTION == value_type)))) { @@ -195,7 +195,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: EditableTextOnChangeCallback): this { + public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) UseEventsProperties({Search_onChange: value_casted}) @@ -205,7 +205,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: OnTextSelectionChangeCallback): this { + public onTextSelectionChange(value: OnTextSelectionChangeCallback): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (OnTextSelectionChangeCallback) UseEventsProperties({Search_onTextSelectionChange: value_casted}) @@ -215,7 +215,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentScroll(value: OnContentScrollCallback): this { + public onContentScroll(value: OnContentScrollCallback): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (OnContentScrollCallback) UseEventsProperties({Search_onContentScroll: value_casted}) @@ -225,7 +225,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({Search_onCopy: value_casted}) @@ -235,7 +235,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((breakpoints: string) => void)): this { + public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({Search_onCut: value_casted}) @@ -245,7 +245,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: OnPasteCallback): this { + public onPaste(value: OnPasteCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (OnPasteCallback) UseEventsProperties({Search_onPaste: value_casted}) @@ -255,7 +255,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -264,7 +264,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLength(value: number): this { + public maxLength(value: number): this { if (this.checkPriority("maxLength")) { const value_casted = value as (number) this.getPeer()?.maxLengthAttribute(value_casted) @@ -273,7 +273,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -282,7 +282,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -291,7 +291,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuHidden(value: boolean): this { + public selectionMenuHidden(value: boolean): this { if (this.checkPriority("selectionMenuHidden")) { const value_casted = value as (boolean) this.getPeer()?.selectionMenuHiddenAttribute(value_casted) @@ -300,7 +300,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -309,7 +309,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -318,7 +318,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: TextDecorationOptions): this { + public decoration(value: TextDecorationOptions): this { if (this.checkPriority("decoration")) { const value_casted = value as (TextDecorationOptions) this.getPeer()?.decorationAttribute(value_casted) @@ -327,7 +327,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string | Resource): this { + public letterSpacing(value: number | string | Resource): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string | Resource) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -336,7 +336,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -345,7 +345,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: SearchType): this { + public type(value: SearchType): this { if (this.checkPriority("type")) { const value_casted = value as (SearchType) this.getPeer()?.typeAttribute(value_casted) @@ -354,7 +354,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -363,7 +363,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillInsert(value: ((parameter: InsertValue) => boolean)): this { + public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) UseEventsProperties({Search_onWillInsert: value_casted}) @@ -373,7 +373,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidInsert(value: ((parameter: InsertValue) => void)): this { + public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) UseEventsProperties({Search_onDidInsert: value_casted}) @@ -383,7 +383,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { + public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) UseEventsProperties({Search_onWillDelete: value_casted}) @@ -393,7 +393,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidDelete(value: ((parameter: DeleteValue) => void)): this { + public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) UseEventsProperties({Search_onDidDelete: value_casted}) @@ -403,7 +403,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -412,7 +412,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -421,7 +421,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -430,7 +430,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - searchButton(value: string, option?: SearchButtonOptions): this { + public searchButton(value: string, option?: SearchButtonOptions): this { if (this.checkPriority("searchButton")) { const value_casted = value as (string) const option_casted = option as (SearchButtonOptions | undefined) @@ -440,7 +440,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { + public inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { if (this.checkPriority("inputFilter")) { const value_casted = value as (ResourceStr) const error_casted = error as (((breakpoints: string) => void) | undefined) @@ -450,7 +450,7 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -461,11 +461,11 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_value(callback: ((breakpoints: string) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((breakpoints: string) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((breakpoints: string) => void)) - UseEventsProperties({Search___onChangeEvent_value: callback_casted}) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + UseEventsProperties({Search__onChangeEvent_value: callback_casted}) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts b/arkoala/arkui/src/ArkSearchControllerMaterialized.ts index 269aaa5c3..9bae7bfde 100644 --- a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkSearchControllerMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,16 +44,16 @@ export class SearchController extends TextContentControllerBase implements Mater static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SearchController_getFinalizer() } - caretPosition(value: number): void { + public caretPosition(value: number): void { const value_casted = value as (number) this?.caretPosition_serialize(value_casted) return } - stopEditing(): void { + public stopEditing(): void { this?.stopEditing_serialize() return } - setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) diff --git a/arkoala/arkui/src/ArkSecurityComponent.ts b/arkoala/arkui/src/ArkSecurityComponent.ts index f546370ef..25ba7cbca 100644 --- a/arkoala/arkui/src/ArkSecurityComponent.ts +++ b/arkoala/arkui/src/ArkSecurityComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -34,7 +34,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return (this.peer as ArkSecurityComponentMethodPeer) } /** @memo */ - iconSize(value: Dimension): this { + public iconSize(value: Dimension): this { if (this.checkPriority("iconSize")) { const value_casted = value as (Dimension) this.getPeer()?.iconSizeAttribute(value_casted) @@ -43,7 +43,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - layoutDirection(value: SecurityComponentLayoutDirection): this { + public layoutDirection(value: SecurityComponentLayoutDirection): this { if (this.checkPriority("layoutDirection")) { const value_casted = value as (SecurityComponentLayoutDirection) this.getPeer()?.layoutDirectionAttribute(value_casted) @@ -52,7 +52,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - position(value: Position): this { + public position(value: Position): this { if (this.checkPriority("position")) { const value_casted = value as (Position) this.getPeer()?.positionAttribute(value_casted) @@ -61,7 +61,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - markAnchor(value: Position): this { + public markAnchor(value: Position): this { if (this.checkPriority("markAnchor")) { const value_casted = value as (Position) this.getPeer()?.markAnchorAttribute(value_casted) @@ -70,7 +70,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - offset(value: Position | Edges | LocalizedEdges): this { + public offset(value: Position | Edges | LocalizedEdges): this { if (this.checkPriority("offset")) { const value_casted = value as (Position | Edges | LocalizedEdges) this.getPeer()?.offsetAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontSize(value: Dimension): this { + public fontSize(value: Dimension): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Dimension) this.getPeer()?.fontSizeAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -115,7 +115,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -124,7 +124,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - iconColor(value: ResourceColor): this { + public iconColor(value: ResourceColor): this { if (this.checkPriority("iconColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.iconColorAttribute(value_casted) @@ -133,7 +133,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - backgroundColor(value: ResourceColor): this { + public backgroundColor(value: ResourceColor): this { if (this.checkPriority("backgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.backgroundColorAttribute(value_casted) @@ -142,7 +142,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderStyle(value: BorderStyle): this { + public borderStyle(value: BorderStyle): this { if (this.checkPriority("borderStyle")) { const value_casted = value as (BorderStyle) this.getPeer()?.borderStyleAttribute(value_casted) @@ -151,7 +151,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderWidth(value: Dimension): this { + public borderWidth(value: Dimension): this { if (this.checkPriority("borderWidth")) { const value_casted = value as (Dimension) this.getPeer()?.borderWidthAttribute(value_casted) @@ -160,7 +160,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderColor(value: ResourceColor): this { + public borderColor(value: ResourceColor): this { if (this.checkPriority("borderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.borderColorAttribute(value_casted) @@ -169,7 +169,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - borderRadius(value: Dimension): this { + public borderRadius(value: Dimension): this { if (this.checkPriority("borderRadius")) { const value_casted = value as (Dimension) this.getPeer()?.borderRadiusAttribute(value_casted) @@ -178,7 +178,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - padding(value: Padding | Dimension): this { + public padding(value: Padding | Dimension): this { if (this.checkPriority("padding")) { const value_casted = value as (Padding | Dimension) this.getPeer()?.paddingAttribute(value_casted) @@ -187,7 +187,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - textIconSpace(value: Dimension): this { + public textIconSpace(value: Dimension): this { if (this.checkPriority("textIconSpace")) { const value_casted = value as (Dimension) this.getPeer()?.textIconSpaceAttribute(value_casted) @@ -196,7 +196,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - key(value: string): this { + public key(value: string): this { if (this.checkPriority("key")) { const value_casted = value as (string) this.getPeer()?.keyAttribute(value_casted) @@ -205,7 +205,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - width(value: Length): this { + public width(value: Length): this { if (this.checkPriority("width")) { const value_casted = value as (Length) this.getPeer()?.widthAttribute(value_casted) @@ -214,7 +214,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - height(value: Length): this { + public height(value: Length): this { if (this.checkPriority("height")) { const value_casted = value as (Length) this.getPeer()?.heightAttribute(value_casted) @@ -223,7 +223,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - size(value: SizeOptions): this { + public size(value: SizeOptions): this { if (this.checkPriority("size")) { const value_casted = value as (SizeOptions) this.getPeer()?.sizeAttribute(value_casted) @@ -232,7 +232,7 @@ export class ArkSecurityComponentMethodComponent extends ComponentBase { return this } /** @memo */ - constraintSize(value: ConstraintSizeOptions): this { + public constraintSize(value: ConstraintSizeOptions): this { if (this.checkPriority("constraintSize")) { const value_casted = value as (ConstraintSizeOptions) this.getPeer()?.constraintSizeAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkSelect.ts b/arkoala/arkui/src/ArkSelect.ts index faf4112e1..e6a8e3cbc 100644 --- a/arkoala/arkui/src/ArkSelect.ts +++ b/arkoala/arkui/src/ArkSelect.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -61,7 +61,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return (this.peer as ArkSelectPeer) } /** @memo */ - setSelectOptions(options: Array): this { + public setSelectOptions(options: Array): this { if (this.checkPriority("setSelectOptions")) { const options_casted = options as (Array) this.getPeer()?.setSelectOptionsAttribute(options_casted) @@ -70,7 +70,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selected(value: number | Resource): this { + public selected(value: number | Resource): this { if (this.checkPriority("selected")) { const value_casted = value as (number | Resource) this.getPeer()?.selectedAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - value(value: ResourceStr): this { + public value(value: ResourceStr): this { if (this.checkPriority("value")) { const value_casted = value as (ResourceStr) this.getPeer()?.valueAttribute(value_casted) @@ -88,7 +88,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -97,7 +97,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -106,7 +106,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedOptionBgColor(value: ResourceColor): this { + public selectedOptionBgColor(value: ResourceColor): this { if (this.checkPriority("selectedOptionBgColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedOptionBgColorAttribute(value_casted) @@ -115,7 +115,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedOptionFont(value: Font): this { + public selectedOptionFont(value: Font): this { if (this.checkPriority("selectedOptionFont")) { const value_casted = value as (Font) this.getPeer()?.selectedOptionFontAttribute(value_casted) @@ -124,7 +124,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedOptionFontColor(value: ResourceColor): this { + public selectedOptionFontColor(value: ResourceColor): this { if (this.checkPriority("selectedOptionFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedOptionFontColorAttribute(value_casted) @@ -133,7 +133,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionBgColor(value: ResourceColor): this { + public optionBgColor(value: ResourceColor): this { if (this.checkPriority("optionBgColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.optionBgColorAttribute(value_casted) @@ -142,7 +142,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionFont(value: Font): this { + public optionFont(value: Font): this { if (this.checkPriority("optionFont")) { const value_casted = value as (Font) this.getPeer()?.optionFontAttribute(value_casted) @@ -151,7 +151,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionFontColor(value: ResourceColor): this { + public optionFontColor(value: ResourceColor): this { if (this.checkPriority("optionFontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.optionFontColorAttribute(value_casted) @@ -160,7 +160,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSelect(value: ((index: number, value: string) => void)): this { + public onSelect(value: ((index: number, value: string) => void)): this { if (this.checkPriority("onSelect")) { const value_casted = value as (((index: number, value: string) => void)) UseEventsProperties({Select_onSelect: value_casted}) @@ -170,7 +170,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - space(value: Length): this { + public space(value: Length): this { if (this.checkPriority("space")) { const value_casted = value as (Length) this.getPeer()?.spaceAttribute(value_casted) @@ -179,7 +179,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - arrowPosition(value: ArrowPosition): this { + public arrowPosition(value: ArrowPosition): this { if (this.checkPriority("arrowPosition")) { const value_casted = value as (ArrowPosition) this.getPeer()?.arrowPositionAttribute(value_casted) @@ -188,7 +188,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionWidth(value: Dimension | OptionWidthMode): this { + public optionWidth(value: Dimension | OptionWidthMode): this { if (this.checkPriority("optionWidth")) { const value_casted = value as (Dimension | OptionWidthMode) this.getPeer()?.optionWidthAttribute(value_casted) @@ -197,7 +197,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - optionHeight(value: Dimension): this { + public optionHeight(value: Dimension): this { if (this.checkPriority("optionHeight")) { const value_casted = value as (Dimension) this.getPeer()?.optionHeightAttribute(value_casted) @@ -206,7 +206,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuBackgroundColor(value: ResourceColor): this { + public menuBackgroundColor(value: ResourceColor): this { if (this.checkPriority("menuBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.menuBackgroundColorAttribute(value_casted) @@ -215,7 +215,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuBackgroundBlurStyle(value: BlurStyle): this { + public menuBackgroundBlurStyle(value: BlurStyle): this { if (this.checkPriority("menuBackgroundBlurStyle")) { const value_casted = value as (BlurStyle) this.getPeer()?.menuBackgroundBlurStyleAttribute(value_casted) @@ -224,7 +224,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controlSize(value: ControlSize): this { + public controlSize(value: ControlSize): this { if (this.checkPriority("controlSize")) { const value_casted = value as (ControlSize) this.getPeer()?.controlSizeAttribute(value_casted) @@ -233,7 +233,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuItemContentModifier(value: ContentModifier): this { + public menuItemContentModifier(value: ContentModifier): this { if (this.checkPriority("menuItemContentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.menuItemContentModifierAttribute(value_casted) @@ -242,7 +242,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerOptions): this { + public divider(value?: DividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -251,7 +251,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - menuAlign(alignType: MenuAlignType, offset?: Offset): this { + public menuAlign(alignType: MenuAlignType, offset?: Offset): this { if (this.checkPriority("menuAlign")) { const alignType_casted = alignType as (MenuAlignType) const offset_casted = offset as (Offset | undefined) @@ -261,21 +261,21 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((selected: number | Resource) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((selected: number | Resource) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((selected: number | Resource) => void)) - UseEventsProperties({Select___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({Select__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return } /** @memo */ - __onChangeEvent_value(callback: ((value: ResourceStr) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((value: ResourceStr) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((value: ResourceStr) => void)) - UseEventsProperties({Select___onChangeEvent_value: callback_casted}) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + UseEventsProperties({Select__onChangeEvent_value: callback_casted}) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkShape.ts b/arkoala/arkui/src/ArkShape.ts index 582b46b0f..cd28d22bf 100644 --- a/arkoala/arkui/src/ArkShape.ts +++ b/arkoala/arkui/src/ArkShape.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return (this.peer as ArkShapePeer) } /** @memo */ - setShapeOptions(value?: PixelMap): this { + public setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { const value_type = runtimeType(value) if ((((RuntimeType.UNDEFINED == value_type)))) { @@ -75,7 +75,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - viewPort(value: ViewportRect): this { + public viewPort(value: ViewportRect): this { if (this.checkPriority("viewPort")) { const value_casted = value as (ViewportRect) this.getPeer()?.viewPortAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stroke(value: ResourceColor): this { + public stroke(value: ResourceColor): this { if (this.checkPriority("stroke")) { const value_casted = value as (ResourceColor) this.getPeer()?.strokeAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fill(value: ResourceColor): this { + public fill(value: ResourceColor): this { if (this.checkPriority("fill")) { const value_casted = value as (ResourceColor) this.getPeer()?.fillAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashOffset(value: number | string): this { + public strokeDashOffset(value: number | string): this { if (this.checkPriority("strokeDashOffset")) { const value_casted = value as (number | string) this.getPeer()?.strokeDashOffsetAttribute(value_casted) @@ -111,7 +111,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeDashArray(value: Array): this { + public strokeDashArray(value: Array): this { if (this.checkPriority("strokeDashArray")) { const value_casted = value as (Array) this.getPeer()?.strokeDashArrayAttribute(value_casted) @@ -120,7 +120,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineCap(value: LineCapStyle): this { + public strokeLineCap(value: LineCapStyle): this { if (this.checkPriority("strokeLineCap")) { const value_casted = value as (LineCapStyle) this.getPeer()?.strokeLineCapAttribute(value_casted) @@ -129,7 +129,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeLineJoin(value: LineJoinStyle): this { + public strokeLineJoin(value: LineJoinStyle): this { if (this.checkPriority("strokeLineJoin")) { const value_casted = value as (LineJoinStyle) this.getPeer()?.strokeLineJoinAttribute(value_casted) @@ -138,7 +138,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeMiterLimit(value: number | string): this { + public strokeMiterLimit(value: number | string): this { if (this.checkPriority("strokeMiterLimit")) { const value_casted = value as (number | string) this.getPeer()?.strokeMiterLimitAttribute(value_casted) @@ -147,7 +147,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeOpacity(value: number | string | Resource): this { + public strokeOpacity(value: number | string | Resource): this { if (this.checkPriority("strokeOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.strokeOpacityAttribute(value_casted) @@ -156,7 +156,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fillOpacity(value: number | string | Resource): this { + public fillOpacity(value: number | string | Resource): this { if (this.checkPriority("fillOpacity")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fillOpacityAttribute(value_casted) @@ -165,7 +165,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - strokeWidth(value: number | string): this { + public strokeWidth(value: number | string): this { if (this.checkPriority("strokeWidth")) { const value_casted = value as (number | string) this.getPeer()?.strokeWidthAttribute(value_casted) @@ -174,7 +174,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - antiAlias(value: boolean): this { + public antiAlias(value: boolean): this { if (this.checkPriority("antiAlias")) { const value_casted = value as (boolean) this.getPeer()?.antiAliasAttribute(value_casted) @@ -183,7 +183,7 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mesh(value: Array, column: number, row: number): this { + public mesh(value: Array, column: number, row: number): this { if (this.checkPriority("mesh")) { const value_casted = value as (Array) const column_casted = column as (number) diff --git a/arkoala/arkui/src/ArkSidebar.ts b/arkoala/arkui/src/ArkSidebar.ts index 9d206dd1d..8348e29c1 100644 --- a/arkoala/arkui/src/ArkSidebar.ts +++ b/arkoala/arkui/src/ArkSidebar.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return (this.peer as ArkSideBarContainerPeer) } /** @memo */ - setSideBarContainerOptions(type?: SideBarContainerType): this { + public setSideBarContainerOptions(type?: SideBarContainerType): this { if (this.checkPriority("setSideBarContainerOptions")) { const type_casted = type as (SideBarContainerType | undefined) this.getPeer()?.setSideBarContainerOptionsAttribute(type_casted) @@ -69,7 +69,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showSideBar(value: boolean): this { + public showSideBar(value: boolean): this { if (this.checkPriority("showSideBar")) { const value_casted = value as (boolean) this.getPeer()?.showSideBarAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controlButton(value: ButtonStyle): this { + public controlButton(value: ButtonStyle): this { if (this.checkPriority("controlButton")) { const value_casted = value as (ButtonStyle) this.getPeer()?.controlButtonAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showControlButton(value: boolean): this { + public showControlButton(value: boolean): this { if (this.checkPriority("showControlButton")) { const value_casted = value as (boolean) this.getPeer()?.showControlButtonAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({SideBarContainer_onChange: value_casted}) @@ -106,7 +106,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sideBarWidth(value: number | Length): this { + public sideBarWidth(value: number | Length): this { if (this.checkPriority("sideBarWidth")) { const value_type = runtimeType(value) if ((((RuntimeType.NUMBER == value_type)))) { @@ -124,7 +124,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minSideBarWidth(value: number | Length): this { + public minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) if ((((RuntimeType.NUMBER == value_type)))) { @@ -142,7 +142,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxSideBarWidth(value: number | Length): this { + public maxSideBarWidth(value: number | Length): this { if (this.checkPriority("maxSideBarWidth")) { const value_type = runtimeType(value) if ((((RuntimeType.NUMBER == value_type)))) { @@ -160,7 +160,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoHide(value: boolean): this { + public autoHide(value: boolean): this { if (this.checkPriority("autoHide")) { const value_casted = value as (boolean) this.getPeer()?.autoHideAttribute(value_casted) @@ -169,7 +169,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sideBarPosition(value: SideBarPosition): this { + public sideBarPosition(value: SideBarPosition): this { if (this.checkPriority("sideBarPosition")) { const value_casted = value as (SideBarPosition) this.getPeer()?.sideBarPositionAttribute(value_casted) @@ -178,7 +178,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerStyle): this { + public divider(value?: DividerStyle): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerStyle | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -187,7 +187,7 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minContentWidth(value: Dimension): this { + public minContentWidth(value: Dimension): this { if (this.checkPriority("minContentWidth")) { const value_casted = value as (Dimension) this.getPeer()?.minContentWidthAttribute(value_casted) @@ -196,11 +196,11 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_showSideBar(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_showSideBar")) { + public _onChangeEvent_showSideBar(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_showSideBar")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({SideBarContainer___onChangeEvent_showSideBar: callback_casted}) - this.getPeer()?.__onChangeEvent_showSideBarAttribute(callback_casted) + UseEventsProperties({SideBarContainer__onChangeEvent_showSideBar: callback_casted}) + this.getPeer()?._onChangeEvent_showSideBarAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkSlider.ts b/arkoala/arkui/src/ArkSlider.ts index fb5b64f0d..9afc01179 100644 --- a/arkoala/arkui/src/ArkSlider.ts +++ b/arkoala/arkui/src/ArkSlider.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -52,14 +52,16 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" 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" /** @memo:stable */ export class ArkSliderComponent extends ArkCommonMethodComponent { getPeer(): ArkSliderPeer { return (this.peer as ArkSliderPeer) } /** @memo */ - setSliderOptions(options?: SliderOptions): this { + public setSliderOptions(options?: SliderOptions): this { if (this.checkPriority("setSliderOptions")) { const options_casted = options as (SliderOptions | undefined) this.getPeer()?.setSliderOptionsAttribute(options_casted) @@ -68,7 +70,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockColor(value: ResourceColor): this { + public blockColor(value: ResourceColor): this { if (this.checkPriority("blockColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.blockColorAttribute(value_casted) @@ -77,16 +79,16 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackColor(value: ResourceColor | LinearGradient_common): this { + public trackColor(value: ResourceColor | LinearGradient): this { if (this.checkPriority("trackColor")) { - const value_casted = value as (ResourceColor | LinearGradient_common) + const value_casted = value as (ResourceColor | LinearGradient) this.getPeer()?.trackColorAttribute(value_casted) return this } return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -95,7 +97,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minLabel(value: string): this { + public minLabel(value: string): this { if (this.checkPriority("minLabel")) { const value_casted = value as (string) this.getPeer()?.minLabelAttribute(value_casted) @@ -104,7 +106,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLabel(value: string): this { + public maxLabel(value: string): this { if (this.checkPriority("maxLabel")) { const value_casted = value as (string) this.getPeer()?.maxLabelAttribute(value_casted) @@ -113,7 +115,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showSteps(value: boolean): this { + public showSteps(value: boolean): this { if (this.checkPriority("showSteps")) { const value_casted = value as (boolean) this.getPeer()?.showStepsAttribute(value_casted) @@ -122,7 +124,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackThickness(value: Length): this { + public trackThickness(value: Length): this { if (this.checkPriority("trackThickness")) { const value_casted = value as (Length) this.getPeer()?.trackThicknessAttribute(value_casted) @@ -131,7 +133,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: number, mode: SliderChangeMode) => void)): this { + public onChange(value: ((value: number, mode: SliderChangeMode) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: number, mode: SliderChangeMode) => void)) UseEventsProperties({Slider_onChange: value_casted}) @@ -141,7 +143,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockBorderColor(value: ResourceColor): this { + public blockBorderColor(value: ResourceColor): this { if (this.checkPriority("blockBorderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.blockBorderColorAttribute(value_casted) @@ -150,7 +152,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockBorderWidth(value: Length): this { + public blockBorderWidth(value: Length): this { if (this.checkPriority("blockBorderWidth")) { const value_casted = value as (Length) this.getPeer()?.blockBorderWidthAttribute(value_casted) @@ -159,7 +161,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stepColor(value: ResourceColor): this { + public stepColor(value: ResourceColor): this { if (this.checkPriority("stepColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.stepColorAttribute(value_casted) @@ -168,7 +170,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - trackBorderRadius(value: Length): this { + public trackBorderRadius(value: Length): this { if (this.checkPriority("trackBorderRadius")) { const value_casted = value as (Length) this.getPeer()?.trackBorderRadiusAttribute(value_casted) @@ -177,7 +179,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBorderRadius(value: Dimension): this { + public selectedBorderRadius(value: Dimension): this { if (this.checkPriority("selectedBorderRadius")) { const value_casted = value as (Dimension) this.getPeer()?.selectedBorderRadiusAttribute(value_casted) @@ -186,7 +188,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockSize(value: SizeOptions): this { + public blockSize(value: SizeOptions): this { if (this.checkPriority("blockSize")) { const value_casted = value as (SizeOptions) this.getPeer()?.blockSizeAttribute(value_casted) @@ -195,7 +197,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockStyle(value: SliderBlockStyle): this { + public blockStyle(value: SliderBlockStyle): this { if (this.checkPriority("blockStyle")) { const value_casted = value as (SliderBlockStyle) this.getPeer()?.blockStyleAttribute(value_casted) @@ -204,7 +206,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - stepSize(value: Length): this { + public stepSize(value: Length): this { if (this.checkPriority("stepSize")) { const value_casted = value as (Length) this.getPeer()?.stepSizeAttribute(value_casted) @@ -213,7 +215,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - sliderInteractionMode(value: SliderInteraction): this { + public sliderInteractionMode(value: SliderInteraction): this { if (this.checkPriority("sliderInteractionMode")) { const value_casted = value as (SliderInteraction) this.getPeer()?.sliderInteractionModeAttribute(value_casted) @@ -222,7 +224,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minResponsiveDistance(value: number): this { + public minResponsiveDistance(value: number): this { if (this.checkPriority("minResponsiveDistance")) { const value_casted = value as (number) this.getPeer()?.minResponsiveDistanceAttribute(value_casted) @@ -231,7 +233,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -240,7 +242,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - slideRange(value: SlideRange): this { + public slideRange(value: SlideRange): this { if (this.checkPriority("slideRange")) { const value_casted = value as (SlideRange) this.getPeer()?.slideRangeAttribute(value_casted) @@ -249,7 +251,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showTips(value: boolean, content?: ResourceStr): this { + public showTips(value: boolean, content?: ResourceStr): this { if (this.checkPriority("showTips")) { const value_casted = value as (boolean) const content_casted = content as (ResourceStr | undefined) @@ -259,11 +261,11 @@ export class ArkSliderComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_value(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Slider___onChangeEvent_value: callback_casted}) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + UseEventsProperties({Slider__onChangeEvent_value: callback_casted}) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkSliderInterfaces.ts b/arkoala/arkui/src/ArkSliderInterfaces.ts index db6c3e310..86085e580 100644 --- a/arkoala/arkui/src/ArkSliderInterfaces.ts +++ b/arkoala/arkui/src/ArkSliderInterfaces.ts @@ -47,6 +47,8 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { ColorStop } from "./ArkDataPanelInterfaces" export enum SliderStyle { OUT_SET, OutSet = OUT_SET, @@ -103,7 +105,7 @@ export interface SliderConfiguration extends CommonConfiguration SliderAttribute; export interface SliderAttribute extends CommonMethod { blockColor: ResourceColor; - trackColor: ResourceColor | LinearGradient_common; + trackColor: ResourceColor | LinearGradient; selectedColor: ResourceColor; minLabel: string; maxLabel: string; diff --git a/arkoala/arkui/src/ArkSpan.ts b/arkoala/arkui/src/ArkSpan.ts index fbf86516d..c0f1f9744 100644 --- a/arkoala/arkui/src/ArkSpan.ts +++ b/arkoala/arkui/src/ArkSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { return (this.peer as ArkBaseSpanPeer) } /** @memo */ - textBackgroundStyle(value: TextBackgroundStyle): this { + public textBackgroundStyle(value: TextBackgroundStyle): this { if (this.checkPriority("textBackgroundStyle")) { const value_casted = value as (TextBackgroundStyle) this.getPeer()?.textBackgroundStyleAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - baselineOffset(value: LengthMetrics): this { + public baselineOffset(value: LengthMetrics): this { if (this.checkPriority("baselineOffset")) { const value_casted = value as (LengthMetrics) this.getPeer()?.baselineOffsetAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return (this.peer as ArkSpanPeer) } /** @memo */ - setSpanOptions(value: string | Resource): this { + public setSpanOptions(value: string | Resource): this { if (this.checkPriority("setSpanOptions")) { const value_casted = value as (string | Resource) this.getPeer()?.setSpanOptionsAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - font(value: Font): this { + public font(value: Font): this { if (this.checkPriority("font")) { const value_casted = value as (Font) this.getPeer()?.fontAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -132,7 +132,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -141,7 +141,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -150,7 +150,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - decoration(value: DecorationStyleInterface): this { + public decoration(value: DecorationStyleInterface): this { if (this.checkPriority("decoration")) { const value_casted = value as (DecorationStyleInterface) this.getPeer()?.decorationAttribute(value_casted) @@ -159,7 +159,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - letterSpacing(value: number | string): this { + public letterSpacing(value: number | string): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -168,7 +168,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - textCase(value: TextCase): this { + public textCase(value: TextCase): this { if (this.checkPriority("textCase")) { const value_casted = value as (TextCase) this.getPeer()?.textCaseAttribute(value_casted) @@ -177,7 +177,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - lineHeight(value: Length): this { + public lineHeight(value: Length): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (Length) this.getPeer()?.lineHeightAttribute(value_casted) @@ -186,7 +186,7 @@ export class ArkSpanComponent extends ArkBaseSpanComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkSpringMotionMaterialized.ts b/arkoala/arkui/src/ArkSpringMotionMaterialized.ts new file mode 100644 index 000000000..8c266c3eb --- /dev/null +++ b/arkoala/arkui/src/ArkSpringMotionMaterialized.ts @@ -0,0 +1,58 @@ +/* + * 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 { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 SpringMotion implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(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()) + thisSerializer.release() + return retval + } + 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) + this.peer = new Finalizable(ctorPtr, SpringMotion.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkSpringPropMaterialized.ts new file mode 100644 index 000000000..109360384 --- /dev/null +++ b/arkoala/arkui/src/ArkSpringPropMaterialized.ts @@ -0,0 +1,54 @@ +/* + * 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 } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 SpringProp implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor(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) + this.peer = new Finalizable(ctorPtr, SpringProp.getFinalizer()) + } + } + static getFinalizer(): KPointer { + 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/ArkSslErrorHandlerMaterialized.ts index f76b4f697..d87e69d97 100644 --- a/arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,11 +41,11 @@ export class SslErrorHandler implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SslErrorHandler_getFinalizer() } - handleConfirm(): void { + public handleConfirm(): void { this?.handleConfirm_serialize() return } - handleCancel(): void { + public handleCancel(): void { this?.handleCancel_serialize() return } diff --git a/arkoala/arkui/src/ArkStack.ts b/arkoala/arkui/src/ArkStack.ts index 3598f5e36..0960ec4ac 100644 --- a/arkoala/arkui/src/ArkStack.ts +++ b/arkoala/arkui/src/ArkStack.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkStackComponent extends ArkCommonMethodComponent { return (this.peer as ArkStackPeer) } /** @memo */ - setStackOptions(options?: StackOptions): this { + public setStackOptions(options?: StackOptions): this { if (this.checkPriority("setStackOptions")) { const options_casted = options as (StackOptions | undefined) this.getPeer()?.setStackOptionsAttribute(options_casted) @@ -67,7 +67,7 @@ export class ArkStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - alignContent(value: Alignment): this { + public alignContent(value: Alignment): this { if (this.checkPriority("alignContent")) { const value_casted = value as (Alignment) this.getPeer()?.alignContentAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkStackComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pointLight(value: PointLightStyle): this { + public pointLight(value: PointLightStyle): this { if (this.checkPriority("pointLight")) { const value_casted = value as (PointLightStyle) this.getPeer()?.pointLightAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkStaticComponents.ts b/arkoala/arkui/src/ArkStaticComponents.ts index 05a3c78a9..8c65a3341 100644 --- a/arkoala/arkui/src/ArkStaticComponents.ts +++ b/arkoala/arkui/src/ArkStaticComponents.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/ArkStepper.ts b/arkoala/arkui/src/ArkStepper.ts index 5cad4f7cd..c1f31895a 100644 --- a/arkoala/arkui/src/ArkStepper.ts +++ b/arkoala/arkui/src/ArkStepper.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return (this.peer as ArkStepperPeer) } /** @memo */ - setStepperOptions(value?: { index?: number }): this { + public setStepperOptions(value?: { index?: number }): this { if (this.checkPriority("setStepperOptions")) { const value_casted = value as ({ index?: number } | undefined) this.getPeer()?.setStepperOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: (() => void)): this { + public onFinish(value: (() => void)): this { if (this.checkPriority("onFinish")) { const value_casted = value as ((() => void)) UseEventsProperties({Stepper_onFinish: value_casted}) @@ -78,7 +78,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSkip(value: (() => void)): this { + public onSkip(value: (() => void)): this { if (this.checkPriority("onSkip")) { const value_casted = value as ((() => void)) UseEventsProperties({Stepper_onSkip: value_casted}) @@ -88,7 +88,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((first: number, last: number) => void)): this { + public onChange(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Stepper_onChange: value_casted}) @@ -98,7 +98,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNext(value: ((first: number, last: number) => void)): this { + public onNext(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onNext")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Stepper_onNext: value_casted}) @@ -108,7 +108,7 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPrevious(value: ((first: number, last: number) => void)): this { + public onPrevious(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onPrevious")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Stepper_onPrevious: value_casted}) @@ -118,11 +118,11 @@ export class ArkStepperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_index(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_index")) { + public _onChangeEvent_index(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Stepper___onChangeEvent_index: callback_casted}) - this.getPeer()?.__onChangeEvent_indexAttribute(callback_casted) + UseEventsProperties({Stepper__onChangeEvent_index: callback_casted}) + this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkStepperItem.ts b/arkoala/arkui/src/ArkStepperItem.ts index c650207c9..a76edf96f 100644 --- a/arkoala/arkui/src/ArkStepperItem.ts +++ b/arkoala/arkui/src/ArkStepperItem.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return (this.peer as ArkStepperItemPeer) } /** @memo */ - setStepperItemOptions(): this { + public setStepperItemOptions(): this { if (this.checkPriority("setStepperItemOptions")) { this.getPeer()?.setStepperItemOptionsAttribute() return this @@ -66,7 +66,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - prevLabel(value: string): this { + public prevLabel(value: string): this { if (this.checkPriority("prevLabel")) { const value_casted = value as (string) this.getPeer()?.prevLabelAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nextLabel(value: string): this { + public nextLabel(value: string): this { if (this.checkPriority("nextLabel")) { const value_casted = value as (string) this.getPeer()?.nextLabelAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkStepperItemComponent extends ArkCommonMethodComponent { return this } /** @memo */ - status(value?: ItemState): this { + public status(value?: ItemState): this { if (this.checkPriority("status")) { const value_casted = value as (ItemState | undefined) this.getPeer()?.statusAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts b/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts index 46cb73863..b1abee4bd 100644 --- a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts @@ -18,21 +18,22 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -56,12 +57,12 @@ export class StyledStringControllerInternal implements MaterializedBase,StyledSt static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._StyledStringController_getFinalizer() } - setStyledString(styledString: StyledString): void { + public setStyledString(styledString: StyledString): void { const styledString_casted = styledString as (StyledString) this?.setStyledString_serialize(styledString_casted) return } - getStyledString(): MutableStyledString { + public getStyledString(): MutableStyledString { return this.getStyledString_serialize() } private setStyledString_serialize(styledString: StyledString): void { diff --git a/arkoala/arkui/src/ArkStyledStringInterfaces.ts b/arkoala/arkui/src/ArkStyledStringInterfaces.ts index a10f58ab1..d2dee2753 100644 --- a/arkoala/arkui/src/ArkStyledStringInterfaces.ts +++ b/arkoala/arkui/src/ArkStyledStringInterfaces.ts @@ -19,15 +19,14 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, ResourceStr, Dimension, BorderRadiuses, Length, Area, Position, SizeOptions, Margin, Padding } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ResourceColor, ResourceStr, Area, Length, Position, Dimension, SizeOptions, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { FontWeight, FontStyle, TextDecorationType, TextDecorationStyle, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ShadowOptions, ShadowType, EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" -import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { ClickEvent } from "./ArkClickEventMaterialized" import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { GestureEvent } from "./ArkGestureEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" @@ -44,13 +43,6 @@ export interface SpanStyle { styledKey: StyledStringKey; styledValue: StyledStringValue; } -export interface TextStyle_styled_string { - fontColor?: ResourceColor; - fontFamily?: string; - fontSize?: number; - fontWeight?: number; - fontStyle?: FontStyle; -} export interface TextStyleInterface { fontColor?: ResourceColor; fontFamily?: ResourceStr; @@ -58,42 +50,15 @@ export interface TextStyleInterface { fontWeight?: number | FontWeight | string; fontStyle?: FontStyle; } -export interface DecorationStyle { - type: TextDecorationType; - color?: ResourceColor; - style?: TextDecorationStyle; -} export interface DecorationStyleInterface { type: TextDecorationType; color?: ResourceColor; style?: TextDecorationStyle; } -export interface BaselineOffsetStyle { - baselineOffset: number; -} -export interface LetterSpacingStyle { - letterSpacing: number; -} -export interface TextShadowStyle { - textShadow: Array; -} -export interface BackgroundColorStyle { - textBackgroundStyle: TextBackgroundStyle; -} -export interface GestureStyle { -} export interface GestureStyleInterface { onClick?: ((event: ClickEvent) => void); onLongPress?: ((event: GestureEvent) => void); } -export interface ParagraphStyle { - textAlign?: TextAlign; - textIndent?: number; - maxLines?: number; - overflow?: TextOverflow; - wordBreak?: WordBreak; - leadingMargin?: number | LeadingMarginPlaceholder; -} export interface ParagraphStyleInterface { textAlign?: TextAlign; textIndent?: LengthMetrics; @@ -102,12 +67,6 @@ export interface ParagraphStyleInterface { wordBreak?: WordBreak; leadingMargin?: LengthMetrics | LeadingMarginPlaceholder; } -export interface LineHeightStyle { - lineHeight: number; -} -export interface UrlStyle { - url: string; -} export interface StyledStringValue { stub: string; } @@ -126,13 +85,6 @@ export enum StyledStringKey { CUSTOM_SPAN = 400, USER_DATA = 500, } -export interface ImageAttachment { - value: PixelMap; - size?: SizeOptions; - verticalAlign?: ImageSpanAlignment; - objectFit?: ImageFit; - layoutStyle?: ImageAttachmentLayoutStyle; -} export interface ImageAttachmentInterface { value: PixelMap; size?: SizeOptions; diff --git a/arkoala/arkui/src/ArkStyledStringMaterialized.ts b/arkoala/arkui/src/ArkStyledStringMaterialized.ts index 17fc9d85c..d9cbaeb0c 100644 --- a/arkoala/arkui/src/ArkStyledStringMaterialized.ts +++ b/arkoala/arkui/src/ArkStyledStringMaterialized.ts @@ -16,21 +16,22 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -51,7 +52,7 @@ export class StyledString implements MaterializedBase { const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("value"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ImageAttachment)) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeImageAttachment(value_1) @@ -86,37 +87,37 @@ export class StyledString implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._StyledString_getFinalizer() } - getString(): string { + public getString(): string { return this.getString_serialize() } - getStyles(start: number, length: number, styledKey?: StyledStringKey): Array { + public getStyles(start: number, length: number, styledKey?: StyledStringKey): Array { const start_casted = start as (number) const length_casted = length as (number) const styledKey_casted = styledKey as (StyledStringKey | undefined) return this.getStyles_serialize(start_casted, length_casted, styledKey_casted) } - equals(other: StyledString): boolean { + public equals(other: StyledString): boolean { const other_casted = other as (StyledString) return this.equals_serialize(other_casted) } - subStyledString(start: number, length?: number): StyledString { + public subStyledString(start: number, length?: number): StyledString { const start_casted = start as (number) const length_casted = length as (number | undefined) return this.subStyledString_serialize(start_casted, length_casted) } - static fromHtml(html: string): Promise { + public static fromHtml(html: string): Promise { const html_casted = html as (string) return StyledString.fromHtml_serialize(html_casted) } - static toHtml(styledString: StyledString): string { + public static toHtml(styledString: StyledString): string { const styledString_casted = styledString as (StyledString) return StyledString.toHtml_serialize(styledString_casted) } - static marshalling(styledString: StyledString): ArrayBuffer { + public static marshalling(styledString: StyledString): ArrayBuffer { const styledString_casted = styledString as (StyledString) return StyledString.marshalling_serialize(styledString_casted) } - static unmarshalling(buffer: ArrayBuffer): Promise { + public static unmarshalling(buffer: ArrayBuffer): Promise { const buffer_casted = buffer as (ArrayBuffer) return StyledString.unmarshalling_serialize(buffer_casted) } diff --git a/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts b/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts index 3addfb73f..1fd6e1edd 100644 --- a/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts +++ b/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts @@ -17,7 +17,7 @@ export class SubTabBarStyle { constructor(content: ResourceStr | ResourceStr | ComponentContent) { this._content = content } - static of(content: ResourceStr | ResourceStr | ComponentContent): SubTabBarStyle { + public static of(content: ResourceStr | ResourceStr | ComponentContent): SubTabBarStyle { return new SubTabBarStyle(content) } indicator(value: IndicatorStyle): this { @@ -36,7 +36,7 @@ export class SubTabBarStyle { this._labelStyle = value return this } - padding(value: Padding | Dimension | LocalizedPadding): this { + public padding(value: Padding | Dimension | LocalizedPadding): this { this._padding = value return this } diff --git a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts b/arkoala/arkui/src/ArkSubmitEventMaterialized.ts index 5fe7d6d56..41766db35 100644 --- a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts +++ b/arkoala/arkui/src/ArkSubmitEventMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -51,7 +51,7 @@ export class SubmitEventInternal implements MaterializedBase,SubmitEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SubmitEvent_getFinalizer() } - keepEditableState(): void { + public keepEditableState(): void { this?.keepEditableState_serialize() return } diff --git a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts b/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts index 34e550f5d..090ad14d6 100644 --- a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkSwiper.ts b/arkoala/arkui/src/ArkSwiper.ts index 6c9506084..f4a8362b6 100644 --- a/arkoala/arkui/src/ArkSwiper.ts +++ b/arkoala/arkui/src/ArkSwiper.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -65,7 +65,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return (this.peer as ArkSwiperPeer) } /** @memo */ - setSwiperOptions(controller?: SwiperController): this { + public setSwiperOptions(controller?: SwiperController): this { if (this.checkPriority("setSwiperOptions")) { const controller_casted = controller as (SwiperController | undefined) this.getPeer()?.setSwiperOptionsAttribute(controller_casted) @@ -74,7 +74,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - index(value: number): this { + public index(value: number): this { if (this.checkPriority("index")) { const value_casted = value as (number) this.getPeer()?.indexAttribute(value_casted) @@ -83,7 +83,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoPlay(value: boolean): this { + public autoPlay(value: boolean): this { if (this.checkPriority("autoPlay")) { const value_casted = value as (boolean) this.getPeer()?.autoPlayAttribute(value_casted) @@ -92,7 +92,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - interval(value: number): this { + public interval(value: number): this { if (this.checkPriority("interval")) { const value_casted = value as (number) this.getPeer()?.intervalAttribute(value_casted) @@ -101,7 +101,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean): this { + 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))) { @@ -119,7 +119,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -128,7 +128,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - duration(value: number): this { + public duration(value: number): this { if (this.checkPriority("duration")) { const value_casted = value as (number) this.getPeer()?.durationAttribute(value_casted) @@ -137,7 +137,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -146,7 +146,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - itemSpace(value: number | string): this { + public itemSpace(value: number | string): this { if (this.checkPriority("itemSpace")) { const value_casted = value as (number | string) this.getPeer()?.itemSpaceAttribute(value_casted) @@ -155,7 +155,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - displayMode(value: SwiperDisplayMode): this { + public displayMode(value: SwiperDisplayMode): this { if (this.checkPriority("displayMode")) { const value_casted = value as (SwiperDisplayMode) this.getPeer()?.displayModeAttribute(value_casted) @@ -164,7 +164,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cachedCount(value: number): this { + public cachedCount(value: number): this { if (this.checkPriority("cachedCount")) { const value_casted = value as (number) this.getPeer()?.cachedCountAttribute(value_casted) @@ -173,7 +173,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - effectMode(value: EdgeEffect): this { + public effectMode(value: EdgeEffect): this { if (this.checkPriority("effectMode")) { const value_casted = value as (EdgeEffect) this.getPeer()?.effectModeAttribute(value_casted) @@ -182,7 +182,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disableSwipe(value: boolean): this { + public disableSwipe(value: boolean): this { if (this.checkPriority("disableSwipe")) { const value_casted = value as (boolean) this.getPeer()?.disableSwipeAttribute(value_casted) @@ -191,7 +191,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - curve(value: Curve | string | ICurve): this { + public curve(value: Curve | string | ICurve): this { if (this.checkPriority("curve")) { const value_casted = value as (Curve | string | ICurve) this.getPeer()?.curveAttribute(value_casted) @@ -200,7 +200,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Swiper_onChange: value_casted}) @@ -210,7 +210,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorStyle(value?: IndicatorStyle): this { + public indicatorStyle(value?: IndicatorStyle): this { if (this.checkPriority("indicatorStyle")) { const value_casted = value as (IndicatorStyle | undefined) this.getPeer()?.indicatorStyleAttribute(value_casted) @@ -219,7 +219,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationStart(value: OnSwiperAnimationStartCallback): this { + public onAnimationStart(value: OnSwiperAnimationStartCallback): this { if (this.checkPriority("onAnimationStart")) { const value_casted = value as (OnSwiperAnimationStartCallback) UseEventsProperties({Swiper_onAnimationStart: value_casted}) @@ -229,7 +229,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationEnd(value: OnSwiperAnimationEndCallback): this { + public onAnimationEnd(value: OnSwiperAnimationEndCallback): this { if (this.checkPriority("onAnimationEnd")) { const value_casted = value as (OnSwiperAnimationEndCallback) UseEventsProperties({Swiper_onAnimationEnd: value_casted}) @@ -239,7 +239,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGestureSwipe(value: OnSwiperGestureSwipeCallback): this { + public onGestureSwipe(value: OnSwiperGestureSwipeCallback): this { if (this.checkPriority("onGestureSwipe")) { const value_casted = value as (OnSwiperGestureSwipeCallback) UseEventsProperties({Swiper_onGestureSwipe: value_casted}) @@ -249,7 +249,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: SwiperNestedScrollMode): this { + public nestedScroll(value: SwiperNestedScrollMode): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (SwiperNestedScrollMode) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -258,7 +258,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customContentTransition(value: SwiperContentAnimatedTransition): this { + public customContentTransition(value: SwiperContentAnimatedTransition): this { if (this.checkPriority("customContentTransition")) { const value_casted = value as (SwiperContentAnimatedTransition) this.getPeer()?.customContentTransitionAttribute(value_casted) @@ -267,7 +267,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentDidScroll(value: ContentDidScrollCallback): this { + public onContentDidScroll(value: ContentDidScrollCallback): this { if (this.checkPriority("onContentDidScroll")) { const value_casted = value as (ContentDidScrollCallback) UseEventsProperties({Swiper_onContentDidScroll: value_casted}) @@ -277,7 +277,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicatorInteractive(value: boolean): this { + public indicatorInteractive(value: boolean): this { if (this.checkPriority("indicatorInteractive")) { const value_casted = value as (boolean) this.getPeer()?.indicatorInteractiveAttribute(value_casted) @@ -286,7 +286,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - displayArrow(value: ArrowStyle | boolean, isHoverShow?: boolean): this { + public displayArrow(value: ArrowStyle | boolean, isHoverShow?: boolean): this { if (this.checkPriority("displayArrow")) { const value_casted = value as (ArrowStyle | boolean) const isHoverShow_casted = isHoverShow as (boolean | undefined) @@ -296,7 +296,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - displayCount(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): this { + public displayCount(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): this { if (this.checkPriority("displayCount")) { const value_casted = value as (number | string | SwiperAutoFill) const swipeByGroup_casted = swipeByGroup as (boolean | undefined) @@ -306,7 +306,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - prevMargin(value: Length, ignoreBlank?: boolean): this { + public prevMargin(value: Length, ignoreBlank?: boolean): this { if (this.checkPriority("prevMargin")) { const value_casted = value as (Length) const ignoreBlank_casted = ignoreBlank as (boolean | undefined) @@ -316,7 +316,7 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nextMargin(value: Length, ignoreBlank?: boolean): this { + public nextMargin(value: Length, ignoreBlank?: boolean): this { if (this.checkPriority("nextMargin")) { const value_casted = value as (Length) const ignoreBlank_casted = ignoreBlank as (boolean | undefined) @@ -326,11 +326,11 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_index(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_index")) { + public _onChangeEvent_index(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Swiper___onChangeEvent_index: callback_casted}) - this.getPeer()?.__onChangeEvent_indexAttribute(callback_casted) + UseEventsProperties({Swiper__onChangeEvent_index: callback_casted}) + this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts index a96da3805..17735aade 100644 --- a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -72,7 +72,7 @@ export class SwiperContentTransitionProxyInternal implements MaterializedBase,Sw static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SwiperContentTransitionProxy_getFinalizer() } - finishTransition(): void { + public finishTransition(): void { this?.finishTransition_serialize() return } diff --git a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts b/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts index 9e8183d6c..af05c1a59 100644 --- a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,18 +42,18 @@ export class SwiperController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._SwiperController_getFinalizer() } - showNext(): undefined { + public showNext(): undefined { return this.showNext_serialize() } - showPrevious(): undefined { + public showPrevious(): undefined { return this.showPrevious_serialize() } - changeIndex(index: number, useAnimation?: boolean): undefined { + public changeIndex(index: number, useAnimation?: boolean): undefined { const index_casted = index as (number) const useAnimation_casted = useAnimation as (boolean | undefined) return this.changeIndex_serialize(index_casted, useAnimation_casted) } - finishAnimation(callback_?: VoidCallback): undefined { + public finishAnimation(callback_?: VoidCallback): undefined { const callback__casted = callback_ as (VoidCallback | undefined) return this.finishAnimation_serialize(callback__casted) } diff --git a/arkoala/arkui/src/ArkSymbolSpan.ts b/arkoala/arkui/src/ArkSymbolSpan.ts index 42ecee5aa..a91bda63a 100644 --- a/arkoala/arkui/src/ArkSymbolSpan.ts +++ b/arkoala/arkui/src/ArkSymbolSpan.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return (this.peer as ArkSymbolSpanPeer) } /** @memo */ - setSymbolSpanOptions(value: Resource): this { + public setSymbolSpanOptions(value: Resource): this { if (this.checkPriority("setSymbolSpanOptions")) { const value_casted = value as (Resource) this.getPeer()?.setSymbolSpanOptionsAttribute(value_casted) @@ -68,7 +68,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: Array): this { + public fontColor(value: Array): this { if (this.checkPriority("fontColor")) { const value_casted = value as (Array) this.getPeer()?.fontColorAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - effectStrategy(value: SymbolEffectStrategy): this { + public effectStrategy(value: SymbolEffectStrategy): this { if (this.checkPriority("effectStrategy")) { const value_casted = value as (SymbolEffectStrategy) this.getPeer()?.effectStrategyAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderingStrategy(value: SymbolRenderingStrategy): this { + public renderingStrategy(value: SymbolRenderingStrategy): this { if (this.checkPriority("renderingStrategy")) { const value_casted = value as (SymbolRenderingStrategy) this.getPeer()?.renderingStrategyAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkSymbolglyph.ts b/arkoala/arkui/src/ArkSymbolglyph.ts index 1d8b0819c..d9232dd4a 100644 --- a/arkoala/arkui/src/ArkSymbolglyph.ts +++ b/arkoala/arkui/src/ArkSymbolglyph.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return (this.peer as ArkSymbolGlyphPeer) } /** @memo */ - setSymbolGlyphOptions(value?: Resource): this { + public setSymbolGlyphOptions(value?: Resource): this { if (this.checkPriority("setSymbolGlyphOptions")) { const value_casted = value as (Resource | undefined) this.getPeer()?.setSymbolGlyphOptionsAttribute(value_casted) @@ -67,7 +67,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: Array): this { + public fontColor(value: Array): this { if (this.checkPriority("fontColor")) { const value_casted = value as (Array) this.getPeer()?.fontColorAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - effectStrategy(value: SymbolEffectStrategy): this { + public effectStrategy(value: SymbolEffectStrategy): this { if (this.checkPriority("effectStrategy")) { const value_casted = value as (SymbolEffectStrategy) this.getPeer()?.effectStrategyAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - renderingStrategy(value: SymbolRenderingStrategy): this { + public renderingStrategy(value: SymbolRenderingStrategy): this { if (this.checkPriority("renderingStrategy")) { const value_casted = value as (SymbolRenderingStrategy) this.getPeer()?.renderingStrategyAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { return this } /** @memo */ - symbolEffect(symbolEffect: SymbolEffect, isActive?: boolean | undefined | number | undefined): this { + public symbolEffect(symbolEffect: SymbolEffect, isActive?: boolean | undefined | number | undefined): this { if (this.checkPriority("symbolEffect")) { const symbolEffect_type = runtimeType(symbolEffect) const isActive_type = runtimeType(isActive) diff --git a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts b/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts index 1ad0d491c..a58a7f6d0 100644 --- a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts +++ b/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts @@ -72,26 +72,6 @@ export enum EffectFillStyle { } export interface SymbolEffect { } -export interface ScaleSymbolEffect extends SymbolEffect { - scope?: EffectScope; - direction?: EffectDirection; -} -export interface HierarchicalSymbolEffect extends SymbolEffect { - fillStyle?: EffectFillStyle; -} -export interface AppearSymbolEffect extends SymbolEffect { - scope?: EffectScope; -} -export interface DisappearSymbolEffect extends SymbolEffect { - scope?: EffectScope; -} -export interface BounceSymbolEffect extends SymbolEffect { - scope?: EffectScope; - direction?: EffectDirection; -} -export interface ReplaceSymbolEffect extends SymbolEffect { - scope?: EffectScope; -} export interface PulseSymbolEffect extends SymbolEffect { } export interface SymbolGlyphAttribute extends CommonMethod { diff --git a/arkoala/arkui/src/ArkTabContent.ts b/arkoala/arkui/src/ArkTabContent.ts index 10f091cdb..74e17a52e 100644 --- a/arkoala/arkui/src/ArkTabContent.ts +++ b/arkoala/arkui/src/ArkTabContent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -63,7 +63,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return (this.peer as ArkTabContentPeer) } /** @memo */ - setTabContentOptions(): this { + public setTabContentOptions(): this { if (this.checkPriority("setTabContentOptions")) { this.getPeer()?.setTabContentOptionsAttribute() return this @@ -71,7 +71,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - tabBar(value: SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions): this { + 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)))) { @@ -89,7 +89,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillShow(value: VoidCallback): this { + public onWillShow(value: VoidCallback): this { if (this.checkPriority("onWillShow")) { const value_casted = value as (VoidCallback) UseEventsProperties({TabContent_onWillShow: value_casted}) @@ -99,7 +99,7 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillHide(value: VoidCallback): this { + public onWillHide(value: VoidCallback): this { if (this.checkPriority("onWillHide")) { const value_casted = value as (VoidCallback) UseEventsProperties({TabContent_onWillHide: value_casted}) diff --git a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts index 6a87ca141..d2b59bfb4 100644 --- a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -58,7 +58,7 @@ export class TabContentTransitionProxyInternal implements MaterializedBase,TabCo static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TabContentTransitionProxy_getFinalizer() } - finishTransition(): void { + public finishTransition(): void { this?.finishTransition_serialize() return } diff --git a/arkoala/arkui/src/ArkTabs.ts b/arkoala/arkui/src/ArkTabs.ts index 1ef44d346..230ed7763 100644 --- a/arkoala/arkui/src/ArkTabs.ts +++ b/arkoala/arkui/src/ArkTabs.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return (this.peer as ArkTabsPeer) } /** @memo */ - setTabsOptions(options?: TabsOptions): this { + public setTabsOptions(options?: TabsOptions): this { if (this.checkPriority("setTabsOptions")) { const options_casted = options as (TabsOptions | undefined) this.getPeer()?.setTabsOptionsAttribute(options_casted) @@ -69,7 +69,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - vertical(value: boolean): this { + public vertical(value: boolean): this { if (this.checkPriority("vertical")) { const value_casted = value as (boolean) this.getPeer()?.verticalAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barPosition(value: BarPosition): this { + public barPosition(value: BarPosition): this { if (this.checkPriority("barPosition")) { const value_casted = value as (BarPosition) this.getPeer()?.barPositionAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - scrollable(value: boolean): this { + public scrollable(value: boolean): this { if (this.checkPriority("scrollable")) { const value_casted = value as (boolean) this.getPeer()?.scrollableAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barMode(value: BarMode, options?: ScrollableBarModeOptions): this { + public barMode(value: BarMode, options?: ScrollableBarModeOptions): this { if (this.checkPriority("barMode")) { const value_type = runtimeType(value) const options_type = runtimeType(options) @@ -116,7 +116,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barWidth(value: Length): this { + public barWidth(value: Length): this { if (this.checkPriority("barWidth")) { const value_casted = value as (Length) this.getPeer()?.barWidthAttribute(value_casted) @@ -125,7 +125,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barHeight(value: Length): this { + public barHeight(value: Length): this { if (this.checkPriority("barHeight")) { const value_casted = value as (Length) this.getPeer()?.barHeightAttribute(value_casted) @@ -134,7 +134,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - animationDuration(value: number): this { + public animationDuration(value: number): this { if (this.checkPriority("animationDuration")) { const value_casted = value as (number) this.getPeer()?.animationDurationAttribute(value_casted) @@ -143,7 +143,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - animationMode(value?: AnimationMode): this { + public animationMode(value?: AnimationMode): this { if (this.checkPriority("animationMode")) { const value_casted = value as (AnimationMode | undefined) this.getPeer()?.animationModeAttribute(value_casted) @@ -152,7 +152,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - edgeEffect(value?: EdgeEffect): this { + public edgeEffect(value?: EdgeEffect): this { if (this.checkPriority("edgeEffect")) { const value_casted = value as (EdgeEffect | undefined) this.getPeer()?.edgeEffectAttribute(value_casted) @@ -161,7 +161,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((index: number) => void)): this { + public onChange(value: ((index: number) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Tabs_onChange: value_casted}) @@ -171,7 +171,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTabBarClick(value: ((index: number) => void)): this { + public onTabBarClick(value: ((index: number) => void)): this { if (this.checkPriority("onTabBarClick")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({Tabs_onTabBarClick: value_casted}) @@ -181,7 +181,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationStart(value: OnTabsAnimationStartCallback): this { + public onAnimationStart(value: OnTabsAnimationStartCallback): this { if (this.checkPriority("onAnimationStart")) { const value_casted = value as (OnTabsAnimationStartCallback) UseEventsProperties({Tabs_onAnimationStart: value_casted}) @@ -191,7 +191,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAnimationEnd(value: OnTabsAnimationEndCallback): this { + public onAnimationEnd(value: OnTabsAnimationEndCallback): this { if (this.checkPriority("onAnimationEnd")) { const value_casted = value as (OnTabsAnimationEndCallback) UseEventsProperties({Tabs_onAnimationEnd: value_casted}) @@ -201,7 +201,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGestureSwipe(value: OnTabsGestureSwipeCallback): this { + public onGestureSwipe(value: OnTabsGestureSwipeCallback): this { if (this.checkPriority("onGestureSwipe")) { const value_casted = value as (OnTabsGestureSwipeCallback) UseEventsProperties({Tabs_onGestureSwipe: value_casted}) @@ -211,7 +211,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fadingEdge(value: boolean): this { + public fadingEdge(value: boolean): this { if (this.checkPriority("fadingEdge")) { const value_casted = value as (boolean) this.getPeer()?.fadingEdgeAttribute(value_casted) @@ -220,7 +220,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerStyle): this { + public divider(value?: DividerStyle): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerStyle | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -229,7 +229,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barOverlap(value: boolean): this { + public barOverlap(value: boolean): this { if (this.checkPriority("barOverlap")) { const value_casted = value as (boolean) this.getPeer()?.barOverlapAttribute(value_casted) @@ -238,7 +238,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barBackgroundColor(value: ResourceColor): this { + public barBackgroundColor(value: ResourceColor): this { if (this.checkPriority("barBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.barBackgroundColorAttribute(value_casted) @@ -247,7 +247,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barGridAlign(value: BarGridColumnOptions): this { + public barGridAlign(value: BarGridColumnOptions): this { if (this.checkPriority("barGridAlign")) { const value_casted = value as (BarGridColumnOptions) this.getPeer()?.barGridAlignAttribute(value_casted) @@ -256,7 +256,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customContentTransition(value: TabsCustomContentTransitionCallback): this { + public customContentTransition(value: TabsCustomContentTransitionCallback): this { if (this.checkPriority("customContentTransition")) { const value_casted = value as (TabsCustomContentTransitionCallback) UseEventsProperties({Tabs_customContentTransition: value_casted}) @@ -266,7 +266,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barBackgroundBlurStyle(style: BlurStyle, options?: BackgroundBlurStyleOptions): this { + public barBackgroundBlurStyle(style: BlurStyle, options?: BackgroundBlurStyleOptions): this { if (this.checkPriority("barBackgroundBlurStyle")) { const style_type = runtimeType(style) const options_type = runtimeType(options) @@ -286,7 +286,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barBackgroundEffect(value: BackgroundEffectOptions): this { + public barBackgroundEffect(value: BackgroundEffectOptions): this { if (this.checkPriority("barBackgroundEffect")) { const value_casted = value as (BackgroundEffectOptions) this.getPeer()?.barBackgroundEffectAttribute(value_casted) @@ -295,7 +295,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentWillChange(value: OnTabsContentWillChangeCallback): this { + public onContentWillChange(value: OnTabsContentWillChangeCallback): this { if (this.checkPriority("onContentWillChange")) { const value_casted = value as (OnTabsContentWillChangeCallback) UseEventsProperties({Tabs_onContentWillChange: value_casted}) @@ -305,7 +305,7 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barModeScrollable(options: ScrollableBarModeOptions): this { + public barModeScrollable(options: ScrollableBarModeOptions): this { if (this.checkPriority("barModeScrollable")) { const options_casted = options as (ScrollableBarModeOptions) this.getPeer()?.barModeScrollableAttribute(options_casted) @@ -314,11 +314,11 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_index(callback: ((index: number) => void)): void { - if (this.checkPriority("__onChangeEvent_index")) { + public _onChangeEvent_index(callback: ((index: number) => void)): void { + if (this.checkPriority("_onChangeEvent_index")) { const callback_casted = callback as (((index: number) => void)) - UseEventsProperties({Tabs___onChangeEvent_index: callback_casted}) - this.getPeer()?.__onChangeEvent_indexAttribute(callback_casted) + UseEventsProperties({Tabs__onChangeEvent_index: callback_casted}) + this.getPeer()?._onChangeEvent_indexAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts b/arkoala/arkui/src/ArkTabsControllerMaterialized.ts index 36531d798..b939caa50 100644 --- a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTabsControllerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,21 +42,21 @@ export class TabsController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TabsController_getFinalizer() } - changeIndex(value: number): void { + public changeIndex(value: number): void { const value_casted = value as (number) this?.changeIndex_serialize(value_casted) return } - preloadItems(indices?: Array): Promise { + public preloadItems(indices?: Array): Promise { const indices_casted = indices as (Array | undefined) return this.preloadItems_serialize(indices_casted) } - setTabBarTranslate(translate: TranslateOptions): void { + public setTabBarTranslate(translate: TranslateOptions): void { const translate_casted = translate as (TranslateOptions) this?.setTabBarTranslate_serialize(translate_casted) return } - setTabBarOpacity(opacity: number): void { + public setTabBarOpacity(opacity: number): void { const opacity_casted = opacity as (number) this?.setTabBarOpacity_serialize(opacity_casted) return diff --git a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts b/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts index f2f71bd56..5df229f63 100644 --- a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts @@ -27,7 +27,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" diff --git a/arkoala/arkui/src/ArkText.ts b/arkoala/arkui/src/ArkText.ts index b15c8915e..e6e3e45dd 100644 --- a/arkoala/arkui/src/ArkText.ts +++ b/arkoala/arkui/src/ArkText.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -53,7 +53,7 @@ import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./ArkTextInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, TextMenuItem, TextRange, MenuType, PositionWithAffinity, LineMetrics, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions, MenuOnAppearCallback } from "./ArkRichEditorInterfaces" @@ -61,6 +61,7 @@ import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" import { TextController } from "./ArkTextControllerMaterialized" import { StyledString } from "./ArkStyledStringMaterialized" import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" import { CustomSpan } from "./ArkCustomSpanMaterialized" /** @memo:stable */ export class ArkTextComponent extends ArkCommonMethodComponent { @@ -68,7 +69,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextPeer) } /** @memo */ - setTextOptions(content?: string | Resource, value?: TextOptions): this { + public setTextOptions(content?: string | Resource, value?: TextOptions): this { if (this.checkPriority("setTextOptions")) { const content_casted = content as (string | Resource | undefined) const value_casted = value as (TextOptions | undefined) @@ -78,7 +79,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(fontValue: Font, options?: FontSettingOptions): this { + public font(fontValue: Font, options?: FontSettingOptions): this { if (this.checkPriority("font")) { const fontValue_type = runtimeType(fontValue) const options_type = runtimeType(options) @@ -98,7 +99,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -107,7 +108,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: number | string | Resource): this { + public fontSize(value: number | string | Resource): this { if (this.checkPriority("fontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.fontSizeAttribute(value_casted) @@ -116,7 +117,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -125,7 +126,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -134,7 +135,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontScale(value: number | Resource): this { + public minFontScale(value: number | Resource): this { if (this.checkPriority("minFontScale")) { const value_casted = value as (number | Resource) this.getPeer()?.minFontScaleAttribute(value_casted) @@ -143,7 +144,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontScale(value: number | Resource): this { + public maxFontScale(value: number | Resource): this { if (this.checkPriority("maxFontScale")) { const value_casted = value as (number | Resource) this.getPeer()?.maxFontScaleAttribute(value_casted) @@ -152,7 +153,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -161,7 +162,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(weight: number | FontWeight | string, options?: FontSettingOptions): this { + public fontWeight(weight: number | FontWeight | string, options?: FontSettingOptions): this { if (this.checkPriority("fontWeight")) { const weight_type = runtimeType(weight) const options_type = runtimeType(options) @@ -181,7 +182,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineSpacing(value: LengthMetrics): this { + public lineSpacing(value: LengthMetrics): this { if (this.checkPriority("lineSpacing")) { const value_casted = value as (LengthMetrics) this.getPeer()?.lineSpacingAttribute(value_casted) @@ -190,7 +191,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -199,7 +200,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -208,7 +209,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textOverflow(value: TextOverflowOptions): this { + public textOverflow(value: TextOverflowOptions): this { if (this.checkPriority("textOverflow")) { const value_casted = value as (TextOverflowOptions) this.getPeer()?.textOverflowAttribute(value_casted) @@ -217,7 +218,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: string | Resource): this { + public fontFamily(value: string | Resource): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (string | Resource) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -226,7 +227,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLines(value: number): this { + public maxLines(value: number): this { if (this.checkPriority("maxLines")) { const value_casted = value as (number) this.getPeer()?.maxLinesAttribute(value_casted) @@ -235,7 +236,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: DecorationStyleInterface): this { + public decoration(value: DecorationStyleInterface): this { if (this.checkPriority("decoration")) { const value_casted = value as (DecorationStyleInterface) this.getPeer()?.decorationAttribute(value_casted) @@ -244,7 +245,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string): this { + public letterSpacing(value: number | string): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -253,7 +254,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textCase(value: TextCase): this { + public textCase(value: TextCase): this { if (this.checkPriority("textCase")) { const value_casted = value as (TextCase) this.getPeer()?.textCaseAttribute(value_casted) @@ -262,7 +263,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - baselineOffset(value: number | string): this { + public baselineOffset(value: number | string): this { if (this.checkPriority("baselineOffset")) { const value_casted = value as (number | string) this.getPeer()?.baselineOffsetAttribute(value_casted) @@ -271,7 +272,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -280,7 +281,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - draggable(value: boolean): this { + public draggable(value: boolean): this { if (this.checkPriority("draggable")) { const value_casted = value as (boolean) this.getPeer()?.draggableAttribute(value_casted) @@ -289,7 +290,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) @@ -298,7 +299,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { if (this.checkPriority("heightAdaptivePolicy")) { const value_casted = value as (TextHeightAdaptivePolicy) this.getPeer()?.heightAdaptivePolicyAttribute(value_casted) @@ -307,7 +308,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Length): this { + public textIndent(value: Length): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Length) this.getPeer()?.textIndentAttribute(value_casted) @@ -316,7 +317,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wordBreak(value: WordBreak): this { + public wordBreak(value: WordBreak): this { if (this.checkPriority("wordBreak")) { const value_casted = value as (WordBreak) this.getPeer()?.wordBreakAttribute(value_casted) @@ -325,7 +326,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineBreakStrategy(value: LineBreakStrategy): this { + public lineBreakStrategy(value: LineBreakStrategy): this { if (this.checkPriority("lineBreakStrategy")) { const value_casted = value as (LineBreakStrategy) this.getPeer()?.lineBreakStrategyAttribute(value_casted) @@ -334,7 +335,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({Text_onCopy: value_casted}) @@ -344,7 +345,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -353,7 +354,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -362,7 +363,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - ellipsisMode(value: EllipsisMode): this { + public ellipsisMode(value: EllipsisMode): this { if (this.checkPriority("ellipsisMode")) { const value_casted = value as (EllipsisMode) this.getPeer()?.ellipsisModeAttribute(value_casted) @@ -371,7 +372,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableDataDetector(value: boolean): this { + public enableDataDetector(value: boolean): this { if (this.checkPriority("enableDataDetector")) { const value_casted = value as (boolean) this.getPeer()?.enableDataDetectorAttribute(value_casted) @@ -380,7 +381,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dataDetectorConfig(value: TextDataDetectorConfig): this { + public dataDetectorConfig(value: TextDataDetectorConfig): this { if (this.checkPriority("dataDetectorConfig")) { const value_casted = value as (TextDataDetectorConfig) this.getPeer()?.dataDetectorConfigAttribute(value_casted) @@ -389,7 +390,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: ((first: number, last: number) => void)): this { + public onTextSelectionChange(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({Text_onTextSelectionChange: value_casted}) @@ -399,7 +400,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -408,7 +409,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - privacySensitive(value: boolean): this { + public privacySensitive(value: boolean): this { if (this.checkPriority("privacySensitive")) { const value_casted = value as (boolean) this.getPeer()?.privacySensitiveAttribute(value_casted) @@ -417,7 +418,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textSelectable(value: TextSelectableMode): this { + public textSelectable(value: TextSelectableMode): this { if (this.checkPriority("textSelectable")) { const value_casted = value as (TextSelectableMode) this.getPeer()?.textSelectableAttribute(value_casted) @@ -426,7 +427,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -435,7 +436,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - halfLeading(value: boolean): this { + public halfLeading(value: boolean): this { if (this.checkPriority("halfLeading")) { const value_casted = value as (boolean) this.getPeer()?.halfLeadingAttribute(value_casted) @@ -444,7 +445,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -453,7 +454,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selection(selectionStart: number, selectionEnd: number): this { + public selection(selectionStart: number, selectionEnd: number): this { if (this.checkPriority("selection")) { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) @@ -463,7 +464,7 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): this { + public bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): this { if (this.checkPriority("bindSelectionMenu")) { const spanType_casted = spanType as (TextSpanType) const content_casted = content as (CustomBuilder) diff --git a/arkoala/arkui/src/ArkTextArea.ts b/arkoala/arkui/src/ArkTextArea.ts index ddda2a769..ee71a42cf 100644 --- a/arkoala/arkui/src/ArkTextArea.ts +++ b/arkoala/arkui/src/ArkTextArea.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -66,7 +66,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextAreaPeer) } /** @memo */ - setTextAreaOptions(value?: TextAreaOptions): this { + public setTextAreaOptions(value?: TextAreaOptions): this { if (this.checkPriority("setTextAreaOptions")) { const value_casted = value as (TextAreaOptions | undefined) this.getPeer()?.setTextAreaOptionsAttribute(value_casted) @@ -75,7 +75,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderColor(value: ResourceColor): this { + public placeholderColor(value: ResourceColor): this { if (this.checkPriority("placeholderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.placeholderColorAttribute(value_casted) @@ -84,7 +84,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderFont(value: Font): this { + public placeholderFont(value: Font): this { if (this.checkPriority("placeholderFont")) { const value_casted = value as (Font) this.getPeer()?.placeholderFontAttribute(value_casted) @@ -93,7 +93,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -102,7 +102,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -111,7 +111,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -120,7 +120,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -129,7 +129,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -138,7 +138,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -147,7 +147,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -156,7 +156,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -165,7 +165,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textOverflow(value: TextOverflow): this { + public textOverflow(value: TextOverflow): this { if (this.checkPriority("textOverflow")) { const value_casted = value as (TextOverflow) this.getPeer()?.textOverflowAttribute(value_casted) @@ -174,7 +174,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Dimension): this { + public textIndent(value: Dimension): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Dimension) this.getPeer()?.textIndentAttribute(value_casted) @@ -183,7 +183,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretStyle(value: CaretStyle): this { + public caretStyle(value: CaretStyle): this { if (this.checkPriority("caretStyle")) { const value_casted = value as (CaretStyle) this.getPeer()?.caretStyleAttribute(value_casted) @@ -192,7 +192,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -201,7 +201,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { + public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) if ((((RuntimeType.FUNCTION == value_type)))) { @@ -221,7 +221,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: EditableTextOnChangeCallback): this { + public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) UseEventsProperties({TextArea_onChange: value_casted}) @@ -231,7 +231,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: ((first: number, last: number) => void)): this { + public onTextSelectionChange(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({TextArea_onTextSelectionChange: value_casted}) @@ -241,7 +241,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentScroll(value: ((first: number, last: number) => void)): this { + public onContentScroll(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({TextArea_onContentScroll: value_casted}) @@ -251,7 +251,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChange(value: ((parameter: boolean) => void)): this { + public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({TextArea_onEditChange: value_casted}) @@ -261,7 +261,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({TextArea_onCopy: value_casted}) @@ -271,7 +271,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((breakpoints: string) => void)): this { + public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({TextArea_onCut: value_casted}) @@ -281,7 +281,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: ((value: string, event: PasteEvent) => void)): this { + public onPaste(value: ((value: string, event: PasteEvent) => void)): this { if (this.checkPriority("onPaste")) { const value_casted = value as (((value: string, event: PasteEvent) => void)) UseEventsProperties({TextArea_onPaste: value_casted}) @@ -291,7 +291,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -300,7 +300,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -309,7 +309,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLength(value: number): this { + public maxLength(value: number): this { if (this.checkPriority("maxLength")) { const value_casted = value as (number) this.getPeer()?.maxLengthAttribute(value_casted) @@ -318,7 +318,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - style(value: TextContentStyle): this { + public style(value: TextContentStyle): this { if (this.checkPriority("style")) { const value_casted = value as (TextContentStyle) this.getPeer()?.styleAttribute(value_casted) @@ -327,7 +327,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barState(value: BarState): this { + public barState(value: BarState): this { if (this.checkPriority("barState")) { const value_casted = value as (BarState) this.getPeer()?.barStateAttribute(value_casted) @@ -336,7 +336,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuHidden(value: boolean): this { + public selectionMenuHidden(value: boolean): this { if (this.checkPriority("selectionMenuHidden")) { const value_casted = value as (boolean) this.getPeer()?.selectionMenuHiddenAttribute(value_casted) @@ -345,7 +345,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -354,7 +354,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -363,7 +363,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { if (this.checkPriority("heightAdaptivePolicy")) { const value_casted = value as (TextHeightAdaptivePolicy) this.getPeer()?.heightAdaptivePolicyAttribute(value_casted) @@ -372,7 +372,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLines(value: number): this { + public maxLines(value: number): this { if (this.checkPriority("maxLines")) { const value_casted = value as (number) this.getPeer()?.maxLinesAttribute(value_casted) @@ -381,7 +381,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wordBreak(value: WordBreak): this { + public wordBreak(value: WordBreak): this { if (this.checkPriority("wordBreak")) { const value_casted = value as (WordBreak) this.getPeer()?.wordBreakAttribute(value_casted) @@ -390,7 +390,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineBreakStrategy(value: LineBreakStrategy): this { + public lineBreakStrategy(value: LineBreakStrategy): this { if (this.checkPriority("lineBreakStrategy")) { const value_casted = value as (LineBreakStrategy) this.getPeer()?.lineBreakStrategyAttribute(value_casted) @@ -399,7 +399,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: TextDecorationOptions): this { + public decoration(value: TextDecorationOptions): this { if (this.checkPriority("decoration")) { const value_casted = value as (TextDecorationOptions) this.getPeer()?.decorationAttribute(value_casted) @@ -408,7 +408,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string | Resource): this { + public letterSpacing(value: number | string | Resource): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string | Resource) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -417,7 +417,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineSpacing(value: LengthMetrics): this { + public lineSpacing(value: LengthMetrics): this { if (this.checkPriority("lineSpacing")) { const value_casted = value as (LengthMetrics) this.getPeer()?.lineSpacingAttribute(value_casted) @@ -426,7 +426,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -435,7 +435,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: TextAreaType): this { + public type(value: TextAreaType): this { if (this.checkPriority("type")) { const value_casted = value as (TextAreaType) this.getPeer()?.typeAttribute(value_casted) @@ -444,7 +444,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAutoFill(value: boolean): this { + public enableAutoFill(value: boolean): this { if (this.checkPriority("enableAutoFill")) { const value_casted = value as (boolean) this.getPeer()?.enableAutoFillAttribute(value_casted) @@ -453,7 +453,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentType(value: ContentType): this { + public contentType(value: ContentType): this { if (this.checkPriority("contentType")) { const value_casted = value as (ContentType) this.getPeer()?.contentTypeAttribute(value_casted) @@ -462,7 +462,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -471,7 +471,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillInsert(value: ((parameter: InsertValue) => boolean)): this { + public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) UseEventsProperties({TextArea_onWillInsert: value_casted}) @@ -481,7 +481,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidInsert(value: ((parameter: InsertValue) => void)): this { + public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) UseEventsProperties({TextArea_onDidInsert: value_casted}) @@ -491,7 +491,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { + public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) UseEventsProperties({TextArea_onWillDelete: value_casted}) @@ -501,7 +501,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidDelete(value: ((parameter: DeleteValue) => void)): this { + public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) UseEventsProperties({TextArea_onDidDelete: value_casted}) @@ -511,7 +511,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -520,7 +520,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -529,7 +529,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -538,7 +538,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { + public inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { if (this.checkPriority("inputFilter")) { const value_casted = value as (ResourceStr) const error_casted = error as (((breakpoints: string) => void) | undefined) @@ -548,7 +548,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showCounter(value: boolean, options?: InputCounterOptions): this { + public showCounter(value: boolean, options?: InputCounterOptions): this { if (this.checkPriority("showCounter")) { const value_casted = value as (boolean) const options_casted = options as (InputCounterOptions | undefined) @@ -558,7 +558,7 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -569,11 +569,11 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { - if (this.checkPriority("__onChangeEvent_text")) { + public _onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { + if (this.checkPriority("_onChangeEvent_text")) { const callback_casted = callback as (((value: ResourceStr) => void)) - UseEventsProperties({TextArea___onChangeEvent_text: callback_casted}) - this.getPeer()?.__onChangeEvent_textAttribute(callback_casted) + UseEventsProperties({TextArea__onChangeEvent_text: callback_casted}) + this.getPeer()?._onChangeEvent_textAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts b/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts index 03f46f201..7f5375d84 100644 --- a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,19 +44,19 @@ export class TextAreaController extends TextContentControllerBase implements Mat static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextAreaController_getFinalizer() } - caretPosition(value: number): void { + public caretPosition(value: number): void { const value_casted = value as (number) this?.caretPosition_serialize(value_casted) return } - setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this?.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - stopEditing(): void { + public stopEditing(): void { this?.stopEditing_serialize() return } diff --git a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts b/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts index 36bd15457..7ea88b758 100644 --- a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -50,18 +50,18 @@ export class TextBaseControllerInternal implements MaterializedBase,TextBaseCont static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextBaseController_getFinalizer() } - setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this?.setSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - closeSelectionMenu(): void { + public closeSelectionMenu(): void { this?.closeSelectionMenu_serialize() return } - getLayoutManager(): LayoutManager { + public getLayoutManager(): LayoutManager { return this.getLayoutManager_serialize() } private setSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { diff --git a/arkoala/arkui/src/ArkTextClock.ts b/arkoala/arkui/src/ArkTextClock.ts index 67c38d85b..f04d5c363 100644 --- a/arkoala/arkui/src/ArkTextClock.ts +++ b/arkoala/arkui/src/ArkTextClock.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -61,7 +61,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextClockPeer) } /** @memo */ - setTextClockOptions(options?: TextClockOptions): this { + public setTextClockOptions(options?: TextClockOptions): this { if (this.checkPriority("setTextClockOptions")) { const options_casted = options as (TextClockOptions | undefined) this.getPeer()?.setTextClockOptionsAttribute(options_casted) @@ -70,7 +70,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - format(value: string): this { + public format(value: string): this { if (this.checkPriority("format")) { const value_casted = value as (string) this.getPeer()?.formatAttribute(value_casted) @@ -79,7 +79,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDateChange(value: ((index: number) => void)): this { + public onDateChange(value: ((index: number) => void)): this { if (this.checkPriority("onDateChange")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({TextClock_onDateChange: value_casted}) @@ -89,7 +89,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -125,7 +125,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -134,7 +134,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) @@ -143,7 +143,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -152,7 +152,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -161,7 +161,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dateTimeOptions(value?: DateTimeOptions): this { + public dateTimeOptions(value?: DateTimeOptions): this { if (this.checkPriority("dateTimeOptions")) { const value_casted = value as (DateTimeOptions | undefined) this.getPeer()?.dateTimeOptionsAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts b/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts index ff682e989..e1c529e42 100644 --- a/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,10 +41,10 @@ export class TextClockController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextClockController_getFinalizer() } - start(): undefined { + public start(): undefined { return this.start_serialize() } - stop(): undefined { + public stop(): undefined { return this.stop_serialize() } private start_serialize(): undefined { diff --git a/arkoala/arkui/src/ArkTextCommonInterfaces.ts b/arkoala/arkui/src/ArkTextCommonInterfaces.ts index 84e666338..ed80173e8 100644 --- a/arkoala/arkui/src/ArkTextCommonInterfaces.ts +++ b/arkoala/arkui/src/ArkTextCommonInterfaces.ts @@ -20,9 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ResourceColor, SizeOptions, Length, Margin, Padding, BorderRadiuses, ResourceStr } from "./ArkUnitsInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { TextDecorationType, TextDecorationStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { StyledString } from "./ArkStyledStringMaterialized" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" import { CustomSpan } from "./ArkCustomSpanMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { DrawContext } from "./ArkCommonInterfaces" @@ -80,13 +81,13 @@ export interface PositionWithAffinity { affinity: Affinity; } export interface Affinity { - __AffinityStub: string; + _AffinityStub: string; } export interface LineMetrics { - __LineMetricsStub: string; + _LineMetricsStub: string; } export interface TextBox { - __TextBoxStub: string; + _TextBoxStub: string; } export interface CaretStyle { width?: Length; diff --git a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts b/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts index ddf037c42..9d59c677f 100644 --- a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,13 +42,13 @@ export class TextContentControllerBase implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextContentControllerBase_getFinalizer() } - getCaretOffset(): CaretOffset { + public getCaretOffset(): CaretOffset { return this.getCaretOffset_serialize() } - getTextContentRect(): RectResult { + public getTextContentRect(): RectResult { return this.getTextContentRect_serialize() } - getTextContentLineCount(): number { + public getTextContentLineCount(): number { return this.getTextContentLineCount_serialize() } private getCaretOffset_serialize(): CaretOffset { diff --git a/arkoala/arkui/src/ArkTextControllerMaterialized.ts b/arkoala/arkui/src/ArkTextControllerMaterialized.ts index 10944c638..56324a020 100644 --- a/arkoala/arkui/src/ArkTextControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextControllerMaterialized.ts @@ -18,22 +18,23 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -53,16 +54,16 @@ export class TextController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextController_getFinalizer() } - closeSelectionMenu(): void { + public closeSelectionMenu(): void { this?.closeSelectionMenu_serialize() return } - setStyledString(value: StyledString): void { + public setStyledString(value: StyledString): void { const value_casted = value as (StyledString) this?.setStyledString_serialize(value_casted) return } - getLayoutManager(): LayoutManager { + public getLayoutManager(): LayoutManager { return this.getLayoutManager_serialize() } private closeSelectionMenu_serialize(): void { diff --git a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts b/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts index 025f5038a..fd764695d 100644 --- a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts +++ b/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts @@ -26,7 +26,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -54,21 +54,21 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextEditControllerEx_getFinalizer() } - isEditing(): boolean { + public isEditing(): boolean { return this.isEditing_serialize() } - stopEditing(): void { + public stopEditing(): void { this?.stopEditing_serialize() return } - setCaretOffset(offset: number): boolean { + public setCaretOffset(offset: number): boolean { const offset_casted = offset as (number) return this.setCaretOffset_serialize(offset_casted) } - getCaretOffset(): number { + public getCaretOffset(): number { return this.getCaretOffset_serialize() } - getPreviewText(): PreviewText { + public getPreviewText(): PreviewText { return this.getPreviewText_serialize() } private isEditing_serialize(): boolean { diff --git a/arkoala/arkui/src/ArkTextInput.ts b/arkoala/arkui/src/ArkTextInput.ts index 387c714f0..961aad4d1 100644 --- a/arkoala/arkui/src/ArkTextInput.ts +++ b/arkoala/arkui/src/ArkTextInput.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -67,7 +67,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextInputPeer) } /** @memo */ - setTextInputOptions(value?: TextInputOptions): this { + public setTextInputOptions(value?: TextInputOptions): this { if (this.checkPriority("setTextInputOptions")) { const value_casted = value as (TextInputOptions | undefined) this.getPeer()?.setTextInputOptionsAttribute(value_casted) @@ -76,7 +76,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - type(value: InputType): this { + public type(value: InputType): this { if (this.checkPriority("type")) { const value_casted = value as (InputType) this.getPeer()?.typeAttribute(value_casted) @@ -85,7 +85,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentType(value: ContentType): this { + public contentType(value: ContentType): this { if (this.checkPriority("contentType")) { const value_casted = value as (ContentType) this.getPeer()?.contentTypeAttribute(value_casted) @@ -94,7 +94,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderColor(value: ResourceColor): this { + public placeholderColor(value: ResourceColor): this { if (this.checkPriority("placeholderColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.placeholderColorAttribute(value_casted) @@ -103,7 +103,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textOverflow(value: TextOverflow): this { + public textOverflow(value: TextOverflow): this { if (this.checkPriority("textOverflow")) { const value_casted = value as (TextOverflow) this.getPeer()?.textOverflowAttribute(value_casted) @@ -112,7 +112,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textIndent(value: Dimension): this { + public textIndent(value: Dimension): this { if (this.checkPriority("textIndent")) { const value_casted = value as (Dimension) this.getPeer()?.textIndentAttribute(value_casted) @@ -121,7 +121,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - placeholderFont(value?: Font): this { + public placeholderFont(value?: Font): this { if (this.checkPriority("placeholderFont")) { const value_casted = value as (Font | undefined) this.getPeer()?.placeholderFontAttribute(value_casted) @@ -130,7 +130,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enterKeyType(value: EnterKeyType): this { + public enterKeyType(value: EnterKeyType): this { if (this.checkPriority("enterKeyType")) { const value_casted = value as (EnterKeyType) this.getPeer()?.enterKeyTypeAttribute(value_casted) @@ -139,7 +139,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretColor(value: ResourceColor): this { + public caretColor(value: ResourceColor): this { if (this.checkPriority("caretColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.caretColorAttribute(value_casted) @@ -148,7 +148,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChanged(value: ((parameter: boolean) => void)): this { + public onEditChanged(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChanged")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({TextInput_onEditChanged: value_casted}) @@ -158,7 +158,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onEditChange(value: ((parameter: boolean) => void)): this { + public onEditChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onEditChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({TextInput_onEditChange: value_casted}) @@ -168,7 +168,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSubmit(value: OnSubmitCallback): this { + public onSubmit(value: OnSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_casted = value as (OnSubmitCallback) UseEventsProperties({TextInput_onSubmit: value_casted}) @@ -178,7 +178,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: EditableTextOnChangeCallback): this { + public onChange(value: EditableTextOnChangeCallback): this { if (this.checkPriority("onChange")) { const value_casted = value as (EditableTextOnChangeCallback) UseEventsProperties({TextInput_onChange: value_casted}) @@ -188,7 +188,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTextSelectionChange(value: OnTextSelectionChangeCallback): this { + public onTextSelectionChange(value: OnTextSelectionChangeCallback): this { if (this.checkPriority("onTextSelectionChange")) { const value_casted = value as (OnTextSelectionChangeCallback) UseEventsProperties({TextInput_onTextSelectionChange: value_casted}) @@ -198,7 +198,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContentScroll(value: OnContentScrollCallback): this { + public onContentScroll(value: OnContentScrollCallback): this { if (this.checkPriority("onContentScroll")) { const value_casted = value as (OnContentScrollCallback) UseEventsProperties({TextInput_onContentScroll: value_casted}) @@ -208,7 +208,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLength(value: number): this { + public maxLength(value: number): this { if (this.checkPriority("maxLength")) { const value_casted = value as (number) this.getPeer()?.maxLengthAttribute(value_casted) @@ -217,7 +217,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -226,7 +226,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -235,7 +235,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -244,7 +244,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -253,7 +253,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -262,7 +262,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCopy(value: ((breakpoints: string) => void)): this { + public onCopy(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCopy")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({TextInput_onCopy: value_casted}) @@ -272,7 +272,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCut(value: ((breakpoints: string) => void)): this { + public onCut(value: ((breakpoints: string) => void)): this { if (this.checkPriority("onCut")) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({TextInput_onCut: value_casted}) @@ -282,7 +282,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPaste(value: OnPasteCallback): this { + public onPaste(value: OnPasteCallback): this { if (this.checkPriority("onPaste")) { const value_casted = value as (OnPasteCallback) UseEventsProperties({TextInput_onPaste: value_casted}) @@ -292,7 +292,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOption(value: CopyOptions): this { + public copyOption(value: CopyOptions): this { if (this.checkPriority("copyOption")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionAttribute(value_casted) @@ -301,7 +301,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showPasswordIcon(value: boolean): this { + public showPasswordIcon(value: boolean): this { if (this.checkPriority("showPasswordIcon")) { const value_casted = value as (boolean) this.getPeer()?.showPasswordIconAttribute(value_casted) @@ -310,7 +310,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAlign(value: TextAlign): this { + public textAlign(value: TextAlign): this { if (this.checkPriority("textAlign")) { const value_casted = value as (TextAlign) this.getPeer()?.textAlignAttribute(value_casted) @@ -319,7 +319,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - style(value: TextInputStyle | TextContentStyle): this { + public style(value: TextInputStyle | TextContentStyle): this { if (this.checkPriority("style")) { const value_casted = value as (TextInputStyle | TextContentStyle) this.getPeer()?.styleAttribute(value_casted) @@ -328,7 +328,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretStyle(value: CaretStyle): this { + public caretStyle(value: CaretStyle): this { if (this.checkPriority("caretStyle")) { const value_casted = value as (CaretStyle) this.getPeer()?.caretStyleAttribute(value_casted) @@ -337,7 +337,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedBackgroundColor(value: ResourceColor): this { + public selectedBackgroundColor(value: ResourceColor): this { if (this.checkPriority("selectedBackgroundColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedBackgroundColorAttribute(value_casted) @@ -346,7 +346,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - caretPosition(value: number): this { + public caretPosition(value: number): this { if (this.checkPriority("caretPosition")) { const value_casted = value as (number) this.getPeer()?.caretPositionAttribute(value_casted) @@ -355,7 +355,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableKeyboardOnFocus(value: boolean): this { + public enableKeyboardOnFocus(value: boolean): this { if (this.checkPriority("enableKeyboardOnFocus")) { const value_casted = value as (boolean) this.getPeer()?.enableKeyboardOnFocusAttribute(value_casted) @@ -364,7 +364,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - passwordIcon(value: PasswordIcon): this { + public passwordIcon(value: PasswordIcon): this { if (this.checkPriority("passwordIcon")) { const value_casted = value as (PasswordIcon) this.getPeer()?.passwordIconAttribute(value_casted) @@ -373,7 +373,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showError(value?: ResourceStr): this { + public showError(value?: ResourceStr): this { if (this.checkPriority("showError")) { const value_casted = value as (ResourceStr | undefined) this.getPeer()?.showErrorAttribute(value_casted) @@ -382,7 +382,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showUnit(value: CustomBuilder): this { + public showUnit(value: CustomBuilder): this { if (this.checkPriority("showUnit")) { const value_casted = value as (CustomBuilder) UseEventsProperties({TextInput_showUnit: value_casted}) @@ -392,7 +392,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showUnderline(value: boolean): this { + public showUnderline(value: boolean): this { if (this.checkPriority("showUnderline")) { const value_casted = value as (boolean) this.getPeer()?.showUnderlineAttribute(value_casted) @@ -401,7 +401,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - underlineColor(value?: ResourceColor | UnderlineColor): this { + public underlineColor(value?: ResourceColor | UnderlineColor): this { if (this.checkPriority("underlineColor")) { const value_casted = value as (ResourceColor | UnderlineColor | undefined) this.getPeer()?.underlineColorAttribute(value_casted) @@ -410,7 +410,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuHidden(value: boolean): this { + public selectionMenuHidden(value: boolean): this { if (this.checkPriority("selectionMenuHidden")) { const value_casted = value as (boolean) this.getPeer()?.selectionMenuHiddenAttribute(value_casted) @@ -419,7 +419,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - barState(value: BarState): this { + public barState(value: BarState): this { if (this.checkPriority("barState")) { const value_casted = value as (BarState) this.getPeer()?.barStateAttribute(value_casted) @@ -428,7 +428,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxLines(value: number): this { + public maxLines(value: number): this { if (this.checkPriority("maxLines")) { const value_casted = value as (number) this.getPeer()?.maxLinesAttribute(value_casted) @@ -437,7 +437,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wordBreak(value: WordBreak): this { + public wordBreak(value: WordBreak): this { if (this.checkPriority("wordBreak")) { const value_casted = value as (WordBreak) this.getPeer()?.wordBreakAttribute(value_casted) @@ -446,7 +446,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineBreakStrategy(value: LineBreakStrategy): this { + public lineBreakStrategy(value: LineBreakStrategy): this { if (this.checkPriority("lineBreakStrategy")) { const value_casted = value as (LineBreakStrategy) this.getPeer()?.lineBreakStrategyAttribute(value_casted) @@ -455,7 +455,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { + public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_type = runtimeType(value) if ((((RuntimeType.OBJECT == value_type)))) { @@ -473,7 +473,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectAll(value: boolean): this { + public selectAll(value: boolean): this { if (this.checkPriority("selectAll")) { const value_casted = value as (boolean) this.getPeer()?.selectAllAttribute(value_casted) @@ -482,7 +482,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number | string | Resource): this { + public minFontSize(value: number | string | Resource): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -491,7 +491,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - maxFontSize(value: number | string | Resource): this { + public maxFontSize(value: number | string | Resource): this { if (this.checkPriority("maxFontSize")) { const value_casted = value as (number | string | Resource) this.getPeer()?.maxFontSizeAttribute(value_casted) @@ -500,7 +500,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + public heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { if (this.checkPriority("heightAdaptivePolicy")) { const value_casted = value as (TextHeightAdaptivePolicy) this.getPeer()?.heightAdaptivePolicyAttribute(value_casted) @@ -509,7 +509,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAutoFill(value: boolean): this { + public enableAutoFill(value: boolean): this { if (this.checkPriority("enableAutoFill")) { const value_casted = value as (boolean) this.getPeer()?.enableAutoFillAttribute(value_casted) @@ -518,7 +518,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - decoration(value: TextDecorationOptions): this { + public decoration(value: TextDecorationOptions): this { if (this.checkPriority("decoration")) { const value_casted = value as (TextDecorationOptions) this.getPeer()?.decorationAttribute(value_casted) @@ -527,7 +527,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - letterSpacing(value: number | string | Resource): this { + public letterSpacing(value: number | string | Resource): this { if (this.checkPriority("letterSpacing")) { const value_casted = value as (number | string | Resource) this.getPeer()?.letterSpacingAttribute(value_casted) @@ -536,7 +536,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - lineHeight(value: number | string | Resource): this { + public lineHeight(value: number | string | Resource): this { if (this.checkPriority("lineHeight")) { const value_casted = value as (number | string | Resource) this.getPeer()?.lineHeightAttribute(value_casted) @@ -545,7 +545,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - passwordRules(value: string): this { + public passwordRules(value: string): this { if (this.checkPriority("passwordRules")) { const value_casted = value as (string) this.getPeer()?.passwordRulesAttribute(value_casted) @@ -554,7 +554,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFeature(value: string): this { + public fontFeature(value: string): this { if (this.checkPriority("fontFeature")) { const value_casted = value as (string) this.getPeer()?.fontFeatureAttribute(value_casted) @@ -563,7 +563,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showPassword(value: boolean): this { + public showPassword(value: boolean): this { if (this.checkPriority("showPassword")) { const value_casted = value as (boolean) this.getPeer()?.showPasswordAttribute(value_casted) @@ -572,7 +572,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSecurityStateChange(value: ((parameter: boolean) => void)): this { + public onSecurityStateChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onSecurityStateChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({TextInput_onSecurityStateChange: value_casted}) @@ -582,7 +582,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillInsert(value: ((parameter: InsertValue) => boolean)): this { + public onWillInsert(value: ((parameter: InsertValue) => boolean)): this { if (this.checkPriority("onWillInsert")) { const value_casted = value as (((parameter: InsertValue) => boolean)) UseEventsProperties({TextInput_onWillInsert: value_casted}) @@ -592,7 +592,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidInsert(value: ((parameter: InsertValue) => void)): this { + public onDidInsert(value: ((parameter: InsertValue) => void)): this { if (this.checkPriority("onDidInsert")) { const value_casted = value as (((parameter: InsertValue) => void)) UseEventsProperties({TextInput_onDidInsert: value_casted}) @@ -602,7 +602,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { + public onWillDelete(value: ((parameter: DeleteValue) => boolean)): this { if (this.checkPriority("onWillDelete")) { const value_casted = value as (((parameter: DeleteValue) => boolean)) UseEventsProperties({TextInput_onWillDelete: value_casted}) @@ -612,7 +612,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDidDelete(value: ((parameter: DeleteValue) => void)): this { + public onDidDelete(value: ((parameter: DeleteValue) => void)): this { if (this.checkPriority("onDidDelete")) { const value_casted = value as (((parameter: DeleteValue) => void)) UseEventsProperties({TextInput_onDidDelete: value_casted}) @@ -622,7 +622,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -631,7 +631,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enablePreviewText(value: boolean): this { + public enablePreviewText(value: boolean): this { if (this.checkPriority("enablePreviewText")) { const value_casted = value as (boolean) this.getPeer()?.enablePreviewTextAttribute(value_casted) @@ -640,7 +640,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -649,7 +649,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { + public inputFilter(value: ResourceStr, error?: ((breakpoints: string) => void)): this { if (this.checkPriority("inputFilter")) { const value_casted = value as (ResourceStr) const error_casted = error as (((breakpoints: string) => void) | undefined) @@ -659,7 +659,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + public customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { if (this.checkPriority("customKeyboard")) { const value_casted = value as (CustomBuilder) const options_casted = options as (KeyboardOptions | undefined) @@ -670,7 +670,7 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - showCounter(value: boolean, options?: InputCounterOptions): this { + public showCounter(value: boolean, options?: InputCounterOptions): this { if (this.checkPriority("showCounter")) { const value_casted = value as (boolean) const options_casted = options as (InputCounterOptions | undefined) @@ -680,11 +680,11 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { - if (this.checkPriority("__onChangeEvent_text")) { + public _onChangeEvent_text(callback: ((value: ResourceStr) => void)): void { + if (this.checkPriority("_onChangeEvent_text")) { const callback_casted = callback as (((value: ResourceStr) => void)) - UseEventsProperties({TextInput___onChangeEvent_text: callback_casted}) - this.getPeer()?.__onChangeEvent_textAttribute(callback_casted) + UseEventsProperties({TextInput__onChangeEvent_text: callback_casted}) + this.getPeer()?._onChangeEvent_textAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts b/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts index be9a651bb..51f37cabf 100644 --- a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,19 +44,19 @@ export class TextInputController extends TextContentControllerBase implements Ma static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextInputController_getFinalizer() } - caretPosition(value: number): void { + public caretPosition(value: number): void { const value_casted = value as (number) this?.caretPosition_serialize(value_casted) return } - setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + public setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { const selectionStart_casted = selectionStart as (number) const selectionEnd_casted = selectionEnd as (number) const options_casted = options as (SelectionOptions | undefined) this?.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) return } - stopEditing(): void { + public stopEditing(): void { this?.stopEditing_serialize() return } diff --git a/arkoala/arkui/src/ArkTextInterfaces.ts b/arkoala/arkui/src/ArkTextInterfaces.ts index c568c7d90..c68a5a1a3 100644 --- a/arkoala/arkui/src/ArkTextInterfaces.ts +++ b/arkoala/arkui/src/ArkTextInterfaces.ts @@ -48,13 +48,14 @@ import { BaseEvent } from "./ArkBaseEventMaterialized" import { UnifiedData } from "./ArkUnifiedDataMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureEvent } from "./ArkGestureEventMaterialized" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, TextMenuItem, TextRange, MenuType, PositionWithAffinity, LineMetrics, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions, MenuOnAppearCallback } from "./ArkRichEditorInterfaces" import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" import { StyledString } from "./ArkStyledStringMaterialized" import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" import { CustomSpan } from "./ArkCustomSpanMaterialized" export interface TextOverflowOptions { overflow: TextOverflow; diff --git a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts b/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts index ad937e569..aed7ecb9d 100644 --- a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -67,11 +67,11 @@ export class TextMenuItemId implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextMenuItemId_getFinalizer() } - static of(id: ResourceStr): TextMenuItemId { + public static of(id: ResourceStr): TextMenuItemId { const id_casted = id as (ResourceStr) return TextMenuItemId.of_serialize(id_casted) } - equals(id: TextMenuItemId): boolean { + public equals(id: TextMenuItemId): boolean { const id_casted = id as (TextMenuItemId) return this.equals_serialize(id_casted) } diff --git a/arkoala/arkui/src/ArkTextPicker.ts b/arkoala/arkui/src/ArkTextPicker.ts index 0370fa4cd..44d5ad856 100644 --- a/arkoala/arkui/src/ArkTextPicker.ts +++ b/arkoala/arkui/src/ArkTextPicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextPickerPeer) } /** @memo */ - setTextPickerOptions(options?: TextPickerOptions): this { + public setTextPickerOptions(options?: TextPickerOptions): this { if (this.checkPriority("setTextPickerOptions")) { const options_casted = options as (TextPickerOptions | undefined) this.getPeer()?.setTextPickerOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultPickerItemHeight(value: number | string): this { + public defaultPickerItemHeight(value: number | string): this { if (this.checkPriority("defaultPickerItemHeight")) { const value_casted = value as (number | string) this.getPeer()?.defaultPickerItemHeightAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - canLoop(value: boolean): this { + public canLoop(value: boolean): this { if (this.checkPriority("canLoop")) { const value_casted = value as (boolean) this.getPeer()?.canLoopAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disappearTextStyle(value: PickerTextStyle): this { + public disappearTextStyle(value: PickerTextStyle): this { if (this.checkPriority("disappearTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.disappearTextStyleAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedTextStyle(value: PickerTextStyle): this { + public selectedTextStyle(value: PickerTextStyle): this { if (this.checkPriority("selectedTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.selectedTextStyleAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAccept(value: ((value: string, index: number) => void)): this { + public onAccept(value: ((value: string, index: number) => void)): this { if (this.checkPriority("onAccept")) { const value_casted = value as (((value: string, index: number) => void)) UseEventsProperties({TextPicker_onAccept: value_casted}) @@ -123,7 +123,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onCancel(value: (() => void)): this { + public onCancel(value: (() => void)): this { if (this.checkPriority("onCancel")) { const value_casted = value as ((() => void)) UseEventsProperties({TextPicker_onCancel: value_casted}) @@ -133,7 +133,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: string | Array, index: number | Array) => void)): this { + public onChange(value: ((value: string | Array, index: number | Array) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: string | Array, index: number | Array) => void)) UseEventsProperties({TextPicker_onChange: value_casted}) @@ -143,7 +143,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedIndex(value: number | Array): this { + public selectedIndex(value: number | Array): this { if (this.checkPriority("selectedIndex")) { const value_casted = value as (number | Array) this.getPeer()?.selectedIndexAttribute(value_casted) @@ -152,7 +152,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - divider(value?: DividerOptions): this { + public divider(value?: DividerOptions): this { if (this.checkPriority("divider")) { const value_casted = value as (DividerOptions | undefined) this.getPeer()?.dividerAttribute(value_casted) @@ -161,7 +161,7 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - gradientHeight(value: Dimension): this { + public gradientHeight(value: Dimension): this { if (this.checkPriority("gradientHeight")) { const value_casted = value as (Dimension) this.getPeer()?.gradientHeightAttribute(value_casted) @@ -170,21 +170,21 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((selected: number | Array) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((selected: number | Array) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((selected: number | Array) => void)) - UseEventsProperties({TextPicker___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({TextPicker__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return } /** @memo */ - __onChangeEvent_value(callback: ((value: string | Array) => void)): void { - if (this.checkPriority("__onChangeEvent_value")) { + public _onChangeEvent_value(callback: ((value: string | Array) => void)): void { + if (this.checkPriority("_onChangeEvent_value")) { const callback_casted = callback as (((value: string | Array) => void)) - UseEventsProperties({TextPicker___onChangeEvent_value: callback_casted}) - this.getPeer()?.__onChangeEvent_valueAttribute(callback_casted) + UseEventsProperties({TextPicker__onChangeEvent_value: callback_casted}) + this.getPeer()?._onChangeEvent_valueAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts b/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts index 87881654d..b4b8d19f5 100644 --- a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts @@ -28,7 +28,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -51,7 +51,7 @@ export class TextPickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextPickerDialog_getFinalizer() } - static show(options?: TextPickerDialogOptions): undefined { + public static show(options?: TextPickerDialogOptions): undefined { const options_casted = options as (TextPickerDialogOptions | undefined) return TextPickerDialog.show_serialize(options_casted) } diff --git a/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts b/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts new file mode 100644 index 000000000..9b4456e8e --- /dev/null +++ b/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts @@ -0,0 +1,78 @@ +/* + * 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 { 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 { 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 TextShadowStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get textShadow(): Array { + throw new Error("Not implemented") + } + static ctor(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"))))) { + thisSerializer.writeInt8(0) + const value_0 = unsafeCast(value) + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(1) + const value_1 = unsafeCast>(value) + thisSerializer.writeInt32(value_1.length) + for (let i = 0; i < value_1.length; i++) { + const value_1_element: ShadowOptions = value_1[i] + thisSerializer.writeShadowOptions(value_1_element) + } + } + const retval = ArkUIGeneratedNativeModule._TextShadowStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: ShadowOptions | Array) { + if (((value) !== (undefined))) + { + const ctorPtr: KPointer = TextShadowStyle.ctor(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 + } +} diff --git a/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts b/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts new file mode 100644 index 000000000..6abb64b29 --- /dev/null +++ b/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts @@ -0,0 +1,109 @@ +/* + * 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 { ResourceColor, ResourceStr } from "./ArkUnitsInterfaces" +import { FontStyle, Color, FontWeight } from "./ArkEnumsInterfaces" +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 { 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_string implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get fontColor(): ResourceColor { + throw new Error("Not implemented") + } + get fontFamily(): string { + return this.getFontFamily() + } + get fontSize(): number { + return this.getFontSize() + } + get fontWeight(): number { + return this.getFontWeight() + } + get fontStyle(): FontStyle { + return this.getFontStyle() + } + static ctor(value?: TextStyleInterface): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let value_type: int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeTextStyleInterface(value_value) + } + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(value?: TextStyleInterface) { + const ctorPtr: KPointer = TextStyle_styled_string.ctor(value) + this.peer = new Finalizable(ctorPtr, TextStyle_styled_string.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._TextStyle_styled_string_getFinalizer() + } + private getFontFamily(): string { + return this.getFontFamily_serialize() + } + private getFontSize(): number { + return this.getFontSize_serialize() + } + private getFontWeight(): number { + return this.getFontWeight_serialize() + } + private getFontStyle(): FontStyle { + return this.getFontStyle_serialize() + } + private getFontFamily_serialize(): string { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontFamily(this.peer!.ptr) + return retval + } + private getFontSize_serialize(): number { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontSize(this.peer!.ptr) + return retval + } + private getFontWeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontWeight(this.peer!.ptr) + return retval + } + private getFontStyle_serialize(): FontStyle { + const retval = ArkUIGeneratedNativeModule._TextStyle_styled_string_getFontStyle(this.peer!.ptr) + 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/ArkTextTimer.ts index f35711b75..48e0a29ab 100644 --- a/arkoala/arkui/src/ArkTextTimer.ts +++ b/arkoala/arkui/src/ArkTextTimer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -60,7 +60,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return (this.peer as ArkTextTimerPeer) } /** @memo */ - setTextTimerOptions(options?: TextTimerOptions): this { + public setTextTimerOptions(options?: TextTimerOptions): this { if (this.checkPriority("setTextTimerOptions")) { const options_casted = options as (TextTimerOptions | undefined) this.getPeer()?.setTextTimerOptionsAttribute(options_casted) @@ -69,7 +69,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - format(value: string): this { + public format(value: string): this { if (this.checkPriority("format")) { const value_casted = value as (string) this.getPeer()?.formatAttribute(value_casted) @@ -78,7 +78,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontColor(value: ResourceColor): this { + public fontColor(value: ResourceColor): this { if (this.checkPriority("fontColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.fontColorAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontSize(value: Length): this { + public fontSize(value: Length): this { if (this.checkPriority("fontSize")) { const value_casted = value as (Length) this.getPeer()?.fontSizeAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontStyle(value: FontStyle): this { + public fontStyle(value: FontStyle): this { if (this.checkPriority("fontStyle")) { const value_casted = value as (FontStyle) this.getPeer()?.fontStyleAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontWeight(value: number | FontWeight | string): this { + public fontWeight(value: number | FontWeight | string): this { if (this.checkPriority("fontWeight")) { const value_casted = value as (number | FontWeight | string) this.getPeer()?.fontWeightAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fontFamily(value: ResourceStr): this { + public fontFamily(value: ResourceStr): this { if (this.checkPriority("fontFamily")) { const value_casted = value as (ResourceStr) this.getPeer()?.fontFamilyAttribute(value_casted) @@ -123,7 +123,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTimer(value: ((first: number, last: number) => void)): this { + public onTimer(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onTimer")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({TextTimer_onTimer: value_casted}) @@ -133,7 +133,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textShadow(value: ShadowOptions | Array): this { + public textShadow(value: ShadowOptions | Array): this { if (this.checkPriority("textShadow")) { const value_casted = value as (ShadowOptions | Array) this.getPeer()?.textShadowAttribute(value_casted) @@ -142,7 +142,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts b/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts index d5b88eb65..3b808572b 100644 --- a/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,13 +41,13 @@ export class TextTimerController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextTimerController_getFinalizer() } - start(): undefined { + public start(): undefined { return this.start_serialize() } - pause(): undefined { + public pause(): undefined { return this.pause_serialize() } - reset(): undefined { + public reset(): undefined { return this.reset_serialize() } private start_serialize(): undefined { diff --git a/arkoala/arkui/src/ArkTimePicker.ts b/arkoala/arkui/src/ArkTimePicker.ts index 3222df680..190d7f9b7 100644 --- a/arkoala/arkui/src/ArkTimePicker.ts +++ b/arkoala/arkui/src/ArkTimePicker.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return (this.peer as ArkTimePickerPeer) } /** @memo */ - setTimePickerOptions(options?: TimePickerOptions): this { + public setTimePickerOptions(options?: TimePickerOptions): this { if (this.checkPriority("setTimePickerOptions")) { const options_casted = options as (TimePickerOptions | undefined) this.getPeer()?.setTimePickerOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - useMilitaryTime(value: boolean): this { + public useMilitaryTime(value: boolean): this { if (this.checkPriority("useMilitaryTime")) { const value_casted = value as (boolean) this.getPeer()?.useMilitaryTimeAttribute(value_casted) @@ -77,7 +77,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -86,7 +86,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - disappearTextStyle(value: PickerTextStyle): this { + public disappearTextStyle(value: PickerTextStyle): this { if (this.checkPriority("disappearTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.disappearTextStyleAttribute(value_casted) @@ -95,7 +95,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textStyle(value: PickerTextStyle): this { + public textStyle(value: PickerTextStyle): this { if (this.checkPriority("textStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.textStyleAttribute(value_casted) @@ -104,7 +104,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedTextStyle(value: PickerTextStyle): this { + public selectedTextStyle(value: PickerTextStyle): this { if (this.checkPriority("selectedTextStyle")) { const value_casted = value as (PickerTextStyle) this.getPeer()?.selectedTextStyleAttribute(value_casted) @@ -113,7 +113,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - dateTimeOptions(value: DateTimeOptions): this { + public dateTimeOptions(value: DateTimeOptions): this { if (this.checkPriority("dateTimeOptions")) { const value_casted = value as (DateTimeOptions) this.getPeer()?.dateTimeOptionsAttribute(value_casted) @@ -122,7 +122,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((value: TimePickerResult) => void)): this { + public onChange(value: ((value: TimePickerResult) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((value: TimePickerResult) => void)) UseEventsProperties({TimePicker_onChange: value_casted}) @@ -132,7 +132,7 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -141,11 +141,11 @@ export class ArkTimePickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_selected(callback: ((parameter: Date) => void)): void { - if (this.checkPriority("__onChangeEvent_selected")) { + public _onChangeEvent_selected(callback: ((parameter: Date) => void)): void { + if (this.checkPriority("_onChangeEvent_selected")) { const callback_casted = callback as (((parameter: Date) => void)) - UseEventsProperties({TimePicker___onChangeEvent_selected: callback_casted}) - this.getPeer()?.__onChangeEvent_selectedAttribute(callback_casted) + UseEventsProperties({TimePicker__onChangeEvent_selected: callback_casted}) + this.getPeer()?._onChangeEvent_selectedAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts b/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts index 4f3269716..d34d208a9 100644 --- a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts @@ -28,7 +28,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -51,7 +51,7 @@ export class TimePickerDialog implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TimePickerDialog_getFinalizer() } - static show(options?: TimePickerDialogOptions): undefined { + public static show(options?: TimePickerDialogOptions): undefined { const options_casted = options as (TimePickerDialogOptions | undefined) return TimePickerDialog.show_serialize(options_casted) } diff --git a/arkoala/arkui/src/ArkTimePickerInterfaces.ts b/arkoala/arkui/src/ArkTimePickerInterfaces.ts index fa2996a42..59f22c246 100644 --- a/arkoala/arkui/src/ArkTimePickerInterfaces.ts +++ b/arkoala/arkui/src/ArkTimePickerInterfaces.ts @@ -64,7 +64,7 @@ export interface TimePickerOptions { } export type TimePickerInterface = (options?: TimePickerOptions) => TimePickerAttribute; export interface DateTimeOptions { - __DateTimeOptionsStub: string; + _DateTimeOptionsStub: string; } export interface TimePickerAttribute extends CommonMethod { useMilitaryTime: boolean; diff --git a/arkoala/arkui/src/ArkToggle.ts b/arkoala/arkui/src/ArkToggle.ts index 651253d14..58f437cfb 100644 --- a/arkoala/arkui/src/ArkToggle.ts +++ b/arkoala/arkui/src/ArkToggle.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -59,7 +59,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return (this.peer as ArkTogglePeer) } /** @memo */ - setToggleOptions(options: ToggleOptions): this { + public setToggleOptions(options: ToggleOptions): this { if (this.checkPriority("setToggleOptions")) { const options_casted = options as (ToggleOptions) this.getPeer()?.setToggleOptionsAttribute(options_casted) @@ -68,7 +68,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onChange(value: ((parameter: boolean) => void)): this { + public onChange(value: ((parameter: boolean) => void)): this { if (this.checkPriority("onChange")) { const value_casted = value as (((parameter: boolean) => void)) UseEventsProperties({Toggle_onChange: value_casted}) @@ -78,7 +78,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - contentModifier(value: ContentModifier): this { + public contentModifier(value: ContentModifier): this { if (this.checkPriority("contentModifier")) { const value_casted = value as (ContentModifier) this.getPeer()?.contentModifierAttribute(value_casted) @@ -87,7 +87,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectedColor(value: ResourceColor): this { + public selectedColor(value: ResourceColor): this { if (this.checkPriority("selectedColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.selectedColorAttribute(value_casted) @@ -96,7 +96,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - switchPointColor(value: ResourceColor): this { + public switchPointColor(value: ResourceColor): this { if (this.checkPriority("switchPointColor")) { const value_casted = value as (ResourceColor) this.getPeer()?.switchPointColorAttribute(value_casted) @@ -105,7 +105,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - switchStyle(value: SwitchStyle): this { + public switchStyle(value: SwitchStyle): this { if (this.checkPriority("switchStyle")) { const value_casted = value as (SwitchStyle) this.getPeer()?.switchStyleAttribute(value_casted) @@ -114,11 +114,11 @@ export class ArkToggleComponent extends ArkCommonMethodComponent { return this } /** @memo */ - __onChangeEvent_isOn(callback: ((parameter: boolean) => void)): void { - if (this.checkPriority("__onChangeEvent_isOn")) { + public _onChangeEvent_isOn(callback: ((parameter: boolean) => void)): void { + if (this.checkPriority("_onChangeEvent_isOn")) { const callback_casted = callback as (((parameter: boolean) => void)) - UseEventsProperties({Toggle___onChangeEvent_isOn: callback_casted}) - this.getPeer()?.__onChangeEvent_isOnAttribute(callback_casted) + UseEventsProperties({Toggle__onChangeEvent_isOn: callback_casted}) + this.getPeer()?._onChangeEvent_isOnAttribute(callback_casted) return } return diff --git a/arkoala/arkui/src/ArkTouchEventMaterialized.ts b/arkoala/arkui/src/ArkTouchEventMaterialized.ts index 631dd78b8..c4bef320e 100644 --- a/arkoala/arkui/src/ArkTouchEventMaterialized.ts +++ b/arkoala/arkui/src/ArkTouchEventMaterialized.ts @@ -25,7 +25,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -84,7 +84,7 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TouchEvent_getFinalizer() } - getHistoricalPoints(): Array { + public getHistoricalPoints(): Array { return this.getHistoricalPoints_serialize() } private getType(): TouchType { @@ -105,11 +105,17 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize this?.setChangedTouches_serialize(changedTouches_casted) return } + private getStopPropagation(): (() => void) { + return this.getStopPropagation_serialize() + } private setStopPropagation(stopPropagation: (() => void)): void { const stopPropagation_casted = stopPropagation as ((() => void)) this?.setStopPropagation_serialize(stopPropagation_casted) return } + private getPreventDefault(): (() => void) { + return this.getPreventDefault_serialize() + } private setPreventDefault(preventDefault: (() => void)): void { const preventDefault_casted = preventDefault as ((() => void)) this?.setPreventDefault_serialize(preventDefault_casted) @@ -146,12 +152,20 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize ArkUIGeneratedNativeModule._TouchEvent_setChangedTouches(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getStopPropagation_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getStopPropagation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setStopPropagation_serialize(stopPropagation: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(stopPropagation) ArkUIGeneratedNativeModule._TouchEvent_setStopPropagation(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getPreventDefault_serialize(): (() => void) { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getPreventDefault(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setPreventDefault_serialize(preventDefault: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(preventDefault) diff --git a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts b/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts index 8c445343b..ee3f25140 100644 --- a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts +++ b/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -78,36 +78,36 @@ export class TransitionEffect implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TransitionEffect_getFinalizer() } - static translate(options: TranslateOptions): TransitionEffect { + public static translate(options: TranslateOptions): TransitionEffect { const options_casted = options as (TranslateOptions) return TransitionEffect.translate_serialize(options_casted) } - static rotate(options: RotateOptions): TransitionEffect { + public static rotate(options: RotateOptions): TransitionEffect { const options_casted = options as (RotateOptions) return TransitionEffect.rotate_serialize(options_casted) } - static scale(options: ScaleOptions): TransitionEffect { + public static scale(options: ScaleOptions): TransitionEffect { const options_casted = options as (ScaleOptions) return TransitionEffect.scale_serialize(options_casted) } - static opacity(alpha: number): TransitionEffect { + public static opacity(alpha: number): TransitionEffect { const alpha_casted = alpha as (number) return TransitionEffect.opacity_serialize(alpha_casted) } - static move(edge: TransitionEdge): TransitionEffect { + public static move(edge: TransitionEdge): TransitionEffect { const edge_casted = edge as (TransitionEdge) return TransitionEffect.move_serialize(edge_casted) } - static asymmetric(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect { + public static asymmetric(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect { const appear_casted = appear as (TransitionEffect) const disappear_casted = disappear as (TransitionEffect) return TransitionEffect.asymmetric_serialize(appear_casted, disappear_casted) } - animation(value: AnimateParam): TransitionEffect { + public animation(value: AnimateParam): TransitionEffect { const value_casted = value as (AnimateParam) return this.animation_serialize(value_casted) } - combine(transitionEffect: TransitionEffect): TransitionEffect { + public combine(transitionEffect: TransitionEffect): TransitionEffect { const transitionEffect_casted = transitionEffect as (TransitionEffect) return this.combine_serialize(transitionEffect_casted) } diff --git a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts b/arkoala/arkui/src/ArkUICommonEventMaterialized.ts index c94ce8247..78f6fb499 100644 --- a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts +++ b/arkoala/arkui/src/ArkUICommonEventMaterialized.ts @@ -29,7 +29,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -62,57 +62,57 @@ export class UICommonEventInternal implements MaterializedBase,UICommonEvent { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._UICommonEvent_getFinalizer() } - setOnClick(callback_?: ((event: ClickEvent) => void)): void { + public setOnClick(callback_?: ((event: ClickEvent) => void)): void { const callback__casted = callback_ as (((event: ClickEvent) => void) | undefined) this?.setOnClick_serialize(callback__casted) return } - setOnTouch(callback_?: ((event: TouchEvent) => void)): void { + public setOnTouch(callback_?: ((event: TouchEvent) => void)): void { const callback__casted = callback_ as (((event: TouchEvent) => void) | undefined) this?.setOnTouch_serialize(callback__casted) return } - setOnAppear(callback_?: (() => void)): void { + public setOnAppear(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this?.setOnAppear_serialize(callback__casted) return } - setOnDisappear(callback_?: (() => void)): void { + public setOnDisappear(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this?.setOnDisappear_serialize(callback__casted) return } - setOnKeyEvent(callback_?: ((event: KeyEvent) => void)): void { + public setOnKeyEvent(callback_?: ((event: KeyEvent) => void)): void { const callback__casted = callback_ as (((event: KeyEvent) => void) | undefined) this?.setOnKeyEvent_serialize(callback__casted) return } - setOnFocus(callback_?: (() => void)): void { + public setOnFocus(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this?.setOnFocus_serialize(callback__casted) return } - setOnBlur(callback_?: (() => void)): void { + public setOnBlur(callback_?: (() => void)): void { const callback__casted = callback_ as ((() => void) | undefined) this?.setOnBlur_serialize(callback__casted) return } - setOnHover(callback_?: HoverCallback): void { + public setOnHover(callback_?: HoverCallback): void { const callback__casted = callback_ as (HoverCallback | undefined) this?.setOnHover_serialize(callback__casted) return } - setOnMouse(callback_?: ((event: MouseEvent) => void)): void { + public setOnMouse(callback_?: ((event: MouseEvent) => void)): void { const callback__casted = callback_ as (((event: MouseEvent) => void) | undefined) this?.setOnMouse_serialize(callback__casted) return } - setOnSizeChange(callback_?: SizeChangeCallback): void { + public setOnSizeChange(callback_?: SizeChangeCallback): void { const callback__casted = callback_ as (SizeChangeCallback | undefined) this?.setOnSizeChange_serialize(callback__casted) return } - setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event?: VisibleAreaChangeCallback): void { + public setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event?: VisibleAreaChangeCallback): void { const options_casted = options as (VisibleAreaEventOptions) const event_casted = event as (VisibleAreaChangeCallback | undefined) this?.setOnVisibleAreaApproximateChange_serialize(options_casted, event_casted) diff --git a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts b/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts index d29451b3d..d0d052d04 100644 --- a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -49,31 +49,31 @@ export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionPro static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._UIExtensionProxy_getFinalizer() } - send(data: Map): void { + public send(data: Map): void { const data_casted = data as (Map) this?.send_serialize(data_casted) return } - sendSync(data: Map): Map { + public sendSync(data: Map): Map { const data_casted = data as (Map) return this.sendSync_serialize(data_casted) } - onAsyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { + public onAsyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void)) this?.onAsyncReceiverRegister_serialize(callback__casted) return } - onSyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { + public onSyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void)) this?.onSyncReceiverRegister_serialize(callback__casted) return } - offAsyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { + public offAsyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void) | undefined) this?.offAsyncReceiverRegister_serialize(callback__casted) return } - offSyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { + public offSyncReceiverRegister(callback_?: ((parameter: UIExtensionProxy) => void)): void { const callback__casted = callback_ as (((parameter: UIExtensionProxy) => void) | undefined) this?.offSyncReceiverRegister_serialize(callback__casted) return diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts b/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts index 65e8c3892..efe5d1fa8 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts +++ b/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts @@ -273,10 +273,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _AlphabetIndexerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _AlphabetIndexerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._AlphabetIndexerAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._AlphabetIndexerAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -784,10 +784,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CheckboxAttribute___onChangeEvent_select(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _CheckboxAttribute__onChangeEvent_select(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._CheckboxAttribute___onChangeEvent_select(ptr, thisArray, thisLength) + return this._CheckboxAttribute__onChangeEvent_select(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -847,10 +847,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CheckboxGroupAttribute___onChangeEvent_selectAll(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _CheckboxGroupAttribute__onChangeEvent_selectAll(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._CheckboxGroupAttribute___onChangeEvent_selectAll(ptr, thisArray, thisLength) + return this._CheckboxGroupAttribute__onChangeEvent_selectAll(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -2716,10 +2716,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _DatePickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _DatePickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._DatePickerAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._DatePickerAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -3409,10 +3409,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GridItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _GridItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._GridItemAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._GridItemAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -4235,10 +4235,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ListItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _ListItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._ListItemAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._ListItemAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -4550,10 +4550,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _MenuItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _MenuItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._MenuItemAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._MenuItemAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -4921,10 +4921,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _PanelAttribute___onChangeEvent_mode(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _PanelAttribute__onChangeEvent_mode(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._PanelAttribute___onChangeEvent_mode(ptr, thisArray, thisLength) + return this._PanelAttribute__onChangeEvent_mode(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -5271,10 +5271,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RadioAttribute___onChangeEvent_checked(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _RadioAttribute__onChangeEvent_checked(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._RadioAttribute___onChangeEvent_checked(ptr, thisArray, thisLength) + return this._RadioAttribute__onChangeEvent_checked(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -5327,10 +5327,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RatingAttribute___onChangeEvent_rating(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _RatingAttribute__onChangeEvent_rating(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._RatingAttribute___onChangeEvent_rating(ptr, thisArray, thisLength) + return this._RatingAttribute__onChangeEvent_rating(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -5425,10 +5425,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RefreshAttribute___onChangeEvent_refreshing(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _RefreshAttribute__onChangeEvent_refreshing(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._RefreshAttribute___onChangeEvent_refreshing(ptr, thisArray, thisLength) + return this._RefreshAttribute__onChangeEvent_refreshing(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -6307,10 +6307,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _SearchAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _SearchAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._SearchAttribute___onChangeEvent_value(ptr, thisArray, thisLength) + return this._SearchAttribute__onChangeEvent_value(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -6643,17 +6643,17 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _SelectAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _SelectAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._SelectAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._SelectAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } - static _SelectAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _SelectAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._SelectAttribute___onChangeEvent_value(ptr, thisArray, thisLength) + return this._SelectAttribute__onChangeEvent_value(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -6930,10 +6930,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _SliderAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _SliderAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._SliderAttribute___onChangeEvent_value(ptr, thisArray, thisLength) + return this._SliderAttribute__onChangeEvent_value(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -7126,10 +7126,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _StepperAttribute___onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _StepperAttribute__onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._StepperAttribute___onChangeEvent_index(ptr, thisArray, thisLength) + return this._StepperAttribute__onChangeEvent_index(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -7371,10 +7371,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _SwiperAttribute___onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _SwiperAttribute__onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._SwiperAttribute___onChangeEvent_index(ptr, thisArray, thisLength) + return this._SwiperAttribute__onChangeEvent_index(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -7742,10 +7742,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TabsAttribute___onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _TabsAttribute__onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TabsAttribute___onChangeEvent_index(ptr, thisArray, thisLength) + return this._TabsAttribute__onChangeEvent_index(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -8491,10 +8491,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextAreaAttribute___onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _TextAreaAttribute__onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TextAreaAttribute___onChangeEvent_text(ptr, thisArray, thisLength) + return this._TextAreaAttribute__onChangeEvent_text(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -9058,10 +9058,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextInputAttribute___onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _TextInputAttribute__onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TextInputAttribute___onChangeEvent_text(ptr, thisArray, thisLength) + return this._TextInputAttribute__onChangeEvent_text(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -9156,17 +9156,17 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextPickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _TextPickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TextPickerAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._TextPickerAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } - static _TextPickerAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _TextPickerAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TextPickerAttribute___onChangeEvent_value(ptr, thisArray, thisLength) + return this._TextPickerAttribute__onChangeEvent_value(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -9317,10 +9317,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TimePickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _TimePickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TimePickerAttribute___onChangeEvent_selected(ptr, thisArray, thisLength) + return this._TimePickerAttribute__onChangeEvent_selected(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -9373,10 +9373,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ToggleAttribute___onChangeEvent_isOn(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _ToggleAttribute__onChangeEvent_isOn(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._ToggleAttribute___onChangeEvent_isOn(ptr, thisArray, thisLength) + return this._ToggleAttribute__onChangeEvent_isOn(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -10563,10 +10563,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _SideBarContainerAttribute___onChangeEvent_showSideBar(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _SideBarContainerAttribute__onChangeEvent_showSideBar(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._SideBarContainerAttribute___onChangeEvent_showSideBar(ptr, thisArray, thisLength) + return this._SideBarContainerAttribute__onChangeEvent_showSideBar(ptr, thisArray, thisLength) } throw new Error("Not implemented") } @@ -10808,31 +10808,38 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _AnimationExtender_SetClipRect(peer: KPointer, left: number, top: number, right: number, bottom: number): void { + static _AnimationExtender_SetClipRect(node: KPointer, x: KFloat, y: KFloat, width: KFloat, height: KFloat): void { if ((this._LoadOnce()) == (true)) { - return this._AnimationExtender_SetClipRect(peer, left, top, right, bottom) + return this._AnimationExtender_SetClipRect(node, x, y, width, height) } throw new Error("Not implemented") } - static _AnimationExtender_OpenImplicitAnimation(peer: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _AnimationExtender_OpenImplicitAnimation(thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._AnimationExtender_OpenImplicitAnimation(peer, thisArray, thisLength) + return this._AnimationExtender_OpenImplicitAnimation(thisArray, thisLength) } throw new Error("Not implemented") } - static _AnimationExtender_CloseImplicitAnimation(node: KPointer): void { + static _AnimationExtender_CloseImplicitAnimation(): void { if ((this._LoadOnce()) == (true)) { - return this._AnimationExtender_CloseImplicitAnimation(node) + return this._AnimationExtender_CloseImplicitAnimation() } throw new Error("Not implemented") } - static _AnimationExtender_StartDoubleAnimation(peer: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _AnimationExtender_StartDoubleAnimation(node: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._AnimationExtender_StartDoubleAnimation(peer, thisArray, thisLength) + return this._AnimationExtender_StartDoubleAnimation(node, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _AnimationExtender_AnimationTranslate(node: KPointer, thisArray: Uint8Array, thisLength: int32): void { + if ((this._LoadOnce()) == (true)) + { + return this._AnimationExtender_AnimationTranslate(node, thisArray, thisLength) } throw new Error("Not implemented") } @@ -11060,10 +11067,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(type: KInt, sourceType: KInt, time: number): void { + static _GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType: KInt, sourceType: KInt, time: number): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(type, sourceType, time) + return this._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType, sourceType, time) } throw new Error("Not implemented") } @@ -11326,6 +11333,62 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _SpringProp_ctor(mass: number, stiffness: number, damping: number): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SpringProp_ctor(mass, stiffness, damping) + } + throw new Error("Not implemented") + } + static _SpringProp_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SpringProp_getFinalizer() + } + throw new Error("Not implemented") + } + static _SpringMotion_ctor(start: number, end: number, velocity: number, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SpringMotion_ctor(start, end, velocity, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _SpringMotion_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SpringMotion_getFinalizer() + } + throw new Error("Not implemented") + } + static _FrictionMotion_ctor(friction: number, position: number, velocity: number): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._FrictionMotion_ctor(friction, position, velocity) + } + throw new Error("Not implemented") + } + static _FrictionMotion_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._FrictionMotion_getFinalizer() + } + throw new Error("Not implemented") + } + static _ScrollMotion_ctor(position: number, velocity: number, min: number, max: number, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ScrollMotion_ctor(position, velocity, min, max, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _ScrollMotion_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ScrollMotion_getFinalizer() + } + throw new Error("Not implemented") + } static _CalendarController_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -11550,6 +11613,62 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _ImageData_ctor(width: number, height: number, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ImageData_ctor(width, height, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _ImageData_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ImageData_getFinalizer() + } + throw new Error("Not implemented") + } + static _ImageData_getHeight(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._ImageData_getHeight(ptr) + } + throw new Error("Not implemented") + } + static _ImageData_getWidth(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._ImageData_getWidth(ptr) + } + throw new Error("Not implemented") + } + static _RenderingContextSettings_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._RenderingContextSettings_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _RenderingContextSettings_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._RenderingContextSettings_getFinalizer() + } + throw new Error("Not implemented") + } + static _RenderingContextSettings_getAntialias(ptr: KPointer): boolean { + if ((this._LoadOnce()) == (true)) + { + return this._RenderingContextSettings_getAntialias(ptr) + } + throw new Error("Not implemented") + } + static _RenderingContextSettings_setAntialias(ptr: KPointer, antialias: KInt): void { + if ((this._LoadOnce()) == (true)) + { + return this._RenderingContextSettings_setAntialias(ptr, antialias) + } + throw new Error("Not implemented") + } static _CanvasRenderer_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -12642,6 +12761,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _ClickEvent_getPreventDefault(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ClickEvent_getPreventDefault(ptr) + } + throw new Error("Not implemented") + } static _ClickEvent_setPreventDefault(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -12663,6 +12789,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _HoverEvent_getStopPropagation(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._HoverEvent_getStopPropagation(ptr) + } + throw new Error("Not implemented") + } static _HoverEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -12824,6 +12957,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _MouseEvent_getStopPropagation(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._MouseEvent_getStopPropagation(ptr) + } + throw new Error("Not implemented") + } static _MouseEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -12992,6 +13132,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TouchEvent_getStopPropagation(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TouchEvent_getStopPropagation(ptr) + } + throw new Error("Not implemented") + } static _TouchEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -12999,6 +13146,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TouchEvent_getPreventDefault(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TouchEvent_getPreventDefault(ptr) + } + throw new Error("Not implemented") + } static _TouchEvent_setPreventDefault(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -13300,6 +13454,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _KeyEvent_getStopPropagation(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._KeyEvent_getStopPropagation(ptr) + } + throw new Error("Not implemented") + } static _KeyEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -13636,20 +13797,6 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_common_ctor(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_ctor() - } - throw new Error("Not implemented") - } - static _GlobalScope_common_getFinalizer(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_getFinalizer() - } - throw new Error("Not implemented") - } static _GlobalScope_common_getContext(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -13804,6 +13951,20 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _LinearGradient_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._LinearGradient_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _LinearGradient_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._LinearGradient_getFinalizer() + } + throw new Error("Not implemented") + } static _DatePickerDialog_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -14714,6 +14875,69 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _NavPathInfo_ctor(name: KStringPtr, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_ctor(name, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _NavPathInfo_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_getFinalizer() + } + throw new Error("Not implemented") + } + static _NavPathInfo_getName(ptr: KPointer): string { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_getName(ptr) + } + throw new Error("Not implemented") + } + static _NavPathInfo_setName(ptr: KPointer, name: KStringPtr): void { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_setName(ptr, name) + } + throw new Error("Not implemented") + } + static _NavPathInfo_setParam(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_setParam(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _NavPathInfo_getOnPop(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_getOnPop(ptr) + } + throw new Error("Not implemented") + } + static _NavPathInfo_setOnPop(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_setOnPop(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _NavPathInfo_getIsEntry(ptr: KPointer): boolean { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_getIsEntry(ptr) + } + throw new Error("Not implemented") + } + static _NavPathInfo_setIsEntry(ptr: KPointer, isEntry: KInt): void { + if ((this._LoadOnce()) == (true)) + { + return this._NavPathInfo_setIsEntry(ptr, isEntry) + } + throw new Error("Not implemented") + } static _NavPathStack_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -15547,234 +15771,430 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TabsController_ctor(): KPointer { + static _ScaleSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabsController_ctor() + return this._ScaleSymbolEffect_ctor(thisArray, thisLength) } throw new Error("Not implemented") } - static _TabsController_getFinalizer(): KPointer { + static _ScaleSymbolEffect_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabsController_getFinalizer() + return this._ScaleSymbolEffect_getFinalizer() } throw new Error("Not implemented") } - static _TabsController_changeIndex(ptr: KPointer, value: number): void { + static _ScaleSymbolEffect_getScope(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabsController_changeIndex(ptr, value) + return this._ScaleSymbolEffect_getScope(ptr) } throw new Error("Not implemented") } - static _TabsController_preloadItems(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _ScaleSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TabsController_preloadItems(ptr, thisArray, thisLength) + return this._ScaleSymbolEffect_setScope(ptr, scope) } throw new Error("Not implemented") } - static _TabsController_setTabBarTranslate(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _ScaleSymbolEffect_getDirection(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabsController_setTabBarTranslate(ptr, thisArray, thisLength) + return this._ScaleSymbolEffect_getDirection(ptr) } throw new Error("Not implemented") } - static _TabsController_setTabBarOpacity(ptr: KPointer, opacity: number): void { + static _ScaleSymbolEffect_setDirection(ptr: KPointer, direction: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TabsController_setTabBarOpacity(ptr, opacity) + return this._ScaleSymbolEffect_setDirection(ptr, direction) } throw new Error("Not implemented") } - static _TabContentTransitionProxy_ctor(): KPointer { + static _HierarchicalSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_ctor() + return this._HierarchicalSymbolEffect_ctor(thisArray, thisLength) } throw new Error("Not implemented") } - static _TabContentTransitionProxy_getFinalizer(): KPointer { + static _HierarchicalSymbolEffect_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_getFinalizer() + return this._HierarchicalSymbolEffect_getFinalizer() } throw new Error("Not implemented") } - static _TabContentTransitionProxy_finishTransition(ptr: KPointer): void { + static _HierarchicalSymbolEffect_getFillStyle(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_finishTransition(ptr) + return this._HierarchicalSymbolEffect_getFillStyle(ptr) } throw new Error("Not implemented") } - static _TabContentTransitionProxy_getFrom(ptr: KPointer): number { + static _HierarchicalSymbolEffect_setFillStyle(ptr: KPointer, fillStyle: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_getFrom(ptr) + return this._HierarchicalSymbolEffect_setFillStyle(ptr, fillStyle) } throw new Error("Not implemented") } - static _TabContentTransitionProxy_setFrom(ptr: KPointer, from: number): void { + static _AppearSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_setFrom(ptr, from) + return this._AppearSymbolEffect_ctor(thisArray, thisLength) } throw new Error("Not implemented") } - static _TabContentTransitionProxy_getTo(ptr: KPointer): number { + static _AppearSymbolEffect_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_getTo(ptr) + return this._AppearSymbolEffect_getFinalizer() } throw new Error("Not implemented") } - static _TabContentTransitionProxy_setTo(ptr: KPointer, to: number): void { + static _AppearSymbolEffect_getScope(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TabContentTransitionProxy_setTo(ptr, to) + return this._AppearSymbolEffect_getScope(ptr) } throw new Error("Not implemented") } - static _TextController_ctor(): KPointer { + static _AppearSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TextController_ctor() + return this._AppearSymbolEffect_setScope(ptr, scope) } throw new Error("Not implemented") } - static _TextController_getFinalizer(): KPointer { + static _DisappearSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextController_getFinalizer() + return this._DisappearSymbolEffect_ctor(thisArray, thisLength) } throw new Error("Not implemented") } - static _TextController_closeSelectionMenu(ptr: KPointer): void { + static _DisappearSymbolEffect_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextController_closeSelectionMenu(ptr) + return this._DisappearSymbolEffect_getFinalizer() } throw new Error("Not implemented") } - static _TextController_setStyledString(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + static _DisappearSymbolEffect_getScope(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextController_setStyledString(ptr, thisArray, thisLength) + return this._DisappearSymbolEffect_getScope(ptr) } throw new Error("Not implemented") } - static _TextController_getLayoutManager(ptr: KPointer): KPointer { + static _DisappearSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TextController_getLayoutManager(ptr) + return this._DisappearSymbolEffect_setScope(ptr, scope) } throw new Error("Not implemented") } - static _TextAreaController_ctor(): KPointer { + static _BounceSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextAreaController_ctor() + return this._BounceSymbolEffect_ctor(thisArray, thisLength) } throw new Error("Not implemented") } - static _TextAreaController_getFinalizer(): KPointer { + static _BounceSymbolEffect_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextAreaController_getFinalizer() + return this._BounceSymbolEffect_getFinalizer() } throw new Error("Not implemented") } - static _TextAreaController_caretPosition(ptr: KPointer, value: number): void { + static _BounceSymbolEffect_getScope(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextAreaController_caretPosition(ptr, value) + return this._BounceSymbolEffect_getScope(ptr) } throw new Error("Not implemented") } - static _TextAreaController_setTextSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: Uint8Array, thisLength: int32): void { + static _BounceSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TextAreaController_setTextSelection(ptr, selectionStart, selectionEnd, thisArray, thisLength) + return this._BounceSymbolEffect_setScope(ptr, scope) } throw new Error("Not implemented") } - static _TextAreaController_stopEditing(ptr: KPointer): void { + static _BounceSymbolEffect_getDirection(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextAreaController_stopEditing(ptr) + return this._BounceSymbolEffect_getDirection(ptr) } throw new Error("Not implemented") } - static _TextClockController_ctor(): KPointer { + static _BounceSymbolEffect_setDirection(ptr: KPointer, direction: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TextClockController_ctor() + return this._BounceSymbolEffect_setDirection(ptr, direction) } throw new Error("Not implemented") } - static _TextClockController_getFinalizer(): KPointer { + static _ReplaceSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextClockController_getFinalizer() + return this._ReplaceSymbolEffect_ctor(thisArray, thisLength) } throw new Error("Not implemented") } - static _TextClockController_start(ptr: KPointer): undefined { + static _ReplaceSymbolEffect_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextClockController_start(ptr) + return this._ReplaceSymbolEffect_getFinalizer() } throw new Error("Not implemented") } - static _TextClockController_stop(ptr: KPointer): undefined { + static _ReplaceSymbolEffect_getScope(ptr: KPointer): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextClockController_stop(ptr) + return this._ReplaceSymbolEffect_getScope(ptr) } throw new Error("Not implemented") } - static _TextBaseController_ctor(): KPointer { + static _ReplaceSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._TextBaseController_ctor() + return this._ReplaceSymbolEffect_setScope(ptr, scope) } throw new Error("Not implemented") } - static _TextBaseController_getFinalizer(): KPointer { + static _TabsController_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextBaseController_getFinalizer() + return this._TabsController_ctor() } throw new Error("Not implemented") } - static _TextBaseController_setSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: Uint8Array, thisLength: int32): void { + static _TabsController_getFinalizer(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextBaseController_setSelection(ptr, selectionStart, selectionEnd, thisArray, thisLength) + return this._TabsController_getFinalizer() } throw new Error("Not implemented") } - static _TextBaseController_closeSelectionMenu(ptr: KPointer): void { + static _TabsController_changeIndex(ptr: KPointer, value: number): void { if ((this._LoadOnce()) == (true)) { - return this._TextBaseController_closeSelectionMenu(ptr) + return this._TabsController_changeIndex(ptr, value) } throw new Error("Not implemented") } - static _TextBaseController_getLayoutManager(ptr: KPointer): KPointer { + static _TabsController_preloadItems(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { - return this._TextBaseController_getLayoutManager(ptr) + return this._TabsController_preloadItems(ptr, thisArray, thisLength) } throw new Error("Not implemented") } - static _TextEditControllerEx_ctor(): KPointer { + static _TabsController_setTabBarTranslate(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._TextEditControllerEx_ctor() + return this._TabsController_setTabBarTranslate(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _TabsController_setTabBarOpacity(ptr: KPointer, opacity: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._TabsController_setTabBarOpacity(ptr, opacity) + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_ctor() + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_getFinalizer() + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_finishTransition(ptr: KPointer): void { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_finishTransition(ptr) + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_getFrom(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_getFrom(ptr) + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_setFrom(ptr: KPointer, from: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_setFrom(ptr, from) + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_getTo(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_getTo(ptr) + } + throw new Error("Not implemented") + } + static _TabContentTransitionProxy_setTo(ptr: KPointer, to: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._TabContentTransitionProxy_setTo(ptr, to) + } + throw new Error("Not implemented") + } + static _TextController_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextController_ctor() + } + throw new Error("Not implemented") + } + static _TextController_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextController_getFinalizer() + } + throw new Error("Not implemented") + } + static _TextController_closeSelectionMenu(ptr: KPointer): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextController_closeSelectionMenu(ptr) + } + throw new Error("Not implemented") + } + static _TextController_setStyledString(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextController_setStyledString(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _TextController_getLayoutManager(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextController_getLayoutManager(ptr) + } + throw new Error("Not implemented") + } + static _TextAreaController_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextAreaController_ctor() + } + throw new Error("Not implemented") + } + static _TextAreaController_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextAreaController_getFinalizer() + } + throw new Error("Not implemented") + } + static _TextAreaController_caretPosition(ptr: KPointer, value: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextAreaController_caretPosition(ptr, value) + } + throw new Error("Not implemented") + } + static _TextAreaController_setTextSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: Uint8Array, thisLength: int32): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextAreaController_setTextSelection(ptr, selectionStart, selectionEnd, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _TextAreaController_stopEditing(ptr: KPointer): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextAreaController_stopEditing(ptr) + } + throw new Error("Not implemented") + } + static _TextClockController_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextClockController_ctor() + } + throw new Error("Not implemented") + } + static _TextClockController_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextClockController_getFinalizer() + } + throw new Error("Not implemented") + } + static _TextClockController_start(ptr: KPointer): undefined { + if ((this._LoadOnce()) == (true)) + { + return this._TextClockController_start(ptr) + } + throw new Error("Not implemented") + } + static _TextClockController_stop(ptr: KPointer): undefined { + if ((this._LoadOnce()) == (true)) + { + return this._TextClockController_stop(ptr) + } + throw new Error("Not implemented") + } + static _TextBaseController_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextBaseController_ctor() + } + throw new Error("Not implemented") + } + static _TextBaseController_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextBaseController_getFinalizer() + } + throw new Error("Not implemented") + } + static _TextBaseController_setSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: Uint8Array, thisLength: int32): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextBaseController_setSelection(ptr, selectionStart, selectionEnd, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _TextBaseController_closeSelectionMenu(ptr: KPointer): void { + if ((this._LoadOnce()) == (true)) + { + return this._TextBaseController_closeSelectionMenu(ptr) + } + throw new Error("Not implemented") + } + static _TextBaseController_getLayoutManager(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextBaseController_getLayoutManager(ptr) + } + throw new Error("Not implemented") + } + static _TextEditControllerEx_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextEditControllerEx_ctor() } throw new Error("Not implemented") } @@ -16093,6 +16513,20 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _ColorFilter_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ColorFilter_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _ColorFilter_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ColorFilter_getFinalizer() + } + throw new Error("Not implemented") + } static _VideoController_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -17472,6 +17906,251 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TextStyle_styled_string_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextStyle_styled_string_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _TextStyle_styled_string_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextStyle_styled_string_getFinalizer() + } + throw new Error("Not implemented") + } + static _TextStyle_styled_string_getFontFamily(ptr: KPointer): string { + if ((this._LoadOnce()) == (true)) + { + return this._TextStyle_styled_string_getFontFamily(ptr) + } + throw new Error("Not implemented") + } + static _TextStyle_styled_string_getFontSize(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._TextStyle_styled_string_getFontSize(ptr) + } + throw new Error("Not implemented") + } + static _TextStyle_styled_string_getFontWeight(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._TextStyle_styled_string_getFontWeight(ptr) + } + throw new Error("Not implemented") + } + static _TextStyle_styled_string_getFontStyle(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextStyle_styled_string_getFontStyle(ptr) + } + throw new Error("Not implemented") + } + static _DecorationStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._DecorationStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _DecorationStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._DecorationStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _DecorationStyle_getType(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._DecorationStyle_getType(ptr) + } + throw new Error("Not implemented") + } + static _DecorationStyle_getStyle(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._DecorationStyle_getStyle(ptr) + } + throw new Error("Not implemented") + } + static _BaselineOffsetStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._BaselineOffsetStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _BaselineOffsetStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._BaselineOffsetStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _BaselineOffsetStyle_getBaselineOffset(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._BaselineOffsetStyle_getBaselineOffset(ptr) + } + throw new Error("Not implemented") + } + static _LetterSpacingStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._LetterSpacingStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _LetterSpacingStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._LetterSpacingStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _LetterSpacingStyle_getLetterSpacing(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._LetterSpacingStyle_getLetterSpacing(ptr) + } + throw new Error("Not implemented") + } + static _TextShadowStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextShadowStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _TextShadowStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextShadowStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._BackgroundColorStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _BackgroundColorStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._BackgroundColorStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _GestureStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._GestureStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _GestureStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._GestureStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _ParagraphStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _ParagraphStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _ParagraphStyle_getTextAlign(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_getTextAlign(ptr) + } + throw new Error("Not implemented") + } + static _ParagraphStyle_getTextIndent(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_getTextIndent(ptr) + } + throw new Error("Not implemented") + } + static _ParagraphStyle_getMaxLines(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_getMaxLines(ptr) + } + throw new Error("Not implemented") + } + static _ParagraphStyle_getOverflow(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_getOverflow(ptr) + } + throw new Error("Not implemented") + } + static _ParagraphStyle_getWordBreak(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ParagraphStyle_getWordBreak(ptr) + } + throw new Error("Not implemented") + } + static _LineHeightStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._LineHeightStyle_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _LineHeightStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._LineHeightStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _LineHeightStyle_getLineHeight(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._LineHeightStyle_getLineHeight(ptr) + } + throw new Error("Not implemented") + } + static _UrlStyle_ctor(url: KStringPtr): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._UrlStyle_ctor(url) + } + throw new Error("Not implemented") + } + static _UrlStyle_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._UrlStyle_getFinalizer() + } + throw new Error("Not implemented") + } + static _UrlStyle_getUrl(ptr: KPointer): string { + if ((this._LoadOnce()) == (true)) + { + return this._UrlStyle_getUrl(ptr) + } + throw new Error("Not implemented") + } static _MutableStyledString_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -17563,6 +18242,34 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _ImageAttachment_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ImageAttachment_ctor(thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _ImageAttachment_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ImageAttachment_getFinalizer() + } + throw new Error("Not implemented") + } + static _ImageAttachment_getVerticalAlign(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ImageAttachment_getVerticalAlign(ptr) + } + throw new Error("Not implemented") + } + static _ImageAttachment_getObjectFit(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._ImageAttachment_getObjectFit(ptr) + } + throw new Error("Not implemented") + } static _CustomSpan_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -17640,20 +18347,6 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_inspector_ctor(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_inspector_ctor() - } - throw new Error("Not implemented") - } - static _GlobalScope_inspector_getFinalizer(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_inspector_getFinalizer() - } - throw new Error("Not implemented") - } static _GlobalScope_inspector_getInspectorNodes(): KPointer { if ((this._LoadOnce()) == (true)) { diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts b/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts index d7e3d0127..15246be94 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts +++ b/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts @@ -127,8 +127,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _AlphabetIndexerAttribute_alignStyle(ptr: KPointer, value: KInt, thisArray: Uint8Array, thisLength: int32): void { console.log("_AlphabetIndexerAttribute_alignStyle") } - _AlphabetIndexerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AlphabetIndexerAttribute___onChangeEvent_selected") + _AlphabetIndexerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_AlphabetIndexerAttribute__onChangeEvent_selected") } _Animator_construct(id: KInt, flags: KInt): KPointer { console.log("_Animator_construct") @@ -354,8 +354,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _CheckboxAttribute_contentModifier(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CheckboxAttribute_contentModifier") } - _CheckboxAttribute___onChangeEvent_select(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_CheckboxAttribute___onChangeEvent_select") + _CheckboxAttribute__onChangeEvent_select(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_CheckboxAttribute__onChangeEvent_select") } _CheckboxGroup_construct(id: KInt, flags: KInt): KPointer { console.log("_CheckboxGroup_construct") @@ -382,8 +382,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _CheckboxGroupAttribute_checkboxShape(ptr: KPointer, value: KInt): void { console.log("_CheckboxGroupAttribute_checkboxShape") } - _CheckboxGroupAttribute___onChangeEvent_selectAll(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_CheckboxGroupAttribute___onChangeEvent_selectAll") + _CheckboxGroupAttribute__onChangeEvent_selectAll(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_CheckboxGroupAttribute__onChangeEvent_selectAll") } _Circle_construct(id: KInt, flags: KInt): KPointer { console.log("_Circle_construct") @@ -1195,8 +1195,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _DatePickerAttribute_onDateChange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_DatePickerAttribute_onDateChange") } - _DatePickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_DatePickerAttribute___onChangeEvent_selected") + _DatePickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_DatePickerAttribute__onChangeEvent_selected") } _Divider_construct(id: KInt, flags: KInt): KPointer { console.log("_Divider_construct") @@ -1504,8 +1504,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _GridItemAttribute_onSelect(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GridItemAttribute_onSelect") } - _GridItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_GridItemAttribute___onChangeEvent_selected") + _GridItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_GridItemAttribute__onChangeEvent_selected") } _GridCol_construct(id: KInt, flags: KInt): KPointer { console.log("_GridCol_construct") @@ -1868,8 +1868,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _ListItemAttribute_onSelect(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_ListItemAttribute_onSelect") } - _ListItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_ListItemAttribute___onChangeEvent_selected") + _ListItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_ListItemAttribute__onChangeEvent_selected") } _ListItemGroup_construct(id: KInt, flags: KInt): KPointer { console.log("_ListItemGroup_construct") @@ -2010,8 +2010,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _MenuItemAttribute_labelFontColor(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_MenuItemAttribute_labelFontColor") } - _MenuItemAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_MenuItemAttribute___onChangeEvent_selected") + _MenuItemAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_MenuItemAttribute__onChangeEvent_selected") } _MenuItemGroup_construct(id: KInt, flags: KInt): KPointer { console.log("_MenuItemGroup_construct") @@ -2175,8 +2175,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _PanelAttribute_onHeightChange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_PanelAttribute_onHeightChange") } - _PanelAttribute___onChangeEvent_mode(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_PanelAttribute___onChangeEvent_mode") + _PanelAttribute__onChangeEvent_mode(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_PanelAttribute__onChangeEvent_mode") } _PasteButton_construct(id: KInt, flags: KInt): KPointer { console.log("_PasteButton_construct") @@ -2334,8 +2334,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _RadioAttribute_contentModifier(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RadioAttribute_contentModifier") } - _RadioAttribute___onChangeEvent_checked(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_RadioAttribute___onChangeEvent_checked") + _RadioAttribute__onChangeEvent_checked(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_RadioAttribute__onChangeEvent_checked") } _Rating_construct(id: KInt, flags: KInt): KPointer { console.log("_Rating_construct") @@ -2359,8 +2359,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _RatingAttribute_contentModifier(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RatingAttribute_contentModifier") } - _RatingAttribute___onChangeEvent_rating(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_RatingAttribute___onChangeEvent_rating") + _RatingAttribute__onChangeEvent_rating(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_RatingAttribute__onChangeEvent_rating") } _Rect_construct(id: KInt, flags: KInt): KPointer { console.log("_Rect_construct") @@ -2403,8 +2403,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _RefreshAttribute_pullDownRatio(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RefreshAttribute_pullDownRatio") } - _RefreshAttribute___onChangeEvent_refreshing(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_RefreshAttribute___onChangeEvent_refreshing") + _RefreshAttribute__onChangeEvent_refreshing(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_RefreshAttribute__onChangeEvent_refreshing") } _RelativeContainer_construct(id: KInt, flags: KInt): KPointer { console.log("_RelativeContainer_construct") @@ -2792,8 +2792,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _SearchAttribute_customKeyboard(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_SearchAttribute_customKeyboard") } - _SearchAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SearchAttribute___onChangeEvent_value") + _SearchAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_SearchAttribute__onChangeEvent_value") } _SecurityComponentMethod_construct(id: KInt, flags: KInt): KPointer { console.log("_SecurityComponentMethod_construct") @@ -2938,11 +2938,11 @@ export class ArkUIGeneratedNativeModuleEmpty { _SelectAttribute_menuAlign(ptr: KPointer, alignType: KInt, thisArray: Uint8Array, thisLength: int32): void { console.log("_SelectAttribute_menuAlign") } - _SelectAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SelectAttribute___onChangeEvent_selected") + _SelectAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_SelectAttribute__onChangeEvent_selected") } - _SelectAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SelectAttribute___onChangeEvent_value") + _SelectAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_SelectAttribute__onChangeEvent_value") } _Shape_construct(id: KInt, flags: KInt): KPointer { console.log("_Shape_construct") @@ -3063,8 +3063,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _SliderAttribute_showTips(ptr: KPointer, value: KInt, thisArray: Uint8Array, thisLength: int32): void { console.log("_SliderAttribute_showTips") } - _SliderAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SliderAttribute___onChangeEvent_value") + _SliderAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_SliderAttribute__onChangeEvent_value") } _BaseSpan_construct(id: KInt, flags: KInt): KPointer { console.log("_BaseSpan_construct") @@ -3151,8 +3151,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _StepperAttribute_onPrevious(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_StepperAttribute_onPrevious") } - _StepperAttribute___onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_StepperAttribute___onChangeEvent_index") + _StepperAttribute__onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_StepperAttribute__onChangeEvent_index") } _StepperItem_construct(id: KInt, flags: KInt): KPointer { console.log("_StepperItem_construct") @@ -3258,8 +3258,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _SwiperAttribute_nextMargin(ptr: KPointer, value: Length, thisArray: Uint8Array, thisLength: int32): void { console.log("_SwiperAttribute_nextMargin") } - _SwiperAttribute___onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SwiperAttribute___onChangeEvent_index") + _SwiperAttribute__onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_SwiperAttribute__onChangeEvent_index") } _IndicatorComponent_construct(id: KInt, flags: KInt): KPointer { console.log("_IndicatorComponent_construct") @@ -3421,8 +3421,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _TabsAttribute_barModeScrollable(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TabsAttribute_barModeScrollable") } - _TabsAttribute___onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_TabsAttribute___onChangeEvent_index") + _TabsAttribute__onChangeEvent_index(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_TabsAttribute__onChangeEvent_index") } _TabContent_construct(id: KInt, flags: KInt): KPointer { console.log("_TabContent_construct") @@ -3745,8 +3745,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _TextAreaAttribute_customKeyboard(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TextAreaAttribute_customKeyboard") } - _TextAreaAttribute___onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_TextAreaAttribute___onChangeEvent_text") + _TextAreaAttribute__onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_TextAreaAttribute__onChangeEvent_text") } _TextClock_construct(id: KInt, flags: KInt): KPointer { console.log("_TextClock_construct") @@ -3990,8 +3990,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _TextInputAttribute_showCounter(ptr: KPointer, value: KInt, thisArray: Uint8Array, thisLength: int32): void { console.log("_TextInputAttribute_showCounter") } - _TextInputAttribute___onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_TextInputAttribute___onChangeEvent_text") + _TextInputAttribute__onChangeEvent_text(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_TextInputAttribute__onChangeEvent_text") } _TextPicker_construct(id: KInt, flags: KInt): KPointer { console.log("_TextPicker_construct") @@ -4033,11 +4033,11 @@ export class ArkUIGeneratedNativeModuleEmpty { _TextPickerAttribute_gradientHeight(ptr: KPointer, value: Length): void { console.log("_TextPickerAttribute_gradientHeight") } - _TextPickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_TextPickerAttribute___onChangeEvent_selected") + _TextPickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_TextPickerAttribute__onChangeEvent_selected") } - _TextPickerAttribute___onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_TextPickerAttribute___onChangeEvent_value") + _TextPickerAttribute__onChangeEvent_value(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_TextPickerAttribute__onChangeEvent_value") } _TextTimer_construct(id: KInt, flags: KInt): KPointer { console.log("_TextTimer_construct") @@ -4104,8 +4104,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _TimePickerAttribute_enableHapticFeedback(ptr: KPointer, value: KInt): void { console.log("_TimePickerAttribute_enableHapticFeedback") } - _TimePickerAttribute___onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_TimePickerAttribute___onChangeEvent_selected") + _TimePickerAttribute__onChangeEvent_selected(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_TimePickerAttribute__onChangeEvent_selected") } _Toggle_construct(id: KInt, flags: KInt): KPointer { console.log("_Toggle_construct") @@ -4129,8 +4129,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _ToggleAttribute_switchStyle(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_ToggleAttribute_switchStyle") } - _ToggleAttribute___onChangeEvent_isOn(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_ToggleAttribute___onChangeEvent_isOn") + _ToggleAttribute__onChangeEvent_isOn(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_ToggleAttribute__onChangeEvent_isOn") } _Video_construct(id: KInt, flags: KInt): KPointer { console.log("_Video_construct") @@ -4644,8 +4644,8 @@ export class ArkUIGeneratedNativeModuleEmpty { _SideBarContainerAttribute_minContentWidth(ptr: KPointer, value: Length): void { console.log("_SideBarContainerAttribute_minContentWidth") } - _SideBarContainerAttribute___onChangeEvent_showSideBar(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SideBarContainerAttribute___onChangeEvent_showSideBar") + _SideBarContainerAttribute__onChangeEvent_showSideBar(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_SideBarContainerAttribute__onChangeEvent_showSideBar") } _RemoteWindow_construct(id: KInt, flags: KInt): KPointer { console.log("_RemoteWindow_construct") @@ -4755,18 +4755,21 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_AnimationExtender_getFinalizer") return -1 } - _AnimationExtender_SetClipRect(peer: KPointer, left: number, top: number, right: number, bottom: number): void { + _AnimationExtender_SetClipRect(node: KPointer, x: KFloat, y: KFloat, width: KFloat, height: KFloat): void { console.log("_AnimationExtender_SetClipRect") } - _AnimationExtender_OpenImplicitAnimation(peer: KPointer, thisArray: Uint8Array, thisLength: int32): void { + _AnimationExtender_OpenImplicitAnimation(thisArray: Uint8Array, thisLength: int32): void { console.log("_AnimationExtender_OpenImplicitAnimation") } - _AnimationExtender_CloseImplicitAnimation(node: KPointer): void { + _AnimationExtender_CloseImplicitAnimation(): void { console.log("_AnimationExtender_CloseImplicitAnimation") } - _AnimationExtender_StartDoubleAnimation(peer: KPointer, thisArray: Uint8Array, thisLength: int32): void { + _AnimationExtender_StartDoubleAnimation(node: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_AnimationExtender_StartDoubleAnimation") } + _AnimationExtender_AnimationTranslate(node: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_AnimationExtender_AnimationTranslate") + } _UnifiedData_ctor(): KPointer { console.log("_UnifiedData_ctor") return -1 @@ -4884,7 +4887,7 @@ export class ArkUIGeneratedNativeModuleEmpty { _GlobalScope_ohos_arkui_performanceMonitor_end(scene: KStringPtr): void { console.log("_GlobalScope_ohos_arkui_performanceMonitor_end") } - _GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(type: KInt, sourceType: KInt, time: number): void { + _GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType: KInt, sourceType: KInt, time: number): void { console.log("_GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime") } _FrameNode_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { @@ -5023,6 +5026,38 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_AlertDialog_show") return undefined } + _SpringProp_ctor(mass: number, stiffness: number, damping: number): KPointer { + console.log("_SpringProp_ctor") + return -1 + } + _SpringProp_getFinalizer(): KPointer { + console.log("_SpringProp_getFinalizer") + return -1 + } + _SpringMotion_ctor(start: number, end: number, velocity: number, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_SpringMotion_ctor") + return -1 + } + _SpringMotion_getFinalizer(): KPointer { + console.log("_SpringMotion_getFinalizer") + return -1 + } + _FrictionMotion_ctor(friction: number, position: number, velocity: number): KPointer { + console.log("_FrictionMotion_ctor") + return -1 + } + _FrictionMotion_getFinalizer(): KPointer { + console.log("_FrictionMotion_getFinalizer") + return -1 + } + _ScrollMotion_ctor(position: number, velocity: number, min: number, max: number, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ScrollMotion_ctor") + return -1 + } + _ScrollMotion_getFinalizer(): KPointer { + console.log("_ScrollMotion_getFinalizer") + return -1 + } _CalendarController_ctor(): KPointer { console.log("_CalendarController_ctor") return -1 @@ -5137,6 +5172,37 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_ImageBitmap_getWidth") return 1 } + _ImageData_ctor(width: number, height: number, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ImageData_ctor") + return -1 + } + _ImageData_getFinalizer(): KPointer { + console.log("_ImageData_getFinalizer") + return -1 + } + _ImageData_getHeight(ptr: KPointer): number { + console.log("_ImageData_getHeight") + return 1 + } + _ImageData_getWidth(ptr: KPointer): number { + console.log("_ImageData_getWidth") + return 1 + } + _RenderingContextSettings_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_RenderingContextSettings_ctor") + return -1 + } + _RenderingContextSettings_getFinalizer(): KPointer { + console.log("_RenderingContextSettings_getFinalizer") + return -1 + } + _RenderingContextSettings_getAntialias(ptr: KPointer): boolean { + console.log("_RenderingContextSettings_getAntialias") + return false + } + _RenderingContextSettings_setAntialias(ptr: KPointer, antialias: KInt): void { + console.log("_RenderingContextSettings_setAntialias") + } _CanvasRenderer_ctor(): KPointer { console.log("_CanvasRenderer_ctor") return -1 @@ -5681,6 +5747,10 @@ export class ArkUIGeneratedNativeModuleEmpty { _ClickEvent_setY(ptr: KPointer, y: number): void { console.log("_ClickEvent_setY") } + _ClickEvent_getPreventDefault(ptr: KPointer): KPointer { + console.log("_ClickEvent_getPreventDefault") + return -1 + } _ClickEvent_setPreventDefault(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_ClickEvent_setPreventDefault") } @@ -5692,6 +5762,10 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_HoverEvent_getFinalizer") return -1 } + _HoverEvent_getStopPropagation(ptr: KPointer): KPointer { + console.log("_HoverEvent_getStopPropagation") + return -1 + } _HoverEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_HoverEvent_setStopPropagation") } @@ -5773,6 +5847,10 @@ export class ArkUIGeneratedNativeModuleEmpty { _MouseEvent_setY(ptr: KPointer, y: number): void { console.log("_MouseEvent_setY") } + _MouseEvent_getStopPropagation(ptr: KPointer): KPointer { + console.log("_MouseEvent_getStopPropagation") + return -1 + } _MouseEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_MouseEvent_setStopPropagation") } @@ -5858,9 +5936,17 @@ export class ArkUIGeneratedNativeModuleEmpty { _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setChangedTouches") } + _TouchEvent_getStopPropagation(ptr: KPointer): KPointer { + console.log("_TouchEvent_getStopPropagation") + return -1 + } _TouchEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setStopPropagation") } + _TouchEvent_getPreventDefault(ptr: KPointer): KPointer { + console.log("_TouchEvent_getPreventDefault") + return -1 + } _TouchEvent_setPreventDefault(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setPreventDefault") } @@ -6020,6 +6106,10 @@ export class ArkUIGeneratedNativeModuleEmpty { _KeyEvent_setTimestamp(ptr: KPointer, timestamp: number): void { console.log("_KeyEvent_setTimestamp") } + _KeyEvent_getStopPropagation(ptr: KPointer): KPointer { + console.log("_KeyEvent_getStopPropagation") + return -1 + } _KeyEvent_setStopPropagation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_KeyEvent_setStopPropagation") } @@ -6191,14 +6281,6 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureModifier_applyGesture(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureModifier_applyGesture") } - _GlobalScope_common_ctor(): KPointer { - console.log("_GlobalScope_common_ctor") - return -1 - } - _GlobalScope_common_getFinalizer(): KPointer { - console.log("_GlobalScope_common_getFinalizer") - return -1 - } _GlobalScope_common_getContext(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_GlobalScope_common_getContext") return -1 @@ -6282,6 +6364,14 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_CustomDialogController_close") return undefined } + _LinearGradient_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_LinearGradient_ctor") + return -1 + } + _LinearGradient_getFinalizer(): KPointer { + console.log("_LinearGradient_getFinalizer") + return -1 + } _DatePickerDialog_ctor(): KPointer { console.log("_DatePickerDialog_ctor") return -1 @@ -6765,6 +6855,38 @@ export class ArkUIGeneratedNativeModuleEmpty { _NavDestinationContext_setNavDestinationId(ptr: KPointer, navDestinationId: KStringPtr): void { console.log("_NavDestinationContext_setNavDestinationId") } + _NavPathInfo_ctor(name: KStringPtr, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_NavPathInfo_ctor") + return -1 + } + _NavPathInfo_getFinalizer(): KPointer { + console.log("_NavPathInfo_getFinalizer") + return -1 + } + _NavPathInfo_getName(ptr: KPointer): string { + console.log("_NavPathInfo_getName") + return "" + } + _NavPathInfo_setName(ptr: KPointer, name: KStringPtr): void { + console.log("_NavPathInfo_setName") + } + _NavPathInfo_setParam(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_NavPathInfo_setParam") + } + _NavPathInfo_getOnPop(ptr: KPointer): KPointer { + console.log("_NavPathInfo_getOnPop") + return -1 + } + _NavPathInfo_setOnPop(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { + console.log("_NavPathInfo_setOnPop") + } + _NavPathInfo_getIsEntry(ptr: KPointer): boolean { + console.log("_NavPathInfo_getIsEntry") + return false + } + _NavPathInfo_setIsEntry(ptr: KPointer, isEntry: KInt): void { + console.log("_NavPathInfo_setIsEntry") + } _NavPathStack_ctor(): KPointer { console.log("_NavPathStack_ctor") return -1 @@ -7200,6 +7322,110 @@ export class ArkUIGeneratedNativeModuleEmpty { _IndicatorComponentController_changeIndex(ptr: KPointer, index: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_IndicatorComponentController_changeIndex") } + _ScaleSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ScaleSymbolEffect_ctor") + return -1 + } + _ScaleSymbolEffect_getFinalizer(): KPointer { + console.log("_ScaleSymbolEffect_getFinalizer") + return -1 + } + _ScaleSymbolEffect_getScope(ptr: KPointer): KPointer { + console.log("_ScaleSymbolEffect_getScope") + return -1 + } + _ScaleSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { + console.log("_ScaleSymbolEffect_setScope") + } + _ScaleSymbolEffect_getDirection(ptr: KPointer): KPointer { + console.log("_ScaleSymbolEffect_getDirection") + return -1 + } + _ScaleSymbolEffect_setDirection(ptr: KPointer, direction: KInt): void { + console.log("_ScaleSymbolEffect_setDirection") + } + _HierarchicalSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_HierarchicalSymbolEffect_ctor") + return -1 + } + _HierarchicalSymbolEffect_getFinalizer(): KPointer { + console.log("_HierarchicalSymbolEffect_getFinalizer") + return -1 + } + _HierarchicalSymbolEffect_getFillStyle(ptr: KPointer): KPointer { + console.log("_HierarchicalSymbolEffect_getFillStyle") + return -1 + } + _HierarchicalSymbolEffect_setFillStyle(ptr: KPointer, fillStyle: KInt): void { + console.log("_HierarchicalSymbolEffect_setFillStyle") + } + _AppearSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_AppearSymbolEffect_ctor") + return -1 + } + _AppearSymbolEffect_getFinalizer(): KPointer { + console.log("_AppearSymbolEffect_getFinalizer") + return -1 + } + _AppearSymbolEffect_getScope(ptr: KPointer): KPointer { + console.log("_AppearSymbolEffect_getScope") + return -1 + } + _AppearSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { + console.log("_AppearSymbolEffect_setScope") + } + _DisappearSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_DisappearSymbolEffect_ctor") + return -1 + } + _DisappearSymbolEffect_getFinalizer(): KPointer { + console.log("_DisappearSymbolEffect_getFinalizer") + return -1 + } + _DisappearSymbolEffect_getScope(ptr: KPointer): KPointer { + console.log("_DisappearSymbolEffect_getScope") + return -1 + } + _DisappearSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { + console.log("_DisappearSymbolEffect_setScope") + } + _BounceSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_BounceSymbolEffect_ctor") + return -1 + } + _BounceSymbolEffect_getFinalizer(): KPointer { + console.log("_BounceSymbolEffect_getFinalizer") + return -1 + } + _BounceSymbolEffect_getScope(ptr: KPointer): KPointer { + console.log("_BounceSymbolEffect_getScope") + return -1 + } + _BounceSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { + console.log("_BounceSymbolEffect_setScope") + } + _BounceSymbolEffect_getDirection(ptr: KPointer): KPointer { + console.log("_BounceSymbolEffect_getDirection") + return -1 + } + _BounceSymbolEffect_setDirection(ptr: KPointer, direction: KInt): void { + console.log("_BounceSymbolEffect_setDirection") + } + _ReplaceSymbolEffect_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ReplaceSymbolEffect_ctor") + return -1 + } + _ReplaceSymbolEffect_getFinalizer(): KPointer { + console.log("_ReplaceSymbolEffect_getFinalizer") + return -1 + } + _ReplaceSymbolEffect_getScope(ptr: KPointer): KPointer { + console.log("_ReplaceSymbolEffect_getScope") + return -1 + } + _ReplaceSymbolEffect_setScope(ptr: KPointer, scope: KInt): void { + console.log("_ReplaceSymbolEffect_setScope") + } _TabsController_ctor(): KPointer { console.log("_TabsController_ctor") return -1 @@ -7492,6 +7718,14 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TimePickerDialog_show") return undefined } + _ColorFilter_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ColorFilter_ctor") + return -1 + } + _ColorFilter_getFinalizer(): KPointer { + console.log("_ColorFilter_getFinalizer") + return -1 + } _VideoController_ctor(): KPointer { console.log("_VideoController_ctor") return -1 @@ -8224,6 +8458,146 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_StyledString_getLength") return 1 } + _TextStyle_styled_string_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_TextStyle_styled_string_ctor") + return -1 + } + _TextStyle_styled_string_getFinalizer(): KPointer { + console.log("_TextStyle_styled_string_getFinalizer") + return -1 + } + _TextStyle_styled_string_getFontFamily(ptr: KPointer): string { + console.log("_TextStyle_styled_string_getFontFamily") + return "" + } + _TextStyle_styled_string_getFontSize(ptr: KPointer): number { + console.log("_TextStyle_styled_string_getFontSize") + return 1 + } + _TextStyle_styled_string_getFontWeight(ptr: KPointer): number { + console.log("_TextStyle_styled_string_getFontWeight") + return 1 + } + _TextStyle_styled_string_getFontStyle(ptr: KPointer): KPointer { + console.log("_TextStyle_styled_string_getFontStyle") + return -1 + } + _DecorationStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_DecorationStyle_ctor") + return -1 + } + _DecorationStyle_getFinalizer(): KPointer { + console.log("_DecorationStyle_getFinalizer") + return -1 + } + _DecorationStyle_getType(ptr: KPointer): KPointer { + console.log("_DecorationStyle_getType") + return -1 + } + _DecorationStyle_getStyle(ptr: KPointer): KPointer { + console.log("_DecorationStyle_getStyle") + return -1 + } + _BaselineOffsetStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_BaselineOffsetStyle_ctor") + return -1 + } + _BaselineOffsetStyle_getFinalizer(): KPointer { + console.log("_BaselineOffsetStyle_getFinalizer") + return -1 + } + _BaselineOffsetStyle_getBaselineOffset(ptr: KPointer): number { + console.log("_BaselineOffsetStyle_getBaselineOffset") + return 1 + } + _LetterSpacingStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_LetterSpacingStyle_ctor") + return -1 + } + _LetterSpacingStyle_getFinalizer(): KPointer { + console.log("_LetterSpacingStyle_getFinalizer") + return -1 + } + _LetterSpacingStyle_getLetterSpacing(ptr: KPointer): number { + console.log("_LetterSpacingStyle_getLetterSpacing") + return 1 + } + _TextShadowStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_TextShadowStyle_ctor") + return -1 + } + _TextShadowStyle_getFinalizer(): KPointer { + console.log("_TextShadowStyle_getFinalizer") + return -1 + } + _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_BackgroundColorStyle_ctor") + return -1 + } + _BackgroundColorStyle_getFinalizer(): KPointer { + console.log("_BackgroundColorStyle_getFinalizer") + return -1 + } + _GestureStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_GestureStyle_ctor") + return -1 + } + _GestureStyle_getFinalizer(): KPointer { + console.log("_GestureStyle_getFinalizer") + return -1 + } + _ParagraphStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ParagraphStyle_ctor") + return -1 + } + _ParagraphStyle_getFinalizer(): KPointer { + console.log("_ParagraphStyle_getFinalizer") + return -1 + } + _ParagraphStyle_getTextAlign(ptr: KPointer): KPointer { + console.log("_ParagraphStyle_getTextAlign") + return -1 + } + _ParagraphStyle_getTextIndent(ptr: KPointer): number { + console.log("_ParagraphStyle_getTextIndent") + return 1 + } + _ParagraphStyle_getMaxLines(ptr: KPointer): number { + console.log("_ParagraphStyle_getMaxLines") + return 1 + } + _ParagraphStyle_getOverflow(ptr: KPointer): KPointer { + console.log("_ParagraphStyle_getOverflow") + return -1 + } + _ParagraphStyle_getWordBreak(ptr: KPointer): KPointer { + console.log("_ParagraphStyle_getWordBreak") + return -1 + } + _LineHeightStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_LineHeightStyle_ctor") + return -1 + } + _LineHeightStyle_getFinalizer(): KPointer { + console.log("_LineHeightStyle_getFinalizer") + return -1 + } + _LineHeightStyle_getLineHeight(ptr: KPointer): number { + console.log("_LineHeightStyle_getLineHeight") + return 1 + } + _UrlStyle_ctor(url: KStringPtr): KPointer { + console.log("_UrlStyle_ctor") + return -1 + } + _UrlStyle_getFinalizer(): KPointer { + console.log("_UrlStyle_getFinalizer") + return -1 + } + _UrlStyle_getUrl(ptr: KPointer): string { + console.log("_UrlStyle_getUrl") + return "" + } _MutableStyledString_ctor(): KPointer { console.log("_MutableStyledString_ctor") return -1 @@ -8265,6 +8639,22 @@ export class ArkUIGeneratedNativeModuleEmpty { _MutableStyledString_appendStyledString(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_MutableStyledString_appendStyledString") } + _ImageAttachment_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_ImageAttachment_ctor") + return -1 + } + _ImageAttachment_getFinalizer(): KPointer { + console.log("_ImageAttachment_getFinalizer") + return -1 + } + _ImageAttachment_getVerticalAlign(ptr: KPointer): KPointer { + console.log("_ImageAttachment_getVerticalAlign") + return -1 + } + _ImageAttachment_getObjectFit(ptr: KPointer): KPointer { + console.log("_ImageAttachment_getObjectFit") + return -1 + } _CustomSpan_ctor(): KPointer { console.log("_CustomSpan_ctor") return -1 @@ -8303,14 +8693,6 @@ export class ArkUIGeneratedNativeModuleEmpty { _LinearIndicatorController_stop(ptr: KPointer): void { console.log("_LinearIndicatorController_stop") } - _GlobalScope_inspector_ctor(): KPointer { - console.log("_GlobalScope_inspector_ctor") - return -1 - } - _GlobalScope_inspector_getFinalizer(): KPointer { - console.log("_GlobalScope_inspector_getFinalizer") - return -1 - } _GlobalScope_inspector_getInspectorNodes(): KPointer { console.log("_GlobalScope_inspector_getInspectorNodes") return -1 diff --git a/arkoala/arkui/src/ArkUiExtensionComponent.ts b/arkoala/arkui/src/ArkUiExtensionComponent.ts index a2d45293d..33f40b005 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponent.ts +++ b/arkoala/arkui/src/ArkUiExtensionComponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -62,7 +62,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkUIExtensionComponentPeer) } /** @memo */ - setUIExtensionComponentOptions(want: Want, options?: UIExtensionOptions): this { + public setUIExtensionComponentOptions(want: Want, options?: UIExtensionOptions): this { if (this.checkPriority("setUIExtensionComponentOptions")) { const want_casted = want as (Want) const options_casted = options as (UIExtensionOptions | undefined) @@ -72,7 +72,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRemoteReady(value: ((parameter: UIExtensionProxy) => void)): this { + public onRemoteReady(value: ((parameter: UIExtensionProxy) => void)): this { if (this.checkPriority("onRemoteReady")) { const value_casted = value as (((parameter: UIExtensionProxy) => void)) UseEventsProperties({UIExtensionComponent_onRemoteReady: value_casted}) @@ -82,7 +82,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReceive(value: ReceiveCallback): this { + public onReceive(value: ReceiveCallback): this { if (this.checkPriority("onReceive")) { const value_casted = value as (ReceiveCallback) this.getPeer()?.onReceiveAttribute(value_casted) @@ -91,7 +91,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onResult(value: ((parameter: { code: number, want?: Want }) => void)): this { + public onResult(value: ((parameter: { code: number, want?: Want }) => void)): this { if (this.checkPriority("onResult")) { const value_casted = value as (((parameter: { code: number, want?: Want }) => void)) UseEventsProperties({UIExtensionComponent_onResult: value_casted}) @@ -101,7 +101,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRelease(value: ((index: number) => void)): this { + public onRelease(value: ((index: number) => void)): this { if (this.checkPriority("onRelease")) { const value_casted = value as (((index: number) => void)) UseEventsProperties({UIExtensionComponent_onRelease: value_casted}) @@ -111,7 +111,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: ErrorCallback): this { + public onError(value: ErrorCallback): this { if (this.checkPriority("onError")) { const value_casted = value as (ErrorCallback) this.getPeer()?.onErrorAttribute(value_casted) @@ -120,7 +120,7 @@ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTerminated(value: ((parameter: TerminationInfo) => void)): this { + public onTerminated(value: ((parameter: TerminationInfo) => void)): this { if (this.checkPriority("onTerminated")) { const value_casted = value as (((parameter: TerminationInfo) => void)) UseEventsProperties({UIExtensionComponent_onTerminated: value_casted}) diff --git a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts b/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts index 1ab73dfe8..cd0401d31 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts @@ -61,7 +61,7 @@ export interface UIExtensionOptions { dpiFollowStrategy?: DpiFollowStrategy; } export interface ReceiveCallback { - __ReceiveCallbackStub: string; + _ReceiveCallbackStub: string; } export type UIExtensionComponentInterface = (want: Want, options?: UIExtensionOptions) => UIExtensionComponentAttribute; export interface UIExtensionComponentAttribute extends CommonMethod { diff --git a/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts b/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts index 573e1469b..944a74b6e 100644 --- a/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts +++ b/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,11 +41,11 @@ export class UnifiedData implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._UnifiedData_getFinalizer() } - hasType(UnifiedData_type: string): boolean { + public hasType(UnifiedData_type: string): boolean { const UnifiedData_type_casted = UnifiedData_type as (string) return this.hasType_serialize(UnifiedData_type_casted) } - getTypes(): Array { + public getTypes(): Array { return this.getTypes_serialize() } private hasType_serialize(UnifiedData_type: string): boolean { diff --git a/arkoala/arkui/src/ArkUnitsInterfaces.ts b/arkoala/arkui/src/ArkUnitsInterfaces.ts index 38024b835..0e53fb428 100644 --- a/arkoala/arkui/src/ArkUnitsInterfaces.ts +++ b/arkoala/arkui/src/ArkUnitsInterfaces.ts @@ -116,10 +116,10 @@ export interface LengthConstrain { } export type VoidCallback = () => void; export interface LengthMetricsUnit { - __LengthMetricsUnitStub: string; + _LengthMetricsUnitStub: string; } export interface ColorMetrics { - __ColorMetricsStub: string; + _ColorMetricsStub: string; } export interface Font { size?: Length; @@ -186,8 +186,6 @@ export interface MarkStyle { size?: Length; strokeWidth?: Length; } -export interface ColorFilter { -} export interface TouchPoint { x: Dimension; y: Dimension; diff --git a/arkoala/arkui/src/ArkUrlStyleMaterialized.ts b/arkoala/arkui/src/ArkUrlStyleMaterialized.ts new file mode 100644 index 000000000..d301475a1 --- /dev/null +++ b/arkoala/arkui/src/ArkUrlStyleMaterialized.ts @@ -0,0 +1,64 @@ +/* + * 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 } from "@koalaui/interop" +import { MaterializedBase } from "./MaterializedBase" +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 UrlStyle implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get url(): string { + return this.getUrl() + } + static ctor(url: string): KPointer { + const retval = ArkUIGeneratedNativeModule._UrlStyle_ctor(url) + return retval + } + constructor(url?: string) { + if (((url) !== (undefined))) + { + const ctorPtr: KPointer = UrlStyle.ctor(url) + this.peer = new Finalizable(ctorPtr, UrlStyle.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._UrlStyle_getFinalizer() + } + private getUrl(): string { + return this.getUrl_serialize() + } + private getUrl_serialize(): string { + const retval = ArkUIGeneratedNativeModule._UrlStyle_getUrl(this.peer!.ptr) + 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/ArkVideo.ts index 0ee79b0ea..a81d8d723 100644 --- a/arkoala/arkui/src/ArkVideo.ts +++ b/arkoala/arkui/src/ArkVideo.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -62,7 +62,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return (this.peer as ArkVideoPeer) } /** @memo */ - setVideoOptions(value: VideoOptions): this { + public setVideoOptions(value: VideoOptions): this { if (this.checkPriority("setVideoOptions")) { const value_casted = value as (VideoOptions) this.getPeer()?.setVideoOptionsAttribute(value_casted) @@ -71,7 +71,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - muted(value: boolean): this { + public muted(value: boolean): this { if (this.checkPriority("muted")) { const value_casted = value as (boolean) this.getPeer()?.mutedAttribute(value_casted) @@ -80,7 +80,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - autoPlay(value: boolean): this { + public autoPlay(value: boolean): this { if (this.checkPriority("autoPlay")) { const value_casted = value as (boolean) this.getPeer()?.autoPlayAttribute(value_casted) @@ -89,7 +89,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - controls(value: boolean): this { + public controls(value: boolean): this { if (this.checkPriority("controls")) { const value_casted = value as (boolean) this.getPeer()?.controlsAttribute(value_casted) @@ -98,7 +98,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - loop(value: boolean): this { + public loop(value: boolean): this { if (this.checkPriority("loop")) { const value_casted = value as (boolean) this.getPeer()?.loopAttribute(value_casted) @@ -107,7 +107,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - objectFit(value: ImageFit): this { + public objectFit(value: ImageFit): this { if (this.checkPriority("objectFit")) { const value_casted = value as (ImageFit) this.getPeer()?.objectFitAttribute(value_casted) @@ -116,7 +116,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStart(value: VoidCallback): this { + public onStart(value: VoidCallback): this { if (this.checkPriority("onStart")) { const value_casted = value as (VoidCallback) UseEventsProperties({Video_onStart: value_casted}) @@ -126,7 +126,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPause(value: VoidCallback): this { + public onPause(value: VoidCallback): this { if (this.checkPriority("onPause")) { const value_casted = value as (VoidCallback) UseEventsProperties({Video_onPause: value_casted}) @@ -136,7 +136,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFinish(value: VoidCallback): this { + public onFinish(value: VoidCallback): this { if (this.checkPriority("onFinish")) { const value_casted = value as (VoidCallback) UseEventsProperties({Video_onFinish: value_casted}) @@ -146,7 +146,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFullscreenChange(value: ((parameter: FullscreenInfo) => void)): this { + public onFullscreenChange(value: ((parameter: FullscreenInfo) => void)): this { if (this.checkPriority("onFullscreenChange")) { const value_casted = value as (((parameter: FullscreenInfo) => void)) UseEventsProperties({Video_onFullscreenChange: value_casted}) @@ -156,7 +156,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPrepared(value: ((parameter: PreparedInfo) => void)): this { + public onPrepared(value: ((parameter: PreparedInfo) => void)): this { if (this.checkPriority("onPrepared")) { const value_casted = value as (((parameter: PreparedInfo) => void)) UseEventsProperties({Video_onPrepared: value_casted}) @@ -166,7 +166,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSeeking(value: ((parameter: PlaybackInfo) => void)): this { + public onSeeking(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onSeeking")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) UseEventsProperties({Video_onSeeking: value_casted}) @@ -176,7 +176,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSeeked(value: ((parameter: PlaybackInfo) => void)): this { + public onSeeked(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onSeeked")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) UseEventsProperties({Video_onSeeked: value_casted}) @@ -186,7 +186,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onUpdate(value: ((parameter: PlaybackInfo) => void)): this { + public onUpdate(value: ((parameter: PlaybackInfo) => void)): this { if (this.checkPriority("onUpdate")) { const value_casted = value as (((parameter: PlaybackInfo) => void)) UseEventsProperties({Video_onUpdate: value_casted}) @@ -196,7 +196,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onError(value: (() => void)): this { + public onError(value: (() => void)): this { if (this.checkPriority("onError")) { const value_casted = value as ((() => void)) UseEventsProperties({Video_onError: value_casted}) @@ -206,7 +206,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onStop(value: (() => void)): this { + public onStop(value: (() => void)): this { if (this.checkPriority("onStop")) { const value_casted = value as ((() => void)) UseEventsProperties({Video_onStop: value_casted}) @@ -216,7 +216,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) @@ -225,7 +225,7 @@ export class ArkVideoComponent extends ArkCommonMethodComponent { return this } /** @memo */ - analyzerConfig(value: ImageAnalyzerConfig): this { + public analyzerConfig(value: ImageAnalyzerConfig): this { if (this.checkPriority("analyzerConfig")) { const value_casted = value as (ImageAnalyzerConfig) this.getPeer()?.analyzerConfigAttribute(value_casted) diff --git a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts b/arkoala/arkui/src/ArkVideoControllerMaterialized.ts index 1e609b176..d474bf683 100644 --- a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkVideoControllerMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,16 +42,16 @@ export class VideoController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._VideoController_getFinalizer() } - start(): undefined { + public start(): undefined { return this.start_serialize() } - pause(): undefined { + public pause(): undefined { return this.pause_serialize() } - stop(): undefined { + public stop(): undefined { return this.stop_serialize() } - setCurrentTime(value: number, seekMode?: SeekMode): undefined { + public setCurrentTime(value: number, seekMode?: SeekMode): undefined { const value_type = runtimeType(value) const seekMode_type = runtimeType(seekMode) if ((((RuntimeType.UNDEFINED == seekMode_type)))) { @@ -65,14 +65,14 @@ export class VideoController implements MaterializedBase { } throw new Error("Can not select appropriate overload") } - requestFullscreen(value: boolean): undefined { + public requestFullscreen(value: boolean): undefined { const value_casted = value as (boolean) return this.requestFullscreen_serialize(value_casted) } - exitFullscreen(): undefined { + public exitFullscreen(): undefined { return this.exitFullscreen_serialize() } - reset(): void { + public reset(): void { this?.reset_serialize() return } diff --git a/arkoala/arkui/src/ArkViewMaterialized.ts b/arkoala/arkui/src/ArkViewMaterialized.ts index 72d4e6058..0ac2e2757 100644 --- a/arkoala/arkui/src/ArkViewMaterialized.ts +++ b/arkoala/arkui/src/ArkViewMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,7 +41,7 @@ export class View implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._View_getFinalizer() } - create(value: any): any { + public create(value: any): any { const value_casted = value as (any) return this.create_serialize(value_casted) } diff --git a/arkoala/arkui/src/ArkWaterFlow.ts b/arkoala/arkui/src/ArkWaterFlow.ts index 6c988e1df..544ef8ccb 100644 --- a/arkoala/arkui/src/ArkWaterFlow.ts +++ b/arkoala/arkui/src/ArkWaterFlow.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -63,7 +63,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return (this.peer as ArkWaterFlowPeer) } /** @memo */ - setWaterFlowOptions(options?: WaterFlowOptions): this { + public setWaterFlowOptions(options?: WaterFlowOptions): this { if (this.checkPriority("setWaterFlowOptions")) { const options_casted = options as (WaterFlowOptions | undefined) this.getPeer()?.setWaterFlowOptionsAttribute(options_casted) @@ -72,7 +72,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsTemplate(value: string): this { + public columnsTemplate(value: string): this { if (this.checkPriority("columnsTemplate")) { const value_casted = value as (string) this.getPeer()?.columnsTemplateAttribute(value_casted) @@ -81,7 +81,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - itemConstraintSize(value: ConstraintSizeOptions): this { + public itemConstraintSize(value: ConstraintSizeOptions): this { if (this.checkPriority("itemConstraintSize")) { const value_casted = value as (ConstraintSizeOptions) this.getPeer()?.itemConstraintSizeAttribute(value_casted) @@ -90,7 +90,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsTemplate(value: string): this { + public rowsTemplate(value: string): this { if (this.checkPriority("rowsTemplate")) { const value_casted = value as (string) this.getPeer()?.rowsTemplateAttribute(value_casted) @@ -99,7 +99,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - columnsGap(value: Length): this { + public columnsGap(value: Length): this { if (this.checkPriority("columnsGap")) { const value_casted = value as (Length) this.getPeer()?.columnsGapAttribute(value_casted) @@ -108,7 +108,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - rowsGap(value: Length): this { + public rowsGap(value: Length): this { if (this.checkPriority("rowsGap")) { const value_casted = value as (Length) this.getPeer()?.rowsGapAttribute(value_casted) @@ -117,7 +117,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - layoutDirection(value: FlexDirection): this { + public layoutDirection(value: FlexDirection): this { if (this.checkPriority("layoutDirection")) { const value_casted = value as (FlexDirection) this.getPeer()?.layoutDirectionAttribute(value_casted) @@ -126,7 +126,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions): this { + public nestedScroll(value: NestedScrollOptions): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -135,7 +135,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - enableScrollInteraction(value: boolean): this { + public enableScrollInteraction(value: boolean): this { if (this.checkPriority("enableScrollInteraction")) { const value_casted = value as (boolean) this.getPeer()?.enableScrollInteractionAttribute(value_casted) @@ -144,7 +144,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - friction(value: number | Resource): this { + public friction(value: number | Resource): this { if (this.checkPriority("friction")) { const value_casted = value as (number | Resource) this.getPeer()?.frictionAttribute(value_casted) @@ -153,7 +153,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - cachedCount(count: number, show?: boolean): this { + public cachedCount(count: number, show?: boolean): this { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) @@ -173,7 +173,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachStart(value: (() => void)): this { + public onReachStart(value: (() => void)): this { if (this.checkPriority("onReachStart")) { const value_casted = value as ((() => void)) UseEventsProperties({WaterFlow_onReachStart: value_casted}) @@ -183,7 +183,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onReachEnd(value: (() => void)): this { + public onReachEnd(value: (() => void)): this { if (this.checkPriority("onReachEnd")) { const value_casted = value as ((() => void)) UseEventsProperties({WaterFlow_onReachEnd: value_casted}) @@ -193,7 +193,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { + public onScrollFrameBegin(value: ((offset: number, state: ScrollState) => { offsetRemain: number })): this { if (this.checkPriority("onScrollFrameBegin")) { const value_casted = value as (((offset: number, state: ScrollState) => { offsetRemain: number })) UseEventsProperties({WaterFlow_onScrollFrameBegin: value_casted}) @@ -203,7 +203,7 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScrollIndex(value: ((first: number, last: number) => void)): this { + public onScrollIndex(value: ((first: number, last: number) => void)): this { if (this.checkPriority("onScrollIndex")) { const value_casted = value as (((first: number, last: number) => void)) UseEventsProperties({WaterFlow_onScrollIndex: value_casted}) diff --git a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts b/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts index bfa7215fd..3b6e1baec 100644 --- a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,25 +43,25 @@ export class WaterFlowSections implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WaterFlowSections_getFinalizer() } - splice(start: number, deleteCount?: number, sections?: Array): boolean { + public splice(start: number, deleteCount?: number, sections?: Array): boolean { const start_casted = start as (number) const deleteCount_casted = deleteCount as (number | undefined) const sections_casted = sections as (Array | undefined) return this.splice_serialize(start_casted, deleteCount_casted, sections_casted) } - push(section: SectionOptions): boolean { + public push(section: SectionOptions): boolean { const section_casted = section as (SectionOptions) return this.push_serialize(section_casted) } - update(sectionIndex: number, section: SectionOptions): boolean { + public update(sectionIndex: number, section: SectionOptions): boolean { const sectionIndex_casted = sectionIndex as (number) const section_casted = section as (SectionOptions) return this.update_serialize(sectionIndex_casted, section_casted) } - values(): Array { + public values(): Array { return this.values_serialize() } - length(): number { + public length(): number { return this.length_serialize() } private splice_serialize(start: number, deleteCount?: number, sections?: Array): boolean { diff --git a/arkoala/arkui/src/ArkWeb.ts b/arkoala/arkui/src/ArkWeb.ts index 0878d1025..32f7c4edc 100644 --- a/arkoala/arkui/src/ArkWeb.ts +++ b/arkoala/arkui/src/ArkWeb.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -83,7 +83,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return (this.peer as ArkWebPeer) } /** @memo */ - setWebOptions(value: WebOptions): this { + public setWebOptions(value: WebOptions): this { if (this.checkPriority("setWebOptions")) { const value_casted = value as (WebOptions) this.getPeer()?.setWebOptionsAttribute(value_casted) @@ -92,7 +92,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptAccess(value: boolean): this { + public javaScriptAccess(value: boolean): this { if (this.checkPriority("javaScriptAccess")) { const value_casted = value as (boolean) this.getPeer()?.javaScriptAccessAttribute(value_casted) @@ -101,7 +101,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - fileAccess(value: boolean): this { + public fileAccess(value: boolean): this { if (this.checkPriority("fileAccess")) { const value_casted = value as (boolean) this.getPeer()?.fileAccessAttribute(value_casted) @@ -110,7 +110,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onlineImageAccess(value: boolean): this { + public onlineImageAccess(value: boolean): this { if (this.checkPriority("onlineImageAccess")) { const value_casted = value as (boolean) this.getPeer()?.onlineImageAccessAttribute(value_casted) @@ -119,7 +119,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - domStorageAccess(value: boolean): this { + public domStorageAccess(value: boolean): this { if (this.checkPriority("domStorageAccess")) { const value_casted = value as (boolean) this.getPeer()?.domStorageAccessAttribute(value_casted) @@ -128,7 +128,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - imageAccess(value: boolean): this { + public imageAccess(value: boolean): this { if (this.checkPriority("imageAccess")) { const value_casted = value as (boolean) this.getPeer()?.imageAccessAttribute(value_casted) @@ -137,7 +137,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mixedMode(value: MixedMode): this { + public mixedMode(value: MixedMode): this { if (this.checkPriority("mixedMode")) { const value_casted = value as (MixedMode) this.getPeer()?.mixedModeAttribute(value_casted) @@ -146,7 +146,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - zoomAccess(value: boolean): this { + public zoomAccess(value: boolean): this { if (this.checkPriority("zoomAccess")) { const value_casted = value as (boolean) this.getPeer()?.zoomAccessAttribute(value_casted) @@ -155,7 +155,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - geolocationAccess(value: boolean): this { + public geolocationAccess(value: boolean): this { if (this.checkPriority("geolocationAccess")) { const value_casted = value as (boolean) this.getPeer()?.geolocationAccessAttribute(value_casted) @@ -164,7 +164,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptProxy(value: JavaScriptProxy): this { + public javaScriptProxy(value: JavaScriptProxy): this { if (this.checkPriority("javaScriptProxy")) { const value_casted = value as (JavaScriptProxy) this.getPeer()?.javaScriptProxyAttribute(value_casted) @@ -173,7 +173,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - password(value: boolean): this { + public password(value: boolean): this { if (this.checkPriority("password")) { const value_casted = value as (boolean) this.getPeer()?.passwordAttribute(value_casted) @@ -182,7 +182,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - cacheMode(value: CacheMode): this { + public cacheMode(value: CacheMode): this { if (this.checkPriority("cacheMode")) { const value_casted = value as (CacheMode) this.getPeer()?.cacheModeAttribute(value_casted) @@ -191,7 +191,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - darkMode(value: WebDarkMode): this { + public darkMode(value: WebDarkMode): this { if (this.checkPriority("darkMode")) { const value_casted = value as (WebDarkMode) this.getPeer()?.darkModeAttribute(value_casted) @@ -200,7 +200,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - forceDarkAccess(value: boolean): this { + public forceDarkAccess(value: boolean): this { if (this.checkPriority("forceDarkAccess")) { const value_casted = value as (boolean) this.getPeer()?.forceDarkAccessAttribute(value_casted) @@ -209,7 +209,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mediaOptions(value: WebMediaOptions): this { + public mediaOptions(value: WebMediaOptions): this { if (this.checkPriority("mediaOptions")) { const value_casted = value as (WebMediaOptions) this.getPeer()?.mediaOptionsAttribute(value_casted) @@ -218,7 +218,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - tableData(value: boolean): this { + public tableData(value: boolean): this { if (this.checkPriority("tableData")) { const value_casted = value as (boolean) this.getPeer()?.tableDataAttribute(value_casted) @@ -227,7 +227,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - wideViewModeAccess(value: boolean): this { + public wideViewModeAccess(value: boolean): this { if (this.checkPriority("wideViewModeAccess")) { const value_casted = value as (boolean) this.getPeer()?.wideViewModeAccessAttribute(value_casted) @@ -236,7 +236,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - overviewModeAccess(value: boolean): this { + public overviewModeAccess(value: boolean): this { if (this.checkPriority("overviewModeAccess")) { const value_casted = value as (boolean) this.getPeer()?.overviewModeAccessAttribute(value_casted) @@ -245,7 +245,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - overScrollMode(value: OverScrollMode): this { + public overScrollMode(value: OverScrollMode): this { if (this.checkPriority("overScrollMode")) { const value_casted = value as (OverScrollMode) this.getPeer()?.overScrollModeAttribute(value_casted) @@ -254,7 +254,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textZoomAtio(value: number): this { + public textZoomAtio(value: number): this { if (this.checkPriority("textZoomAtio")) { const value_casted = value as (number) this.getPeer()?.textZoomAtioAttribute(value_casted) @@ -263,7 +263,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textZoomRatio(value: number): this { + public textZoomRatio(value: number): this { if (this.checkPriority("textZoomRatio")) { const value_casted = value as (number) this.getPeer()?.textZoomRatioAttribute(value_casted) @@ -272,7 +272,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - databaseAccess(value: boolean): this { + public databaseAccess(value: boolean): this { if (this.checkPriority("databaseAccess")) { const value_casted = value as (boolean) this.getPeer()?.databaseAccessAttribute(value_casted) @@ -281,7 +281,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - initialScale(value: number): this { + public initialScale(value: number): this { if (this.checkPriority("initialScale")) { const value_casted = value as (number) this.getPeer()?.initialScaleAttribute(value_casted) @@ -290,7 +290,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - userAgent(value: string): this { + public userAgent(value: string): this { if (this.checkPriority("userAgent")) { const value_casted = value as (string) this.getPeer()?.userAgentAttribute(value_casted) @@ -299,7 +299,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - metaViewport(value: boolean): this { + public metaViewport(value: boolean): this { if (this.checkPriority("metaViewport")) { const value_casted = value as (boolean) this.getPeer()?.metaViewportAttribute(value_casted) @@ -308,7 +308,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPageEnd(value: ((parameter: OnPageEndEvent) => void)): this { + public onPageEnd(value: ((parameter: OnPageEndEvent) => void)): this { if (this.checkPriority("onPageEnd")) { const value_casted = value as (((parameter: OnPageEndEvent) => void)) UseEventsProperties({Web_onPageEnd: value_casted}) @@ -318,7 +318,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPageBegin(value: ((parameter: OnPageBeginEvent) => void)): this { + public onPageBegin(value: ((parameter: OnPageBeginEvent) => void)): this { if (this.checkPriority("onPageBegin")) { const value_casted = value as (((parameter: OnPageBeginEvent) => void)) UseEventsProperties({Web_onPageBegin: value_casted}) @@ -328,7 +328,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onProgressChange(value: ((parameter: OnProgressChangeEvent) => void)): this { + public onProgressChange(value: ((parameter: OnProgressChangeEvent) => void)): this { if (this.checkPriority("onProgressChange")) { const value_casted = value as (((parameter: OnProgressChangeEvent) => void)) UseEventsProperties({Web_onProgressChange: value_casted}) @@ -338,7 +338,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTitleReceive(value: ((parameter: OnTitleReceiveEvent) => void)): this { + public onTitleReceive(value: ((parameter: OnTitleReceiveEvent) => void)): this { if (this.checkPriority("onTitleReceive")) { const value_casted = value as (((parameter: OnTitleReceiveEvent) => void)) UseEventsProperties({Web_onTitleReceive: value_casted}) @@ -348,7 +348,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGeolocationHide(value: (() => void)): this { + public onGeolocationHide(value: (() => void)): this { if (this.checkPriority("onGeolocationHide")) { const value_casted = value as ((() => void)) UseEventsProperties({Web_onGeolocationHide: value_casted}) @@ -358,7 +358,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onGeolocationShow(value: ((parameter: OnGeolocationShowEvent) => void)): this { + public onGeolocationShow(value: ((parameter: OnGeolocationShowEvent) => void)): this { if (this.checkPriority("onGeolocationShow")) { const value_casted = value as (((parameter: OnGeolocationShowEvent) => void)) UseEventsProperties({Web_onGeolocationShow: value_casted}) @@ -368,7 +368,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRequestSelected(value: (() => void)): this { + public onRequestSelected(value: (() => void)): this { if (this.checkPriority("onRequestSelected")) { const value_casted = value as ((() => void)) UseEventsProperties({Web_onRequestSelected: value_casted}) @@ -378,7 +378,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAlert(value: ((parameter: OnAlertEvent) => boolean)): this { + public onAlert(value: ((parameter: OnAlertEvent) => boolean)): this { if (this.checkPriority("onAlert")) { const value_casted = value as (((parameter: OnAlertEvent) => boolean)) UseEventsProperties({Web_onAlert: value_casted}) @@ -388,7 +388,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onBeforeUnload(value: ((parameter: OnBeforeUnloadEvent) => boolean)): this { + public onBeforeUnload(value: ((parameter: OnBeforeUnloadEvent) => boolean)): this { if (this.checkPriority("onBeforeUnload")) { const value_casted = value as (((parameter: OnBeforeUnloadEvent) => boolean)) UseEventsProperties({Web_onBeforeUnload: value_casted}) @@ -398,7 +398,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onConfirm(value: ((parameter: OnConfirmEvent) => boolean)): this { + public onConfirm(value: ((parameter: OnConfirmEvent) => boolean)): this { if (this.checkPriority("onConfirm")) { const value_casted = value as (((parameter: OnConfirmEvent) => boolean)) UseEventsProperties({Web_onConfirm: value_casted}) @@ -408,7 +408,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPrompt(value: ((parameter: OnPromptEvent) => boolean)): this { + public onPrompt(value: ((parameter: OnPromptEvent) => boolean)): this { if (this.checkPriority("onPrompt")) { const value_casted = value as (((parameter: OnPromptEvent) => boolean)) UseEventsProperties({Web_onPrompt: value_casted}) @@ -418,7 +418,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onConsole(value: ((parameter: OnConsoleEvent) => boolean)): this { + public onConsole(value: ((parameter: OnConsoleEvent) => boolean)): this { if (this.checkPriority("onConsole")) { const value_casted = value as (((parameter: OnConsoleEvent) => boolean)) UseEventsProperties({Web_onConsole: value_casted}) @@ -428,7 +428,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onErrorReceive(value: ((parameter: OnErrorReceiveEvent) => void)): this { + public onErrorReceive(value: ((parameter: OnErrorReceiveEvent) => void)): this { if (this.checkPriority("onErrorReceive")) { const value_casted = value as (((parameter: OnErrorReceiveEvent) => void)) UseEventsProperties({Web_onErrorReceive: value_casted}) @@ -438,7 +438,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHttpErrorReceive(value: ((parameter: OnHttpErrorReceiveEvent) => void)): this { + public onHttpErrorReceive(value: ((parameter: OnHttpErrorReceiveEvent) => void)): this { if (this.checkPriority("onHttpErrorReceive")) { const value_casted = value as (((parameter: OnHttpErrorReceiveEvent) => void)) UseEventsProperties({Web_onHttpErrorReceive: value_casted}) @@ -448,7 +448,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDownloadStart(value: ((parameter: OnDownloadStartEvent) => void)): this { + public onDownloadStart(value: ((parameter: OnDownloadStartEvent) => void)): this { if (this.checkPriority("onDownloadStart")) { const value_casted = value as (((parameter: OnDownloadStartEvent) => void)) UseEventsProperties({Web_onDownloadStart: value_casted}) @@ -458,7 +458,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRefreshAccessedHistory(value: ((parameter: OnRefreshAccessedHistoryEvent) => void)): this { + public onRefreshAccessedHistory(value: ((parameter: OnRefreshAccessedHistoryEvent) => void)): this { if (this.checkPriority("onRefreshAccessedHistory")) { const value_casted = value as (((parameter: OnRefreshAccessedHistoryEvent) => void)) UseEventsProperties({Web_onRefreshAccessedHistory: value_casted}) @@ -468,7 +468,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onUrlLoadIntercept(value: ((event?: { data: string | WebResourceRequest }) => boolean)): this { + public onUrlLoadIntercept(value: ((event?: { data: string | WebResourceRequest }) => boolean)): this { if (this.checkPriority("onUrlLoadIntercept")) { const value_casted = value as (((event?: { data: string | WebResourceRequest }) => boolean)) UseEventsProperties({Web_onUrlLoadIntercept: value_casted}) @@ -478,7 +478,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSslErrorReceive(value: ((event?: { handler: Function, error: Object }) => void)): this { + public onSslErrorReceive(value: ((event?: { handler: Function, error: Object }) => void)): this { if (this.checkPriority("onSslErrorReceive")) { const value_casted = value as (((event?: { handler: Function, error: Object }) => void)) UseEventsProperties({Web_onSslErrorReceive: value_casted}) @@ -488,7 +488,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRenderExited(value: ((parameter: OnRenderExitedEvent) => void) | ((event?: { detail: Object }) => boolean)): this { + 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)))) { @@ -508,7 +508,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onShowFileSelector(value: ((parameter: OnShowFileSelectorEvent) => boolean)): this { + public onShowFileSelector(value: ((parameter: OnShowFileSelectorEvent) => boolean)): this { if (this.checkPriority("onShowFileSelector")) { const value_casted = value as (((parameter: OnShowFileSelectorEvent) => boolean)) UseEventsProperties({Web_onShowFileSelector: value_casted}) @@ -518,7 +518,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFileSelectorShow(value: ((event?: { callback_: Function, fileSelector: Object }) => void)): this { + public onFileSelectorShow(value: ((event?: { callback_: Function, fileSelector: Object }) => void)): this { if (this.checkPriority("onFileSelectorShow")) { const value_casted = value as (((event?: { callback_: Function, fileSelector: Object }) => void)) UseEventsProperties({Web_onFileSelectorShow: value_casted}) @@ -528,7 +528,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onResourceLoad(value: ((parameter: OnResourceLoadEvent) => void)): this { + public onResourceLoad(value: ((parameter: OnResourceLoadEvent) => void)): this { if (this.checkPriority("onResourceLoad")) { const value_casted = value as (((parameter: OnResourceLoadEvent) => void)) UseEventsProperties({Web_onResourceLoad: value_casted}) @@ -538,7 +538,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFullScreenExit(value: (() => void)): this { + public onFullScreenExit(value: (() => void)): this { if (this.checkPriority("onFullScreenExit")) { const value_casted = value as ((() => void)) UseEventsProperties({Web_onFullScreenExit: value_casted}) @@ -548,7 +548,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFullScreenEnter(value: OnFullScreenEnterCallback): this { + public onFullScreenEnter(value: OnFullScreenEnterCallback): this { if (this.checkPriority("onFullScreenEnter")) { const value_casted = value as (OnFullScreenEnterCallback) UseEventsProperties({Web_onFullScreenEnter: value_casted}) @@ -558,7 +558,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onScaleChange(value: ((parameter: OnScaleChangeEvent) => void)): this { + public onScaleChange(value: ((parameter: OnScaleChangeEvent) => void)): this { if (this.checkPriority("onScaleChange")) { const value_casted = value as (((parameter: OnScaleChangeEvent) => void)) UseEventsProperties({Web_onScaleChange: value_casted}) @@ -568,7 +568,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHttpAuthRequest(value: ((parameter: OnHttpAuthRequestEvent) => boolean)): this { + public onHttpAuthRequest(value: ((parameter: OnHttpAuthRequestEvent) => boolean)): this { if (this.checkPriority("onHttpAuthRequest")) { const value_casted = value as (((parameter: OnHttpAuthRequestEvent) => boolean)) UseEventsProperties({Web_onHttpAuthRequest: value_casted}) @@ -578,7 +578,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInterceptRequest(value: ((parameter: OnInterceptRequestEvent) => WebResourceResponse)): this { + public onInterceptRequest(value: ((parameter: OnInterceptRequestEvent) => WebResourceResponse)): this { if (this.checkPriority("onInterceptRequest")) { const value_casted = value as (((parameter: OnInterceptRequestEvent) => WebResourceResponse)) UseEventsProperties({Web_onInterceptRequest: value_casted}) @@ -588,7 +588,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPermissionRequest(value: ((parameter: OnPermissionRequestEvent) => void)): this { + public onPermissionRequest(value: ((parameter: OnPermissionRequestEvent) => void)): this { if (this.checkPriority("onPermissionRequest")) { const value_casted = value as (((parameter: OnPermissionRequestEvent) => void)) UseEventsProperties({Web_onPermissionRequest: value_casted}) @@ -598,7 +598,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onScreenCaptureRequest(value: ((parameter: OnScreenCaptureRequestEvent) => void)): this { + public onScreenCaptureRequest(value: ((parameter: OnScreenCaptureRequestEvent) => void)): this { if (this.checkPriority("onScreenCaptureRequest")) { const value_casted = value as (((parameter: OnScreenCaptureRequestEvent) => void)) UseEventsProperties({Web_onScreenCaptureRequest: value_casted}) @@ -608,7 +608,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContextMenuShow(value: ((parameter: OnContextMenuShowEvent) => boolean)): this { + public onContextMenuShow(value: ((parameter: OnContextMenuShowEvent) => boolean)): this { if (this.checkPriority("onContextMenuShow")) { const value_casted = value as (((parameter: OnContextMenuShowEvent) => boolean)) UseEventsProperties({Web_onContextMenuShow: value_casted}) @@ -618,7 +618,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onContextMenuHide(value: OnContextMenuHideCallback): this { + public onContextMenuHide(value: OnContextMenuHideCallback): this { if (this.checkPriority("onContextMenuHide")) { const value_casted = value as (OnContextMenuHideCallback) UseEventsProperties({Web_onContextMenuHide: value_casted}) @@ -628,7 +628,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - mediaPlayGestureAccess(value: boolean): this { + public mediaPlayGestureAccess(value: boolean): this { if (this.checkPriority("mediaPlayGestureAccess")) { const value_casted = value as (boolean) this.getPeer()?.mediaPlayGestureAccessAttribute(value_casted) @@ -637,7 +637,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSearchResultReceive(value: ((parameter: OnSearchResultReceiveEvent) => void)): this { + public onSearchResultReceive(value: ((parameter: OnSearchResultReceiveEvent) => void)): this { if (this.checkPriority("onSearchResultReceive")) { const value_casted = value as (((parameter: OnSearchResultReceiveEvent) => void)) UseEventsProperties({Web_onSearchResultReceive: value_casted}) @@ -647,7 +647,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onScroll(value: ((parameter: OnScrollEvent) => void)): this { + public onScroll(value: ((parameter: OnScrollEvent) => void)): this { if (this.checkPriority("onScroll")) { const value_casted = value as (((parameter: OnScrollEvent) => void)) UseEventsProperties({Web_onScroll: value_casted}) @@ -657,7 +657,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSslErrorEventReceive(value: ((parameter: OnSslErrorEventReceiveEvent) => void)): this { + public onSslErrorEventReceive(value: ((parameter: OnSslErrorEventReceiveEvent) => void)): this { if (this.checkPriority("onSslErrorEventReceive")) { const value_casted = value as (((parameter: OnSslErrorEventReceiveEvent) => void)) UseEventsProperties({Web_onSslErrorEventReceive: value_casted}) @@ -667,7 +667,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSslErrorEvent(value: OnSslErrorEventCallback): this { + public onSslErrorEvent(value: OnSslErrorEventCallback): this { if (this.checkPriority("onSslErrorEvent")) { const value_casted = value as (OnSslErrorEventCallback) UseEventsProperties({Web_onSslErrorEvent: value_casted}) @@ -677,7 +677,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onClientAuthenticationRequest(value: ((parameter: OnClientAuthenticationEvent) => void)): this { + public onClientAuthenticationRequest(value: ((parameter: OnClientAuthenticationEvent) => void)): this { if (this.checkPriority("onClientAuthenticationRequest")) { const value_casted = value as (((parameter: OnClientAuthenticationEvent) => void)) UseEventsProperties({Web_onClientAuthenticationRequest: value_casted}) @@ -687,7 +687,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWindowNew(value: ((parameter: OnWindowNewEvent) => void)): this { + public onWindowNew(value: ((parameter: OnWindowNewEvent) => void)): this { if (this.checkPriority("onWindowNew")) { const value_casted = value as (((parameter: OnWindowNewEvent) => void)) UseEventsProperties({Web_onWindowNew: value_casted}) @@ -697,7 +697,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onWindowExit(value: (() => void)): this { + public onWindowExit(value: (() => void)): this { if (this.checkPriority("onWindowExit")) { const value_casted = value as ((() => void)) UseEventsProperties({Web_onWindowExit: value_casted}) @@ -707,7 +707,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - multiWindowAccess(value: boolean): this { + public multiWindowAccess(value: boolean): this { if (this.checkPriority("multiWindowAccess")) { const value_casted = value as (boolean) this.getPeer()?.multiWindowAccessAttribute(value_casted) @@ -716,7 +716,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInterceptKeyEvent(value: ((parameter: KeyEvent) => boolean)): this { + public onInterceptKeyEvent(value: ((parameter: KeyEvent) => boolean)): this { if (this.checkPriority("onInterceptKeyEvent")) { const value_casted = value as (((parameter: KeyEvent) => boolean)) UseEventsProperties({Web_onInterceptKeyEvent: value_casted}) @@ -726,7 +726,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webStandardFont(value: string): this { + public webStandardFont(value: string): this { if (this.checkPriority("webStandardFont")) { const value_casted = value as (string) this.getPeer()?.webStandardFontAttribute(value_casted) @@ -735,7 +735,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webSerifFont(value: string): this { + public webSerifFont(value: string): this { if (this.checkPriority("webSerifFont")) { const value_casted = value as (string) this.getPeer()?.webSerifFontAttribute(value_casted) @@ -744,7 +744,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webSansSerifFont(value: string): this { + public webSansSerifFont(value: string): this { if (this.checkPriority("webSansSerifFont")) { const value_casted = value as (string) this.getPeer()?.webSansSerifFontAttribute(value_casted) @@ -753,7 +753,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webFixedFont(value: string): this { + public webFixedFont(value: string): this { if (this.checkPriority("webFixedFont")) { const value_casted = value as (string) this.getPeer()?.webFixedFontAttribute(value_casted) @@ -762,7 +762,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webFantasyFont(value: string): this { + public webFantasyFont(value: string): this { if (this.checkPriority("webFantasyFont")) { const value_casted = value as (string) this.getPeer()?.webFantasyFontAttribute(value_casted) @@ -771,7 +771,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - webCursiveFont(value: string): this { + public webCursiveFont(value: string): this { if (this.checkPriority("webCursiveFont")) { const value_casted = value as (string) this.getPeer()?.webCursiveFontAttribute(value_casted) @@ -780,7 +780,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultFixedFontSize(value: number): this { + public defaultFixedFontSize(value: number): this { if (this.checkPriority("defaultFixedFontSize")) { const value_casted = value as (number) this.getPeer()?.defaultFixedFontSizeAttribute(value_casted) @@ -789,7 +789,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultFontSize(value: number): this { + public defaultFontSize(value: number): this { if (this.checkPriority("defaultFontSize")) { const value_casted = value as (number) this.getPeer()?.defaultFontSizeAttribute(value_casted) @@ -798,7 +798,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minFontSize(value: number): this { + public minFontSize(value: number): this { if (this.checkPriority("minFontSize")) { const value_casted = value as (number) this.getPeer()?.minFontSizeAttribute(value_casted) @@ -807,7 +807,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - minLogicalFontSize(value: number): this { + public minLogicalFontSize(value: number): this { if (this.checkPriority("minLogicalFontSize")) { const value_casted = value as (number) this.getPeer()?.minLogicalFontSizeAttribute(value_casted) @@ -816,7 +816,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - defaultTextEncodingFormat(value: string): this { + public defaultTextEncodingFormat(value: string): this { if (this.checkPriority("defaultTextEncodingFormat")) { const value_casted = value as (string) this.getPeer()?.defaultTextEncodingFormatAttribute(value_casted) @@ -825,7 +825,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - forceDisplayScrollBar(value: boolean): this { + public forceDisplayScrollBar(value: boolean): this { if (this.checkPriority("forceDisplayScrollBar")) { const value_casted = value as (boolean) this.getPeer()?.forceDisplayScrollBarAttribute(value_casted) @@ -834,7 +834,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - blockNetwork(value: boolean): this { + public blockNetwork(value: boolean): this { if (this.checkPriority("blockNetwork")) { const value_casted = value as (boolean) this.getPeer()?.blockNetworkAttribute(value_casted) @@ -843,7 +843,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - horizontalScrollBarAccess(value: boolean): this { + public horizontalScrollBarAccess(value: boolean): this { if (this.checkPriority("horizontalScrollBarAccess")) { const value_casted = value as (boolean) this.getPeer()?.horizontalScrollBarAccessAttribute(value_casted) @@ -852,7 +852,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - verticalScrollBarAccess(value: boolean): this { + public verticalScrollBarAccess(value: boolean): this { if (this.checkPriority("verticalScrollBarAccess")) { const value_casted = value as (boolean) this.getPeer()?.verticalScrollBarAccessAttribute(value_casted) @@ -861,7 +861,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onTouchIconUrlReceived(value: ((parameter: OnTouchIconUrlReceivedEvent) => void)): this { + public onTouchIconUrlReceived(value: ((parameter: OnTouchIconUrlReceivedEvent) => void)): this { if (this.checkPriority("onTouchIconUrlReceived")) { const value_casted = value as (((parameter: OnTouchIconUrlReceivedEvent) => void)) UseEventsProperties({Web_onTouchIconUrlReceived: value_casted}) @@ -871,7 +871,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFaviconReceived(value: ((parameter: OnFaviconReceivedEvent) => void)): this { + public onFaviconReceived(value: ((parameter: OnFaviconReceivedEvent) => void)): this { if (this.checkPriority("onFaviconReceived")) { const value_casted = value as (((parameter: OnFaviconReceivedEvent) => void)) UseEventsProperties({Web_onFaviconReceived: value_casted}) @@ -881,7 +881,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onPageVisible(value: ((parameter: OnPageVisibleEvent) => void)): this { + public onPageVisible(value: ((parameter: OnPageVisibleEvent) => void)): this { if (this.checkPriority("onPageVisible")) { const value_casted = value as (((parameter: OnPageVisibleEvent) => void)) UseEventsProperties({Web_onPageVisible: value_casted}) @@ -891,7 +891,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDataResubmitted(value: ((parameter: OnDataResubmittedEvent) => void)): this { + public onDataResubmitted(value: ((parameter: OnDataResubmittedEvent) => void)): this { if (this.checkPriority("onDataResubmitted")) { const value_casted = value as (((parameter: OnDataResubmittedEvent) => void)) UseEventsProperties({Web_onDataResubmitted: value_casted}) @@ -901,7 +901,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - pinchSmooth(value: boolean): this { + public pinchSmooth(value: boolean): this { if (this.checkPriority("pinchSmooth")) { const value_casted = value as (boolean) this.getPeer()?.pinchSmoothAttribute(value_casted) @@ -910,7 +910,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - allowWindowOpenMethod(value: boolean): this { + public allowWindowOpenMethod(value: boolean): this { if (this.checkPriority("allowWindowOpenMethod")) { const value_casted = value as (boolean) this.getPeer()?.allowWindowOpenMethodAttribute(value_casted) @@ -919,7 +919,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAudioStateChanged(value: ((parameter: OnAudioStateChangedEvent) => void)): this { + public onAudioStateChanged(value: ((parameter: OnAudioStateChangedEvent) => void)): this { if (this.checkPriority("onAudioStateChanged")) { const value_casted = value as (((parameter: OnAudioStateChangedEvent) => void)) UseEventsProperties({Web_onAudioStateChanged: value_casted}) @@ -929,7 +929,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFirstContentfulPaint(value: ((parameter: OnFirstContentfulPaintEvent) => void)): this { + public onFirstContentfulPaint(value: ((parameter: OnFirstContentfulPaintEvent) => void)): this { if (this.checkPriority("onFirstContentfulPaint")) { const value_casted = value as (((parameter: OnFirstContentfulPaintEvent) => void)) UseEventsProperties({Web_onFirstContentfulPaint: value_casted}) @@ -939,7 +939,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback): this { + public onFirstMeaningfulPaint(value: OnFirstMeaningfulPaintCallback): this { if (this.checkPriority("onFirstMeaningfulPaint")) { const value_casted = value as (OnFirstMeaningfulPaintCallback) UseEventsProperties({Web_onFirstMeaningfulPaint: value_casted}) @@ -949,7 +949,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLargestContentfulPaint(value: OnLargestContentfulPaintCallback): this { + public onLargestContentfulPaint(value: OnLargestContentfulPaintCallback): this { if (this.checkPriority("onLargestContentfulPaint")) { const value_casted = value as (OnLargestContentfulPaintCallback) UseEventsProperties({Web_onLargestContentfulPaint: value_casted}) @@ -959,7 +959,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLoadIntercept(value: ((parameter: OnLoadInterceptEvent) => boolean)): this { + public onLoadIntercept(value: ((parameter: OnLoadInterceptEvent) => boolean)): this { if (this.checkPriority("onLoadIntercept")) { const value_casted = value as (((parameter: OnLoadInterceptEvent) => boolean)) UseEventsProperties({Web_onLoadIntercept: value_casted}) @@ -969,7 +969,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onControllerAttached(value: (() => void)): this { + public onControllerAttached(value: (() => void)): this { if (this.checkPriority("onControllerAttached")) { const value_casted = value as ((() => void)) UseEventsProperties({Web_onControllerAttached: value_casted}) @@ -979,7 +979,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onOverScroll(value: ((parameter: OnOverScrollEvent) => void)): this { + public onOverScroll(value: ((parameter: OnOverScrollEvent) => void)): this { if (this.checkPriority("onOverScroll")) { const value_casted = value as (((parameter: OnOverScrollEvent) => void)) UseEventsProperties({Web_onOverScroll: value_casted}) @@ -989,7 +989,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback): this { + public onSafeBrowsingCheckResult(value: OnSafeBrowsingCheckResultCallback): this { if (this.checkPriority("onSafeBrowsingCheckResult")) { const value_casted = value as (OnSafeBrowsingCheckResultCallback) UseEventsProperties({Web_onSafeBrowsingCheckResult: value_casted}) @@ -999,7 +999,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback): this { + public onNavigationEntryCommitted(value: OnNavigationEntryCommittedCallback): this { if (this.checkPriority("onNavigationEntryCommitted")) { const value_casted = value as (OnNavigationEntryCommittedCallback) UseEventsProperties({Web_onNavigationEntryCommitted: value_casted}) @@ -1009,7 +1009,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback): this { + public onIntelligentTrackingPreventionResult(value: OnIntelligentTrackingPreventionCallback): this { if (this.checkPriority("onIntelligentTrackingPreventionResult")) { const value_casted = value as (OnIntelligentTrackingPreventionCallback) UseEventsProperties({Web_onIntelligentTrackingPreventionResult: value_casted}) @@ -1019,7 +1019,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptOnDocumentStart(value: Array): this { + public javaScriptOnDocumentStart(value: Array): this { if (this.checkPriority("javaScriptOnDocumentStart")) { const value_casted = value as (Array) this.getPeer()?.javaScriptOnDocumentStartAttribute(value_casted) @@ -1028,7 +1028,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - javaScriptOnDocumentEnd(value: Array): this { + public javaScriptOnDocumentEnd(value: Array): this { if (this.checkPriority("javaScriptOnDocumentEnd")) { const value_casted = value as (Array) this.getPeer()?.javaScriptOnDocumentEndAttribute(value_casted) @@ -1037,7 +1037,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - layoutMode(value: WebLayoutMode): this { + public layoutMode(value: WebLayoutMode): this { if (this.checkPriority("layoutMode")) { const value_casted = value as (WebLayoutMode) this.getPeer()?.layoutModeAttribute(value_casted) @@ -1046,7 +1046,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): this { + public nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): this { if (this.checkPriority("nestedScroll")) { const value_casted = value as (NestedScrollOptions | NestedScrollOptionsExt) this.getPeer()?.nestedScrollAttribute(value_casted) @@ -1055,7 +1055,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableNativeEmbedMode(value: boolean): this { + public enableNativeEmbedMode(value: boolean): this { if (this.checkPriority("enableNativeEmbedMode")) { const value_casted = value as (boolean) this.getPeer()?.enableNativeEmbedModeAttribute(value_casted) @@ -1064,7 +1064,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void)): this { + public onNativeEmbedLifecycleChange(value: ((event: NativeEmbedDataInfo) => void)): this { if (this.checkPriority("onNativeEmbedLifecycleChange")) { const value_casted = value as (((event: NativeEmbedDataInfo) => void)) UseEventsProperties({Web_onNativeEmbedLifecycleChange: value_casted}) @@ -1074,7 +1074,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback): this { + public onNativeEmbedVisibilityChange(value: OnNativeEmbedVisibilityChangeCallback): this { if (this.checkPriority("onNativeEmbedVisibilityChange")) { const value_casted = value as (OnNativeEmbedVisibilityChangeCallback) UseEventsProperties({Web_onNativeEmbedVisibilityChange: value_casted}) @@ -1084,7 +1084,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void)): this { + public onNativeEmbedGestureEvent(value: ((event: NativeEmbedTouchInfo) => void)): this { if (this.checkPriority("onNativeEmbedGestureEvent")) { const value_casted = value as (((event: NativeEmbedTouchInfo) => void)) UseEventsProperties({Web_onNativeEmbedGestureEvent: value_casted}) @@ -1094,7 +1094,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - copyOptions(value: CopyOptions): this { + public copyOptions(value: CopyOptions): this { if (this.checkPriority("copyOptions")) { const value_casted = value as (CopyOptions) this.getPeer()?.copyOptionsAttribute(value_casted) @@ -1103,7 +1103,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback): this { + public onOverrideUrlLoading(value: OnOverrideUrlLoadingCallback): this { if (this.checkPriority("onOverrideUrlLoading")) { const value_casted = value as (OnOverrideUrlLoadingCallback) UseEventsProperties({Web_onOverrideUrlLoading: value_casted}) @@ -1113,7 +1113,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - textAutosizing(value: boolean): this { + public textAutosizing(value: boolean): this { if (this.checkPriority("textAutosizing")) { const value_casted = value as (boolean) this.getPeer()?.textAutosizingAttribute(value_casted) @@ -1122,7 +1122,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableNativeMediaPlayer(value: NativeMediaPlayerConfig): this { + public enableNativeMediaPlayer(value: NativeMediaPlayerConfig): this { if (this.checkPriority("enableNativeMediaPlayer")) { const value_casted = value as (NativeMediaPlayerConfig) this.getPeer()?.enableNativeMediaPlayerAttribute(value_casted) @@ -1131,7 +1131,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableSmoothDragResize(value: boolean): this { + public enableSmoothDragResize(value: boolean): this { if (this.checkPriority("enableSmoothDragResize")) { const value_casted = value as (boolean) this.getPeer()?.enableSmoothDragResizeAttribute(value_casted) @@ -1140,7 +1140,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback): this { + public onRenderProcessNotResponding(value: OnRenderProcessNotRespondingCallback): this { if (this.checkPriority("onRenderProcessNotResponding")) { const value_casted = value as (OnRenderProcessNotRespondingCallback) UseEventsProperties({Web_onRenderProcessNotResponding: value_casted}) @@ -1150,7 +1150,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onRenderProcessResponding(value: OnRenderProcessRespondingCallback): this { + public onRenderProcessResponding(value: OnRenderProcessRespondingCallback): this { if (this.checkPriority("onRenderProcessResponding")) { const value_casted = value as (OnRenderProcessRespondingCallback) UseEventsProperties({Web_onRenderProcessResponding: value_casted}) @@ -1160,7 +1160,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - selectionMenuOptions(value: Array): this { + public selectionMenuOptions(value: Array): this { if (this.checkPriority("selectionMenuOptions")) { const value_casted = value as (Array) this.getPeer()?.selectionMenuOptionsAttribute(value_casted) @@ -1169,7 +1169,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onViewportFitChanged(value: OnViewportFitChangedCallback): this { + public onViewportFitChanged(value: OnViewportFitChangedCallback): this { if (this.checkPriority("onViewportFitChanged")) { const value_casted = value as (OnViewportFitChangedCallback) UseEventsProperties({Web_onViewportFitChanged: value_casted}) @@ -1179,7 +1179,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onInterceptKeyboardAttach(value: WebKeyboardCallback): this { + public onInterceptKeyboardAttach(value: WebKeyboardCallback): this { if (this.checkPriority("onInterceptKeyboardAttach")) { const value_casted = value as (WebKeyboardCallback) UseEventsProperties({Web_onInterceptKeyboardAttach: value_casted}) @@ -1189,7 +1189,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onAdsBlocked(value: OnAdsBlockedCallback): this { + public onAdsBlocked(value: OnAdsBlockedCallback): this { if (this.checkPriority("onAdsBlocked")) { const value_casted = value as (OnAdsBlockedCallback) UseEventsProperties({Web_onAdsBlocked: value_casted}) @@ -1199,7 +1199,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - keyboardAvoidMode(value: WebKeyboardAvoidMode): this { + public keyboardAvoidMode(value: WebKeyboardAvoidMode): this { if (this.checkPriority("keyboardAvoidMode")) { const value_casted = value as (WebKeyboardAvoidMode) this.getPeer()?.keyboardAvoidModeAttribute(value_casted) @@ -1208,7 +1208,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - editMenuOptions(value: EditMenuOptions): this { + public editMenuOptions(value: EditMenuOptions): this { if (this.checkPriority("editMenuOptions")) { const value_casted = value as (EditMenuOptions) this.getPeer()?.editMenuOptionsAttribute(value_casted) @@ -1217,7 +1217,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableHapticFeedback(value: boolean): this { + public enableHapticFeedback(value: boolean): this { if (this.checkPriority("enableHapticFeedback")) { const value_casted = value as (boolean) this.getPeer()?.enableHapticFeedbackAttribute(value_casted) @@ -1226,7 +1226,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - registerNativeEmbedRule(tag: string, type: string): this { + public registerNativeEmbedRule(tag: string, type: string): this { if (this.checkPriority("registerNativeEmbedRule")) { const tag_casted = tag as (string) const type_casted = type as (string) @@ -1236,7 +1236,7 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - bindSelectionMenu(elementType: WebElementType, content: CustomBuilder, responseType: WebResponseType, options?: SelectionMenuOptionsExt): this { + public bindSelectionMenu(elementType: WebElementType, content: CustomBuilder, responseType: WebResponseType, options?: SelectionMenuOptionsExt): this { if (this.checkPriority("bindSelectionMenu")) { const elementType_casted = elementType as (WebElementType) const content_casted = content as (CustomBuilder) diff --git a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts b/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts index fcc93b501..d3399a0c3 100644 --- a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,46 +42,46 @@ export class WebContextMenuParam implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebContextMenuParam_getFinalizer() } - x(): number { + public x(): number { return this.x_serialize() } - y(): number { + public y(): number { return this.y_serialize() } - getLinkUrl(): string { + public getLinkUrl(): string { return this.getLinkUrl_serialize() } - getUnfilteredLinkUrl(): string { + public getUnfilteredLinkUrl(): string { return this.getUnfilteredLinkUrl_serialize() } - getSourceUrl(): string { + public getSourceUrl(): string { return this.getSourceUrl_serialize() } - existsImageContents(): boolean { + public existsImageContents(): boolean { return this.existsImageContents_serialize() } - getMediaType(): ContextMenuMediaType { + public getMediaType(): ContextMenuMediaType { return this.getMediaType_serialize() } - getSelectionText(): string { + public getSelectionText(): string { return this.getSelectionText_serialize() } - getSourceType(): ContextMenuSourceType { + public getSourceType(): ContextMenuSourceType { return this.getSourceType_serialize() } - getInputFieldType(): ContextMenuInputFieldType { + public getInputFieldType(): ContextMenuInputFieldType { return this.getInputFieldType_serialize() } - isEditable(): boolean { + public isEditable(): boolean { return this.isEditable_serialize() } - getEditStateFlags(): number { + public getEditStateFlags(): number { return this.getEditStateFlags_serialize() } - getPreviewWidth(): number { + public getPreviewWidth(): number { return this.getPreviewWidth_serialize() } - getPreviewHeight(): number { + public getPreviewHeight(): number { return this.getPreviewHeight_serialize() } private x_serialize(): number { diff --git a/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts b/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts index 09279fc4e..361cbc1d2 100644 --- a/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,27 +41,27 @@ export class WebContextMenuResult implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebContextMenuResult_getFinalizer() } - closeContextMenu(): void { + public closeContextMenu(): void { this?.closeContextMenu_serialize() return } - copyImage(): void { + public copyImage(): void { this?.copyImage_serialize() return } - copy(): void { + public copy(): void { this?.copy_serialize() return } - paste(): void { + public paste(): void { this?.paste_serialize() return } - cut(): void { + public cut(): void { this?.cut_serialize() return } - selectAll(): void { + public selectAll(): void { this?.selectAll_serialize() return } diff --git a/arkoala/arkui/src/ArkWebControllerMaterialized.ts b/arkoala/arkui/src/ArkWebControllerMaterialized.ts index 7b2547bea..767bf0c64 100644 --- a/arkoala/arkui/src/ArkWebControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkWebControllerMaterialized.ts @@ -24,7 +24,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -44,72 +44,72 @@ export class WebController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebController_getFinalizer() } - onInactive(): void { + public onInactive(): void { this?.onInactive_serialize() return } - onActive(): void { + public onActive(): void { this?.onActive_serialize() return } - zoom(factor: number): void { + public zoom(factor: number): void { const factor_casted = factor as (number) this?.zoom_serialize(factor_casted) return } - clearHistory(): void { + public clearHistory(): void { this?.clearHistory_serialize() return } - runJavaScript(options: { script: string, callback_?: ((breakpoints: string) => void) }): undefined { + public runJavaScript(options: { script: string, callback_?: ((breakpoints: string) => void) }): undefined { const options_casted = options as ({ script: string, callback_?: ((breakpoints: string) => void) }) return this.runJavaScript_serialize(options_casted) } - loadData(options: { data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string }): undefined { + public loadData(options: { data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string }): undefined { const options_casted = options as ({ data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string }) return this.loadData_serialize(options_casted) } - loadUrl(options: { url: string | Resource, headers?: Array
}): undefined { + public loadUrl(options: { url: string | Resource, headers?: Array
}): undefined { const options_casted = options as ({ url: string | Resource, headers?: Array
}) return this.loadUrl_serialize(options_casted) } - refresh(): undefined { + public refresh(): undefined { return this.refresh_serialize() } - stop(): undefined { + public stop(): undefined { return this.stop_serialize() } - registerJavaScriptProxy(options: { object_: Object, name: string, methodList: Array }): undefined { + public registerJavaScriptProxy(options: { object_: Object, name: string, methodList: Array }): undefined { const options_casted = options as ({ object_: Object, name: string, methodList: Array }) return this.registerJavaScriptProxy_serialize(options_casted) } - deleteJavaScriptRegister(name: string): undefined { + public deleteJavaScriptRegister(name: string): undefined { const name_casted = name as (string) return this.deleteJavaScriptRegister_serialize(name_casted) } - getHitTest(): HitTestType { + public getHitTest(): HitTestType { return this.getHitTest_serialize() } - requestFocus(): undefined { + public requestFocus(): undefined { return this.requestFocus_serialize() } - accessBackward(): boolean { + public accessBackward(): boolean { return this.accessBackward_serialize() } - accessForward(): boolean { + public accessForward(): boolean { return this.accessForward_serialize() } - accessStep(step: number): boolean { + public accessStep(step: number): boolean { const step_casted = step as (number) return this.accessStep_serialize(step_casted) } - backward(): undefined { + public backward(): undefined { return this.backward_serialize() } - forward(): undefined { + public forward(): undefined { return this.forward_serialize() } - getCookieManager(): WebCookie { + public getCookieManager(): WebCookie { return this.getCookieManager_serialize() } private onInactive_serialize(): void { diff --git a/arkoala/arkui/src/ArkWebCookieMaterialized.ts b/arkoala/arkui/src/ArkWebCookieMaterialized.ts index 9ff107648..18ec8d1b8 100644 --- a/arkoala/arkui/src/ArkWebCookieMaterialized.ts +++ b/arkoala/arkui/src/ArkWebCookieMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,10 +41,10 @@ export class WebCookie implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebCookie_getFinalizer() } - setCookie(): undefined { + public setCookie(): undefined { return this.setCookie_serialize() } - saveCookie(): undefined { + public saveCookie(): undefined { return this.saveCookie_serialize() } private setCookie_serialize(): undefined { diff --git a/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts b/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts index dbb54390f..9e8a3bd3b 100644 --- a/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,27 +41,27 @@ export class WebKeyboardController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebKeyboardController_getFinalizer() } - insertText(text: string): void { + public insertText(text: string): void { const text_casted = text as (string) this?.insertText_serialize(text_casted) return } - deleteForward(length: number): void { + public deleteForward(length: number): void { const length_casted = length as (number) this?.deleteForward_serialize(length_casted) return } - deleteBackward(length: number): void { + public deleteBackward(length: number): void { const length_casted = length as (number) this?.deleteBackward_serialize(length_casted) return } - sendFunctionKey(key: number): void { + public sendFunctionKey(key: number): void { const key_casted = key as (number) this?.sendFunctionKey_serialize(key_casted) return } - close(): void { + public close(): void { this?.close_serialize() return } diff --git a/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts b/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts index f228d0fc1..3cf53e0ef 100644 --- a/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts +++ b/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts @@ -21,7 +21,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -41,10 +41,10 @@ export class WebResourceError implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebResourceError_getFinalizer() } - getErrorInfo(): string { + public getErrorInfo(): string { return this.getErrorInfo_serialize() } - getErrorCode(): number { + public getErrorCode(): number { return this.getErrorCode_serialize() } private getErrorInfo_serialize(): string { diff --git a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts b/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts index 36a586050..62c02cf1c 100644 --- a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts +++ b/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts @@ -22,7 +22,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,22 +42,22 @@ export class WebResourceRequest implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebResourceRequest_getFinalizer() } - getRequestHeader(): Array
{ + public getRequestHeader(): Array
{ return this.getRequestHeader_serialize() } - getRequestUrl(): string { + public getRequestUrl(): string { return this.getRequestUrl_serialize() } - isRequestGesture(): boolean { + public isRequestGesture(): boolean { return this.isRequestGesture_serialize() } - isMainFrame(): boolean { + public isMainFrame(): boolean { return this.isMainFrame_serialize() } - isRedirect(): boolean { + public isRedirect(): boolean { return this.isRedirect_serialize() } - getRequestMethod(): string { + public getRequestMethod(): string { return this.getRequestMethod_serialize() } private getRequestHeader_serialize(): Array
{ diff --git a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts b/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts index 231a1cc9d..c953eb0cb 100644 --- a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts +++ b/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,63 +43,63 @@ export class WebResourceResponse implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebResourceResponse_getFinalizer() } - getResponseData(): string { + public getResponseData(): string { return this.getResponseData_serialize() } - getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined { + public getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined { return this.getResponseDataEx_serialize() } - getResponseEncoding(): string { + public getResponseEncoding(): string { return this.getResponseEncoding_serialize() } - getResponseMimeType(): string { + public getResponseMimeType(): string { return this.getResponseMimeType_serialize() } - getReasonMessage(): string { + public getReasonMessage(): string { return this.getReasonMessage_serialize() } - getResponseHeader(): Array
{ + public getResponseHeader(): Array
{ return this.getResponseHeader_serialize() } - getResponseCode(): number { + public getResponseCode(): number { return this.getResponseCode_serialize() } - setResponseData(data: string | number | Resource | ArrayBuffer): void { + public setResponseData(data: string | number | Resource | ArrayBuffer): void { const data_casted = data as (string | number | Resource | ArrayBuffer) this?.setResponseData_serialize(data_casted) return } - setResponseEncoding(encoding: string): void { + public setResponseEncoding(encoding: string): void { const encoding_casted = encoding as (string) this?.setResponseEncoding_serialize(encoding_casted) return } - setResponseMimeType(mimeType: string): void { + public setResponseMimeType(mimeType: string): void { const mimeType_casted = mimeType as (string) this?.setResponseMimeType_serialize(mimeType_casted) return } - setReasonMessage(reason: string): void { + public setReasonMessage(reason: string): void { const reason_casted = reason as (string) this?.setReasonMessage_serialize(reason_casted) return } - setResponseHeader(header: Array
): void { + public setResponseHeader(header: Array
): void { const header_casted = header as (Array
) this?.setResponseHeader_serialize(header_casted) return } - setResponseCode(code: number): void { + public setResponseCode(code: number): void { const code_casted = code as (number) this?.setResponseCode_serialize(code_casted) return } - setResponseIsReady(IsReady: boolean): void { + public setResponseIsReady(IsReady: boolean): void { const IsReady_casted = IsReady as (boolean) this?.setResponseIsReady_serialize(IsReady_casted) return } - getResponseIsReady(): boolean { + public getResponseIsReady(): boolean { return this.getResponseIsReady_serialize() } private getResponseData_serialize(): string { diff --git a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts b/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts index e3eda347c..e7b101d8a 100644 --- a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -46,11 +46,11 @@ export class WebviewController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._WebviewController_getFinalizer() } - static initializeWebEngine(): void { + public static initializeWebEngine(): void { WebviewController.initializeWebEngine_serialize() return } - loadUrl(url: string | Resource, headers?: Array): void { + public loadUrl(url: string | Resource, headers?: Array): void { const url_casted = url as (string | Resource) const headers_casted = headers as (Array | undefined) this?.loadUrl_serialize(url_casted, headers_casted) diff --git a/arkoala/arkui/src/ArkWindowScene.ts b/arkoala/arkui/src/ArkWindowScene.ts index 735aca3fb..82938b2cb 100644 --- a/arkoala/arkui/src/ArkWindowScene.ts +++ b/arkoala/arkui/src/ArkWindowScene.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -58,7 +58,7 @@ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { return (this.peer as ArkWindowScenePeer) } /** @memo */ - setWindowSceneOptions(persistentId: number): this { + public setWindowSceneOptions(persistentId: number): this { if (this.checkPriority("setWindowSceneOptions")) { const persistentId_casted = persistentId as (number) this.getPeer()?.setWindowSceneOptionsAttribute(persistentId_casted) @@ -67,7 +67,7 @@ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { return this } /** @memo */ - attractionEffect(destination: Position, fraction: number): this { + public attractionEffect(destination: Position, fraction: number): this { if (this.checkPriority("attractionEffect")) { const destination_casted = destination as (Position) const fraction_casted = fraction as (number) diff --git a/arkoala/arkui/src/ArkWithThemeInterfaces.ts b/arkoala/arkui/src/ArkWithThemeInterfaces.ts index bf0b0629a..d99e90d4f 100644 --- a/arkoala/arkui/src/ArkWithThemeInterfaces.ts +++ b/arkoala/arkui/src/ArkWithThemeInterfaces.ts @@ -21,7 +21,7 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { ThemeColorMode } from "./ArkCommonInterfaces" export interface CustomTheme { - __CustomThemeStub: string; + _CustomThemeStub: string; } export interface WithThemeOptions { theme?: CustomTheme; diff --git a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts b/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts index 62ce1ea15..f4fbdf2f1 100644 --- a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts @@ -23,7 +23,7 @@ import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,54 +43,54 @@ export class XComponentController implements MaterializedBase { static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._XComponentController_getFinalizer() } - getXComponentSurfaceId(): string { + public getXComponentSurfaceId(): string { return this.getXComponentSurfaceId_serialize() } - getXComponentContext(): Object { + public getXComponentContext(): Object { return this.getXComponentContext_serialize() } - setXComponentSurfaceSize(value: { surfaceWidth: number, surfaceHeight: number }): void { + public setXComponentSurfaceSize(value: { surfaceWidth: number, surfaceHeight: number }): void { const value_casted = value as ({ surfaceWidth: number, surfaceHeight: number }) this?.setXComponentSurfaceSize_serialize(value_casted) return } - setXComponentSurfaceRect(rect: SurfaceRect): void { + public setXComponentSurfaceRect(rect: SurfaceRect): void { const rect_casted = rect as (SurfaceRect) this?.setXComponentSurfaceRect_serialize(rect_casted) return } - getXComponentSurfaceRect(): SurfaceRect { + public getXComponentSurfaceRect(): SurfaceRect { return this.getXComponentSurfaceRect_serialize() } - setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void { + public setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void { const rotationOptions_casted = rotationOptions as (SurfaceRotationOptions) this?.setXComponentSurfaceRotation_serialize(rotationOptions_casted) return } - getXComponentSurfaceRotation(): Required { + public getXComponentSurfaceRotation(): SurfaceRotationOptions { return this.getXComponentSurfaceRotation_serialize() } - onSurfaceCreated(surfaceId: string): void { + public onSurfaceCreated(surfaceId: string): void { const surfaceId_casted = surfaceId as (string) this?.onSurfaceCreated_serialize(surfaceId_casted) return } - onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void { + public onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void { const surfaceId_casted = surfaceId as (string) const rect_casted = rect as (SurfaceRect) this?.onSurfaceChanged_serialize(surfaceId_casted, rect_casted) return } - onSurfaceDestroyed(surfaceId: string): void { + public onSurfaceDestroyed(surfaceId: string): void { const surfaceId_casted = surfaceId as (string) this?.onSurfaceDestroyed_serialize(surfaceId_casted) return } - startImageAnalyzer(config: ImageAnalyzerConfig): Promise { + public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { const config_casted = config as (ImageAnalyzerConfig) return this.startImageAnalyzer_serialize(config_casted) } - stopImageAnalyzer(): void { + public stopImageAnalyzer(): void { this?.stopImageAnalyzer_serialize() return } @@ -127,7 +127,7 @@ export class XComponentController implements MaterializedBase { ArkUIGeneratedNativeModule._XComponentController_setXComponentSurfaceRotation(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private getXComponentSurfaceRotation_serialize(): Required { + private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } diff --git a/arkoala/arkui/src/ArkXcomponent.ts b/arkoala/arkui/src/ArkXcomponent.ts index 0e0470c3c..35b29d854 100644 --- a/arkoala/arkui/src/ArkXcomponent.ts +++ b/arkoala/arkui/src/ArkXcomponent.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -62,7 +62,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return (this.peer as ArkXComponentPeer) } /** @memo */ - setXComponentOptions(value: { id: string, type: string, libraryname?: string, controller?: XComponentController } | XComponentOptions): this { + 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)))) { @@ -85,7 +85,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onLoad(value: OnNativeLoadCallback): this { + public onLoad(value: OnNativeLoadCallback): this { if (this.checkPriority("onLoad")) { const value_casted = value as (OnNativeLoadCallback) UseEventsProperties({XComponent_onLoad: value_casted}) @@ -95,7 +95,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onDestroy(value: VoidCallback): this { + public onDestroy(value: VoidCallback): this { if (this.checkPriority("onDestroy")) { const value_casted = value as (VoidCallback) UseEventsProperties({XComponent_onDestroy: value_casted}) @@ -105,7 +105,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableAnalyzer(value: boolean): this { + public enableAnalyzer(value: boolean): this { if (this.checkPriority("enableAnalyzer")) { const value_casted = value as (boolean) this.getPeer()?.enableAnalyzerAttribute(value_casted) @@ -114,7 +114,7 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - enableSecure(value: boolean): this { + public enableSecure(value: boolean): this { if (this.checkPriority("enableSecure")) { const value_casted = value as (boolean) this.getPeer()?.enableSecureAttribute(value_casted) diff --git a/arkoala/arkui/src/EnumsImpl.ts b/arkoala/arkui/src/EnumsImpl.ts index 012ec86b0..5dae340fd 100644 --- a/arkoala/arkui/src/EnumsImpl.ts +++ b/arkoala/arkui/src/EnumsImpl.ts @@ -1,4 +1,4 @@ -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" export enum PointerStyle { DEFAULT, EAST = 1, diff --git a/arkoala/arkui/src/MaterializedBase.ts b/arkoala/arkui/src/MaterializedBase.ts index 3f26a861e..dd2abe858 100644 --- a/arkoala/arkui/src/MaterializedBase.ts +++ b/arkoala/arkui/src/MaterializedBase.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { Finalizable } from "./Finalizable" +import { Finalizable } from "@koalaui/interop" export interface MaterializedBase { getPeer(): Finalizable | undefined diff --git a/arkoala/arkui/src/SyntheticDeclarations.ts b/arkoala/arkui/src/SyntheticDeclarations.ts index e919bebff..254bc90e5 100644 --- a/arkoala/arkui/src/SyntheticDeclarations.ts +++ b/arkoala/arkui/src/SyntheticDeclarations.ts @@ -22,7 +22,7 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" import { Want, LengthUnit, WebHeader } from "./ArkArkuiExternalInterfaces" import { DismissDialogAction } from "./ArkActionSheetInterfaces" -import { DismissReason, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissContentCoverAction, SheetSize, SheetDismiss, DismissSheetAction, SpringBackAction, SheetType, DismissPopupAction, TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, LinearGradient_common, ItemDragInfo, ShadowOptions, ShadowType, DrawContext } from "./ArkCommonInterfaces" +import { DismissReason, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissContentCoverAction, SheetSize, SheetDismiss, DismissSheetAction, SpringBackAction, SheetType, DismissPopupAction, TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, ItemDragInfo, ShadowOptions, ShadowType, DrawContext } from "./ArkCommonInterfaces" import { MonthData, CalendarDay, CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" import { CalendarController } from "./ArkCalendarControllerMaterialized" import { HorizontalAlign, VerticalAlign, Curve, PlayMode, MouseButton, MouseAction, TouchType, KeyType, KeySource, GradientDirection, HitTestMode, Alignment, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, Axis } from "./ArkEnumsInterfaces" @@ -43,15 +43,18 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { DatePickerResult } from "./ArkDatePickerInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { FormCallbackInfo } from "./ArkFormComponentInterfaces" +import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { ColorStop } from "./ArkDataPanelInterfaces" import { GestureEvent } from "./ArkGestureEventMaterialized" import { ComputedBarAttribute } from "./ArkGridInterfaces" import { ScrollState } from "./ArkListInterfaces" import { SwipeActionState } from "./ArkListItemInterfaces" import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback, NavigationTitleMode, NavigationMode, NavContentInfo, NavigationOperation, NavigationAnimatedTransition } from "./ArkNavigationInterfaces" +import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { RouteMapConfig, NavDestinationMode } from "./ArkNavDestinationInterfaces" +import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback, NavigationTitleMode, NavigationMode, NavContentInfo, NavigationOperation, NavigationAnimatedTransition } from "./ArkNavigationInterfaces" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" import { NavigationType } from "./ArkNavigatorInterfaces" import { PanelMode } from "./ArkPanelInterfaces" @@ -67,8 +70,9 @@ import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyM import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" import { StyledString } from "./ArkStyledStringMaterialized" -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ImageAttachment } from "./ArkImageAttachmentMaterialized" import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { TextPickerResult } from "./ArkTextPickerInterfaces" import { TimePickerResult } from "./ArkTimePickerInterfaces" @@ -227,8 +231,8 @@ export interface Literal_Number_errcode_String_msg { } export type Callback_Literal_Number_errcode_String_msg_Void = (info: { errcode: number, msg: string }) => void; export type Callback_Any_Void = (info: any) => void; -export type Tuple_Union_ResourceColor_LinearGradient_common_Number = [ - ResourceColor | LinearGradient_common, +export type Tuple_Union_ResourceColor_LinearGradient_Number = [ + ResourceColor | LinearGradient, number ] export type Callback_GestureEvent_Void = (event: GestureEvent) => void; @@ -448,7 +452,6 @@ export interface Literal_Number_code_Want_want { want?: Want; } export type Callback_Literal_Number_code_Want_want_Void = (parameter: { code: number, want?: Want }) => void; -namespace Profiler { +export namespace Profiler { export type Callback_String_Void = (info: string) => void; } -export type Callback_T_Any_this = (instance: any, args: any) => any; diff --git a/arkoala/arkui/src/index.ts b/arkoala/arkui/src/index.ts index 9920fccb5..b21463005 100644 --- a/arkoala/arkui/src/index.ts +++ b/arkoala/arkui/src/index.ts @@ -159,4 +159,5 @@ export * from "./ArkNavigation" export { Attach } from "./ComponentBase" export * from "./ArkNavPathStackMaterialized" -export * from "./ArkTabsControllerMaterialized" \ No newline at end of file +export * from "./ArkTabsControllerMaterialized" +export * from "./ArkRenderingContextSettingsMaterialized" diff --git a/arkoala/arkui/src/peer_events.ts b/arkoala/arkui/src/peer_events.ts index e1cdf1d22..36302ca51 100644 --- a/arkoala/arkui/src/peer_events.ts +++ b/arkoala/arkui/src/peer_events.ts @@ -1,4 +1,4 @@ -import { int32 } from "@koalaui/common" +import { int32, float32 } from "@koalaui/common" import { KStringPtr, KPointer, RuntimeType } from "@koalaui/interop" import { Deserializer } from "./peers/Deserializer" import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./ArkAlphabetIndexerInterfaces" @@ -23,20 +23,22 @@ import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" import { EventTargetInfo } from "./ArkEventTargetInfoMaterialized" +import { ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" +import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListItemGroupArea } from "./ArkListInterfaces" import { DatePickerResult } from "./ArkDatePickerInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { Want, WebHeader } from "./ArkArkuiExternalInterfaces" import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, WindowStatusType } from "./ArkFolderStackInterfaces" import { FormCallbackInfo } from "./ArkFormComponentInterfaces" import { ComputedBarAttribute } from "./ArkGridInterfaces" -import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListItemGroupArea } from "./ArkListInterfaces" import { ImageErrorCallback, ImageError } from "./ArkImageInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./ArkImageSpanInterfaces" import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" import { PanelMode } from "./ArkPanelInterfaces" import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" @@ -48,7 +50,6 @@ import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphI import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" import { SearchSubmitCallback } from "./ArkSearchInterfaces" import { SliderChangeMode } from "./ArkSliderInterfaces" import { OnSwiperAnimationStartCallback, SwiperAnimationEvent, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, ContentDidScrollCallback } from "./ArkSwiperInterfaces" @@ -88,7 +89,7 @@ export enum PeerEventKind { AlphabetIndexer_onSelect = 3, AlphabetIndexer_onRequestPopupData = 4, AlphabetIndexer_onPopupSelect = 5, - AlphabetIndexer___onChangeEvent_selected = 6, + AlphabetIndexer__onChangeEvent_selected = 6, Animator_onStart = 7, Animator_onPause = 8, Animator_onRepeat = 9, @@ -100,9 +101,9 @@ export enum PeerEventKind { CalendarPicker_onChange = 15, Canvas_onReady = 16, Checkbox_onChange = 17, - Checkbox___onChangeEvent_select = 18, + Checkbox__onChangeEvent_select = 18, CheckboxGroup_onChange = 19, - CheckboxGroup___onChangeEvent_selectAll = 20, + CheckboxGroup__onChangeEvent_selectAll = 20, CommonMethod_onChildTouchTest = 21, CommonMethod_onClick0 = 22, CommonMethod_onClick1 = 23, @@ -141,299 +142,301 @@ export enum PeerEventKind { CommonMethod_bindSheet = 56, CommonMethod_onVisibleAreaChange = 57, ScrollableCommonMethod_onScroll = 58, - ScrollableCommonMethod_onReachStart = 59, - ScrollableCommonMethod_onReachEnd = 60, - ScrollableCommonMethod_onScrollStart = 61, - ScrollableCommonMethod_onScrollStop = 62, - Counter_onInc = 63, - Counter_onDec = 64, - DatePicker_onChange = 65, - DatePicker_onDateChange = 66, - DatePicker___onChangeEvent_selected = 67, - EmbeddedComponent_onTerminated = 68, - FolderStack_onFolderStateChange = 69, - FolderStack_onHoverStatusChange = 70, - FormComponent_onAcquired = 71, - FormComponent_onError = 72, - FormComponent_onRouter = 73, - FormComponent_onUninstall = 74, - FormComponent_onLoad = 75, - Gauge_description = 76, - Grid_onScrollBarUpdate = 77, - Grid_onScrollIndex = 78, - Grid_onItemDragStart = 79, - Grid_onItemDragEnter = 80, - Grid_onItemDragMove = 81, - Grid_onItemDragLeave = 82, - Grid_onItemDrop = 83, - Grid_onScroll = 84, - Grid_onReachStart = 85, - Grid_onReachEnd = 86, - Grid_onScrollStart = 87, - Grid_onScrollStop = 88, - Grid_onScrollFrameBegin = 89, - GridItem_onSelect = 90, - GridItem___onChangeEvent_selected = 91, - GridRow_onBreakpointChange = 92, - Image_onComplete = 93, - Image_onError = 94, - Image_onFinish = 95, - ImageAnimator_onStart = 96, - ImageAnimator_onPause = 97, - ImageAnimator_onRepeat = 98, - ImageAnimator_onCancel = 99, - ImageAnimator_onFinish = 100, - ImageSpan_onComplete = 101, - ImageSpan_onError = 102, - List_onScroll = 103, - List_onScrollIndex = 104, - List_onScrollVisibleContentChange = 105, - List_onReachStart = 106, - List_onReachEnd = 107, - List_onScrollStart = 108, - List_onScrollStop = 109, - List_onItemDelete = 110, - List_onItemMove = 111, - List_onItemDragStart = 112, - List_onItemDragEnter = 113, - List_onItemDragMove = 114, - List_onItemDragLeave = 115, - List_onItemDrop = 116, - List_onScrollFrameBegin = 117, - ListItem_onSelect = 118, - ListItem___onChangeEvent_selected = 119, - LocationButton_onClick = 120, - Marquee_onStart = 121, - Marquee_onBounce = 122, - Marquee_onFinish = 123, - MenuItem_onChange = 124, - MenuItem___onChangeEvent_selected = 125, - NavDestination_onShown = 126, - NavDestination_onHidden = 127, - NavDestination_onBackPressed = 128, - NavDestination_onReady = 129, - NavDestination_onWillAppear = 130, - NavDestination_onWillDisappear = 131, - NavDestination_onWillShow = 132, - NavDestination_onWillHide = 133, - NavRouter_onStateChange = 134, - Panel_onChange = 135, - Panel_onHeightChange = 136, - Panel___onChangeEvent_mode = 137, - PasteButton_onClick = 138, - PatternLock_onPatternComplete = 139, - PatternLock_onDotConnect = 140, - PluginComponent_onComplete = 141, - PluginComponent_onError = 142, - Radio_onChange = 143, - Radio___onChangeEvent_checked = 144, - Rating_onChange = 145, - Rating___onChangeEvent_rating = 146, - Refresh_onStateChange = 147, - Refresh_onRefreshing = 148, - Refresh_onOffsetChange = 149, - Refresh___onChangeEvent_refreshing = 150, - RichEditor_onReady = 151, - RichEditor_onSelect = 152, - RichEditor_onSelectionChange = 153, - RichEditor_aboutToIMEInput = 154, - RichEditor_onIMEInputComplete = 155, - RichEditor_onDidIMEInput = 156, - RichEditor_aboutToDelete = 157, - RichEditor_onDeleteComplete = 158, - RichEditor_onPaste = 159, - RichEditor_onEditingChange = 160, - RichEditor_onSubmit = 161, - RichEditor_onWillChange = 162, - RichEditor_onDidChange = 163, - RichEditor_onCut = 164, - RichEditor_onCopy = 165, - RichEditor_bindSelectionMenu = 166, - RichEditor_customKeyboard = 167, - RichText_onStart = 168, - RichText_onComplete = 169, - SaveButton_onClick = 170, - Scroll_onScroll = 171, - Scroll_onScrollEdge = 172, - Scroll_onScrollStart = 173, - Scroll_onScrollEnd = 174, - Scroll_onScrollStop = 175, - Scroll_onScrollFrameBegin = 176, - Search_onEditChange = 177, - Search_onSubmit0 = 178, - Search_onSubmit1 = 179, - Search_onChange = 180, - Search_onTextSelectionChange = 181, - Search_onContentScroll = 182, - Search_onCopy = 183, - Search_onCut = 184, - Search_onPaste = 185, - Search_onWillInsert = 186, - Search_onDidInsert = 187, - Search_onWillDelete = 188, - Search_onDidDelete = 189, - Search_customKeyboard = 190, - Search___onChangeEvent_value = 191, - Select_onSelect = 192, - Select___onChangeEvent_selected = 193, - Select___onChangeEvent_value = 194, - Slider_onChange = 195, - Slider___onChangeEvent_value = 196, - Stepper_onFinish = 197, - Stepper_onSkip = 198, - Stepper_onChange = 199, - Stepper_onNext = 200, - Stepper_onPrevious = 201, - Stepper___onChangeEvent_index = 202, - Swiper_onChange = 203, - Swiper_onAnimationStart = 204, - Swiper_onAnimationEnd = 205, - Swiper_onGestureSwipe = 206, - Swiper_onContentDidScroll = 207, - Swiper___onChangeEvent_index = 208, - IndicatorComponent_onChange = 209, - Tabs_onChange = 210, - Tabs_onTabBarClick = 211, - Tabs_onAnimationStart = 212, - Tabs_onAnimationEnd = 213, - Tabs_onGestureSwipe = 214, - Tabs_customContentTransition = 215, - Tabs_onContentWillChange = 216, - Tabs___onChangeEvent_index = 217, - TabContent_onWillShow = 218, - TabContent_onWillHide = 219, - Text_onCopy = 220, - Text_onTextSelectionChange = 221, - Text_bindSelectionMenu = 222, - TextArea_onSubmit0 = 223, - TextArea_onSubmit1 = 224, - TextArea_onChange = 225, - TextArea_onTextSelectionChange = 226, - TextArea_onContentScroll = 227, - TextArea_onEditChange = 228, - TextArea_onCopy = 229, - TextArea_onCut = 230, - TextArea_onPaste = 231, - TextArea_onWillInsert = 232, - TextArea_onDidInsert = 233, - TextArea_onWillDelete = 234, - TextArea_onDidDelete = 235, - TextArea_customKeyboard = 236, - TextArea___onChangeEvent_text = 237, - TextClock_onDateChange = 238, - TextInput_onEditChanged = 239, - TextInput_onEditChange = 240, - TextInput_onSubmit = 241, - TextInput_onChange = 242, - TextInput_onTextSelectionChange = 243, - TextInput_onContentScroll = 244, - TextInput_onCopy = 245, - TextInput_onCut = 246, - TextInput_onPaste = 247, - TextInput_showUnit = 248, - TextInput_onSecurityStateChange = 249, - TextInput_onWillInsert = 250, - TextInput_onDidInsert = 251, - TextInput_onWillDelete = 252, - TextInput_onDidDelete = 253, - TextInput_customKeyboard = 254, - TextInput___onChangeEvent_text = 255, - TextPicker_onAccept = 256, - TextPicker_onCancel = 257, - TextPicker_onChange = 258, - TextPicker___onChangeEvent_selected = 259, - TextPicker___onChangeEvent_value = 260, - TextTimer_onTimer = 261, - TimePicker_onChange = 262, - TimePicker___onChangeEvent_selected = 263, - Toggle_onChange = 264, - Toggle___onChangeEvent_isOn = 265, - Video_onStart = 266, - Video_onPause = 267, - Video_onFinish = 268, - Video_onFullscreenChange = 269, - Video_onPrepared = 270, - Video_onSeeking = 271, - Video_onSeeked = 272, - Video_onUpdate = 273, - Video_onError = 274, - Video_onStop = 275, - Web_onPageEnd = 276, - Web_onPageBegin = 277, - Web_onProgressChange = 278, - Web_onTitleReceive = 279, - Web_onGeolocationHide = 280, - Web_onGeolocationShow = 281, - Web_onRequestSelected = 282, - Web_onAlert = 283, - Web_onBeforeUnload = 284, - Web_onConfirm = 285, - Web_onPrompt = 286, - Web_onConsole = 287, - Web_onErrorReceive = 288, - Web_onHttpErrorReceive = 289, - Web_onDownloadStart = 290, - Web_onRefreshAccessedHistory = 291, - Web_onUrlLoadIntercept = 292, - Web_onSslErrorReceive = 293, - Web_onRenderExited0 = 294, - Web_onRenderExited1 = 295, - Web_onShowFileSelector = 296, - Web_onFileSelectorShow = 297, - Web_onResourceLoad = 298, - Web_onFullScreenExit = 299, - Web_onFullScreenEnter = 300, - Web_onScaleChange = 301, - Web_onHttpAuthRequest = 302, - Web_onInterceptRequest = 303, - Web_onPermissionRequest = 304, - Web_onScreenCaptureRequest = 305, - Web_onContextMenuShow = 306, - Web_onContextMenuHide = 307, - Web_onSearchResultReceive = 308, - Web_onScroll = 309, - Web_onSslErrorEventReceive = 310, - Web_onSslErrorEvent = 311, - Web_onClientAuthenticationRequest = 312, - Web_onWindowNew = 313, - Web_onWindowExit = 314, - Web_onInterceptKeyEvent = 315, - Web_onTouchIconUrlReceived = 316, - Web_onFaviconReceived = 317, - Web_onPageVisible = 318, - Web_onDataResubmitted = 319, - Web_onAudioStateChanged = 320, - Web_onFirstContentfulPaint = 321, - Web_onFirstMeaningfulPaint = 322, - Web_onLargestContentfulPaint = 323, - Web_onLoadIntercept = 324, - Web_onControllerAttached = 325, - Web_onOverScroll = 326, - Web_onSafeBrowsingCheckResult = 327, - Web_onNavigationEntryCommitted = 328, - Web_onIntelligentTrackingPreventionResult = 329, - Web_onNativeEmbedLifecycleChange = 330, - Web_onNativeEmbedVisibilityChange = 331, - Web_onNativeEmbedGestureEvent = 332, - Web_onOverrideUrlLoading = 333, - Web_onRenderProcessNotResponding = 334, - Web_onRenderProcessResponding = 335, - Web_onViewportFitChanged = 336, - Web_onInterceptKeyboardAttach = 337, - Web_onAdsBlocked = 338, - Web_bindSelectionMenu = 339, - XComponent_onLoad = 340, - XComponent_onDestroy = 341, - SideBarContainer_onChange = 342, - SideBarContainer___onChangeEvent_showSideBar = 343, - WaterFlow_onReachStart = 344, - WaterFlow_onReachEnd = 345, - WaterFlow_onScrollFrameBegin = 346, - WaterFlow_onScrollIndex = 347, - UIExtensionComponent_onRemoteReady = 348, - UIExtensionComponent_onResult = 349, - UIExtensionComponent_onRelease = 350, - UIExtensionComponent_onTerminated = 351, + ScrollableCommonMethod_onDidScroll = 59, + ScrollableCommonMethod_onReachStart = 60, + ScrollableCommonMethod_onReachEnd = 61, + ScrollableCommonMethod_onScrollStart = 62, + ScrollableCommonMethod_onScrollStop = 63, + Counter_onInc = 64, + Counter_onDec = 65, + DatePicker_onChange = 66, + DatePicker_onDateChange = 67, + DatePicker__onChangeEvent_selected = 68, + EmbeddedComponent_onTerminated = 69, + FolderStack_onFolderStateChange = 70, + FolderStack_onHoverStatusChange = 71, + FormComponent_onAcquired = 72, + FormComponent_onError = 73, + FormComponent_onRouter = 74, + FormComponent_onUninstall = 75, + FormComponent_onLoad = 76, + Gauge_description = 77, + Grid_onScrollBarUpdate = 78, + Grid_onScrollIndex = 79, + Grid_onItemDragStart = 80, + Grid_onItemDragEnter = 81, + Grid_onItemDragMove = 82, + Grid_onItemDragLeave = 83, + Grid_onItemDrop = 84, + Grid_onScroll = 85, + Grid_onReachStart = 86, + Grid_onReachEnd = 87, + Grid_onScrollStart = 88, + Grid_onScrollStop = 89, + Grid_onScrollFrameBegin = 90, + GridItem_onSelect = 91, + GridItem__onChangeEvent_selected = 92, + GridRow_onBreakpointChange = 93, + Image_onComplete = 94, + Image_onError = 95, + Image_onFinish = 96, + ImageAnimator_onStart = 97, + ImageAnimator_onPause = 98, + ImageAnimator_onRepeat = 99, + ImageAnimator_onCancel = 100, + ImageAnimator_onFinish = 101, + ImageSpan_onComplete = 102, + ImageSpan_onError = 103, + List_onScroll = 104, + List_onScrollIndex = 105, + List_onScrollVisibleContentChange = 106, + List_onReachStart = 107, + List_onReachEnd = 108, + List_onScrollStart = 109, + List_onScrollStop = 110, + List_onItemDelete = 111, + List_onItemMove = 112, + List_onItemDragStart = 113, + List_onItemDragEnter = 114, + List_onItemDragMove = 115, + List_onItemDragLeave = 116, + List_onItemDrop = 117, + List_onScrollFrameBegin = 118, + ListItem_onSelect = 119, + ListItem__onChangeEvent_selected = 120, + LocationButton_onClick = 121, + Marquee_onStart = 122, + Marquee_onBounce = 123, + Marquee_onFinish = 124, + MenuItem_onChange = 125, + MenuItem__onChangeEvent_selected = 126, + NavDestination_onShown = 127, + NavDestination_onHidden = 128, + NavDestination_onBackPressed = 129, + NavDestination_onReady = 130, + NavDestination_onWillAppear = 131, + NavDestination_onWillDisappear = 132, + NavDestination_onWillShow = 133, + NavDestination_onWillHide = 134, + NavRouter_onStateChange = 135, + Panel_onChange = 136, + Panel_onHeightChange = 137, + Panel__onChangeEvent_mode = 138, + PasteButton_onClick = 139, + PatternLock_onPatternComplete = 140, + PatternLock_onDotConnect = 141, + PluginComponent_onComplete = 142, + PluginComponent_onError = 143, + Radio_onChange = 144, + Radio__onChangeEvent_checked = 145, + Rating_onChange = 146, + Rating__onChangeEvent_rating = 147, + Refresh_onStateChange = 148, + Refresh_onRefreshing = 149, + Refresh_onOffsetChange = 150, + Refresh__onChangeEvent_refreshing = 151, + RichEditor_onReady = 152, + RichEditor_onSelect = 153, + RichEditor_onSelectionChange = 154, + RichEditor_aboutToIMEInput = 155, + RichEditor_onIMEInputComplete = 156, + RichEditor_onDidIMEInput = 157, + RichEditor_aboutToDelete = 158, + RichEditor_onDeleteComplete = 159, + RichEditor_onPaste = 160, + RichEditor_onEditingChange = 161, + RichEditor_onSubmit = 162, + RichEditor_onWillChange = 163, + RichEditor_onDidChange = 164, + RichEditor_onCut = 165, + RichEditor_onCopy = 166, + RichEditor_bindSelectionMenu = 167, + RichEditor_customKeyboard = 168, + RichText_onStart = 169, + RichText_onComplete = 170, + SaveButton_onClick = 171, + Scroll_onScroll = 172, + Scroll_onDidScroll = 173, + Scroll_onScrollEdge = 174, + Scroll_onScrollStart = 175, + Scroll_onScrollEnd = 176, + Scroll_onScrollStop = 177, + Scroll_onScrollFrameBegin = 178, + Search_onEditChange = 179, + Search_onSubmit0 = 180, + Search_onSubmit1 = 181, + Search_onChange = 182, + Search_onTextSelectionChange = 183, + Search_onContentScroll = 184, + Search_onCopy = 185, + Search_onCut = 186, + Search_onPaste = 187, + Search_onWillInsert = 188, + Search_onDidInsert = 189, + Search_onWillDelete = 190, + Search_onDidDelete = 191, + Search_customKeyboard = 192, + Search__onChangeEvent_value = 193, + Select_onSelect = 194, + Select__onChangeEvent_selected = 195, + Select__onChangeEvent_value = 196, + Slider_onChange = 197, + Slider__onChangeEvent_value = 198, + Stepper_onFinish = 199, + Stepper_onSkip = 200, + Stepper_onChange = 201, + Stepper_onNext = 202, + Stepper_onPrevious = 203, + Stepper__onChangeEvent_index = 204, + Swiper_onChange = 205, + Swiper_onAnimationStart = 206, + Swiper_onAnimationEnd = 207, + Swiper_onGestureSwipe = 208, + Swiper_onContentDidScroll = 209, + Swiper__onChangeEvent_index = 210, + IndicatorComponent_onChange = 211, + Tabs_onChange = 212, + Tabs_onTabBarClick = 213, + Tabs_onAnimationStart = 214, + Tabs_onAnimationEnd = 215, + Tabs_onGestureSwipe = 216, + Tabs_customContentTransition = 217, + Tabs_onContentWillChange = 218, + Tabs__onChangeEvent_index = 219, + TabContent_onWillShow = 220, + TabContent_onWillHide = 221, + Text_onCopy = 222, + Text_onTextSelectionChange = 223, + Text_bindSelectionMenu = 224, + TextArea_onSubmit0 = 225, + TextArea_onSubmit1 = 226, + TextArea_onChange = 227, + TextArea_onTextSelectionChange = 228, + TextArea_onContentScroll = 229, + TextArea_onEditChange = 230, + TextArea_onCopy = 231, + TextArea_onCut = 232, + TextArea_onPaste = 233, + TextArea_onWillInsert = 234, + TextArea_onDidInsert = 235, + TextArea_onWillDelete = 236, + TextArea_onDidDelete = 237, + TextArea_customKeyboard = 238, + TextArea__onChangeEvent_text = 239, + TextClock_onDateChange = 240, + TextInput_onEditChanged = 241, + TextInput_onEditChange = 242, + TextInput_onSubmit = 243, + TextInput_onChange = 244, + TextInput_onTextSelectionChange = 245, + TextInput_onContentScroll = 246, + TextInput_onCopy = 247, + TextInput_onCut = 248, + TextInput_onPaste = 249, + TextInput_showUnit = 250, + TextInput_onSecurityStateChange = 251, + TextInput_onWillInsert = 252, + TextInput_onDidInsert = 253, + TextInput_onWillDelete = 254, + TextInput_onDidDelete = 255, + TextInput_customKeyboard = 256, + TextInput__onChangeEvent_text = 257, + TextPicker_onAccept = 258, + TextPicker_onCancel = 259, + TextPicker_onChange = 260, + TextPicker__onChangeEvent_selected = 261, + TextPicker__onChangeEvent_value = 262, + TextTimer_onTimer = 263, + TimePicker_onChange = 264, + TimePicker__onChangeEvent_selected = 265, + Toggle_onChange = 266, + Toggle__onChangeEvent_isOn = 267, + Video_onStart = 268, + Video_onPause = 269, + Video_onFinish = 270, + Video_onFullscreenChange = 271, + Video_onPrepared = 272, + Video_onSeeking = 273, + Video_onSeeked = 274, + Video_onUpdate = 275, + Video_onError = 276, + Video_onStop = 277, + Web_onPageEnd = 278, + Web_onPageBegin = 279, + Web_onProgressChange = 280, + Web_onTitleReceive = 281, + Web_onGeolocationHide = 282, + Web_onGeolocationShow = 283, + Web_onRequestSelected = 284, + Web_onAlert = 285, + Web_onBeforeUnload = 286, + Web_onConfirm = 287, + Web_onPrompt = 288, + Web_onConsole = 289, + Web_onErrorReceive = 290, + Web_onHttpErrorReceive = 291, + Web_onDownloadStart = 292, + Web_onRefreshAccessedHistory = 293, + Web_onUrlLoadIntercept = 294, + Web_onSslErrorReceive = 295, + Web_onRenderExited0 = 296, + Web_onRenderExited1 = 297, + Web_onShowFileSelector = 298, + Web_onFileSelectorShow = 299, + Web_onResourceLoad = 300, + Web_onFullScreenExit = 301, + Web_onFullScreenEnter = 302, + Web_onScaleChange = 303, + Web_onHttpAuthRequest = 304, + Web_onInterceptRequest = 305, + Web_onPermissionRequest = 306, + Web_onScreenCaptureRequest = 307, + Web_onContextMenuShow = 308, + Web_onContextMenuHide = 309, + Web_onSearchResultReceive = 310, + Web_onScroll = 311, + Web_onSslErrorEventReceive = 312, + Web_onSslErrorEvent = 313, + Web_onClientAuthenticationRequest = 314, + Web_onWindowNew = 315, + Web_onWindowExit = 316, + Web_onInterceptKeyEvent = 317, + Web_onTouchIconUrlReceived = 318, + Web_onFaviconReceived = 319, + Web_onPageVisible = 320, + Web_onDataResubmitted = 321, + Web_onAudioStateChanged = 322, + Web_onFirstContentfulPaint = 323, + Web_onFirstMeaningfulPaint = 324, + Web_onLargestContentfulPaint = 325, + Web_onLoadIntercept = 326, + Web_onControllerAttached = 327, + Web_onOverScroll = 328, + Web_onSafeBrowsingCheckResult = 329, + Web_onNavigationEntryCommitted = 330, + Web_onIntelligentTrackingPreventionResult = 331, + Web_onNativeEmbedLifecycleChange = 332, + Web_onNativeEmbedVisibilityChange = 333, + Web_onNativeEmbedGestureEvent = 334, + Web_onOverrideUrlLoading = 335, + Web_onRenderProcessNotResponding = 336, + Web_onRenderProcessResponding = 337, + Web_onViewportFitChanged = 338, + Web_onInterceptKeyboardAttach = 339, + Web_onAdsBlocked = 340, + Web_bindSelectionMenu = 341, + XComponent_onLoad = 342, + XComponent_onDestroy = 343, + SideBarContainer_onChange = 344, + SideBarContainer__onChangeEvent_showSideBar = 345, + WaterFlow_onReachStart = 346, + WaterFlow_onReachEnd = 347, + WaterFlow_onScrollFrameBegin = 348, + WaterFlow_onScrollIndex = 349, + UIExtensionComponent_onRemoteReady = 350, + UIExtensionComponent_onResult = 351, + UIExtensionComponent_onRelease = 352, + UIExtensionComponent_onTerminated = 353, } interface PeerEvent { @@ -463,8 +466,8 @@ export interface AlphabetIndexer_onPopupSelect_event extends PeerEvent { readonly kind: PeerEventKind.AlphabetIndexer_onPopupSelect readonly index: number } -export interface AlphabetIndexer___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.AlphabetIndexer___onChangeEvent_selected +export interface AlphabetIndexer__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.AlphabetIndexer__onChangeEvent_selected readonly index: number } export interface Animator_onStart_event extends PeerEvent { @@ -505,16 +508,16 @@ export interface Checkbox_onChange_event extends PeerEvent { readonly kind: PeerEventKind.Checkbox_onChange readonly value: boolean } -export interface Checkbox___onChangeEvent_select_event extends PeerEvent { - readonly kind: PeerEventKind.Checkbox___onChangeEvent_select +export interface Checkbox__onChangeEvent_select_event extends PeerEvent { + readonly kind: PeerEventKind.Checkbox__onChangeEvent_select readonly parameter: boolean } export interface CheckboxGroup_onChange_event extends PeerEvent { readonly kind: PeerEventKind.CheckboxGroup_onChange readonly value: CheckboxGroupResult } -export interface CheckboxGroup___onChangeEvent_selectAll_event extends PeerEvent { - readonly kind: PeerEventKind.CheckboxGroup___onChangeEvent_selectAll +export interface CheckboxGroup__onChangeEvent_selectAll_event extends PeerEvent { + readonly kind: PeerEventKind.CheckboxGroup__onChangeEvent_selectAll readonly parameter: boolean } export interface CommonMethod_onChildTouchTest_event extends PeerEvent { @@ -674,6 +677,12 @@ export interface ScrollableCommonMethod_onScroll_event extends PeerEvent { readonly first: number readonly last: number } +export interface ScrollableCommonMethod_onDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind.ScrollableCommonMethod_onDidScroll + readonly xOffset: number + readonly yOffset: number + readonly scrollState: ScrollState +} export interface ScrollableCommonMethod_onReachStart_event extends PeerEvent { readonly kind: PeerEventKind.ScrollableCommonMethod_onReachStart } @@ -700,8 +709,8 @@ export interface DatePicker_onDateChange_event extends PeerEvent { readonly kind: PeerEventKind.DatePicker_onDateChange readonly parameter: Date } -export interface DatePicker___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.DatePicker___onChangeEvent_selected +export interface DatePicker__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.DatePicker__onChangeEvent_selected readonly parameter: Date } export interface EmbeddedComponent_onTerminated_event extends PeerEvent { @@ -801,8 +810,8 @@ export interface GridItem_onSelect_event extends PeerEvent { readonly kind: PeerEventKind.GridItem_onSelect readonly parameter: boolean } -export interface GridItem___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.GridItem___onChangeEvent_selected +export interface GridItem__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.GridItem__onChangeEvent_selected readonly parameter: boolean } export interface GridRow_onBreakpointChange_event extends PeerEvent { @@ -916,8 +925,8 @@ export interface ListItem_onSelect_event extends PeerEvent { readonly kind: PeerEventKind.ListItem_onSelect readonly parameter: boolean } -export interface ListItem___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.ListItem___onChangeEvent_selected +export interface ListItem__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.ListItem__onChangeEvent_selected readonly parameter: boolean } export interface LocationButton_onClick_event extends PeerEvent { @@ -938,8 +947,8 @@ export interface MenuItem_onChange_event extends PeerEvent { readonly kind: PeerEventKind.MenuItem_onChange readonly parameter: boolean } -export interface MenuItem___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.MenuItem___onChangeEvent_selected +export interface MenuItem__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.MenuItem__onChangeEvent_selected readonly parameter: boolean } export interface NavDestination_onShown_event extends PeerEvent { @@ -981,8 +990,8 @@ export interface Panel_onHeightChange_event extends PeerEvent { readonly kind: PeerEventKind.Panel_onHeightChange readonly index: number } -export interface Panel___onChangeEvent_mode_event extends PeerEvent { - readonly kind: PeerEventKind.Panel___onChangeEvent_mode +export interface Panel__onChangeEvent_mode_event extends PeerEvent { + readonly kind: PeerEventKind.Panel__onChangeEvent_mode readonly mode: PanelMode } export interface PasteButton_onClick_event extends PeerEvent { @@ -1009,16 +1018,16 @@ export interface Radio_onChange_event extends PeerEvent { readonly kind: PeerEventKind.Radio_onChange readonly parameter: boolean } -export interface Radio___onChangeEvent_checked_event extends PeerEvent { - readonly kind: PeerEventKind.Radio___onChangeEvent_checked +export interface Radio__onChangeEvent_checked_event extends PeerEvent { + readonly kind: PeerEventKind.Radio__onChangeEvent_checked readonly parameter: boolean } export interface Rating_onChange_event extends PeerEvent { readonly kind: PeerEventKind.Rating_onChange readonly index: number } -export interface Rating___onChangeEvent_rating_event extends PeerEvent { - readonly kind: PeerEventKind.Rating___onChangeEvent_rating +export interface Rating__onChangeEvent_rating_event extends PeerEvent { + readonly kind: PeerEventKind.Rating__onChangeEvent_rating readonly index: number } export interface Refresh_onStateChange_event extends PeerEvent { @@ -1032,8 +1041,8 @@ export interface Refresh_onOffsetChange_event extends PeerEvent { readonly kind: PeerEventKind.Refresh_onOffsetChange readonly index: number } -export interface Refresh___onChangeEvent_refreshing_event extends PeerEvent { - readonly kind: PeerEventKind.Refresh___onChangeEvent_refreshing +export interface Refresh__onChangeEvent_refreshing_event extends PeerEvent { + readonly kind: PeerEventKind.Refresh__onChangeEvent_refreshing readonly parameter: boolean } export interface RichEditor_onReady_event extends PeerEvent { @@ -1118,6 +1127,12 @@ export interface Scroll_onScroll_event extends PeerEvent { readonly first: number readonly last: number } +export interface Scroll_onDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind.Scroll_onDidScroll + readonly xOffset: number + readonly yOffset: number + readonly scrollState: ScrollState +} export interface Scroll_onScrollEdge_event extends PeerEvent { readonly kind: PeerEventKind.Scroll_onScrollEdge readonly side: Edge @@ -1196,8 +1211,8 @@ export interface Search_onDidDelete_event extends PeerEvent { export interface Search_customKeyboard_event extends PeerEvent { readonly kind: PeerEventKind.Search_customKeyboard } -export interface Search___onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.Search___onChangeEvent_value +export interface Search__onChangeEvent_value_event extends PeerEvent { + readonly kind: PeerEventKind.Search__onChangeEvent_value readonly breakpoints: string } export interface Select_onSelect_event extends PeerEvent { @@ -1205,12 +1220,12 @@ export interface Select_onSelect_event extends PeerEvent { readonly index: number readonly value: string } -export interface Select___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.Select___onChangeEvent_selected +export interface Select__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.Select__onChangeEvent_selected readonly selected: number | Resource } -export interface Select___onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.Select___onChangeEvent_value +export interface Select__onChangeEvent_value_event extends PeerEvent { + readonly kind: PeerEventKind.Select__onChangeEvent_value readonly value: ResourceStr } export interface Slider_onChange_event extends PeerEvent { @@ -1218,8 +1233,8 @@ export interface Slider_onChange_event extends PeerEvent { readonly value: number readonly mode: SliderChangeMode } -export interface Slider___onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.Slider___onChangeEvent_value +export interface Slider__onChangeEvent_value_event extends PeerEvent { + readonly kind: PeerEventKind.Slider__onChangeEvent_value readonly index: number } export interface Stepper_onFinish_event extends PeerEvent { @@ -1243,8 +1258,8 @@ export interface Stepper_onPrevious_event extends PeerEvent { readonly first: number readonly last: number } -export interface Stepper___onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind.Stepper___onChangeEvent_index +export interface Stepper__onChangeEvent_index_event extends PeerEvent { + readonly kind: PeerEventKind.Stepper__onChangeEvent_index readonly index: number } export interface Swiper_onChange_event extends PeerEvent { @@ -1274,8 +1289,8 @@ export interface Swiper_onContentDidScroll_event extends PeerEvent { readonly position: number readonly mainAxisLength: number } -export interface Swiper___onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind.Swiper___onChangeEvent_index +export interface Swiper__onChangeEvent_index_event extends PeerEvent { + readonly kind: PeerEventKind.Swiper__onChangeEvent_index readonly index: number } export interface IndicatorComponent_onChange_event extends PeerEvent { @@ -1316,8 +1331,8 @@ export interface Tabs_onContentWillChange_event extends PeerEvent { readonly currentIndex: number readonly comingIndex: number } -export interface Tabs___onChangeEvent_index_event extends PeerEvent { - readonly kind: PeerEventKind.Tabs___onChangeEvent_index +export interface Tabs__onChangeEvent_index_event extends PeerEvent { + readonly kind: PeerEventKind.Tabs__onChangeEvent_index readonly index: number } export interface TabContent_onWillShow_event extends PeerEvent { @@ -1398,8 +1413,8 @@ export interface TextArea_onDidDelete_event extends PeerEvent { export interface TextArea_customKeyboard_event extends PeerEvent { readonly kind: PeerEventKind.TextArea_customKeyboard } -export interface TextArea___onChangeEvent_text_event extends PeerEvent { - readonly kind: PeerEventKind.TextArea___onChangeEvent_text +export interface TextArea__onChangeEvent_text_event extends PeerEvent { + readonly kind: PeerEventKind.TextArea__onChangeEvent_text readonly value: ResourceStr } export interface TextClock_onDateChange_event extends PeerEvent { @@ -1473,8 +1488,8 @@ export interface TextInput_onDidDelete_event extends PeerEvent { export interface TextInput_customKeyboard_event extends PeerEvent { readonly kind: PeerEventKind.TextInput_customKeyboard } -export interface TextInput___onChangeEvent_text_event extends PeerEvent { - readonly kind: PeerEventKind.TextInput___onChangeEvent_text +export interface TextInput__onChangeEvent_text_event extends PeerEvent { + readonly kind: PeerEventKind.TextInput__onChangeEvent_text readonly value: ResourceStr } export interface TextPicker_onAccept_event extends PeerEvent { @@ -1490,12 +1505,12 @@ export interface TextPicker_onChange_event extends PeerEvent { readonly value: string | Array readonly index: number | Array } -export interface TextPicker___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker___onChangeEvent_selected +export interface TextPicker__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.TextPicker__onChangeEvent_selected readonly selected: number | Array } -export interface TextPicker___onChangeEvent_value_event extends PeerEvent { - readonly kind: PeerEventKind.TextPicker___onChangeEvent_value +export interface TextPicker__onChangeEvent_value_event extends PeerEvent { + readonly kind: PeerEventKind.TextPicker__onChangeEvent_value readonly value: string | Array } export interface TextTimer_onTimer_event extends PeerEvent { @@ -1507,16 +1522,16 @@ export interface TimePicker_onChange_event extends PeerEvent { readonly kind: PeerEventKind.TimePicker_onChange readonly value: TimePickerResult } -export interface TimePicker___onChangeEvent_selected_event extends PeerEvent { - readonly kind: PeerEventKind.TimePicker___onChangeEvent_selected +export interface TimePicker__onChangeEvent_selected_event extends PeerEvent { + readonly kind: PeerEventKind.TimePicker__onChangeEvent_selected readonly parameter: Date } export interface Toggle_onChange_event extends PeerEvent { readonly kind: PeerEventKind.Toggle_onChange readonly parameter: boolean } -export interface Toggle___onChangeEvent_isOn_event extends PeerEvent { - readonly kind: PeerEventKind.Toggle___onChangeEvent_isOn +export interface Toggle__onChangeEvent_isOn_event extends PeerEvent { + readonly kind: PeerEventKind.Toggle__onChangeEvent_isOn readonly parameter: boolean } export interface Video_onStart_event extends PeerEvent { @@ -1813,8 +1828,8 @@ export interface SideBarContainer_onChange_event extends PeerEvent { readonly kind: PeerEventKind.SideBarContainer_onChange readonly parameter: boolean } -export interface SideBarContainer___onChangeEvent_showSideBar_event extends PeerEvent { - readonly kind: PeerEventKind.SideBarContainer___onChangeEvent_showSideBar +export interface SideBarContainer__onChangeEvent_showSideBar_event extends PeerEvent { + readonly kind: PeerEventKind.SideBarContainer__onChangeEvent_showSideBar readonly parameter: boolean } export interface WaterFlow_onReachStart_event extends PeerEvent { @@ -1857,7 +1872,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.AlphabetIndexer_onSelect: return "AlphabetIndexer_onSelect" case PeerEventKind.AlphabetIndexer_onRequestPopupData: return "AlphabetIndexer_onRequestPopupData" case PeerEventKind.AlphabetIndexer_onPopupSelect: return "AlphabetIndexer_onPopupSelect" - case PeerEventKind.AlphabetIndexer___onChangeEvent_selected: return "AlphabetIndexer___onChangeEvent_selected" + case PeerEventKind.AlphabetIndexer__onChangeEvent_selected: return "AlphabetIndexer__onChangeEvent_selected" case PeerEventKind.Animator_onStart: return "Animator_onStart" case PeerEventKind.Animator_onPause: return "Animator_onPause" case PeerEventKind.Animator_onRepeat: return "Animator_onRepeat" @@ -1869,9 +1884,9 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.CalendarPicker_onChange: return "CalendarPicker_onChange" case PeerEventKind.Canvas_onReady: return "Canvas_onReady" case PeerEventKind.Checkbox_onChange: return "Checkbox_onChange" - case PeerEventKind.Checkbox___onChangeEvent_select: return "Checkbox___onChangeEvent_select" + case PeerEventKind.Checkbox__onChangeEvent_select: return "Checkbox__onChangeEvent_select" case PeerEventKind.CheckboxGroup_onChange: return "CheckboxGroup_onChange" - case PeerEventKind.CheckboxGroup___onChangeEvent_selectAll: return "CheckboxGroup___onChangeEvent_selectAll" + case PeerEventKind.CheckboxGroup__onChangeEvent_selectAll: return "CheckboxGroup__onChangeEvent_selectAll" case PeerEventKind.CommonMethod_onChildTouchTest: return "CommonMethod_onChildTouchTest" case PeerEventKind.CommonMethod_onClick0: return "CommonMethod_onClick0" case PeerEventKind.CommonMethod_onClick1: return "CommonMethod_onClick1" @@ -1910,6 +1925,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.CommonMethod_bindSheet: return "CommonMethod_bindSheet" case PeerEventKind.CommonMethod_onVisibleAreaChange: return "CommonMethod_onVisibleAreaChange" case PeerEventKind.ScrollableCommonMethod_onScroll: return "ScrollableCommonMethod_onScroll" + case PeerEventKind.ScrollableCommonMethod_onDidScroll: return "ScrollableCommonMethod_onDidScroll" case PeerEventKind.ScrollableCommonMethod_onReachStart: return "ScrollableCommonMethod_onReachStart" case PeerEventKind.ScrollableCommonMethod_onReachEnd: return "ScrollableCommonMethod_onReachEnd" case PeerEventKind.ScrollableCommonMethod_onScrollStart: return "ScrollableCommonMethod_onScrollStart" @@ -1918,7 +1934,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Counter_onDec: return "Counter_onDec" case PeerEventKind.DatePicker_onChange: return "DatePicker_onChange" case PeerEventKind.DatePicker_onDateChange: return "DatePicker_onDateChange" - case PeerEventKind.DatePicker___onChangeEvent_selected: return "DatePicker___onChangeEvent_selected" + case PeerEventKind.DatePicker__onChangeEvent_selected: return "DatePicker__onChangeEvent_selected" case PeerEventKind.EmbeddedComponent_onTerminated: return "EmbeddedComponent_onTerminated" case PeerEventKind.FolderStack_onFolderStateChange: return "FolderStack_onFolderStateChange" case PeerEventKind.FolderStack_onHoverStatusChange: return "FolderStack_onHoverStatusChange" @@ -1942,7 +1958,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Grid_onScrollStop: return "Grid_onScrollStop" case PeerEventKind.Grid_onScrollFrameBegin: return "Grid_onScrollFrameBegin" case PeerEventKind.GridItem_onSelect: return "GridItem_onSelect" - case PeerEventKind.GridItem___onChangeEvent_selected: return "GridItem___onChangeEvent_selected" + case PeerEventKind.GridItem__onChangeEvent_selected: return "GridItem__onChangeEvent_selected" case PeerEventKind.GridRow_onBreakpointChange: return "GridRow_onBreakpointChange" case PeerEventKind.Image_onComplete: return "Image_onComplete" case PeerEventKind.Image_onError: return "Image_onError" @@ -1970,13 +1986,13 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.List_onItemDrop: return "List_onItemDrop" case PeerEventKind.List_onScrollFrameBegin: return "List_onScrollFrameBegin" case PeerEventKind.ListItem_onSelect: return "ListItem_onSelect" - case PeerEventKind.ListItem___onChangeEvent_selected: return "ListItem___onChangeEvent_selected" + case PeerEventKind.ListItem__onChangeEvent_selected: return "ListItem__onChangeEvent_selected" case PeerEventKind.LocationButton_onClick: return "LocationButton_onClick" case PeerEventKind.Marquee_onStart: return "Marquee_onStart" case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" - case PeerEventKind.MenuItem___onChangeEvent_selected: return "MenuItem___onChangeEvent_selected" + case PeerEventKind.MenuItem__onChangeEvent_selected: return "MenuItem__onChangeEvent_selected" case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" @@ -1988,20 +2004,20 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" case PeerEventKind.Panel_onChange: return "Panel_onChange" case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" - case PeerEventKind.Panel___onChangeEvent_mode: return "Panel___onChangeEvent_mode" + case PeerEventKind.Panel__onChangeEvent_mode: return "Panel__onChangeEvent_mode" case PeerEventKind.PasteButton_onClick: return "PasteButton_onClick" case PeerEventKind.PatternLock_onPatternComplete: return "PatternLock_onPatternComplete" case PeerEventKind.PatternLock_onDotConnect: return "PatternLock_onDotConnect" case PeerEventKind.PluginComponent_onComplete: return "PluginComponent_onComplete" case PeerEventKind.PluginComponent_onError: return "PluginComponent_onError" case PeerEventKind.Radio_onChange: return "Radio_onChange" - case PeerEventKind.Radio___onChangeEvent_checked: return "Radio___onChangeEvent_checked" + case PeerEventKind.Radio__onChangeEvent_checked: return "Radio__onChangeEvent_checked" case PeerEventKind.Rating_onChange: return "Rating_onChange" - case PeerEventKind.Rating___onChangeEvent_rating: return "Rating___onChangeEvent_rating" + case PeerEventKind.Rating__onChangeEvent_rating: return "Rating__onChangeEvent_rating" case PeerEventKind.Refresh_onStateChange: return "Refresh_onStateChange" case PeerEventKind.Refresh_onRefreshing: return "Refresh_onRefreshing" case PeerEventKind.Refresh_onOffsetChange: return "Refresh_onOffsetChange" - case PeerEventKind.Refresh___onChangeEvent_refreshing: return "Refresh___onChangeEvent_refreshing" + case PeerEventKind.Refresh__onChangeEvent_refreshing: return "Refresh__onChangeEvent_refreshing" case PeerEventKind.RichEditor_onReady: return "RichEditor_onReady" case PeerEventKind.RichEditor_onSelect: return "RichEditor_onSelect" case PeerEventKind.RichEditor_onSelectionChange: return "RichEditor_onSelectionChange" @@ -2023,6 +2039,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.RichText_onComplete: return "RichText_onComplete" case PeerEventKind.SaveButton_onClick: return "SaveButton_onClick" case PeerEventKind.Scroll_onScroll: return "Scroll_onScroll" + case PeerEventKind.Scroll_onDidScroll: return "Scroll_onDidScroll" case PeerEventKind.Scroll_onScrollEdge: return "Scroll_onScrollEdge" case PeerEventKind.Scroll_onScrollStart: return "Scroll_onScrollStart" case PeerEventKind.Scroll_onScrollEnd: return "Scroll_onScrollEnd" @@ -2042,24 +2059,24 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Search_onWillDelete: return "Search_onWillDelete" case PeerEventKind.Search_onDidDelete: return "Search_onDidDelete" case PeerEventKind.Search_customKeyboard: return "Search_customKeyboard" - case PeerEventKind.Search___onChangeEvent_value: return "Search___onChangeEvent_value" + case PeerEventKind.Search__onChangeEvent_value: return "Search__onChangeEvent_value" case PeerEventKind.Select_onSelect: return "Select_onSelect" - case PeerEventKind.Select___onChangeEvent_selected: return "Select___onChangeEvent_selected" - case PeerEventKind.Select___onChangeEvent_value: return "Select___onChangeEvent_value" + case PeerEventKind.Select__onChangeEvent_selected: return "Select__onChangeEvent_selected" + case PeerEventKind.Select__onChangeEvent_value: return "Select__onChangeEvent_value" case PeerEventKind.Slider_onChange: return "Slider_onChange" - case PeerEventKind.Slider___onChangeEvent_value: return "Slider___onChangeEvent_value" + case PeerEventKind.Slider__onChangeEvent_value: return "Slider__onChangeEvent_value" case PeerEventKind.Stepper_onFinish: return "Stepper_onFinish" case PeerEventKind.Stepper_onSkip: return "Stepper_onSkip" case PeerEventKind.Stepper_onChange: return "Stepper_onChange" case PeerEventKind.Stepper_onNext: return "Stepper_onNext" case PeerEventKind.Stepper_onPrevious: return "Stepper_onPrevious" - case PeerEventKind.Stepper___onChangeEvent_index: return "Stepper___onChangeEvent_index" + case PeerEventKind.Stepper__onChangeEvent_index: return "Stepper__onChangeEvent_index" case PeerEventKind.Swiper_onChange: return "Swiper_onChange" case PeerEventKind.Swiper_onAnimationStart: return "Swiper_onAnimationStart" case PeerEventKind.Swiper_onAnimationEnd: return "Swiper_onAnimationEnd" case PeerEventKind.Swiper_onGestureSwipe: return "Swiper_onGestureSwipe" case PeerEventKind.Swiper_onContentDidScroll: return "Swiper_onContentDidScroll" - case PeerEventKind.Swiper___onChangeEvent_index: return "Swiper___onChangeEvent_index" + case PeerEventKind.Swiper__onChangeEvent_index: return "Swiper__onChangeEvent_index" case PeerEventKind.IndicatorComponent_onChange: return "IndicatorComponent_onChange" case PeerEventKind.Tabs_onChange: return "Tabs_onChange" case PeerEventKind.Tabs_onTabBarClick: return "Tabs_onTabBarClick" @@ -2068,7 +2085,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Tabs_onGestureSwipe: return "Tabs_onGestureSwipe" case PeerEventKind.Tabs_customContentTransition: return "Tabs_customContentTransition" case PeerEventKind.Tabs_onContentWillChange: return "Tabs_onContentWillChange" - case PeerEventKind.Tabs___onChangeEvent_index: return "Tabs___onChangeEvent_index" + case PeerEventKind.Tabs__onChangeEvent_index: return "Tabs__onChangeEvent_index" case PeerEventKind.TabContent_onWillShow: return "TabContent_onWillShow" case PeerEventKind.TabContent_onWillHide: return "TabContent_onWillHide" case PeerEventKind.Text_onCopy: return "Text_onCopy" @@ -2088,7 +2105,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.TextArea_onWillDelete: return "TextArea_onWillDelete" case PeerEventKind.TextArea_onDidDelete: return "TextArea_onDidDelete" case PeerEventKind.TextArea_customKeyboard: return "TextArea_customKeyboard" - case PeerEventKind.TextArea___onChangeEvent_text: return "TextArea___onChangeEvent_text" + case PeerEventKind.TextArea__onChangeEvent_text: return "TextArea__onChangeEvent_text" case PeerEventKind.TextClock_onDateChange: return "TextClock_onDateChange" case PeerEventKind.TextInput_onEditChanged: return "TextInput_onEditChanged" case PeerEventKind.TextInput_onEditChange: return "TextInput_onEditChange" @@ -2106,17 +2123,17 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.TextInput_onWillDelete: return "TextInput_onWillDelete" case PeerEventKind.TextInput_onDidDelete: return "TextInput_onDidDelete" case PeerEventKind.TextInput_customKeyboard: return "TextInput_customKeyboard" - case PeerEventKind.TextInput___onChangeEvent_text: return "TextInput___onChangeEvent_text" + case PeerEventKind.TextInput__onChangeEvent_text: return "TextInput__onChangeEvent_text" case PeerEventKind.TextPicker_onAccept: return "TextPicker_onAccept" case PeerEventKind.TextPicker_onCancel: return "TextPicker_onCancel" case PeerEventKind.TextPicker_onChange: return "TextPicker_onChange" - case PeerEventKind.TextPicker___onChangeEvent_selected: return "TextPicker___onChangeEvent_selected" - case PeerEventKind.TextPicker___onChangeEvent_value: return "TextPicker___onChangeEvent_value" + case PeerEventKind.TextPicker__onChangeEvent_selected: return "TextPicker__onChangeEvent_selected" + case PeerEventKind.TextPicker__onChangeEvent_value: return "TextPicker__onChangeEvent_value" case PeerEventKind.TextTimer_onTimer: return "TextTimer_onTimer" case PeerEventKind.TimePicker_onChange: return "TimePicker_onChange" - case PeerEventKind.TimePicker___onChangeEvent_selected: return "TimePicker___onChangeEvent_selected" + case PeerEventKind.TimePicker__onChangeEvent_selected: return "TimePicker__onChangeEvent_selected" case PeerEventKind.Toggle_onChange: return "Toggle_onChange" - case PeerEventKind.Toggle___onChangeEvent_isOn: return "Toggle___onChangeEvent_isOn" + case PeerEventKind.Toggle__onChangeEvent_isOn: return "Toggle__onChangeEvent_isOn" case PeerEventKind.Video_onStart: return "Video_onStart" case PeerEventKind.Video_onPause: return "Video_onPause" case PeerEventKind.Video_onFinish: return "Video_onFinish" @@ -2194,7 +2211,7 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.XComponent_onLoad: return "XComponent_onLoad" case PeerEventKind.XComponent_onDestroy: return "XComponent_onDestroy" case PeerEventKind.SideBarContainer_onChange: return "SideBarContainer_onChange" - case PeerEventKind.SideBarContainer___onChangeEvent_showSideBar: return "SideBarContainer___onChangeEvent_showSideBar" + case PeerEventKind.SideBarContainer__onChangeEvent_showSideBar: return "SideBarContainer__onChangeEvent_showSideBar" case PeerEventKind.WaterFlow_onReachStart: return "WaterFlow_onReachStart" case PeerEventKind.WaterFlow_onReachEnd: return "WaterFlow_onReachEnd" case PeerEventKind.WaterFlow_onScrollFrameBegin: return "WaterFlow_onScrollFrameBegin" @@ -2249,12 +2266,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.index = (eventDeserializer.readNumber() as number) return (event as AlphabetIndexer_onPopupSelect_event) } - else if ((kind) === (PeerEventKind.AlphabetIndexer___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.AlphabetIndexer__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} event.kind = kind event.nodeId = nodeId event.index = (eventDeserializer.readNumber() as number) - return (event as AlphabetIndexer___onChangeEvent_selected_event) + return (event as AlphabetIndexer__onChangeEvent_selected_event) } else if ((kind) === (PeerEventKind.Animator_onStart)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -2327,12 +2344,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.value = eventDeserializer.readBoolean() return (event as Checkbox_onChange_event) } - else if ((kind) === (PeerEventKind.Checkbox___onChangeEvent_select)) { + else if ((kind) === (PeerEventKind.Checkbox__onChangeEvent_select)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as Checkbox___onChangeEvent_select_event) + return (event as Checkbox__onChangeEvent_select_event) } else if ((kind) === (PeerEventKind.CheckboxGroup_onChange)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} @@ -2341,12 +2358,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.value = eventDeserializer.readCheckboxGroupResult() return (event as CheckboxGroup_onChange_event) } - else if ((kind) === (PeerEventKind.CheckboxGroup___onChangeEvent_selectAll)) { + else if ((kind) === (PeerEventKind.CheckboxGroup__onChangeEvent_selectAll)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as CheckboxGroup___onChangeEvent_selectAll_event) + return (event as CheckboxGroup__onChangeEvent_selectAll_event) } else if ((kind) === (PeerEventKind.CommonMethod_onChildTouchTest)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} @@ -2675,6 +2692,15 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.last = (eventDeserializer.readNumber() as number) return (event as ScrollableCommonMethod_onScroll_event) } + else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onDidScroll)) { + const event: { kind?: number, nodeId?: PeerEventKind, xOffset?: any, yOffset?: any, scrollState?: any } = {} + event.kind = kind + event.nodeId = nodeId + event.xOffset = (eventDeserializer.readNumber() as number) + event.yOffset = (eventDeserializer.readNumber() as number) + event.scrollState = (eventDeserializer.readInt32() as ScrollState) + return (event as ScrollableCommonMethod_onDidScroll_event) + } else if ((kind) === (PeerEventKind.ScrollableCommonMethod_onReachStart)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} event.kind = kind @@ -2725,12 +2751,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = new Date(eventDeserializer.readInt64()) return (event as DatePicker_onDateChange_event) } - else if ((kind) === (PeerEventKind.DatePicker___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.DatePicker__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = new Date(eventDeserializer.readInt64()) - return (event as DatePicker___onChangeEvent_selected_event) + return (event as DatePicker__onChangeEvent_selected_event) } else if ((kind) === (PeerEventKind.EmbeddedComponent_onTerminated)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} @@ -2900,12 +2926,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as GridItem_onSelect_event) } - else if ((kind) === (PeerEventKind.GridItem___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.GridItem__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as GridItem___onChangeEvent_selected_event) + return (event as GridItem__onChangeEvent_selected_event) } else if ((kind) === (PeerEventKind.GridRow_onBreakpointChange)) { const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} @@ -3114,12 +3140,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as ListItem_onSelect_event) } - else if ((kind) === (PeerEventKind.ListItem___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.ListItem__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as ListItem___onChangeEvent_selected_event) + return (event as ListItem__onChangeEvent_selected_event) } else if ((kind) === (PeerEventKind.LocationButton_onClick)) { const event: { kind?: number, nodeId?: PeerEventKind, event?: any, result?: any } = {} @@ -3154,12 +3180,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as MenuItem_onChange_event) } - else if ((kind) === (PeerEventKind.MenuItem___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.MenuItem__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as MenuItem___onChangeEvent_selected_event) + return (event as MenuItem__onChangeEvent_selected_event) } else if ((kind) === (PeerEventKind.NavDestination_onShown)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -3233,12 +3259,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.index = (eventDeserializer.readNumber() as number) return (event as Panel_onHeightChange_event) } - else if ((kind) === (PeerEventKind.Panel___onChangeEvent_mode)) { + else if ((kind) === (PeerEventKind.Panel__onChangeEvent_mode)) { const event: { kind?: number, nodeId?: PeerEventKind, mode?: any } = {} event.kind = kind event.nodeId = nodeId event.mode = (eventDeserializer.readInt32() as PanelMode) - return (event as Panel___onChangeEvent_mode_event) + return (event as Panel__onChangeEvent_mode_event) } else if ((kind) === (PeerEventKind.PasteButton_onClick)) { const event: { kind?: number, nodeId?: PeerEventKind, event?: any, result?: any } = {} @@ -3287,12 +3313,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as Radio_onChange_event) } - else if ((kind) === (PeerEventKind.Radio___onChangeEvent_checked)) { + else if ((kind) === (PeerEventKind.Radio__onChangeEvent_checked)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as Radio___onChangeEvent_checked_event) + return (event as Radio__onChangeEvent_checked_event) } else if ((kind) === (PeerEventKind.Rating_onChange)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} @@ -3301,12 +3327,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.index = (eventDeserializer.readNumber() as number) return (event as Rating_onChange_event) } - else if ((kind) === (PeerEventKind.Rating___onChangeEvent_rating)) { + else if ((kind) === (PeerEventKind.Rating__onChangeEvent_rating)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} event.kind = kind event.nodeId = nodeId event.index = (eventDeserializer.readNumber() as number) - return (event as Rating___onChangeEvent_rating_event) + return (event as Rating__onChangeEvent_rating_event) } else if ((kind) === (PeerEventKind.Refresh_onStateChange)) { const event: { kind?: number, nodeId?: PeerEventKind, state?: any } = {} @@ -3328,12 +3354,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.index = (eventDeserializer.readNumber() as number) return (event as Refresh_onOffsetChange_event) } - else if ((kind) === (PeerEventKind.Refresh___onChangeEvent_refreshing)) { + else if ((kind) === (PeerEventKind.Refresh__onChangeEvent_refreshing)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as Refresh___onChangeEvent_refreshing_event) + return (event as Refresh__onChangeEvent_refreshing_event) } else if ((kind) === (PeerEventKind.RichEditor_onReady)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -3486,6 +3512,15 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.last = (eventDeserializer.readNumber() as number) return (event as Scroll_onScroll_event) } + else if ((kind) === (PeerEventKind.Scroll_onDidScroll)) { + const event: { kind?: number, nodeId?: PeerEventKind, xOffset?: any, yOffset?: any, scrollState?: any } = {} + event.kind = kind + event.nodeId = nodeId + event.xOffset = (eventDeserializer.readNumber() as number) + event.yOffset = (eventDeserializer.readNumber() as number) + event.scrollState = (eventDeserializer.readInt32() as ScrollState) + return (event as Scroll_onDidScroll_event) + } else if ((kind) === (PeerEventKind.Scroll_onScrollEdge)) { const event: { kind?: number, nodeId?: PeerEventKind, side?: any } = {} event.kind = kind @@ -3633,12 +3668,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.nodeId = nodeId return (event as Search_customKeyboard_event) } - else if ((kind) === (PeerEventKind.Search___onChangeEvent_value)) { + else if ((kind) === (PeerEventKind.Search__onChangeEvent_value)) { const event: { kind?: number, nodeId?: PeerEventKind, breakpoints?: any } = {} event.kind = kind event.nodeId = nodeId event.breakpoints = (eventDeserializer.readString() as string) - return (event as Search___onChangeEvent_value_event) + return (event as Search__onChangeEvent_value_event) } else if ((kind) === (PeerEventKind.Select_onSelect)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any, value?: any } = {} @@ -3648,7 +3683,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.value = (eventDeserializer.readString() as string) return (event as Select_onSelect_event) } - else if ((kind) === (PeerEventKind.Select___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.Select__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, selected?: any } = {} event.kind = kind event.nodeId = nodeId @@ -3664,9 +3699,9 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent throw new Error("One of the branches for selected_buf has to be chosen through deserialisation.") } event.selected = (selected_buf as number | Resource) - return (event as Select___onChangeEvent_selected_event) + return (event as Select__onChangeEvent_selected_event) } - else if ((kind) === (PeerEventKind.Select___onChangeEvent_value)) { + else if ((kind) === (PeerEventKind.Select__onChangeEvent_value)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} event.kind = kind event.nodeId = nodeId @@ -3682,7 +3717,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") } event.value = (value_buf as string | Resource) - return (event as Select___onChangeEvent_value_event) + return (event as Select__onChangeEvent_value_event) } else if ((kind) === (PeerEventKind.Slider_onChange)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any, mode?: any } = {} @@ -3692,12 +3727,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.mode = (eventDeserializer.readInt32() as SliderChangeMode) return (event as Slider_onChange_event) } - else if ((kind) === (PeerEventKind.Slider___onChangeEvent_value)) { + else if ((kind) === (PeerEventKind.Slider__onChangeEvent_value)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} event.kind = kind event.nodeId = nodeId event.index = (eventDeserializer.readNumber() as number) - return (event as Slider___onChangeEvent_value_event) + return (event as Slider__onChangeEvent_value_event) } else if ((kind) === (PeerEventKind.Stepper_onFinish)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -3735,12 +3770,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.last = (eventDeserializer.readNumber() as number) return (event as Stepper_onPrevious_event) } - else if ((kind) === (PeerEventKind.Stepper___onChangeEvent_index)) { + else if ((kind) === (PeerEventKind.Stepper__onChangeEvent_index)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} event.kind = kind event.nodeId = nodeId event.index = (eventDeserializer.readNumber() as number) - return (event as Stepper___onChangeEvent_index_event) + return (event as Stepper__onChangeEvent_index_event) } else if ((kind) === (PeerEventKind.Swiper_onChange)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} @@ -3784,12 +3819,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.mainAxisLength = (eventDeserializer.readNumber() as number) return (event as Swiper_onContentDidScroll_event) } - else if ((kind) === (PeerEventKind.Swiper___onChangeEvent_index)) { + else if ((kind) === (PeerEventKind.Swiper__onChangeEvent_index)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} event.kind = kind event.nodeId = nodeId event.index = (eventDeserializer.readNumber() as number) - return (event as Swiper___onChangeEvent_index_event) + return (event as Swiper__onChangeEvent_index_event) } else if ((kind) === (PeerEventKind.IndicatorComponent_onChange)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} @@ -3853,12 +3888,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.comingIndex = (eventDeserializer.readNumber() as number) return (event as Tabs_onContentWillChange_event) } - else if ((kind) === (PeerEventKind.Tabs___onChangeEvent_index)) { + else if ((kind) === (PeerEventKind.Tabs__onChangeEvent_index)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} event.kind = kind event.nodeId = nodeId event.index = (eventDeserializer.readNumber() as number) - return (event as Tabs___onChangeEvent_index_event) + return (event as Tabs__onChangeEvent_index_event) } else if ((kind) === (PeerEventKind.TabContent_onWillShow)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -4007,7 +4042,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.nodeId = nodeId return (event as TextArea_customKeyboard_event) } - else if ((kind) === (PeerEventKind.TextArea___onChangeEvent_text)) { + else if ((kind) === (PeerEventKind.TextArea__onChangeEvent_text)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} event.kind = kind event.nodeId = nodeId @@ -4023,7 +4058,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") } event.value = (value_buf as string | Resource) - return (event as TextArea___onChangeEvent_text_event) + return (event as TextArea__onChangeEvent_text_event) } else if ((kind) === (PeerEventKind.TextClock_onDateChange)) { const event: { kind?: number, nodeId?: PeerEventKind, index?: any } = {} @@ -4153,7 +4188,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.nodeId = nodeId return (event as TextInput_customKeyboard_event) } - else if ((kind) === (PeerEventKind.TextInput___onChangeEvent_text)) { + else if ((kind) === (PeerEventKind.TextInput__onChangeEvent_text)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} event.kind = kind event.nodeId = nodeId @@ -4169,7 +4204,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") } event.value = (value_buf as string | Resource) - return (event as TextInput___onChangeEvent_text_event) + return (event as TextInput__onChangeEvent_text_event) } else if ((kind) === (PeerEventKind.TextPicker_onAccept)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any, index?: any } = {} @@ -4225,7 +4260,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.index = (index_buf as number | Array) return (event as TextPicker_onChange_event) } - else if ((kind) === (PeerEventKind.TextPicker___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.TextPicker__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, selected?: any } = {} event.kind = kind event.nodeId = nodeId @@ -4246,9 +4281,9 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent throw new Error("One of the branches for selected_buf has to be chosen through deserialisation.") } event.selected = (selected_buf as number | Array) - return (event as TextPicker___onChangeEvent_selected_event) + return (event as TextPicker__onChangeEvent_selected_event) } - else if ((kind) === (PeerEventKind.TextPicker___onChangeEvent_value)) { + else if ((kind) === (PeerEventKind.TextPicker__onChangeEvent_value)) { const event: { kind?: number, nodeId?: PeerEventKind, value?: any } = {} event.kind = kind event.nodeId = nodeId @@ -4269,7 +4304,7 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") } event.value = (value_buf as string | Array) - return (event as TextPicker___onChangeEvent_value_event) + return (event as TextPicker__onChangeEvent_value_event) } else if ((kind) === (PeerEventKind.TextTimer_onTimer)) { const event: { kind?: number, nodeId?: PeerEventKind, first?: any, last?: any } = {} @@ -4286,12 +4321,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.value = eventDeserializer.readTimePickerResult() return (event as TimePicker_onChange_event) } - else if ((kind) === (PeerEventKind.TimePicker___onChangeEvent_selected)) { + else if ((kind) === (PeerEventKind.TimePicker__onChangeEvent_selected)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = new Date(eventDeserializer.readInt64()) - return (event as TimePicker___onChangeEvent_selected_event) + return (event as TimePicker__onChangeEvent_selected_event) } else if ((kind) === (PeerEventKind.Toggle_onChange)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} @@ -4300,12 +4335,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as Toggle_onChange_event) } - else if ((kind) === (PeerEventKind.Toggle___onChangeEvent_isOn)) { + else if ((kind) === (PeerEventKind.Toggle__onChangeEvent_isOn)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as Toggle___onChangeEvent_isOn_event) + return (event as Toggle__onChangeEvent_isOn_event) } else if ((kind) === (PeerEventKind.Video_onStart)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -4879,12 +4914,12 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as SideBarContainer_onChange_event) } - else if ((kind) === (PeerEventKind.SideBarContainer___onChangeEvent_showSideBar)) { + else if ((kind) === (PeerEventKind.SideBarContainer__onChangeEvent_showSideBar)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind event.nodeId = nodeId event.parameter = eventDeserializer.readBoolean() - return (event as SideBarContainer___onChangeEvent_showSideBar_event) + return (event as SideBarContainer__onChangeEvent_showSideBar_event) } else if ((kind) === (PeerEventKind.WaterFlow_onReachStart)) { const event: { kind?: number, nodeId?: PeerEventKind } = {} @@ -4961,7 +4996,7 @@ export interface PeerEventsProperties { AlphabetIndexer_onSelect?: OnAlphabetIndexerSelectCallback AlphabetIndexer_onRequestPopupData?: OnAlphabetIndexerRequestPopupDataCallback AlphabetIndexer_onPopupSelect?: OnAlphabetIndexerPopupSelectCallback - AlphabetIndexer___onChangeEvent_selected?: ((index: number) => void) + AlphabetIndexer__onChangeEvent_selected?: ((index: number) => void) Animator_onStart?: (() => void) Animator_onPause?: (() => void) Animator_onRepeat?: (() => void) @@ -4973,9 +5008,9 @@ export interface PeerEventsProperties { CalendarPicker_onChange?: ((parameter: Date) => void) Canvas_onReady?: VoidCallback Checkbox_onChange?: OnCheckboxChangeCallback - Checkbox___onChangeEvent_select?: ((parameter: boolean) => void) + Checkbox__onChangeEvent_select?: ((parameter: boolean) => void) CheckboxGroup_onChange?: OnCheckboxGroupChangeCallback - CheckboxGroup___onChangeEvent_selectAll?: ((parameter: boolean) => void) + CheckboxGroup__onChangeEvent_selectAll?: ((parameter: boolean) => void) CommonMethod_onChildTouchTest?: ((value: Array) => TouchResult) CommonMethod_onClick0?: ((event: ClickEvent) => void) CommonMethod_onClick1?: ((event: ClickEvent) => void) @@ -5014,6 +5049,7 @@ export interface PeerEventsProperties { CommonMethod_bindSheet?: CustomBuilder CommonMethod_onVisibleAreaChange?: VisibleAreaChangeCallback ScrollableCommonMethod_onScroll?: ((first: number, last: number) => void) + ScrollableCommonMethod_onDidScroll?: ScrollOnScrollCallback ScrollableCommonMethod_onReachStart?: (() => void) ScrollableCommonMethod_onReachEnd?: (() => void) ScrollableCommonMethod_onScrollStart?: (() => void) @@ -5022,7 +5058,7 @@ export interface PeerEventsProperties { Counter_onDec?: VoidCallback DatePicker_onChange?: ((value: DatePickerResult) => void) DatePicker_onDateChange?: ((parameter: Date) => void) - DatePicker___onChangeEvent_selected?: ((parameter: Date) => void) + DatePicker__onChangeEvent_selected?: ((parameter: Date) => void) EmbeddedComponent_onTerminated?: ((parameter: TerminationInfo) => void) FolderStack_onFolderStateChange?: OnFoldStatusChangeCallback FolderStack_onHoverStatusChange?: OnHoverStatusChangeCallback @@ -5046,7 +5082,7 @@ export interface PeerEventsProperties { Grid_onScrollStop?: (() => void) Grid_onScrollFrameBegin?: ((offset: number, state: ScrollState) => { offsetRemain: number }) GridItem_onSelect?: ((parameter: boolean) => void) - GridItem___onChangeEvent_selected?: ((parameter: boolean) => void) + GridItem__onChangeEvent_selected?: ((parameter: boolean) => void) GridRow_onBreakpointChange?: ((breakpoints: string) => void) Image_onComplete?: ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void) Image_onError?: ImageErrorCallback @@ -5074,13 +5110,13 @@ export interface PeerEventsProperties { List_onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) List_onScrollFrameBegin?: ((offset: number, state: ScrollState) => { offsetRemain: number }) ListItem_onSelect?: ((parameter: boolean) => void) - ListItem___onChangeEvent_selected?: ((parameter: boolean) => void) + ListItem__onChangeEvent_selected?: ((parameter: boolean) => void) LocationButton_onClick?: ((event: ClickEvent, result: LocationButtonOnClickResult) => void) Marquee_onStart?: (() => void) Marquee_onBounce?: (() => void) Marquee_onFinish?: (() => void) MenuItem_onChange?: ((parameter: boolean) => void) - MenuItem___onChangeEvent_selected?: ((parameter: boolean) => void) + MenuItem__onChangeEvent_selected?: ((parameter: boolean) => void) NavDestination_onShown?: (() => void) NavDestination_onHidden?: (() => void) NavDestination_onBackPressed?: (() => boolean) @@ -5092,20 +5128,20 @@ export interface PeerEventsProperties { NavRouter_onStateChange?: ((parameter: boolean) => void) Panel_onChange?: ((width: number, height: number, mode: PanelMode) => void) Panel_onHeightChange?: ((index: number) => void) - Panel___onChangeEvent_mode?: ((mode: PanelMode) => void) + Panel__onChangeEvent_mode?: ((mode: PanelMode) => void) PasteButton_onClick?: ((event: ClickEvent, result: PasteButtonOnClickResult) => void) PatternLock_onPatternComplete?: ((input: Array) => void) PatternLock_onDotConnect?: ((index: number) => void) PluginComponent_onComplete?: VoidCallback PluginComponent_onError?: PluginErrorCallback Radio_onChange?: ((parameter: boolean) => void) - Radio___onChangeEvent_checked?: ((parameter: boolean) => void) + Radio__onChangeEvent_checked?: ((parameter: boolean) => void) Rating_onChange?: ((index: number) => void) - Rating___onChangeEvent_rating?: ((index: number) => void) + Rating__onChangeEvent_rating?: ((index: number) => void) Refresh_onStateChange?: ((state: RefreshStatus) => void) Refresh_onRefreshing?: (() => void) Refresh_onOffsetChange?: ((index: number) => void) - Refresh___onChangeEvent_refreshing?: ((parameter: boolean) => void) + Refresh__onChangeEvent_refreshing?: ((parameter: boolean) => void) RichEditor_onReady?: (() => void) RichEditor_onSelect?: ((parameter: RichEditorSelection) => void) RichEditor_onSelectionChange?: ((parameter: RichEditorRange) => void) @@ -5127,6 +5163,7 @@ export interface PeerEventsProperties { RichText_onComplete?: (() => void) SaveButton_onClick?: ((event: ClickEvent, result: SaveButtonOnClickResult) => void) Scroll_onScroll?: ((first: number, last: number) => void) + Scroll_onDidScroll?: ScrollOnScrollCallback Scroll_onScrollEdge?: OnScrollEdgeCallback Scroll_onScrollStart?: VoidCallback Scroll_onScrollEnd?: (() => void) @@ -5146,24 +5183,24 @@ export interface PeerEventsProperties { Search_onWillDelete?: ((parameter: DeleteValue) => boolean) Search_onDidDelete?: ((parameter: DeleteValue) => void) Search_customKeyboard?: CustomBuilder - Search___onChangeEvent_value?: ((breakpoints: string) => void) + Search__onChangeEvent_value?: ((breakpoints: string) => void) Select_onSelect?: ((index: number, value: string) => void) - Select___onChangeEvent_selected?: ((selected: number | Resource) => void) - Select___onChangeEvent_value?: ((value: ResourceStr) => void) + Select__onChangeEvent_selected?: ((selected: number | Resource) => void) + Select__onChangeEvent_value?: ((value: ResourceStr) => void) Slider_onChange?: ((value: number, mode: SliderChangeMode) => void) - Slider___onChangeEvent_value?: ((index: number) => void) + Slider__onChangeEvent_value?: ((index: number) => void) Stepper_onFinish?: (() => void) Stepper_onSkip?: (() => void) Stepper_onChange?: ((first: number, last: number) => void) Stepper_onNext?: ((first: number, last: number) => void) Stepper_onPrevious?: ((first: number, last: number) => void) - Stepper___onChangeEvent_index?: ((index: number) => void) + Stepper__onChangeEvent_index?: ((index: number) => void) Swiper_onChange?: ((index: number) => void) Swiper_onAnimationStart?: OnSwiperAnimationStartCallback Swiper_onAnimationEnd?: OnSwiperAnimationEndCallback Swiper_onGestureSwipe?: OnSwiperGestureSwipeCallback Swiper_onContentDidScroll?: ContentDidScrollCallback - Swiper___onChangeEvent_index?: ((index: number) => void) + Swiper__onChangeEvent_index?: ((index: number) => void) IndicatorComponent_onChange?: ((index: number) => void) Tabs_onChange?: ((index: number) => void) Tabs_onTabBarClick?: ((index: number) => void) @@ -5172,7 +5209,7 @@ export interface PeerEventsProperties { Tabs_onGestureSwipe?: OnTabsGestureSwipeCallback Tabs_customContentTransition?: TabsCustomContentTransitionCallback Tabs_onContentWillChange?: OnTabsContentWillChangeCallback - Tabs___onChangeEvent_index?: ((index: number) => void) + Tabs__onChangeEvent_index?: ((index: number) => void) TabContent_onWillShow?: VoidCallback TabContent_onWillHide?: VoidCallback Text_onCopy?: ((breakpoints: string) => void) @@ -5192,7 +5229,7 @@ export interface PeerEventsProperties { TextArea_onWillDelete?: ((parameter: DeleteValue) => boolean) TextArea_onDidDelete?: ((parameter: DeleteValue) => void) TextArea_customKeyboard?: CustomBuilder - TextArea___onChangeEvent_text?: ((value: ResourceStr) => void) + TextArea__onChangeEvent_text?: ((value: ResourceStr) => void) TextClock_onDateChange?: ((index: number) => void) TextInput_onEditChanged?: ((parameter: boolean) => void) TextInput_onEditChange?: ((parameter: boolean) => void) @@ -5210,17 +5247,17 @@ export interface PeerEventsProperties { TextInput_onWillDelete?: ((parameter: DeleteValue) => boolean) TextInput_onDidDelete?: ((parameter: DeleteValue) => void) TextInput_customKeyboard?: CustomBuilder - TextInput___onChangeEvent_text?: ((value: ResourceStr) => void) + TextInput__onChangeEvent_text?: ((value: ResourceStr) => void) TextPicker_onAccept?: ((value: string, index: number) => void) TextPicker_onCancel?: (() => void) TextPicker_onChange?: ((value: string | Array, index: number | Array) => void) - TextPicker___onChangeEvent_selected?: ((selected: number | Array) => void) - TextPicker___onChangeEvent_value?: ((value: string | Array) => void) + TextPicker__onChangeEvent_selected?: ((selected: number | Array) => void) + TextPicker__onChangeEvent_value?: ((value: string | Array) => void) TextTimer_onTimer?: ((first: number, last: number) => void) TimePicker_onChange?: ((value: TimePickerResult) => void) - TimePicker___onChangeEvent_selected?: ((parameter: Date) => void) + TimePicker__onChangeEvent_selected?: ((parameter: Date) => void) Toggle_onChange?: ((parameter: boolean) => void) - Toggle___onChangeEvent_isOn?: ((parameter: boolean) => void) + Toggle__onChangeEvent_isOn?: ((parameter: boolean) => void) Video_onStart?: VoidCallback Video_onPause?: VoidCallback Video_onFinish?: VoidCallback @@ -5298,7 +5335,7 @@ export interface PeerEventsProperties { XComponent_onLoad?: OnNativeLoadCallback XComponent_onDestroy?: VoidCallback SideBarContainer_onChange?: ((parameter: boolean) => void) - SideBarContainer___onChangeEvent_showSideBar?: ((parameter: boolean) => void) + SideBarContainer__onChangeEvent_showSideBar?: ((parameter: boolean) => void) WaterFlow_onReachStart?: (() => void) WaterFlow_onReachEnd?: (() => void) WaterFlow_onScrollFrameBegin?: ((offset: number, state: ScrollState) => { offsetRemain: number }) @@ -5316,7 +5353,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.AlphabetIndexer_onSelect: properties.AlphabetIndexer_onSelect?.((event as AlphabetIndexer_onSelect_event).index); break case PeerEventKind.AlphabetIndexer_onRequestPopupData: properties.AlphabetIndexer_onRequestPopupData?.((event as AlphabetIndexer_onRequestPopupData_event).index); break case PeerEventKind.AlphabetIndexer_onPopupSelect: properties.AlphabetIndexer_onPopupSelect?.((event as AlphabetIndexer_onPopupSelect_event).index); break - case PeerEventKind.AlphabetIndexer___onChangeEvent_selected: properties.AlphabetIndexer___onChangeEvent_selected?.((event as AlphabetIndexer___onChangeEvent_selected_event).index); break + case PeerEventKind.AlphabetIndexer__onChangeEvent_selected: properties.AlphabetIndexer__onChangeEvent_selected?.((event as AlphabetIndexer__onChangeEvent_selected_event).index); break case PeerEventKind.Animator_onStart: properties.Animator_onStart?.(); break case PeerEventKind.Animator_onPause: properties.Animator_onPause?.(); break case PeerEventKind.Animator_onRepeat: properties.Animator_onRepeat?.(); break @@ -5328,9 +5365,9 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.CalendarPicker_onChange: properties.CalendarPicker_onChange?.((event as CalendarPicker_onChange_event).parameter); break case PeerEventKind.Canvas_onReady: properties.Canvas_onReady?.(); break case PeerEventKind.Checkbox_onChange: properties.Checkbox_onChange?.((event as Checkbox_onChange_event).value); break - case PeerEventKind.Checkbox___onChangeEvent_select: properties.Checkbox___onChangeEvent_select?.((event as Checkbox___onChangeEvent_select_event).parameter); break + case PeerEventKind.Checkbox__onChangeEvent_select: properties.Checkbox__onChangeEvent_select?.((event as Checkbox__onChangeEvent_select_event).parameter); break case PeerEventKind.CheckboxGroup_onChange: properties.CheckboxGroup_onChange?.((event as CheckboxGroup_onChange_event).value); break - case PeerEventKind.CheckboxGroup___onChangeEvent_selectAll: properties.CheckboxGroup___onChangeEvent_selectAll?.((event as CheckboxGroup___onChangeEvent_selectAll_event).parameter); break + case PeerEventKind.CheckboxGroup__onChangeEvent_selectAll: properties.CheckboxGroup__onChangeEvent_selectAll?.((event as CheckboxGroup__onChangeEvent_selectAll_event).parameter); break case PeerEventKind.CommonMethod_onChildTouchTest: properties.CommonMethod_onChildTouchTest?.((event as CommonMethod_onChildTouchTest_event).value); break case PeerEventKind.CommonMethod_onClick0: properties.CommonMethod_onClick0?.((event as CommonMethod_onClick0_event).event); break case PeerEventKind.CommonMethod_onClick1: properties.CommonMethod_onClick1?.((event as CommonMethod_onClick1_event).event); break @@ -5369,6 +5406,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.CommonMethod_bindSheet: properties.CommonMethod_bindSheet?.(); break case PeerEventKind.CommonMethod_onVisibleAreaChange: properties.CommonMethod_onVisibleAreaChange?.((event as CommonMethod_onVisibleAreaChange_event).isExpanding, (event as CommonMethod_onVisibleAreaChange_event).currentRatio); break case PeerEventKind.ScrollableCommonMethod_onScroll: properties.ScrollableCommonMethod_onScroll?.((event as ScrollableCommonMethod_onScroll_event).first, (event as ScrollableCommonMethod_onScroll_event).last); break + case PeerEventKind.ScrollableCommonMethod_onDidScroll: properties.ScrollableCommonMethod_onDidScroll?.((event as ScrollableCommonMethod_onDidScroll_event).xOffset, (event as ScrollableCommonMethod_onDidScroll_event).yOffset, (event as ScrollableCommonMethod_onDidScroll_event).scrollState); break case PeerEventKind.ScrollableCommonMethod_onReachStart: properties.ScrollableCommonMethod_onReachStart?.(); break case PeerEventKind.ScrollableCommonMethod_onReachEnd: properties.ScrollableCommonMethod_onReachEnd?.(); break case PeerEventKind.ScrollableCommonMethod_onScrollStart: properties.ScrollableCommonMethod_onScrollStart?.(); break @@ -5377,7 +5415,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.Counter_onDec: properties.Counter_onDec?.(); break case PeerEventKind.DatePicker_onChange: properties.DatePicker_onChange?.((event as DatePicker_onChange_event).value); break case PeerEventKind.DatePicker_onDateChange: properties.DatePicker_onDateChange?.((event as DatePicker_onDateChange_event).parameter); break - case PeerEventKind.DatePicker___onChangeEvent_selected: properties.DatePicker___onChangeEvent_selected?.((event as DatePicker___onChangeEvent_selected_event).parameter); break + case PeerEventKind.DatePicker__onChangeEvent_selected: properties.DatePicker__onChangeEvent_selected?.((event as DatePicker__onChangeEvent_selected_event).parameter); break case PeerEventKind.EmbeddedComponent_onTerminated: properties.EmbeddedComponent_onTerminated?.((event as EmbeddedComponent_onTerminated_event).parameter); break case PeerEventKind.FolderStack_onFolderStateChange: properties.FolderStack_onFolderStateChange?.((event as FolderStack_onFolderStateChange_event).event); break case PeerEventKind.FolderStack_onHoverStatusChange: properties.FolderStack_onHoverStatusChange?.((event as FolderStack_onHoverStatusChange_event).param); break @@ -5401,7 +5439,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.Grid_onScrollStop: properties.Grid_onScrollStop?.(); break case PeerEventKind.Grid_onScrollFrameBegin: properties.Grid_onScrollFrameBegin?.((event as Grid_onScrollFrameBegin_event).offset, (event as Grid_onScrollFrameBegin_event).state); break case PeerEventKind.GridItem_onSelect: properties.GridItem_onSelect?.((event as GridItem_onSelect_event).parameter); break - case PeerEventKind.GridItem___onChangeEvent_selected: properties.GridItem___onChangeEvent_selected?.((event as GridItem___onChangeEvent_selected_event).parameter); break + case PeerEventKind.GridItem__onChangeEvent_selected: properties.GridItem__onChangeEvent_selected?.((event as GridItem__onChangeEvent_selected_event).parameter); break case PeerEventKind.GridRow_onBreakpointChange: properties.GridRow_onBreakpointChange?.((event as GridRow_onBreakpointChange_event).breakpoints); break case PeerEventKind.Image_onComplete: properties.Image_onComplete?.((event as Image_onComplete_event).event); break case PeerEventKind.Image_onError: properties.Image_onError?.((event as Image_onError_event).error); break @@ -5429,13 +5467,13 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.List_onItemDrop: properties.List_onItemDrop?.((event as List_onItemDrop_event).event, (event as List_onItemDrop_event).itemIndex, (event as List_onItemDrop_event).insertIndex, (event as List_onItemDrop_event).isSuccess); break case PeerEventKind.List_onScrollFrameBegin: properties.List_onScrollFrameBegin?.((event as List_onScrollFrameBegin_event).offset, (event as List_onScrollFrameBegin_event).state); break case PeerEventKind.ListItem_onSelect: properties.ListItem_onSelect?.((event as ListItem_onSelect_event).parameter); break - case PeerEventKind.ListItem___onChangeEvent_selected: properties.ListItem___onChangeEvent_selected?.((event as ListItem___onChangeEvent_selected_event).parameter); break + case PeerEventKind.ListItem__onChangeEvent_selected: properties.ListItem__onChangeEvent_selected?.((event as ListItem__onChangeEvent_selected_event).parameter); break case PeerEventKind.LocationButton_onClick: properties.LocationButton_onClick?.((event as LocationButton_onClick_event).event, (event as LocationButton_onClick_event).result); break case PeerEventKind.Marquee_onStart: properties.Marquee_onStart?.(); break case PeerEventKind.Marquee_onBounce: properties.Marquee_onBounce?.(); break case PeerEventKind.Marquee_onFinish: properties.Marquee_onFinish?.(); break case PeerEventKind.MenuItem_onChange: properties.MenuItem_onChange?.((event as MenuItem_onChange_event).parameter); break - case PeerEventKind.MenuItem___onChangeEvent_selected: properties.MenuItem___onChangeEvent_selected?.((event as MenuItem___onChangeEvent_selected_event).parameter); break + case PeerEventKind.MenuItem__onChangeEvent_selected: properties.MenuItem__onChangeEvent_selected?.((event as MenuItem__onChangeEvent_selected_event).parameter); break case PeerEventKind.NavDestination_onShown: properties.NavDestination_onShown?.(); break case PeerEventKind.NavDestination_onHidden: properties.NavDestination_onHidden?.(); break case PeerEventKind.NavDestination_onBackPressed: properties.NavDestination_onBackPressed?.(); break @@ -5447,20 +5485,20 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.NavRouter_onStateChange: properties.NavRouter_onStateChange?.((event as NavRouter_onStateChange_event).parameter); break case PeerEventKind.Panel_onChange: properties.Panel_onChange?.((event as Panel_onChange_event).width, (event as Panel_onChange_event).height, (event as Panel_onChange_event).mode); break case PeerEventKind.Panel_onHeightChange: properties.Panel_onHeightChange?.((event as Panel_onHeightChange_event).index); break - case PeerEventKind.Panel___onChangeEvent_mode: properties.Panel___onChangeEvent_mode?.((event as Panel___onChangeEvent_mode_event).mode); break + case PeerEventKind.Panel__onChangeEvent_mode: properties.Panel__onChangeEvent_mode?.((event as Panel__onChangeEvent_mode_event).mode); break case PeerEventKind.PasteButton_onClick: properties.PasteButton_onClick?.((event as PasteButton_onClick_event).event, (event as PasteButton_onClick_event).result); break case PeerEventKind.PatternLock_onPatternComplete: properties.PatternLock_onPatternComplete?.((event as PatternLock_onPatternComplete_event).input); break case PeerEventKind.PatternLock_onDotConnect: properties.PatternLock_onDotConnect?.((event as PatternLock_onDotConnect_event).index); break case PeerEventKind.PluginComponent_onComplete: properties.PluginComponent_onComplete?.(); break case PeerEventKind.PluginComponent_onError: properties.PluginComponent_onError?.((event as PluginComponent_onError_event).info); break case PeerEventKind.Radio_onChange: properties.Radio_onChange?.((event as Radio_onChange_event).parameter); break - case PeerEventKind.Radio___onChangeEvent_checked: properties.Radio___onChangeEvent_checked?.((event as Radio___onChangeEvent_checked_event).parameter); break + case PeerEventKind.Radio__onChangeEvent_checked: properties.Radio__onChangeEvent_checked?.((event as Radio__onChangeEvent_checked_event).parameter); break case PeerEventKind.Rating_onChange: properties.Rating_onChange?.((event as Rating_onChange_event).index); break - case PeerEventKind.Rating___onChangeEvent_rating: properties.Rating___onChangeEvent_rating?.((event as Rating___onChangeEvent_rating_event).index); break + case PeerEventKind.Rating__onChangeEvent_rating: properties.Rating__onChangeEvent_rating?.((event as Rating__onChangeEvent_rating_event).index); break case PeerEventKind.Refresh_onStateChange: properties.Refresh_onStateChange?.((event as Refresh_onStateChange_event).state); break case PeerEventKind.Refresh_onRefreshing: properties.Refresh_onRefreshing?.(); break case PeerEventKind.Refresh_onOffsetChange: properties.Refresh_onOffsetChange?.((event as Refresh_onOffsetChange_event).index); break - case PeerEventKind.Refresh___onChangeEvent_refreshing: properties.Refresh___onChangeEvent_refreshing?.((event as Refresh___onChangeEvent_refreshing_event).parameter); break + case PeerEventKind.Refresh__onChangeEvent_refreshing: properties.Refresh__onChangeEvent_refreshing?.((event as Refresh__onChangeEvent_refreshing_event).parameter); break case PeerEventKind.RichEditor_onReady: properties.RichEditor_onReady?.(); break case PeerEventKind.RichEditor_onSelect: properties.RichEditor_onSelect?.((event as RichEditor_onSelect_event).parameter); break case PeerEventKind.RichEditor_onSelectionChange: properties.RichEditor_onSelectionChange?.((event as RichEditor_onSelectionChange_event).parameter); break @@ -5482,6 +5520,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.RichText_onComplete: properties.RichText_onComplete?.(); break case PeerEventKind.SaveButton_onClick: properties.SaveButton_onClick?.((event as SaveButton_onClick_event).event, (event as SaveButton_onClick_event).result); break case PeerEventKind.Scroll_onScroll: properties.Scroll_onScroll?.((event as Scroll_onScroll_event).first, (event as Scroll_onScroll_event).last); break + case PeerEventKind.Scroll_onDidScroll: properties.Scroll_onDidScroll?.((event as Scroll_onDidScroll_event).xOffset, (event as Scroll_onDidScroll_event).yOffset, (event as Scroll_onDidScroll_event).scrollState); break case PeerEventKind.Scroll_onScrollEdge: properties.Scroll_onScrollEdge?.((event as Scroll_onScrollEdge_event).side); break case PeerEventKind.Scroll_onScrollStart: properties.Scroll_onScrollStart?.(); break case PeerEventKind.Scroll_onScrollEnd: properties.Scroll_onScrollEnd?.(); break @@ -5501,24 +5540,24 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.Search_onWillDelete: properties.Search_onWillDelete?.((event as Search_onWillDelete_event).parameter); break case PeerEventKind.Search_onDidDelete: properties.Search_onDidDelete?.((event as Search_onDidDelete_event).parameter); break case PeerEventKind.Search_customKeyboard: properties.Search_customKeyboard?.(); break - case PeerEventKind.Search___onChangeEvent_value: properties.Search___onChangeEvent_value?.((event as Search___onChangeEvent_value_event).breakpoints); break + case PeerEventKind.Search__onChangeEvent_value: properties.Search__onChangeEvent_value?.((event as Search__onChangeEvent_value_event).breakpoints); break case PeerEventKind.Select_onSelect: properties.Select_onSelect?.((event as Select_onSelect_event).index, (event as Select_onSelect_event).value); break - case PeerEventKind.Select___onChangeEvent_selected: properties.Select___onChangeEvent_selected?.((event as Select___onChangeEvent_selected_event).selected); break - case PeerEventKind.Select___onChangeEvent_value: properties.Select___onChangeEvent_value?.((event as Select___onChangeEvent_value_event).value); break + case PeerEventKind.Select__onChangeEvent_selected: properties.Select__onChangeEvent_selected?.((event as Select__onChangeEvent_selected_event).selected); break + case PeerEventKind.Select__onChangeEvent_value: properties.Select__onChangeEvent_value?.((event as Select__onChangeEvent_value_event).value); break case PeerEventKind.Slider_onChange: properties.Slider_onChange?.((event as Slider_onChange_event).value, (event as Slider_onChange_event).mode); break - case PeerEventKind.Slider___onChangeEvent_value: properties.Slider___onChangeEvent_value?.((event as Slider___onChangeEvent_value_event).index); break + case PeerEventKind.Slider__onChangeEvent_value: properties.Slider__onChangeEvent_value?.((event as Slider__onChangeEvent_value_event).index); break case PeerEventKind.Stepper_onFinish: properties.Stepper_onFinish?.(); break case PeerEventKind.Stepper_onSkip: properties.Stepper_onSkip?.(); break case PeerEventKind.Stepper_onChange: properties.Stepper_onChange?.((event as Stepper_onChange_event).first, (event as Stepper_onChange_event).last); break case PeerEventKind.Stepper_onNext: properties.Stepper_onNext?.((event as Stepper_onNext_event).first, (event as Stepper_onNext_event).last); break case PeerEventKind.Stepper_onPrevious: properties.Stepper_onPrevious?.((event as Stepper_onPrevious_event).first, (event as Stepper_onPrevious_event).last); break - case PeerEventKind.Stepper___onChangeEvent_index: properties.Stepper___onChangeEvent_index?.((event as Stepper___onChangeEvent_index_event).index); break + case PeerEventKind.Stepper__onChangeEvent_index: properties.Stepper__onChangeEvent_index?.((event as Stepper__onChangeEvent_index_event).index); break case PeerEventKind.Swiper_onChange: properties.Swiper_onChange?.((event as Swiper_onChange_event).index); break case PeerEventKind.Swiper_onAnimationStart: properties.Swiper_onAnimationStart?.((event as Swiper_onAnimationStart_event).index, (event as Swiper_onAnimationStart_event).targetIndex, (event as Swiper_onAnimationStart_event).extraInfo); break case PeerEventKind.Swiper_onAnimationEnd: properties.Swiper_onAnimationEnd?.((event as Swiper_onAnimationEnd_event).index, (event as Swiper_onAnimationEnd_event).extraInfo); break case PeerEventKind.Swiper_onGestureSwipe: properties.Swiper_onGestureSwipe?.((event as Swiper_onGestureSwipe_event).index, (event as Swiper_onGestureSwipe_event).extraInfo); break case PeerEventKind.Swiper_onContentDidScroll: properties.Swiper_onContentDidScroll?.((event as Swiper_onContentDidScroll_event).selectedIndex, (event as Swiper_onContentDidScroll_event).index, (event as Swiper_onContentDidScroll_event).position, (event as Swiper_onContentDidScroll_event).mainAxisLength); break - case PeerEventKind.Swiper___onChangeEvent_index: properties.Swiper___onChangeEvent_index?.((event as Swiper___onChangeEvent_index_event).index); break + case PeerEventKind.Swiper__onChangeEvent_index: properties.Swiper__onChangeEvent_index?.((event as Swiper__onChangeEvent_index_event).index); break case PeerEventKind.IndicatorComponent_onChange: properties.IndicatorComponent_onChange?.((event as IndicatorComponent_onChange_event).index); break case PeerEventKind.Tabs_onChange: properties.Tabs_onChange?.((event as Tabs_onChange_event).index); break case PeerEventKind.Tabs_onTabBarClick: properties.Tabs_onTabBarClick?.((event as Tabs_onTabBarClick_event).index); break @@ -5527,7 +5566,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.Tabs_onGestureSwipe: properties.Tabs_onGestureSwipe?.((event as Tabs_onGestureSwipe_event).index, (event as Tabs_onGestureSwipe_event).extraInfo); break case PeerEventKind.Tabs_customContentTransition: properties.Tabs_customContentTransition?.((event as Tabs_customContentTransition_event).from, (event as Tabs_customContentTransition_event).to); break case PeerEventKind.Tabs_onContentWillChange: properties.Tabs_onContentWillChange?.((event as Tabs_onContentWillChange_event).currentIndex, (event as Tabs_onContentWillChange_event).comingIndex); break - case PeerEventKind.Tabs___onChangeEvent_index: properties.Tabs___onChangeEvent_index?.((event as Tabs___onChangeEvent_index_event).index); break + case PeerEventKind.Tabs__onChangeEvent_index: properties.Tabs__onChangeEvent_index?.((event as Tabs__onChangeEvent_index_event).index); break case PeerEventKind.TabContent_onWillShow: properties.TabContent_onWillShow?.(); break case PeerEventKind.TabContent_onWillHide: properties.TabContent_onWillHide?.(); break case PeerEventKind.Text_onCopy: properties.Text_onCopy?.((event as Text_onCopy_event).breakpoints); break @@ -5547,7 +5586,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.TextArea_onWillDelete: properties.TextArea_onWillDelete?.((event as TextArea_onWillDelete_event).parameter); break case PeerEventKind.TextArea_onDidDelete: properties.TextArea_onDidDelete?.((event as TextArea_onDidDelete_event).parameter); break case PeerEventKind.TextArea_customKeyboard: properties.TextArea_customKeyboard?.(); break - case PeerEventKind.TextArea___onChangeEvent_text: properties.TextArea___onChangeEvent_text?.((event as TextArea___onChangeEvent_text_event).value); break + case PeerEventKind.TextArea__onChangeEvent_text: properties.TextArea__onChangeEvent_text?.((event as TextArea__onChangeEvent_text_event).value); break case PeerEventKind.TextClock_onDateChange: properties.TextClock_onDateChange?.((event as TextClock_onDateChange_event).index); break case PeerEventKind.TextInput_onEditChanged: properties.TextInput_onEditChanged?.((event as TextInput_onEditChanged_event).parameter); break case PeerEventKind.TextInput_onEditChange: properties.TextInput_onEditChange?.((event as TextInput_onEditChange_event).parameter); break @@ -5565,17 +5604,17 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.TextInput_onWillDelete: properties.TextInput_onWillDelete?.((event as TextInput_onWillDelete_event).parameter); break case PeerEventKind.TextInput_onDidDelete: properties.TextInput_onDidDelete?.((event as TextInput_onDidDelete_event).parameter); break case PeerEventKind.TextInput_customKeyboard: properties.TextInput_customKeyboard?.(); break - case PeerEventKind.TextInput___onChangeEvent_text: properties.TextInput___onChangeEvent_text?.((event as TextInput___onChangeEvent_text_event).value); break + case PeerEventKind.TextInput__onChangeEvent_text: properties.TextInput__onChangeEvent_text?.((event as TextInput__onChangeEvent_text_event).value); break case PeerEventKind.TextPicker_onAccept: properties.TextPicker_onAccept?.((event as TextPicker_onAccept_event).value, (event as TextPicker_onAccept_event).index); break case PeerEventKind.TextPicker_onCancel: properties.TextPicker_onCancel?.(); break case PeerEventKind.TextPicker_onChange: properties.TextPicker_onChange?.((event as TextPicker_onChange_event).value, (event as TextPicker_onChange_event).index); break - case PeerEventKind.TextPicker___onChangeEvent_selected: properties.TextPicker___onChangeEvent_selected?.((event as TextPicker___onChangeEvent_selected_event).selected); break - case PeerEventKind.TextPicker___onChangeEvent_value: properties.TextPicker___onChangeEvent_value?.((event as TextPicker___onChangeEvent_value_event).value); break + case PeerEventKind.TextPicker__onChangeEvent_selected: properties.TextPicker__onChangeEvent_selected?.((event as TextPicker__onChangeEvent_selected_event).selected); break + case PeerEventKind.TextPicker__onChangeEvent_value: properties.TextPicker__onChangeEvent_value?.((event as TextPicker__onChangeEvent_value_event).value); break case PeerEventKind.TextTimer_onTimer: properties.TextTimer_onTimer?.((event as TextTimer_onTimer_event).first, (event as TextTimer_onTimer_event).last); break case PeerEventKind.TimePicker_onChange: properties.TimePicker_onChange?.((event as TimePicker_onChange_event).value); break - case PeerEventKind.TimePicker___onChangeEvent_selected: properties.TimePicker___onChangeEvent_selected?.((event as TimePicker___onChangeEvent_selected_event).parameter); break + case PeerEventKind.TimePicker__onChangeEvent_selected: properties.TimePicker__onChangeEvent_selected?.((event as TimePicker__onChangeEvent_selected_event).parameter); break case PeerEventKind.Toggle_onChange: properties.Toggle_onChange?.((event as Toggle_onChange_event).parameter); break - case PeerEventKind.Toggle___onChangeEvent_isOn: properties.Toggle___onChangeEvent_isOn?.((event as Toggle___onChangeEvent_isOn_event).parameter); break + case PeerEventKind.Toggle__onChangeEvent_isOn: properties.Toggle__onChangeEvent_isOn?.((event as Toggle__onChangeEvent_isOn_event).parameter); break case PeerEventKind.Video_onStart: properties.Video_onStart?.(); break case PeerEventKind.Video_onPause: properties.Video_onPause?.(); break case PeerEventKind.Video_onFinish: properties.Video_onFinish?.(); break @@ -5653,7 +5692,7 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.XComponent_onLoad: properties.XComponent_onLoad?.((event as XComponent_onLoad_event).event); break case PeerEventKind.XComponent_onDestroy: properties.XComponent_onDestroy?.(); break case PeerEventKind.SideBarContainer_onChange: properties.SideBarContainer_onChange?.((event as SideBarContainer_onChange_event).parameter); break - case PeerEventKind.SideBarContainer___onChangeEvent_showSideBar: properties.SideBarContainer___onChangeEvent_showSideBar?.((event as SideBarContainer___onChangeEvent_showSideBar_event).parameter); break + case PeerEventKind.SideBarContainer__onChangeEvent_showSideBar: properties.SideBarContainer__onChangeEvent_showSideBar?.((event as SideBarContainer__onChangeEvent_showSideBar_event).parameter); break case PeerEventKind.WaterFlow_onReachStart: properties.WaterFlow_onReachStart?.(); break case PeerEventKind.WaterFlow_onReachEnd: properties.WaterFlow_onReachEnd?.(); break case PeerEventKind.WaterFlow_onScrollFrameBegin: properties.WaterFlow_onScrollFrameBegin?.((event as WaterFlow_onScrollFrameBegin_event).offset, (event as WaterFlow_onScrollFrameBegin_event).state); break diff --git a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts b/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts index 179d03aff..67b9f4181 100644 --- a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts b/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts index 680a51c69..ee28ea80f 100644 --- a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -427,10 +427,10 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._AlphabetIndexerAttribute_alignStyle(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((index: number) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._AlphabetIndexerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._AlphabetIndexerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts b/arkoala/arkui/src/peers/ArkAnimatorPeer.ts index 6a69279d8..2a3c6534b 100644 --- a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkAnimatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -38,7 +38,7 @@ import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" -import { SpringMotion, SpringProp, AnimatorAttribute } from "./../ArkAnimatorInterfaces" +import { SpringMotion } from "./../ArkSpringMotionMaterialized" import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { ClickEvent } from "./../ArkClickEventMaterialized" import { HoverEvent } from "./../ArkHoverEventMaterialized" @@ -48,11 +48,13 @@ import { KeyEvent } from "./../ArkKeyEventMaterialized" import { ICurve } from "./../ArkICurveMaterialized" import { DragEvent } from "./../ArkDragEventMaterialized" import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { SpringProp } from "./../ArkSpringPropMaterialized" import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" import { BaseEvent } from "./../ArkBaseEventMaterialized" 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 { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkBadgePeer.ts b/arkoala/arkui/src/peers/ArkBadgePeer.ts index 7f367d6bf..e07a2bf29 100644 --- a/arkoala/arkui/src/peers/ArkBadgePeer.ts +++ b/arkoala/arkui/src/peers/ArkBadgePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkBlankPeer.ts b/arkoala/arkui/src/peers/ArkBlankPeer.ts index 4083d370a..88de77480 100644 --- a/arkoala/arkui/src/peers/ArkBlankPeer.ts +++ b/arkoala/arkui/src/peers/ArkBlankPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkButtonPeer.ts b/arkoala/arkui/src/peers/ArkButtonPeer.ts index 0483cdabb..091ab6e54 100644 --- a/arkoala/arkui/src/peers/ArkButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkCalendarPeer.ts b/arkoala/arkui/src/peers/ArkCalendarPeer.ts index 5f53c592f..b1e8b10d9 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPeer.ts +++ b/arkoala/arkui/src/peers/ArkCalendarPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts b/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts index 04e1ff513..459030df4 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkCanvasPeer.ts b/arkoala/arkui/src/peers/ArkCanvasPeer.ts index b2455a03c..a6fe84b72 100644 --- a/arkoala/arkui/src/peers/ArkCanvasPeer.ts +++ b/arkoala/arkui/src/peers/ArkCanvasPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -54,7 +54,7 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" -import { CanvasAttribute, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings, Size } from "./../ArkCanvasInterfaces" +import { CanvasAttribute, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics, Size } from "./../ArkCanvasInterfaces" import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasPath } from "./../ArkCanvasPathMaterialized" @@ -62,8 +62,10 @@ import { CanvasGradient } from "./../ArkCanvasGradientMaterialized" import { CanvasPattern } from "./../ArkCanvasPatternMaterialized" import { ImageBitmap } from "./../ArkImageBitmapMaterialized" import { Path2D } from "./../ArkPath2DMaterialized" +import { ImageData } from "./../ArkImageDataMaterialized" import { Matrix2D } from "./../ArkMatrix2DMaterialized" import { FrameNode } from "./../ArkFrameNodeMaterialized" +import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" diff --git a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts b/arkoala/arkui/src/peers/ArkCheckboxPeer.ts index 20c07d0ac..5f6465f9b 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts +++ b/arkoala/arkui/src/peers/ArkCheckboxPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -164,10 +164,10 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._CheckboxAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._CheckboxAttribute___onChangeEvent_select(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CheckboxAttribute__onChangeEvent_select(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts b/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts index e0471ed89..f57469f5f 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -158,10 +158,10 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { checkboxShapeAttribute(value: CheckBoxShape): void { ArkUIGeneratedNativeModule._CheckboxGroupAttribute_checkboxShape(this.peer.ptr, value) } - __onChangeEvent_selectAllAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectAllAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._CheckboxGroupAttribute___onChangeEvent_selectAll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._CheckboxGroupAttribute__onChangeEvent_selectAll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkCirclePeer.ts b/arkoala/arkui/src/peers/ArkCirclePeer.ts index 979a3acc4..9023782be 100644 --- a/arkoala/arkui/src/peers/ArkCirclePeer.ts +++ b/arkoala/arkui/src/peers/ArkCirclePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkColumnPeer.ts b/arkoala/arkui/src/peers/ArkColumnPeer.ts index 0fe34190d..38ac52302 100644 --- a/arkoala/arkui/src/peers/ArkColumnPeer.ts +++ b/arkoala/arkui/src/peers/ArkColumnPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts b/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts index a2a976dd5..73a0ba13d 100644 --- a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts +++ b/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkCommonPeer.ts b/arkoala/arkui/src/peers/ArkCommonPeer.ts index 2f097504c..fb367c68c 100644 --- a/arkoala/arkui/src/peers/ArkCommonPeer.ts +++ b/arkoala/arkui/src/peers/ArkCommonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -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) @@ -3304,15 +3304,9 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ScrollableCommonMethod_onWillScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - onDidScrollAttribute(value?: ScrollOnScrollCallback): void { + onDidScrollAttribute(value: ScrollOnScrollCallback): void { const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.holdAndWriteCallback(value_value) - } + thisSerializer.holdAndWriteCallback(value) ArkUIGeneratedNativeModule._ScrollableCommonMethod_onDidScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } diff --git a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts b/arkoala/arkui/src/peers/ArkComponent3dPeer.ts index f8b454b47..0044a7f52 100644 --- a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts +++ b/arkoala/arkui/src/peers/ArkComponent3dPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts b/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts index a6ef1d8c0..740f4c040 100644 --- a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkCounterPeer.ts b/arkoala/arkui/src/peers/ArkCounterPeer.ts index e6627a074..a93038e03 100644 --- a/arkoala/arkui/src/peers/ArkCounterPeer.ts +++ b/arkoala/arkui/src/peers/ArkCounterPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts b/arkoala/arkui/src/peers/ArkDataPanelPeer.ts index 18670175d..ed94010fa 100644 --- a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts +++ b/arkoala/arkui/src/peers/ArkDataPanelPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -52,7 +52,8 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { LinearGradient_data_panel, DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -83,11 +84,11 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { closeEffectAttribute(value: boolean): void { ArkUIGeneratedNativeModule._DataPanelAttribute_closeEffect(this.peer.ptr, +value) } - valueColorsAttribute(value: Array): void { + valueColorsAttribute(value: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(value.length) for (let i = 0; i < value.length; i++) { - const value_element: ResourceColor | LinearGradient_data_panel = value[i] + 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)))) { @@ -116,10 +117,10 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_element_0_3) } } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (((RuntimeType.OBJECT) == (value_element_type)) && (value_element instanceof LinearGradient)) { thisSerializer.writeInt8(1) - const value_element_1 = unsafeCast(value_element) - thisSerializer.writeLinearGradient_data_panel(value_element_1) + const value_element_1 = unsafeCast(value_element) + thisSerializer.writeLinearGradient(value_element_1) } } ArkUIGeneratedNativeModule._DataPanelAttribute_valueColors(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) @@ -170,7 +171,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { } export interface ArkDataPanelAttributes extends ArkCommonMethodAttributes { closeEffect?: boolean - valueColors?: Array + valueColors?: Array trackBackgroundColor?: ResourceColor strokeWidth?: Length trackShadow?: DataPanelShadowOptions diff --git a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts b/arkoala/arkui/src/peers/ArkDatePickerPeer.ts index 70c5ed7d8..ab9ba094e 100644 --- a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkDatePickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -119,10 +119,10 @@ export class ArkDatePickerPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._DatePickerAttribute_onDateChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._DatePickerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._DatePickerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkDividerPeer.ts b/arkoala/arkui/src/peers/ArkDividerPeer.ts index ed4ba6d34..d9d5b8294 100644 --- a/arkoala/arkui/src/peers/ArkDividerPeer.ts +++ b/arkoala/arkui/src/peers/ArkDividerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts b/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts index 621cf6a15..f40a2d34a 100644 --- a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkEllipsePeer.ts b/arkoala/arkui/src/peers/ArkEllipsePeer.ts index 78be59276..498d739af 100644 --- a/arkoala/arkui/src/peers/ArkEllipsePeer.ts +++ b/arkoala/arkui/src/peers/ArkEllipsePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts b/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts index 60ff89f87..8297202c7 100644 --- a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkFlexPeer.ts b/arkoala/arkui/src/peers/ArkFlexPeer.ts index d18a834d0..e44655872 100644 --- a/arkoala/arkui/src/peers/ArkFlexPeer.ts +++ b/arkoala/arkui/src/peers/ArkFlexPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts b/arkoala/arkui/src/peers/ArkFlowItemPeer.ts index 332438b0d..e593a1aa5 100644 --- a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkFlowItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts b/arkoala/arkui/src/peers/ArkFolderStackPeer.ts index 56e1a31a7..d18b75a32 100644 --- a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts +++ b/arkoala/arkui/src/peers/ArkFolderStackPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts b/arkoala/arkui/src/peers/ArkFormComponentPeer.ts index 59db3c6ef..57bf5f7c7 100644 --- a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkFormComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts b/arkoala/arkui/src/peers/ArkFormLinkPeer.ts index 72b086172..7759b7aa4 100644 --- a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts +++ b/arkoala/arkui/src/peers/ArkFormLinkPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkGaugePeer.ts b/arkoala/arkui/src/peers/ArkGaugePeer.ts index e019095d6..30672e17a 100644 --- a/arkoala/arkui/src/peers/ArkGaugePeer.ts +++ b/arkoala/arkui/src/peers/ArkGaugePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -52,7 +52,9 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" 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 { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -89,7 +91,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { endAngleAttribute(value: number): void { ArkUIGeneratedNativeModule._GaugeAttribute_endAngle(this.peer.ptr, value) } - colorsAttribute(value: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>): void { + colorsAttribute(value: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]>): void { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -119,17 +121,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_0_3) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("colors"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof LinearGradient)) { thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writeLinearGradient_common(value_1) + const value_1 = unsafeCast(value) + thisSerializer.writeLinearGradient(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array<[ ResourceColor | LinearGradient_common, number ]>)) { + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array<[ ResourceColor | LinearGradient, number ]>)) { thisSerializer.writeInt8(2) - const value_2 = unsafeCast>(value) + const value_2 = unsafeCast>(value) thisSerializer.writeInt32(value_2.length) for (let i = 0; i < value_2.length; i++) { - const value_2_element: [ ResourceColor | LinearGradient_common, number ] = value_2[i] + const value_2_element: [ ResourceColor | LinearGradient, number ] = value_2[i] 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) @@ -159,10 +161,10 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_2_element_0_0_3) } } - else if (((RuntimeType.OBJECT) == (value_2_element_0_type)) && (((value_2_element_0!.hasOwnProperty("colors"))))) { + else if (((RuntimeType.OBJECT) == (value_2_element_0_type)) && (value_2_element_0 instanceof LinearGradient)) { thisSerializer.writeInt8(1) - const value_2_element_0_1 = unsafeCast(value_2_element_0) - thisSerializer.writeLinearGradient_common(value_2_element_0_1) + const value_2_element_0_1 = unsafeCast(value_2_element_0) + thisSerializer.writeLinearGradient(value_2_element_0_1) } const value_2_element_1 = value_2_element[1] thisSerializer.writeNumber(value_2_element_1) @@ -215,7 +217,7 @@ export interface ArkGaugeAttributes extends ArkCommonMethodAttributes { value?: number startAngle?: number endAngle?: number - colors?: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]> + colors?: ResourceColor | LinearGradient | Array<[ ResourceColor | LinearGradient, number ]> strokeWidth?: Length description?: CustomBuilder trackShadow?: GaugeShadowOptions diff --git a/arkoala/arkui/src/peers/ArkGridColPeer.ts b/arkoala/arkui/src/peers/ArkGridColPeer.ts index 5289cb76c..ce59b24d4 100644 --- a/arkoala/arkui/src/peers/ArkGridColPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridColPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts b/arkoala/arkui/src/peers/ArkGridContainerPeer.ts index c142e9d9e..7add5e969 100644 --- a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridContainerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkGridItemPeer.ts b/arkoala/arkui/src/peers/ArkGridItemPeer.ts index bb7c35e0a..1868555c1 100644 --- a/arkoala/arkui/src/peers/ArkGridItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -113,10 +113,10 @@ export class ArkGridItemPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._GridItemAttribute_onSelect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._GridItemAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GridItemAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkGridPeer.ts b/arkoala/arkui/src/peers/ArkGridPeer.ts index 4a52c6288..1f6da67e7 100644 --- a/arkoala/arkui/src/peers/ArkGridPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkGridRowPeer.ts b/arkoala/arkui/src/peers/ArkGridRowPeer.ts index 1884b923e..24ad051e9 100644 --- a/arkoala/arkui/src/peers/ArkGridRowPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridRowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts b/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts index 0a07dd096..c73cef60a 100644 --- a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts +++ b/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts b/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts index 0feaee6f7..17e98a9ff 100644 --- a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkImagePeer.ts b/arkoala/arkui/src/peers/ArkImagePeer.ts index d0e67d896..7d9ca8b71 100644 --- a/arkoala/arkui/src/peers/ArkImagePeer.ts +++ b/arkoala/arkui/src/peers/ArkImagePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -25,7 +25,7 @@ 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" -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, ColorFilter } from "./../ArkUnitsInterfaces" +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" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./../ArkEnumsInterfaces" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" @@ -52,6 +52,7 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" 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" @@ -100,7 +101,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { 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) @@ -133,7 +134,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { 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) @@ -171,7 +172,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { 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) @@ -266,12 +267,12 @@ export class ArkImagePeer 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)) && (value instanceof ColorFilter)) { thisSerializer.writeInt8(0) 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/peers/ArkImageSpanPeer.ts index fcdf5b2df..01531cb1e 100644 --- a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkImageSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -26,7 +26,7 @@ import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" 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" -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, ColorFilter } from "./../ArkUnitsInterfaces" +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" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" @@ -53,6 +53,7 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" 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 { CallbackKind } from "./CallbackKind" @@ -110,12 +111,12 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { 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)) && (value instanceof ColorFilter)) { thisSerializer.writeInt8(0) 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/peers/ArkIndicatorcomponentPeer.ts index 50b1ed01a..02b982f2c 100644 --- a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkLinePeer.ts b/arkoala/arkui/src/peers/ArkLinePeer.ts index 1e374f447..a7133b79c 100644 --- a/arkoala/arkui/src/peers/ArkLinePeer.ts +++ b/arkoala/arkui/src/peers/ArkLinePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts b/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts index 370fa4372..27165c67b 100644 --- a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts b/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts index e181576e6..077940717 100644 --- a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts +++ b/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkListItemPeer.ts b/arkoala/arkui/src/peers/ArkListItemPeer.ts index 66bab9a65..07bcedd1a 100644 --- a/arkoala/arkui/src/peers/ArkListItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkListItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -136,10 +136,10 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ListItemAttribute_onSelect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._ListItemAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ListItemAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkListPeer.ts b/arkoala/arkui/src/peers/ArkListPeer.ts index 708c90d51..d85305e3c 100644 --- a/arkoala/arkui/src/peers/ArkListPeer.ts +++ b/arkoala/arkui/src/peers/ArkListPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts b/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts index 218ff20ef..e4948f714 100644 --- a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts +++ b/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts b/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts index 8118454e2..00d172d5b 100644 --- a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkMarqueePeer.ts b/arkoala/arkui/src/peers/ArkMarqueePeer.ts index f8833e5bc..a93d1e72b 100644 --- a/arkoala/arkui/src/peers/ArkMarqueePeer.ts +++ b/arkoala/arkui/src/peers/ArkMarqueePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts b/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts index abd9dd6c1..85834e92c 100644 --- a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -26,7 +26,7 @@ import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" 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" -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, ColorFilter } from "./../ArkUnitsInterfaces" +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" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./../ArkEnumsInterfaces" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" @@ -52,6 +52,7 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" 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" @@ -100,7 +101,7 @@ export class ArkMediaCachedImagePeer extends ArkImagePeer { 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) diff --git a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts b/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts index 23dea066f..3bc2aaf87 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts b/arkoala/arkui/src/peers/ArkMenuItemPeer.ts index 6a83a693d..9b502ef7d 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkMenuItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -125,7 +125,7 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { 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) @@ -205,10 +205,10 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._MenuItemAttribute_labelFontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._MenuItemAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._MenuItemAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkMenuPeer.ts b/arkoala/arkui/src/peers/ArkMenuPeer.ts index 6e392a085..5c2dac33f 100644 --- a/arkoala/arkui/src/peers/ArkMenuPeer.ts +++ b/arkoala/arkui/src/peers/ArkMenuPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts b/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts index 8e44d8ae1..09a844ee0 100644 --- a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -53,8 +53,9 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, RouteMapConfig } from "./../ArkNavDestinationInterfaces" -import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./../ArkNavigationInterfaces" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./../ArkNavigationInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" +import { NavPathInfo } from "./../ArkNavPathInfoMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" @@ -132,7 +133,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { 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) diff --git a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts b/arkoala/arkui/src/peers/ArkNavRouterPeer.ts index 228b09052..321ac21ad 100644 --- a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavRouterPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts b/arkoala/arkui/src/peers/ArkNavigatorPeer.ts index c9867c355..e162d4a8f 100644 --- a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavigatorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts b/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts index 26b00d25c..f468e7671 100644 --- a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts +++ b/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkPanelPeer.ts b/arkoala/arkui/src/peers/ArkPanelPeer.ts index ae938a199..7cf282638 100644 --- a/arkoala/arkui/src/peers/ArkPanelPeer.ts +++ b/arkoala/arkui/src/peers/ArkPanelPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -199,10 +199,10 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._PanelAttribute_onHeightChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_modeAttribute(callback: ((mode: PanelMode) => void)): void { + _onChangeEvent_modeAttribute(callback: ((mode: PanelMode) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._PanelAttribute___onChangeEvent_mode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._PanelAttribute__onChangeEvent_mode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts b/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts index 80e77b0b3..98a5f4002 100644 --- a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkPathPeer.ts b/arkoala/arkui/src/peers/ArkPathPeer.ts index 448da4a68..79e6f8033 100644 --- a/arkoala/arkui/src/peers/ArkPathPeer.ts +++ b/arkoala/arkui/src/peers/ArkPathPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts b/arkoala/arkui/src/peers/ArkPatternLockPeer.ts index b3cb5bdb6..5f25340cd 100644 --- a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts +++ b/arkoala/arkui/src/peers/ArkPatternLockPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts b/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts index bbae61946..321d2e40a 100644 --- a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkPolygonPeer.ts b/arkoala/arkui/src/peers/ArkPolygonPeer.ts index 2b99dda09..3d787d437 100644 --- a/arkoala/arkui/src/peers/ArkPolygonPeer.ts +++ b/arkoala/arkui/src/peers/ArkPolygonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkPolylinePeer.ts b/arkoala/arkui/src/peers/ArkPolylinePeer.ts index 4059a7230..04e251f0f 100644 --- a/arkoala/arkui/src/peers/ArkPolylinePeer.ts +++ b/arkoala/arkui/src/peers/ArkPolylinePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkProgressPeer.ts b/arkoala/arkui/src/peers/ArkProgressPeer.ts index e73743a1d..5813f04ee 100644 --- a/arkoala/arkui/src/peers/ArkProgressPeer.ts +++ b/arkoala/arkui/src/peers/ArkProgressPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -52,7 +52,9 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" 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 { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -83,7 +85,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { valueAttribute(value: number): void { ArkUIGeneratedNativeModule._ProgressAttribute_value(this.peer.ptr, value) } - colorAttribute(value: ResourceColor | LinearGradient_common): void { + colorAttribute(value: ResourceColor | LinearGradient): void { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -113,10 +115,10 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_0_3) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("colors"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof LinearGradient)) { thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writeLinearGradient_common(value_1) + const value_1 = unsafeCast(value) + thisSerializer.writeLinearGradient(value_1) } ArkUIGeneratedNativeModule._ProgressAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -169,7 +171,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { } export interface ArkProgressAttributes extends ArkCommonMethodAttributes { value?: number - color?: ResourceColor | LinearGradient_common + color?: ResourceColor | LinearGradient style?: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions privacySensitive?: boolean | undefined contentModifier?: ContentModifier diff --git a/arkoala/arkui/src/peers/ArkQrcodePeer.ts b/arkoala/arkui/src/peers/ArkQrcodePeer.ts index 9f43f8019..ccbd008f5 100644 --- a/arkoala/arkui/src/peers/ArkQrcodePeer.ts +++ b/arkoala/arkui/src/peers/ArkQrcodePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRadioPeer.ts b/arkoala/arkui/src/peers/ArkRadioPeer.ts index 63d4041da..b38d8bcd1 100644 --- a/arkoala/arkui/src/peers/ArkRadioPeer.ts +++ b/arkoala/arkui/src/peers/ArkRadioPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -107,10 +107,10 @@ export class ArkRadioPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RadioAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_checkedAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_checkedAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._RadioAttribute___onChangeEvent_checked(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RadioAttribute__onChangeEvent_checked(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkRatingPeer.ts b/arkoala/arkui/src/peers/ArkRatingPeer.ts index a2c3df523..9017b71a9 100644 --- a/arkoala/arkui/src/peers/ArkRatingPeer.ts +++ b/arkoala/arkui/src/peers/ArkRatingPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -110,10 +110,10 @@ export class ArkRatingPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RatingAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_ratingAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_ratingAttribute(callback: ((index: number) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._RatingAttribute___onChangeEvent_rating(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RatingAttribute__onChangeEvent_rating(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkRectPeer.ts b/arkoala/arkui/src/peers/ArkRectPeer.ts index 088d8482a..ae58cfc12 100644 --- a/arkoala/arkui/src/peers/ArkRectPeer.ts +++ b/arkoala/arkui/src/peers/ArkRectPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRefreshPeer.ts b/arkoala/arkui/src/peers/ArkRefreshPeer.ts index bb8796adb..e1c525c76 100644 --- a/arkoala/arkui/src/peers/ArkRefreshPeer.ts +++ b/arkoala/arkui/src/peers/ArkRefreshPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -116,10 +116,10 @@ export class ArkRefreshPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._RefreshAttribute_pullDownRatio(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_refreshingAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_refreshingAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._RefreshAttribute___onChangeEvent_refreshing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._RefreshAttribute__onChangeEvent_refreshing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts b/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts index 5508e02a8..c7cae651b 100644 --- a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts +++ b/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts b/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts index 94b74d1e9..793e883e4 100644 --- a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts +++ b/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts b/arkoala/arkui/src/peers/ArkRichEditorPeer.ts index 7334f8900..9ff4a841e 100644 --- a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts +++ b/arkoala/arkui/src/peers/ArkRichEditorPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -56,7 +56,7 @@ import { PasteEventCallback, SubmitCallback, RichEditorSpanType, RichEditorRespo import { TextDataDetectorConfig, OnDidChangeCallback, TextRange, TextDataDetectorType, TextMenuItem, MenuType, DecorationStyleResult, PreviewText, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, Affinity, StyledStringChangeValue } from "./../ArkTextCommonInterfaces" import { EnterKeyType } from "./../ArkTextInputInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" @@ -68,6 +68,7 @@ import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { StyledStringController } from "./../ArkStyledStringControllerMaterialized" import { MutableStyledString } from "./../ArkMutableStyledStringMaterialized" +import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" diff --git a/arkoala/arkui/src/peers/ArkRichTextPeer.ts b/arkoala/arkui/src/peers/ArkRichTextPeer.ts index 887c23885..f94d51d9e 100644 --- a/arkoala/arkui/src/peers/ArkRichTextPeer.ts +++ b/arkoala/arkui/src/peers/ArkRichTextPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRootScenePeer.ts b/arkoala/arkui/src/peers/ArkRootScenePeer.ts index bb5d84c71..1bdc6091d 100644 --- a/arkoala/arkui/src/peers/ArkRootScenePeer.ts +++ b/arkoala/arkui/src/peers/ArkRootScenePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRowPeer.ts b/arkoala/arkui/src/peers/ArkRowPeer.ts index d802cfeef..1a17745b2 100644 --- a/arkoala/arkui/src/peers/ArkRowPeer.ts +++ b/arkoala/arkui/src/peers/ArkRowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts b/arkoala/arkui/src/peers/ArkRowSplitPeer.ts index 3b5b28e2c..919c64cd0 100644 --- a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts +++ b/arkoala/arkui/src/peers/ArkRowSplitPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts b/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts index 7443bf23e..ea9198f7a 100644 --- a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkScreenPeer.ts b/arkoala/arkui/src/peers/ArkScreenPeer.ts index 2d142f2ca..60609e731 100644 --- a/arkoala/arkui/src/peers/ArkScreenPeer.ts +++ b/arkoala/arkui/src/peers/ArkScreenPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts b/arkoala/arkui/src/peers/ArkScrollBarPeer.ts index 51622ea49..d8ad268e5 100644 --- a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts +++ b/arkoala/arkui/src/peers/ArkScrollBarPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkScrollPeer.ts b/arkoala/arkui/src/peers/ArkScrollPeer.ts index 83f650507..73835f0f5 100644 --- a/arkoala/arkui/src/peers/ArkScrollPeer.ts +++ b/arkoala/arkui/src/peers/ArkScrollPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -109,15 +109,9 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { ArkUIGeneratedNativeModule._ScrollAttribute_onWillScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - onDidScrollAttribute(value?: ScrollOnScrollCallback): void { + onDidScrollAttribute(value: ScrollOnScrollCallback): void { const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.holdAndWriteCallback(value_value) - } + thisSerializer.holdAndWriteCallback(value) ArkUIGeneratedNativeModule._ScrollAttribute_onDidScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } @@ -251,7 +245,7 @@ export interface ArkScrollAttributes extends ArkScrollableCommonMethodAttributes scrollable?: ScrollDirection onScroll?: ((first: number, last: number) => void) onWillScroll?: ScrollOnWillScrollCallback | undefined - onDidScroll?: ScrollOnScrollCallback | undefined + onDidScroll?: ScrollOnScrollCallback onScrollEdge?: OnScrollEdgeCallback onScrollStart?: VoidCallback onScrollEnd?: (() => void) diff --git a/arkoala/arkui/src/peers/ArkSearchPeer.ts b/arkoala/arkui/src/peers/ArkSearchPeer.ts index 2f357570a..a111b27f7 100644 --- a/arkoala/arkui/src/peers/ArkSearchPeer.ts +++ b/arkoala/arkui/src/peers/ArkSearchPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -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) @@ -498,10 +498,10 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SearchAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((breakpoints: string) => void)): void { + _onChangeEvent_valueAttribute(callback: ((breakpoints: string) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SearchAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SearchAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts b/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts index 2e6fd03fb..a232f12e7 100644 --- a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkSelectPeer.ts b/arkoala/arkui/src/peers/ArkSelectPeer.ts index 002751b7f..7251e2f66 100644 --- a/arkoala/arkui/src/peers/ArkSelectPeer.ts +++ b/arkoala/arkui/src/peers/ArkSelectPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -371,16 +371,16 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SelectAttribute_menuAlign(this.peer.ptr, alignType, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_selectedAttribute(callback: ((selected: number | Resource) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((selected: number | Resource) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SelectAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SelectAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((value: ResourceStr) => void)): void { + _onChangeEvent_valueAttribute(callback: ((value: ResourceStr) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SelectAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SelectAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkShapePeer.ts b/arkoala/arkui/src/peers/ArkShapePeer.ts index f129fc005..749c8f06e 100644 --- a/arkoala/arkui/src/peers/ArkShapePeer.ts +++ b/arkoala/arkui/src/peers/ArkShapePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkSidebarPeer.ts b/arkoala/arkui/src/peers/ArkSidebarPeer.ts index d66967fca..6bcbba7c7 100644 --- a/arkoala/arkui/src/peers/ArkSidebarPeer.ts +++ b/arkoala/arkui/src/peers/ArkSidebarPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -144,10 +144,10 @@ export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { minContentWidthAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._SideBarContainerAttribute_minContentWidth(this.peer.ptr, value) } - __onChangeEvent_showSideBarAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_showSideBarAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SideBarContainerAttribute___onChangeEvent_showSideBar(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SideBarContainerAttribute__onChangeEvent_showSideBar(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkSliderPeer.ts b/arkoala/arkui/src/peers/ArkSliderPeer.ts index 550f261e9..1624a6109 100644 --- a/arkoala/arkui/src/peers/ArkSliderPeer.ts +++ b/arkoala/arkui/src/peers/ArkSliderPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -52,7 +52,9 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" 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 { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -113,7 +115,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SliderAttribute_blockColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - trackColorAttribute(value: ResourceColor | LinearGradient_common): void { + trackColorAttribute(value: ResourceColor | LinearGradient): void { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -143,10 +145,10 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_0_3) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("colors"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof LinearGradient)) { thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writeLinearGradient_common(value_1) + const value_1 = unsafeCast(value) + thisSerializer.writeLinearGradient(value_1) } ArkUIGeneratedNativeModule._SliderAttribute_trackColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -315,16 +317,16 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SliderAttribute_showTips(this.peer.ptr, +value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_valueAttribute(callback: ((index: number) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SliderAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SliderAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } export interface ArkSliderAttributes extends ArkCommonMethodAttributes { blockColor?: ResourceColor - trackColor?: ResourceColor | LinearGradient_common + trackColor?: ResourceColor | LinearGradient selectedColor?: ResourceColor minLabel?: string maxLabel?: string diff --git a/arkoala/arkui/src/peers/ArkSpanPeer.ts b/arkoala/arkui/src/peers/ArkSpanPeer.ts index 1a421f2f3..406a7cd31 100644 --- a/arkoala/arkui/src/peers/ArkSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkStackPeer.ts b/arkoala/arkui/src/peers/ArkStackPeer.ts index 3a47957d6..84c3e176a 100644 --- a/arkoala/arkui/src/peers/ArkStackPeer.ts +++ b/arkoala/arkui/src/peers/ArkStackPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts b/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts index 12f36269c..704127f7d 100644 --- a/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts +++ b/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts b/arkoala/arkui/src/peers/ArkStepperItemPeer.ts index e3850c3db..dc5cd1214 100644 --- a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkStepperItemPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkStepperPeer.ts b/arkoala/arkui/src/peers/ArkStepperPeer.ts index 55128c949..8743c763f 100644 --- a/arkoala/arkui/src/peers/ArkStepperPeer.ts +++ b/arkoala/arkui/src/peers/ArkStepperPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -123,10 +123,10 @@ export class ArkStepperPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._StepperAttribute_onPrevious(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._StepperAttribute___onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._StepperAttribute__onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkSwiperPeer.ts b/arkoala/arkui/src/peers/ArkSwiperPeer.ts index c0def029b..960530d2e 100644 --- a/arkoala/arkui/src/peers/ArkSwiperPeer.ts +++ b/arkoala/arkui/src/peers/ArkSwiperPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -318,10 +318,10 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._SwiperAttribute_nextMargin(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._SwiperAttribute___onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._SwiperAttribute__onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts b/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts index 092a7c6dc..e654855b0 100644 --- a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts b/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts index 5d8d5c945..681d61534 100644 --- a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts +++ b/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkTabContentPeer.ts b/arkoala/arkui/src/peers/ArkTabContentPeer.ts index 066116663..11ab8d82b 100644 --- a/arkoala/arkui/src/peers/ArkTabContentPeer.ts +++ b/arkoala/arkui/src/peers/ArkTabContentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkTabsPeer.ts b/arkoala/arkui/src/peers/ArkTabsPeer.ts index e90f03f2a..6f0677700 100644 --- a/arkoala/arkui/src/peers/ArkTabsPeer.ts +++ b/arkoala/arkui/src/peers/ArkTabsPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -258,10 +258,10 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TabsAttribute_barModeScrollable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { + _onChangeEvent_indexAttribute(callback: ((index: number) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TabsAttribute___onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TabsAttribute__onChangeEvent_index(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts b/arkoala/arkui/src/peers/ArkTextAreaPeer.ts index 04eaebdf4..560cf1223 100644 --- a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextAreaPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -551,10 +551,10 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextAreaAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { + _onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextAreaAttribute___onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextAreaAttribute__onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkTextClockPeer.ts b/arkoala/arkui/src/peers/ArkTextClockPeer.ts index 943c8656f..ba416aaeb 100644 --- a/arkoala/arkui/src/peers/ArkTextClockPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextClockPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkTextInputPeer.ts b/arkoala/arkui/src/peers/ArkTextInputPeer.ts index 71d877639..2047a595a 100644 --- a/arkoala/arkui/src/peers/ArkTextInputPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextInputPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -681,10 +681,10 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._TextInputAttribute_showCounter(this.peer.ptr, +value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { + _onChangeEvent_textAttribute(callback: ((value: ResourceStr) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextInputAttribute___onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextInputAttribute__onChangeEvent_text(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkTextPeer.ts b/arkoala/arkui/src/peers/ArkTextPeer.ts index 750f94cbc..d297499ed 100644 --- a/arkoala/arkui/src/peers/ArkTextPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -53,7 +53,7 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" -import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { DecorationStyleInterface, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" import { TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, TextMenuItem, TextRange, MenuType, PositionWithAffinity, LineMetrics, TextBox, Affinity } from "./../ArkTextCommonInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions, MenuOnAppearCallback } from "./../ArkRichEditorInterfaces" @@ -61,6 +61,7 @@ import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { TextController } from "./../ArkTextControllerMaterialized" 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 { CallbackKind } from "./CallbackKind" diff --git a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts b/arkoala/arkui/src/peers/ArkTextPickerPeer.ts index 6aa0d4c27..5b3fae99f 100644 --- a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextPickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -178,16 +178,16 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { gradientHeightAttribute(value: Dimension): void { ArkUIGeneratedNativeModule._TextPickerAttribute_gradientHeight(this.peer.ptr, value) } - __onChangeEvent_selectedAttribute(callback: ((selected: number | Array) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((selected: number | Array) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextPickerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextPickerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_valueAttribute(callback: ((value: string | Array) => void)): void { + _onChangeEvent_valueAttribute(callback: ((value: string | Array) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TextPickerAttribute___onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TextPickerAttribute__onChangeEvent_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts b/arkoala/arkui/src/peers/ArkTextTimerPeer.ts index 86d86299c..f0b76a110 100644 --- a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextTimerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts b/arkoala/arkui/src/peers/ArkTimePickerPeer.ts index f33fb157e..a4730bd22 100644 --- a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkTimePickerPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -125,10 +125,10 @@ export class ArkTimePickerPeer extends ArkCommonMethodPeer { enableHapticFeedbackAttribute(value: boolean): void { ArkUIGeneratedNativeModule._TimePickerAttribute_enableHapticFeedback(this.peer.ptr, +value) } - __onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { + _onChangeEvent_selectedAttribute(callback: ((parameter: Date) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._TimePickerAttribute___onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._TimePickerAttribute__onChangeEvent_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkTogglePeer.ts b/arkoala/arkui/src/peers/ArkTogglePeer.ts index 7b322eaa8..84f2d328d 100644 --- a/arkoala/arkui/src/peers/ArkTogglePeer.ts +++ b/arkoala/arkui/src/peers/ArkTogglePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" @@ -152,10 +152,10 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { ArkUIGeneratedNativeModule._ToggleAttribute_switchStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - __onChangeEvent_isOnAttribute(callback: ((parameter: boolean) => void)): void { + _onChangeEvent_isOnAttribute(callback: ((parameter: boolean) => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.holdAndWriteCallback(callback) - ArkUIGeneratedNativeModule._ToggleAttribute___onChangeEvent_isOn(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._ToggleAttribute__onChangeEvent_isOn(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } } diff --git a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts b/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts index 33e28dfdb..ee2d93639 100644 --- a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkVideoPeer.ts b/arkoala/arkui/src/peers/ArkVideoPeer.ts index 9add1ca29..9d85f4d59 100644 --- a/arkoala/arkui/src/peers/ArkVideoPeer.ts +++ b/arkoala/arkui/src/peers/ArkVideoPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts b/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts index 4bc899d54..ea44bef30 100644 --- a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts +++ b/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkWebPeer.ts b/arkoala/arkui/src/peers/ArkWebPeer.ts index f5e005d2c..b8f13c128 100644 --- a/arkoala/arkui/src/peers/ArkWebPeer.ts +++ b/arkoala/arkui/src/peers/ArkWebPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts b/arkoala/arkui/src/peers/ArkWindowScenePeer.ts index d3dec10d1..28a184269 100644 --- a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts +++ b/arkoala/arkui/src/peers/ArkWindowScenePeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts b/arkoala/arkui/src/peers/ArkXcomponentPeer.ts index 196ad9448..3ad81d8f0 100644 --- a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkXcomponentPeer.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32 } from "@koalaui/common" +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" diff --git a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/peers/CallbackDeserializeCall.ts index 2301d0872..f719c5edf 100644 --- a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/peers/CallbackDeserializeCall.ts @@ -67,9 +67,10 @@ import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" import { NativeEmbedDataInfo, NativeEmbedStatus, NativeEmbedInfo, NativeEmbedTouchInfo, OnAlertEvent, OnAudioStateChangedEvent, OnBeforeUnloadEvent, OnClientAuthenticationEvent, OnConfirmEvent, OnConsoleEvent, MessageLevel, OnContextMenuShowEvent, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, OnDataResubmittedEvent, OnDownloadStartEvent, OnErrorReceiveEvent, Header, OnFaviconReceivedEvent, OnFirstContentfulPaintEvent, OnGeolocationShowEvent, OnHttpAuthRequestEvent, OnHttpErrorReceiveEvent, OnInterceptRequestEvent, OnLoadInterceptEvent, OnOverScrollEvent, OnPageBeginEvent, OnPageEndEvent, OnPageVisibleEvent, OnPermissionRequestEvent, OnProgressChangeEvent, OnPromptEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, RenderExitReason, OnResourceLoadEvent, OnScaleChangeEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, WebCaptureMode, OnScrollEvent, OnSearchResultReceiveEvent, OnShowFileSelectorEvent, FileSelectorMode, OnSslErrorEventReceiveEvent, SslError, OnTitleReceiveEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnFullScreenEnterCallback, FullScreenEnterEvent, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, OnNavigationEntryCommittedCallback, LoadCommittedDetails, WebNavigationType, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, ThreatType, OnSslErrorEventCallback, SslErrorEvent, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo } from "./../ArkWebInterfaces" import { EventResult } from "./../ArkEventResultMaterialized" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback, NavigationMode, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBar, NavigationOperation } from "./../ArkNavigationInterfaces" +import { NavPathInfo } from "./../ArkNavPathInfoMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { RouteMapConfig, NavDestinationMode } from "./../ArkNavDestinationInterfaces" +import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback, NavigationMode, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBar, NavigationOperation } from "./../ArkNavigationInterfaces" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" import { PanelMode } from "./../ArkPanelInterfaces" import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListItemGroupArea } from "./../ArkListInterfaces" @@ -94,8 +95,9 @@ import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" import { WebviewController } from "./../ArkWebviewControllerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" -import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" import { TabContentAnimatedTransition, OnTabsAnimationEndCallback, TabsAnimationEvent, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback } from "./../ArkTabsInterfaces" import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -373,7 +375,7 @@ export function deserializeAndCallCallback_Extender_OnFinish(thisDeserializer: D export function deserializeAndCallCallback_Extender_OnProgress(thisDeserializer: Deserializer): void { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as Callback_Extender_OnProgress) - let value: number = thisDeserializer.readFloat32() + let value: float32 = thisDeserializer.readFloat32() _call(value) } export function deserializeAndCallCallback_FormCallbackInfo_Void(thisDeserializer: Deserializer): void { @@ -1189,15 +1191,6 @@ export function deserializeAndCallCallback_SwiperContentTransitionProxy_Void(thi let parameter: SwiperContentTransitionProxy = (thisDeserializer.readSwiperContentTransitionProxy() as SwiperContentTransitionProxy) _call(parameter) } -export function deserializeAndCallCallback_T_Any_this(thisDeserializer: Deserializer): void { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((instance: any, ...args: any) => any)) - let instance: any = (thisDeserializer.readCustomObject("Any") as Object) - let args: any = (thisDeserializer.readCustomObject("Any") as Object) - let _continuation: ((info: any) => void) = thisDeserializer.readCallback_Any_Void(true) - const _callResult = _call(instance, args) - _continuation(_callResult) -} export function deserializeAndCallCallback_TabContentTransitionProxy_Void(thisDeserializer: Deserializer): void { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: TabContentTransitionProxy) => void)) @@ -2179,7 +2172,6 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case 2116745428/*CallbackKind.Kind_Callback_StyledStringChangeValue_Boolean*/: return deserializeAndCallCallback_StyledStringChangeValue_Boolean(thisDeserializer); case -301561698/*CallbackKind.Kind_Callback_SwipeActionState_Void*/: return deserializeAndCallCallback_SwipeActionState_Void(thisDeserializer); case -416053361/*CallbackKind.Kind_Callback_SwiperContentTransitionProxy_Void*/: return deserializeAndCallCallback_SwiperContentTransitionProxy_Void(thisDeserializer); - case -1500753856/*CallbackKind.Kind_Callback_T_Any_this*/: return deserializeAndCallCallback_T_Any_this(thisDeserializer); case -1223938478/*CallbackKind.Kind_Callback_TabContentTransitionProxy_Void*/: return deserializeAndCallCallback_TabContentTransitionProxy_Void(thisDeserializer); case 691098197/*CallbackKind.Kind_Callback_TerminationInfo_Void*/: return deserializeAndCallCallback_TerminationInfo_Void(thisDeserializer); case 1290504509/*CallbackKind.Kind_Callback_TextPickerResult_Void*/: return deserializeAndCallCallback_TextPickerResult_Void(thisDeserializer); diff --git a/arkoala/arkui/src/peers/CallbackKind.ts b/arkoala/arkui/src/peers/CallbackKind.ts index 37133fc7f..d3516f890 100644 --- a/arkoala/arkui/src/peers/CallbackKind.ts +++ b/arkoala/arkui/src/peers/CallbackKind.ts @@ -143,7 +143,6 @@ export enum CallbackKind { Kind_Callback_StyledStringChangeValue_Boolean = 2116745428, Kind_Callback_SwipeActionState_Void = -301561698, Kind_Callback_SwiperContentTransitionProxy_Void = -416053361, - Kind_Callback_T_Any_this = -1500753856, Kind_Callback_TabContentTransitionProxy_Void = -1223938478, Kind_Callback_TerminationInfo_Void = 691098197, Kind_Callback_TextPickerResult_Void = 1290504509, diff --git a/arkoala/arkui/src/peers/Deserializer.ts b/arkoala/arkui/src/peers/Deserializer.ts index d70e2702a..b218c35fe 100644 --- a/arkoala/arkui/src/peers/Deserializer.ts +++ b/arkoala/arkui/src/peers/Deserializer.ts @@ -23,7 +23,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, LinearGradient_common, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, 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, 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, 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 { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -32,7 +32,7 @@ import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResul import { GetItemMainSizeByIndex, 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, NavPathInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } 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 { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -52,21 +52,22 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo 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, ColorFilter, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, MarkStyle } from "./../ArkUnitsInterfaces" +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 { 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 } from "./../ArkArkuiExternalInterfaces" +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 { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./../ArkStyledStringInterfaces" +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 { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" +import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" @@ -84,20 +85,24 @@ 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 } from "./../ArkSymbolglyphInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" 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 { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" -import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings } from "./../ArkCanvasInterfaces" +import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" @@ -155,8 +160,8 @@ import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternL import { PanelMode } from "./../ArkPanelInterfaces" import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { LinearGradient_data_panel, ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" @@ -174,6 +179,8 @@ import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMa import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" @@ -184,12 +191,30 @@ import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifie 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" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" +import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" 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" @@ -214,22 +239,49 @@ import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" import { MarqueeOptions } from "./../ArkMarqueeInterfaces" import { LocationButtonOnClickResult, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" import { ListItemGroupOptions, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" +import { ListScroller, ListScrollerInternal } from "./../ArkListScrollerMaterialized" import { LineOptions } from "./../ArkLineInterfaces" import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { GridContainerOptions, SizeType } from "./../ArkGridContainerInterfaces" import { GridItemOptions, GridItemStyle } from "./../ArkGridItemInterfaces" +import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" +import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" +import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" +import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" +import { PinchGestureEvent, PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" +import { PanGestureEvent, PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" +import { LongPressGestureEvent, LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" +import { TapGestureEvent, TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" import { FormLinkOptions } from "./../ArkFormLinkInterfaces" import { FormCallbackInfo, FormInfo, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { EllipseOptions } from "./../ArkEllipseInterfaces" +import { DatePickerDialog, DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +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 { SpringMotion, SpringProp } from "./../ArkAnimatorInterfaces" +import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" +import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" +import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" +import { FrictionMotion, FrictionMotionInternal } from "./../ArkFrictionMotionMaterialized" +import { SpringMotion, SpringMotionInternal } from "./../ArkSpringMotionMaterialized" +import { AlertDialog, AlertDialogInternal } from "./../ArkAlertDialogMaterialized" +import { ActionSheet, ActionSheetInternal } from "./../ArkActionSheetMaterialized" +import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMaterialized" +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 { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" +import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Deserializer extends DeserializerBase { readResource(): Resource { @@ -295,8 +347,8 @@ export class Deserializer extends DeserializerBase { } readSymbolGlyphModifier(): SymbolGlyphModifier { let valueDeserializer: Deserializer = this - const __SymbolGlyphModifierStub_result: string = (valueDeserializer.readString() as string) - let value: SymbolGlyphModifier = ({__SymbolGlyphModifierStub: __SymbolGlyphModifierStub_result} as SymbolGlyphModifier) + const _SymbolGlyphModifierStub_result: string = (valueDeserializer.readString() as string) + let value: SymbolGlyphModifier = ({_SymbolGlyphModifierStub: _SymbolGlyphModifierStub_result} as SymbolGlyphModifier) return value } readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { @@ -534,8 +586,8 @@ export class Deserializer extends DeserializerBase { } readComponentContent(): ComponentContent { let valueDeserializer: Deserializer = this - const __ComponentContentStub_result: string = (valueDeserializer.readString() as string) - let value: ComponentContent = ({__ComponentContentStub: __ComponentContentStub_result} as ComponentContent) + const _ComponentContentStub_result: string = (valueDeserializer.readString() as string) + let value: ComponentContent = ({_ComponentContentStub: _ComponentContentStub_result} as ComponentContent) return value } readScrollAnimationOptions(): ScrollAnimationOptions { @@ -1090,8 +1142,8 @@ return; } } readColorMetrics(): ColorMetrics { let valueDeserializer: Deserializer = this - const __ColorMetricsStub_result: string = (valueDeserializer.readString() as string) - let value: ColorMetrics = ({__ColorMetricsStub: __ColorMetricsStub_result} as ColorMetrics) + const _ColorMetricsStub_result: string = (valueDeserializer.readString() as string) + let value: ColorMetrics = ({_ColorMetricsStub: _ColorMetricsStub_result} as ColorMetrics) return value } readStyledStringValue(): StyledStringValue { @@ -1319,8 +1371,8 @@ return; } } readDateTimeOptions(): DateTimeOptions { let valueDeserializer: Deserializer = this - const __DateTimeOptionsStub_result: string = (valueDeserializer.readString() as string) - let value: DateTimeOptions = ({__DateTimeOptionsStub: __DateTimeOptionsStub_result} as DateTimeOptions) + const _DateTimeOptionsStub_result: string = (valueDeserializer.readString() as string) + let value: DateTimeOptions = ({_DateTimeOptionsStub: _DateTimeOptionsStub_result} as DateTimeOptions) return value } readCallback_TimePickerResult_Void(isSync: boolean = false): ((value: TimePickerResult) => void) { @@ -2424,30 +2476,8 @@ return (_continuationValue as boolean); } } readNavPathInfo(): NavPathInfo { let valueDeserializer: Deserializer = this - const name_result: string = (valueDeserializer.readString() as string) - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf: unknown | undefined|undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Any") as Object) - } - const param_result: unknown | undefined|undefined = param_buf - const onPop_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let onPop_buf: ((parameter: PopInfo) => void) | undefined|undefined - if ((RuntimeType.UNDEFINED) != (onPop_buf_runtimeType)) - { - onPop_buf = valueDeserializer.readCallback_PopInfo_Void() - } - const onPop_result: ((parameter: PopInfo) => void) | undefined|undefined = onPop_buf - const isEntry_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isEntry_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (isEntry_buf_runtimeType)) - { - isEntry_buf = valueDeserializer.readBoolean() - } - const isEntry_result: boolean | undefined|undefined = isEntry_buf - let value: NavPathInfo = ({name: name_result,param: param_result,onPop: onPop_result,isEntry: isEntry_result} as NavPathInfo) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return NavPathInfoInternal.fromPtr(ptr) } readInterceptionModeCallback(isSync: boolean = false): InterceptionModeCallback { const _resource: CallbackResource = this.readCallbackResource() @@ -2686,67 +2716,10 @@ return; } let value: GridColColumnOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridColColumnOption) return value } - readLinearGradient_common(): LinearGradient_common { + readLinearGradient(): LinearGradient { let valueDeserializer: Deserializer = this - const angle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let angle_buf: number | string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (angle_buf_runtimeType)) - { - const angle_buf__selector: number = valueDeserializer.readInt8() - let angle_buf_: number | string | undefined|undefined - if (angle_buf__selector == 0) { - angle_buf_ = (valueDeserializer.readNumber() as number) - } - else if (angle_buf__selector == 1) { - angle_buf_ = (valueDeserializer.readString() as string) - } - else { - throw new Error("One of the branches for angle_buf_ has to be chosen through deserialisation.") - } - angle_buf = (angle_buf_ as number | string) - } - const angle_result: number | string | undefined|undefined = angle_buf - const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let direction_buf: GradientDirection | undefined|undefined - if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) - { - direction_buf = (valueDeserializer.readInt32() as GradientDirection) - } - const direction_result: GradientDirection | undefined|undefined = direction_buf - const colors_buf_length: int32 = valueDeserializer.readInt32() - let colors_buf: Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>() - for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { - const colors_buf_buf_value0_buf_selector: number = valueDeserializer.readInt8() - let colors_buf_buf_value0_buf: Color | number | string | Resource | undefined|undefined - if (colors_buf_buf_value0_buf_selector == 0) { - colors_buf_buf_value0_buf = (valueDeserializer.readInt32() as Color) - } - else if (colors_buf_buf_value0_buf_selector == 1) { - colors_buf_buf_value0_buf = (valueDeserializer.readNumber() as number) - } - else if (colors_buf_buf_value0_buf_selector == 2) { - colors_buf_buf_value0_buf = (valueDeserializer.readString() as string) - } - else if (colors_buf_buf_value0_buf_selector == 3) { - colors_buf_buf_value0_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation.") - } - const colors_buf_buf_value0: ResourceColor = (colors_buf_buf_value0_buf as Color | number | string | Resource) - const colors_buf_buf_value1: number = (valueDeserializer.readNumber() as number) - colors_buf[colors_buf_i] = ([colors_buf_buf_value0, colors_buf_buf_value1] as [ ResourceColor, number ]) - } - const colors_result: Array<[ ResourceColor, number ]> = colors_buf - const repeating_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let repeating_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (repeating_buf_runtimeType)) - { - repeating_buf = valueDeserializer.readBoolean() - } - const repeating_result: boolean | undefined|undefined = repeating_buf - let value: LinearGradient_common = ({angle: angle_result,direction: direction_result,colors: colors_result,repeating: repeating_result} as LinearGradient_common) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return LinearGradientInternal.fromPtr(ptr) } readCallback_Date_Void(isSync: boolean = false): ((parameter: Date) => void) { const _resource: CallbackResource = this.readCallbackResource() @@ -2861,14 +2834,14 @@ return; } } readScene(): Scene { let valueDeserializer: Deserializer = this - const __SceneStub_result: string = (valueDeserializer.readString() as string) - let value: Scene = ({__SceneStub: __SceneStub_result} as Scene) + const _SceneStub_result: string = (valueDeserializer.readString() as string) + let value: Scene = ({_SceneStub: _SceneStub_result} as Scene) return value } readUIContext(): UIContext { let valueDeserializer: Deserializer = this - const __UIContextStub_result: string = (valueDeserializer.readString() as string) - let value: UIContext = ({__UIContextStub: __UIContextStub_result} as UIContext) + const _UIContextStub_result: string = (valueDeserializer.readString() as string) + let value: UIContext = ({_UIContextStub: _UIContextStub_result} as UIContext) return value } readCallback_SheetType_Void(isSync: boolean = false): ((parameter: SheetType) => void) { @@ -3046,8 +3019,8 @@ return; } } readImageModifier(): ImageModifier { let valueDeserializer: Deserializer = this - const __ImageModifierStub_result: string = (valueDeserializer.readString() as string) - let value: ImageModifier = ({__ImageModifierStub: __ImageModifierStub_result} as ImageModifier) + const _ImageModifierStub_result: string = (valueDeserializer.readString() as string) + let value: ImageModifier = ({_ImageModifierStub: _ImageModifierStub_result} as ImageModifier) return value } readMotionPathOptions(): MotionPathOptions { @@ -3314,6 +3287,68 @@ return; } let value: TranslateOptions = ({x: x_result,y: y_result,z: z_result} as TranslateOptions) return value } + readLinearGradient_common(): LinearGradient_common { + let valueDeserializer: Deserializer = this + const angle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let angle_buf: number | string | undefined|undefined + if ((RuntimeType.UNDEFINED) != (angle_buf_runtimeType)) + { + const angle_buf__selector: number = valueDeserializer.readInt8() + let angle_buf_: number | string | undefined|undefined + if (angle_buf__selector == 0) { + angle_buf_ = (valueDeserializer.readNumber() as number) + } + else if (angle_buf__selector == 1) { + angle_buf_ = (valueDeserializer.readString() as string) + } + else { + throw new Error("One of the branches for angle_buf_ has to be chosen through deserialisation.") + } + angle_buf = (angle_buf_ as number | string) + } + const angle_result: number | string | undefined|undefined = angle_buf + const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let direction_buf: GradientDirection | undefined|undefined + if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) + { + direction_buf = (valueDeserializer.readInt32() as GradientDirection) + } + const direction_result: GradientDirection | undefined|undefined = direction_buf + const colors_buf_length: int32 = valueDeserializer.readInt32() + let colors_buf: Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>() + for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { + const colors_buf_buf_value0_buf_selector: number = valueDeserializer.readInt8() + let colors_buf_buf_value0_buf: Color | number | string | Resource | undefined|undefined + if (colors_buf_buf_value0_buf_selector == 0) { + colors_buf_buf_value0_buf = (valueDeserializer.readInt32() as Color) + } + else if (colors_buf_buf_value0_buf_selector == 1) { + colors_buf_buf_value0_buf = (valueDeserializer.readNumber() as number) + } + else if (colors_buf_buf_value0_buf_selector == 2) { + colors_buf_buf_value0_buf = (valueDeserializer.readString() as string) + } + else if (colors_buf_buf_value0_buf_selector == 3) { + colors_buf_buf_value0_buf = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation.") + } + const colors_buf_buf_value0: ResourceColor = (colors_buf_buf_value0_buf as Color | number | string | Resource) + const colors_buf_buf_value1: number = (valueDeserializer.readNumber() as number) + colors_buf[colors_buf_i] = ([colors_buf_buf_value0, colors_buf_buf_value1] as [ ResourceColor, number ]) + } + const colors_result: Array<[ ResourceColor, number ]> = colors_buf + const repeating_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let repeating_buf: boolean | undefined|undefined + if ((RuntimeType.UNDEFINED) != (repeating_buf_runtimeType)) + { + repeating_buf = valueDeserializer.readBoolean() + } + const repeating_result: boolean | undefined|undefined = repeating_buf + let value: LinearGradient_common = ({angle: angle_result,direction: direction_result,colors: colors_result,repeating: repeating_result} as LinearGradient_common) + return value + } readDrawingCanvas(): DrawingCanvas { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -3533,7 +3568,7 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: number): void => { const _argsSerializer: Serializer = Serializer.hold(); + return (value: float32): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); @@ -3544,14 +3579,14 @@ return; } } readCustomTheme(): CustomTheme { let valueDeserializer: Deserializer = this - const __CustomThemeStub_result: string = (valueDeserializer.readString() as string) - let value: CustomTheme = ({__CustomThemeStub: __CustomThemeStub_result} as CustomTheme) + const _CustomThemeStub_result: string = (valueDeserializer.readString() as string) + let value: CustomTheme = ({_CustomThemeStub: _CustomThemeStub_result} as CustomTheme) return value } readRestrictedWorker(): RestrictedWorker { let valueDeserializer: Deserializer = this - const __RestrictedWorkerStub_result: string = (valueDeserializer.readString() as string) - let value: RestrictedWorker = ({__RestrictedWorkerStub: __RestrictedWorkerStub_result} as RestrictedWorker) + const _RestrictedWorkerStub_result: string = (valueDeserializer.readString() as string) + let value: RestrictedWorker = ({_RestrictedWorkerStub: _RestrictedWorkerStub_result} as RestrictedWorker) return value } readWant(): Want { @@ -3674,40 +3709,6 @@ return; } let value: NavigationAnimatedTransition = ({onTransitionEnd: onTransitionEnd_result,timeout: timeout_result,isInteractive: isInteractive_result,transition: transition_result} as NavigationAnimatedTransition) return value } - readNavContentInfo(): NavContentInfo { - let valueDeserializer: Deserializer = this - const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let name_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) - { - name_buf = (valueDeserializer.readString() as string) - } - const name_result: string | undefined|undefined = name_buf - const index_result: number = (valueDeserializer.readNumber() as number) - const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let mode_buf: NavDestinationMode | undefined|undefined - if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) - { - mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) - } - const mode_result: NavDestinationMode | undefined|undefined = mode_buf - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf: Object | undefined|undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Object") as Object) - } - const param_result: Object | undefined|undefined = param_buf - const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let navDestinationId_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) - { - navDestinationId_buf = (valueDeserializer.readString() as string) - } - const navDestinationId_result: string | undefined|undefined = navDestinationId_buf - let value: NavContentInfo = ({name: name_result,index: index_result,mode: mode_result,param: param_result,navDestinationId: navDestinationId_result} as NavContentInfo) - return value - } readOnLinearIndicatorChangeCallback(isSync: boolean = false): OnLinearIndicatorChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -3792,8 +3793,8 @@ return; } } readDrawContext(): DrawContext { let valueDeserializer: Deserializer = this - const __DrawContextStub_result: string = (valueDeserializer.readString() as string) - let value: DrawContext = ({__DrawContextStub: __DrawContextStub_result} as DrawContext) + const _DrawContextStub_result: string = (valueDeserializer.readString() as string) + let value: DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) return value } readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { @@ -3811,6 +3812,81 @@ return; } let value: SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) return value } + readTextBackgroundStyle(): TextBackgroundStyle { + let valueDeserializer: Deserializer = this + const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let color_buf: ResourceColor | undefined|undefined + if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) + { + const color_buf__selector: number = valueDeserializer.readInt8() + let color_buf_: Color | number | string | Resource | undefined|undefined + if (color_buf__selector == 0) { + color_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (color_buf__selector == 1) { + color_buf_ = (valueDeserializer.readNumber() as number) + } + else if (color_buf__selector == 2) { + color_buf_ = (valueDeserializer.readString() as string) + } + else if (color_buf__selector == 3) { + color_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") + } + color_buf = (color_buf_ as Color | number | string | Resource) + } + const color_result: ResourceColor | undefined|undefined = color_buf + const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf: Dimension | BorderRadiuses | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) + { + const radius_buf__selector: number = valueDeserializer.readInt8() + let radius_buf_: Dimension | BorderRadiuses | undefined|undefined + if (radius_buf__selector == 0) { + radius_buf_ = (valueDeserializer.readLength() as Dimension) + } + else if (radius_buf__selector == 1) { + const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf + const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf + const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf + const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf + radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") + } + radius_buf = (radius_buf_ as Dimension | BorderRadiuses) + } + const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf + let value: TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) + return value + } readCustomSpan(): CustomSpan { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -3818,37 +3894,8 @@ return; } } readImageAttachment(): ImageAttachment { let valueDeserializer: Deserializer = this - const value_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let size_buf: SizeOptions | undefined|undefined - if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) - { - size_buf = valueDeserializer.readSizeOptions() - } - const size_result: SizeOptions | undefined|undefined = size_buf - const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let verticalAlign_buf: ImageSpanAlignment | undefined|undefined - if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) - { - verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) - } - const verticalAlign_result: ImageSpanAlignment | undefined|undefined = verticalAlign_buf - const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let objectFit_buf: ImageFit | undefined|undefined - if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) - { - objectFit_buf = (valueDeserializer.readInt32() as ImageFit) - } - const objectFit_result: ImageFit | undefined|undefined = objectFit_buf - const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let layoutStyle_buf: ImageAttachmentLayoutStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) - { - layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() - } - const layoutStyle_result: ImageAttachmentLayoutStyle | undefined|undefined = layoutStyle_buf - let value: ImageAttachment = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachment) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return ImageAttachmentInternal.fromPtr(ptr) } readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { const _resource: CallbackResource = this.readCallbackResource() @@ -5748,21 +5795,6 @@ return; } let value: EdgeEffectOptions = ({alwaysEnabled: alwaysEnabled_result} as EdgeEffectOptions) return value } - readScrollOnScrollCallback(isSync: boolean = false): ScrollOnScrollCallback { - 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; } - } readScrollOnWillScrollCallback(isSync: boolean = false): ScrollOnWillScrollCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -6606,25 +6638,59 @@ return (_continuationValue as OffsetResult); } let enableWaveEffect_buf: boolean | undefined|undefined if ((RuntimeType.UNDEFINED) != (enableWaveEffect_buf_runtimeType)) { - enableWaveEffect_buf = valueDeserializer.readBoolean() + enableWaveEffect_buf = valueDeserializer.readBoolean() + } + const enableWaveEffect_result: boolean | undefined|undefined = enableWaveEffect_buf + let value: CircleStyleOptions = ({color: color_result,radius: radius_result,enableWaveEffect: enableWaveEffect_result} as CircleStyleOptions) + return value + } + readCallback_PanelMode_Void(isSync: boolean = false): ((mode: PanelMode) => void) { + 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; } + } + readNavContentInfo(): NavContentInfo { + let valueDeserializer: Deserializer = this + const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let name_buf: string | undefined|undefined + if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) + { + name_buf = (valueDeserializer.readString() as string) + } + const name_result: string | undefined|undefined = name_buf + const index_result: number = (valueDeserializer.readNumber() as number) + const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let mode_buf: NavDestinationMode | undefined|undefined + if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) + { + mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) + } + const mode_result: NavDestinationMode | undefined|undefined = mode_buf + const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let param_buf: Object | undefined|undefined + if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) + { + param_buf = (valueDeserializer.readCustomObject("Object") as Object) + } + const param_result: Object | undefined|undefined = param_buf + const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let navDestinationId_buf: string | undefined|undefined + if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) + { + navDestinationId_buf = (valueDeserializer.readString() as string) } - const enableWaveEffect_result: boolean | undefined|undefined = enableWaveEffect_buf - let value: CircleStyleOptions = ({color: color_result,radius: radius_result,enableWaveEffect: enableWaveEffect_result} as CircleStyleOptions) + const navDestinationId_result: string | undefined|undefined = navDestinationId_buf + let value: NavContentInfo = ({name: name_result,index: index_result,mode: mode_result,param: param_result,navDestinationId: navDestinationId_result} as NavContentInfo) return value } - readCallback_PanelMode_Void(isSync: boolean = false): ((mode: PanelMode) => void) { - 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; } - } readNavDestinationContext(): NavDestinationContext { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -6845,8 +6911,8 @@ return; } } readSystemBarStyle(): SystemBarStyle { let valueDeserializer: Deserializer = this - const __SystemBarStyleStub_result: string = (valueDeserializer.readString() as string) - let value: SystemBarStyle = ({__SystemBarStyleStub: __SystemBarStyleStub_result} as SystemBarStyle) + const _SystemBarStyleStub_result: string = (valueDeserializer.readString() as string) + let value: SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) return value } readMenuItemOptions(): MenuItemOptions { @@ -7011,8 +7077,8 @@ return; } } readDrawableDescriptor(): DrawableDescriptor { let valueDeserializer: Deserializer = this - const __DrawableDescriptorStub_result: string = (valueDeserializer.readString() as string) - let value: DrawableDescriptor = ({__DrawableDescriptorStub: __DrawableDescriptorStub_result} as DrawableDescriptor) + const _DrawableDescriptorStub_result: string = (valueDeserializer.readString() as string) + let value: DrawableDescriptor = ({_DrawableDescriptorStub: _DrawableDescriptorStub_result} as DrawableDescriptor) return value } readMatrix2D(): Matrix2D { @@ -7078,13 +7144,14 @@ return; } } readDrawingColorFilter(): DrawingColorFilter { let valueDeserializer: Deserializer = this - const __DrawingColorFilterStub_result: string = (valueDeserializer.readString() as string) - let value: DrawingColorFilter = ({__DrawingColorFilterStub: __DrawingColorFilterStub_result} as DrawingColorFilter) + const _DrawingColorFilterStub_result: string = (valueDeserializer.readString() as string) + let value: DrawingColorFilter = ({_DrawingColorFilterStub: _DrawingColorFilterStub_result} as DrawingColorFilter) return value } readColorFilter(): ColorFilter { - let value: ColorFilter = ({} as ColorFilter) - return value + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ColorFilterInternal.fromPtr(ptr) } readBreakPoints(): BreakPoints { let valueDeserializer: Deserializer = this @@ -7144,8 +7211,8 @@ return (_continuationValue as [ number, number ]); } } readWindowStatusType(): WindowStatusType { let valueDeserializer: Deserializer = this - const __WindowStatusTypeStub_result: string = (valueDeserializer.readString() as string) - let value: WindowStatusType = ({__WindowStatusTypeStub: __WindowStatusTypeStub_result} as WindowStatusType) + const _WindowStatusTypeStub_result: string = (valueDeserializer.readString() as string) + let value: WindowStatusType = ({_WindowStatusTypeStub: _WindowStatusTypeStub_result} as WindowStatusType) return value } readFlexSpaceOptions(): FlexSpaceOptions { @@ -7419,10 +7486,6 @@ return (_continuationValue as [ number, number ]); } let value: DatePickerDialogOptions = ({start: start_result,end: end_result,selected: selected_result,lunar: lunar_result,lunarSwitch: lunarSwitch_result,lunarSwitchStyle: lunarSwitchStyle_result,showTime: showTime_result,useMilitaryTime: useMilitaryTime_result,disappearTextStyle: disappearTextStyle_result,textStyle: textStyle_result,acceptButtonStyle: acceptButtonStyle_result,cancelButtonStyle: cancelButtonStyle_result,selectedTextStyle: selectedTextStyle_result,maskRect: maskRect_result,alignment: alignment_result,offset: offset_result,onAccept: onAccept_result,onCancel: onCancel_result,onChange: onChange_result,onDateAccept: onDateAccept_result,onDateChange: onDateChange_result,backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,onDidAppear: onDidAppear_result,onDidDisappear: onDidDisappear_result,onWillAppear: onWillAppear_result,onWillDisappear: onWillDisappear_result,shadow: shadow_result,dateTimeOptions: dateTimeOptions_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as DatePickerDialogOptions) return value } - readLinearGradient_data_panel(): LinearGradient_data_panel { - let value: LinearGradient_data_panel = ({} as LinearGradient_data_panel) - return value - } readAnimateParam(): AnimateParam { let valueDeserializer: Deserializer = this const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7636,8 +7699,8 @@ return; } } readRectShape(): RectShape { let valueDeserializer: Deserializer = this - const __RectShapeStub_result: string = (valueDeserializer.readString() as string) - let value: RectShape = ({__RectShapeStub: __RectShapeStub_result} as RectShape) + const _RectShapeStub_result: string = (valueDeserializer.readString() as string) + let value: RectShape = ({_RectShapeStub: _RectShapeStub_result} as RectShape) return value } readConstraintSizeOptions(): ConstraintSizeOptions { @@ -9315,8 +9378,8 @@ return (_continuationValue as GestureJudgeResult); } } readBlender(): Blender { let valueDeserializer: Deserializer = this - const __BlenderStub_result: string = (valueDeserializer.readString() as string) - let value: Blender = ({__BlenderStub: __BlenderStub_result} as Blender) + const _BlenderStub_result: string = (valueDeserializer.readString() as string) + let value: Blender = ({_BlenderStub: _BlenderStub_result} as Blender) return value } readOverlayOptions(): OverlayOptions { @@ -9533,20 +9596,20 @@ return; } } readPathShape(): PathShape { let valueDeserializer: Deserializer = this - const __PathShapeStub_result: string = (valueDeserializer.readString() as string) - let value: PathShape = ({__PathShapeStub: __PathShapeStub_result} as PathShape) + const _PathShapeStub_result: string = (valueDeserializer.readString() as string) + let value: PathShape = ({_PathShapeStub: _PathShapeStub_result} as PathShape) return value } readEllipseShape(): EllipseShape { let valueDeserializer: Deserializer = this - const __EllipseShapeStub_result: string = (valueDeserializer.readString() as string) - let value: EllipseShape = ({__EllipseShapeStub: __EllipseShapeStub_result} as EllipseShape) + const _EllipseShapeStub_result: string = (valueDeserializer.readString() as string) + let value: EllipseShape = ({_EllipseShapeStub: _EllipseShapeStub_result} as EllipseShape) return value } readCircleShape(): CircleShape { let valueDeserializer: Deserializer = this - const __CircleShapeStub_result: string = (valueDeserializer.readString() as string) - let value: CircleShape = ({__CircleShapeStub: __CircleShapeStub_result} as CircleShape) + const _CircleShapeStub_result: string = (valueDeserializer.readString() as string) + let value: CircleShape = ({_CircleShapeStub: _CircleShapeStub_result} as CircleShape) return value } readProgressMask(): ProgressMask { @@ -9701,16 +9764,10 @@ return; } let value: TransitionOptions = ({type: type_result,opacity: opacity_result,translate: translate_result,scale: scale_result,rotate: rotate_result} as TransitionOptions) return value } - readIntentionCode(): IntentionCode { - let valueDeserializer: Deserializer = this - const __IntentionCodeStub_result: string = (valueDeserializer.readString() as string) - let value: IntentionCode = ({__IntentionCodeStub: __IntentionCodeStub_result} as IntentionCode) - return value - } readDrawingLattice(): DrawingLattice { let valueDeserializer: Deserializer = this - const __DrawingLatticeStub_result: string = (valueDeserializer.readString() as string) - let value: DrawingLattice = ({__DrawingLatticeStub: __DrawingLatticeStub_result} as DrawingLattice) + const _DrawingLatticeStub_result: string = (valueDeserializer.readString() as string) + let value: DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) return value } readRectResult(): RectResult { @@ -9727,6 +9784,12 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return DrawModifierInternal.fromPtr(ptr) } + readIntentionCode(): IntentionCode { + let valueDeserializer: Deserializer = this + const _IntentionCodeStub_result: string = (valueDeserializer.readString() as string) + let value: IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) + return value + } readUnifiedData(): UnifiedData { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -9801,11 +9864,8 @@ return; } } readImageData(): ImageData { let valueDeserializer: Deserializer = this - const data_result: ArrayBuffer = (valueDeserializer.readBuffer() as ArrayBuffer) - const height_result: number = (valueDeserializer.readNumber() as number) - const width_result: number = (valueDeserializer.readNumber() as number) - let value: ImageData = ({data: data_result,height: height_result,width: width_result} as ImageData) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return ImageDataInternal.fromPtr(ptr) } readPath2D(): Path2D { let valueDeserializer: Deserializer = this @@ -12156,10 +12216,10 @@ return; } readDoubleAnimationParam(): DoubleAnimationParam { let valueDeserializer: Deserializer = this const propertyName_result: string = (valueDeserializer.readString() as string) - const startValue_result: number = (valueDeserializer.readNumber() as number) - const endValue_result: number = (valueDeserializer.readNumber() as number) - const duration_result: number = (valueDeserializer.readNumber() as number) - const delay_result: number = (valueDeserializer.readNumber() as number) + const startValue_result: float32 = valueDeserializer.readFloat32() + const endValue_result: float32 = valueDeserializer.readFloat32() + const duration_result: int32 = valueDeserializer.readInt32() + const delay_result: int32 = valueDeserializer.readInt32() const curve_buf_selector: number = valueDeserializer.readInt8() let curve_buf: Curve | string | ICurve | undefined|undefined if (curve_buf_selector == 0) { @@ -12425,23 +12485,6 @@ _argsSerializer.writeTouchResult(value); (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } - readCallback_T_Any_this(isSync: boolean = false): ((instance: any, ...args: any) => any) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (instance: any, args: any): any => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCustomObject("Any", instance); -_argsSerializer.writeCustomObject("Any", args); -let _continuationValue: any | undefined|undefined ; -const _continuationCallback: ((info: any) => void) = (value: any): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1500753856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1500753856, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as any); } } readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string, param: unknown) => void) { const _resource: CallbackResource = this.readCallbackResource() @@ -12587,11 +12630,6 @@ _argsSerializer.writeOffsetResult(value); _argsSerializer.release(); return; } } - readNavigationTransitionProxy(): NavigationTransitionProxy { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return NavigationTransitionProxyInternal.fromPtr(ptr) - } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -12649,106 +12687,354 @@ _argsSerializer.writeIsolatedComponentAttribute(value); _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; } + 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; } + } + 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; } + } + 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; } + } + 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; } + } + 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; } + } + 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; } + } + 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; } + } + readLinearIndicatorController(): LinearIndicatorController { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LinearIndicatorControllerInternal.fromPtr(ptr) + } + readImageAttachmentInterface(): ImageAttachmentInterface { + let valueDeserializer: Deserializer = this + const value_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let size_buf: SizeOptions | undefined|undefined + if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) + { + size_buf = valueDeserializer.readSizeOptions() + } + const size_result: SizeOptions | undefined|undefined = size_buf + const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let verticalAlign_buf: ImageSpanAlignment | undefined|undefined + if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) + { + verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) + } + const verticalAlign_result: ImageSpanAlignment | undefined|undefined = verticalAlign_buf + const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let objectFit_buf: ImageFit | undefined|undefined + if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) + { + objectFit_buf = (valueDeserializer.readInt32() as ImageFit) + } + const objectFit_result: ImageFit | undefined|undefined = objectFit_buf + const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let layoutStyle_buf: ImageAttachmentLayoutStyle | undefined|undefined + if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) + { + layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() + } + const layoutStyle_result: ImageAttachmentLayoutStyle | undefined|undefined = layoutStyle_buf + 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() + return UrlStyleInternal.fromPtr(ptr) + } + readLineHeightStyle(): LineHeightStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LineHeightStyleInternal.fromPtr(ptr) + } + readParagraphStyleInterface(): ParagraphStyleInterface { + let valueDeserializer: Deserializer = this + const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let textAlign_buf: TextAlign | undefined|undefined + if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) + { + textAlign_buf = (valueDeserializer.readInt32() as TextAlign) + } + const textAlign_result: TextAlign | undefined|undefined = textAlign_buf + const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let textIndent_buf: LengthMetrics | undefined|undefined + if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) + { + textIndent_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + const textIndent_result: LengthMetrics | undefined|undefined = textIndent_buf + const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let maxLines_buf: number | undefined|undefined + if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) + { + maxLines_buf = (valueDeserializer.readNumber() as number) + } + const maxLines_result: number | undefined|undefined = maxLines_buf + const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let overflow_buf: TextOverflow | undefined|undefined + if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) + { + overflow_buf = (valueDeserializer.readInt32() as TextOverflow) + } + const overflow_result: TextOverflow | undefined|undefined = overflow_buf + const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let wordBreak_buf: WordBreak | undefined|undefined + if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) + { + wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) + } + const wordBreak_result: WordBreak | undefined|undefined = wordBreak_buf + const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let leadingMargin_buf: LengthMetrics | LeadingMarginPlaceholder | undefined|undefined + if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) + { + const leadingMargin_buf__selector: number = valueDeserializer.readInt8() + let leadingMargin_buf_: LengthMetrics | LeadingMarginPlaceholder | undefined|undefined + if (leadingMargin_buf__selector == 0) { + leadingMargin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (leadingMargin_buf__selector == 1) { + leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() + } + else { + throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") + } + leadingMargin_buf = (leadingMargin_buf_ as LengthMetrics | LeadingMarginPlaceholder) + } + const leadingMargin_result: LengthMetrics | LeadingMarginPlaceholder | undefined|undefined = leadingMargin_buf + let value: ParagraphStyleInterface = ({textAlign: textAlign_result,textIndent: textIndent_result,maxLines: maxLines_result,overflow: overflow_result,wordBreak: wordBreak_result,leadingMargin: leadingMargin_result} as ParagraphStyleInterface) + return value + } + readParagraphStyle(): ParagraphStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ParagraphStyleInternal.fromPtr(ptr) + } + readGestureStyleInterface(): GestureStyleInterface { + let valueDeserializer: Deserializer = this + const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let onClick_buf: ((event: ClickEvent) => void) | undefined|undefined + if ((RuntimeType.UNDEFINED) != (onClick_buf_runtimeType)) + { + onClick_buf = valueDeserializer.readCallback_ClickEvent_Void() + } + const onClick_result: ((event: ClickEvent) => void) | undefined|undefined = onClick_buf + const onLongPress_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let onLongPress_buf: ((event: GestureEvent) => void) | undefined|undefined + if ((RuntimeType.UNDEFINED) != (onLongPress_buf_runtimeType)) + { + onLongPress_buf = valueDeserializer.readCallback_GestureEvent_Void() + } + const onLongPress_result: ((event: GestureEvent) => void) | undefined|undefined = onLongPress_buf + let value: GestureStyleInterface = ({onClick: onClick_result,onLongPress: onLongPress_result} as GestureStyleInterface) + return value + } + readGestureStyle(): GestureStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return GestureStyleInternal.fromPtr(ptr) } - 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; } + readBackgroundColorStyle(): BackgroundColorStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return BackgroundColorStyleInternal.fromPtr(ptr) } - 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; } + readTextShadowStyle(): TextShadowStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextShadowStyleInternal.fromPtr(ptr) } - 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; } + readLetterSpacingStyle(): LetterSpacingStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LetterSpacingStyleInternal.fromPtr(ptr) } - 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; } + readBaselineOffsetStyle(): BaselineOffsetStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return BaselineOffsetStyleInternal.fromPtr(ptr) } - 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; } + readDecorationStyle(): DecorationStyle { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return DecorationStyleInternal.fromPtr(ptr) } - 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; } + readTextStyleInterface(): TextStyleInterface { + let valueDeserializer: Deserializer = this + const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontColor_buf: ResourceColor | undefined|undefined + if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) + { + const fontColor_buf__selector: number = valueDeserializer.readInt8() + let fontColor_buf_: Color | number | string | Resource | undefined|undefined + if (fontColor_buf__selector == 0) { + fontColor_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (fontColor_buf__selector == 1) { + fontColor_buf_ = (valueDeserializer.readNumber() as number) + } + else if (fontColor_buf__selector == 2) { + fontColor_buf_ = (valueDeserializer.readString() as string) + } + else if (fontColor_buf__selector == 3) { + fontColor_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") + } + fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) + } + const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf + const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontFamily_buf: ResourceStr | undefined|undefined + if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) + { + const fontFamily_buf__selector: number = valueDeserializer.readInt8() + let fontFamily_buf_: string | Resource | undefined|undefined + if (fontFamily_buf__selector == 0) { + fontFamily_buf_ = (valueDeserializer.readString() as string) + } + else if (fontFamily_buf__selector == 1) { + fontFamily_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") + } + fontFamily_buf = (fontFamily_buf_ as string | Resource) + } + const fontFamily_result: ResourceStr | undefined|undefined = fontFamily_buf + const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontSize_buf: LengthMetrics | undefined|undefined + if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) + { + fontSize_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + const fontSize_result: LengthMetrics | undefined|undefined = fontSize_buf + const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontWeight_buf: number | FontWeight | string | undefined|undefined + if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) + { + const fontWeight_buf__selector: number = valueDeserializer.readInt8() + let fontWeight_buf_: number | FontWeight | string | undefined|undefined + if (fontWeight_buf__selector == 0) { + fontWeight_buf_ = (valueDeserializer.readNumber() as number) + } + else if (fontWeight_buf__selector == 1) { + fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) + } + else if (fontWeight_buf__selector == 2) { + fontWeight_buf_ = (valueDeserializer.readString() as string) + } + else { + throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") + } + fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) + } + const fontWeight_result: number | FontWeight | string | undefined|undefined = fontWeight_buf + const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let fontStyle_buf: FontStyle | undefined|undefined + if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) + { + fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) + } + const fontStyle_result: FontStyle | undefined|undefined = fontStyle_buf + let value: TextStyleInterface = ({fontColor: fontColor_result,fontFamily: fontFamily_result,fontSize: fontSize_result,fontWeight: fontWeight_result,fontStyle: fontStyle_result} as TextStyleInterface) + return value } - readLinearIndicatorController(): LinearIndicatorController { + readTextStyle_styled_string(): TextStyle_styled_string { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() - return LinearIndicatorControllerInternal.fromPtr(ptr) + return TextStyle_styled_stringInternal.fromPtr(ptr) } readStyleOptions(): StyleOptions { let valueDeserializer: Deserializer = this @@ -12795,8 +13081,8 @@ return; } } readReceiveCallback(): ReceiveCallback { let valueDeserializer: Deserializer = this - const __ReceiveCallbackStub_result: string = (valueDeserializer.readString() as string) - let value: ReceiveCallback = ({__ReceiveCallbackStub: __ReceiveCallbackStub_result} as ReceiveCallback) + const _ReceiveCallbackStub_result: string = (valueDeserializer.readString() as string) + let value: ReceiveCallback = ({_ReceiveCallbackStub: _ReceiveCallbackStub_result} as ReceiveCallback) return value } readUIExtensionOptions(): UIExtensionOptions { @@ -14462,6 +14748,11 @@ 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) @@ -14707,6 +14998,11 @@ return; } let value: ToggleOptions = ({type: type_result,isOn: isOn_result} as ToggleOptions) return value } + readTimePickerDialog(): TimePickerDialog { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TimePickerDialogInternal.fromPtr(ptr) + } readTimePickerResult(): TimePickerResult { let valueDeserializer: Deserializer = this const hour_result: number = (valueDeserializer.readNumber() as number) @@ -14799,6 +15095,11 @@ return; } let value: TextPickerResult = ({value: value_result,index: index_result} as TextPickerResult) return value } + readTextPickerDialog(): TextPickerDialog { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextPickerDialogInternal.fromPtr(ptr) + } readType_TextPickerAttribute_onChange_callback(isSync: boolean = false): ((value: string | Array, index: number | Array) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -15121,6 +15422,26 @@ return; } let value: TextInputOptions = ({placeholder: placeholder_result,text: text_result,controller: controller_result} as TextInputOptions) return value } + readLayoutManager(): LayoutManager { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LayoutManagerInternal.fromPtr(ptr) + } + readStyledStringController(): StyledStringController { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return StyledStringControllerInternal.fromPtr(ptr) + } + readTextEditControllerEx(): TextEditControllerEx { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextEditControllerExInternal.fromPtr(ptr) + } + readTextBaseController(): TextBaseController { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextBaseControllerInternal.fromPtr(ptr) + } readTextClockOptions(): TextClockOptions { let valueDeserializer: Deserializer = this const timeZoneOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -15403,6 +15724,36 @@ return; } let value: TabsOptions = ({barPosition: barPosition_result,index: index_result,controller: controller_result} as TabsOptions) return value } + readReplaceSymbolEffect(): ReplaceSymbolEffect { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ReplaceSymbolEffectInternal.fromPtr(ptr) + } + readBounceSymbolEffect(): BounceSymbolEffect { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return BounceSymbolEffectInternal.fromPtr(ptr) + } + readDisappearSymbolEffect(): DisappearSymbolEffect { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return DisappearSymbolEffectInternal.fromPtr(ptr) + } + readAppearSymbolEffect(): AppearSymbolEffect { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return AppearSymbolEffectInternal.fromPtr(ptr) + } + readHierarchicalSymbolEffect(): HierarchicalSymbolEffect { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return HierarchicalSymbolEffectInternal.fromPtr(ptr) + } + readScaleSymbolEffect(): ScaleSymbolEffect { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ScaleSymbolEffectInternal.fromPtr(ptr) + } readContentDidScrollCallback(isSync: boolean = false): ContentDidScrollCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -16593,10 +16944,10 @@ return; } let value: StyledStringChangeValue = ({range: range_result,replacementString: replacementString_result,previewText: previewText_result} as StyledStringChangeValue) return value } - readGestureEvent(): GestureEvent { + readRichEditorBaseController(): RichEditorBaseController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() - return GestureEventInternal.fromPtr(ptr) + return RichEditorBaseControllerInternal.fromPtr(ptr) } readLocalizedBarrierStyle(): LocalizedBarrierStyle { let valueDeserializer: Deserializer = this @@ -17116,6 +17467,11 @@ return; } let value: NodeController = ({} as NodeController) return value } + readNavigationTransitionProxy(): NavigationTransitionProxy { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return NavigationTransitionProxyInternal.fromPtr(ptr) + } readRouteInfo(): RouteInfo { let valueDeserializer: Deserializer = this const name_result: string = (valueDeserializer.readString() as string) @@ -17296,7 +17652,7 @@ return (_continuationValue as boolean); } } readPopInfo(): PopInfo { let valueDeserializer: Deserializer = this - const info_result: NavPathInfo = valueDeserializer.readNavPathInfo() + const info_result: NavPathInfo = (valueDeserializer.readNavPathInfo() as NavPathInfo) const result_result: Object = (valueDeserializer.readCustomObject("Object") as Object) let value: PopInfo = ({info: info_result,result: result_result} as PopInfo) return value @@ -17639,11 +17995,6 @@ _argsSerializer.writeNumber(center); _argsSerializer.release(); return; } } - readChildrenMainSize(): ChildrenMainSize { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return ChildrenMainSizeInternal.fromPtr(ptr) - } readChainAnimationOptions(): ChainAnimationOptions { let valueDeserializer: Deserializer = this const minSpace_result: Length = (valueDeserializer.readLength() as Length) @@ -17723,6 +18074,11 @@ return; } let value: ListOptions = ({initialIndex: initialIndex_result,space: space_result,scroller: scroller_result} as ListOptions) return value } + readListScroller(): ListScroller { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ListScrollerInternal.fromPtr(ptr) + } readLineOptions(): LineOptions { let valueDeserializer: Deserializer = this const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -17892,8 +18248,8 @@ return; } } readResolutionQuality(): ResolutionQuality { let valueDeserializer: Deserializer = this - const __ResolutionQualityStub_result: string = (valueDeserializer.readString() as string) - let value: ResolutionQuality = ({__ResolutionQualityStub: __ResolutionQualityStub_result} as ResolutionQuality) + const _ResolutionQualityStub_result: string = (valueDeserializer.readString() as string) + let value: ResolutionQuality = ({_ResolutionQualityStub: _ResolutionQualityStub_result} as ResolutionQuality) return value } readImageError(): ImageError { @@ -18309,6 +18665,61 @@ return (_continuationValue as ComputedBarAttribute); } let value: GridLayoutOptions = ({regularSize: regularSize_result,irregularIndexes: irregularIndexes_result,onGetIrregularSizeByIndex: onGetIrregularSizeByIndex_result,onGetRectByIndex: onGetRectByIndex_result} as GridLayoutOptions) return value } + readPanRecognizer(): PanRecognizer { + let valueDeserializer: Deserializer = this + 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() + return GestureEventInternal.fromPtr(ptr) + } + readSwipeGestureEvent(): SwipeGestureEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return SwipeGestureEventInternal.fromPtr(ptr) + } + readRotationGestureEvent(): RotationGestureEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return RotationGestureEventInternal.fromPtr(ptr) + } + readPinchGestureEvent(): PinchGestureEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return PinchGestureEventInternal.fromPtr(ptr) + } + readPanGestureEvent(): PanGestureEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return PanGestureEventInternal.fromPtr(ptr) + } + readLongPressGestureEvent(): LongPressGestureEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LongPressGestureEventInternal.fromPtr(ptr) + } + readTapGestureEvent(): TapGestureEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TapGestureEventInternal.fromPtr(ptr) + } readGaugeIndicatorOptions(): GaugeIndicatorOptions { let valueDeserializer: Deserializer = this const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -18736,6 +19147,11 @@ return; } let value: EllipseOptions = ({width: width_result,height: height_result} as EllipseOptions) return value } + readDatePickerDialog(): DatePickerDialog { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return DatePickerDialogInternal.fromPtr(ptr) + } readDatePickerResult(): DatePickerResult { let valueDeserializer: Deserializer = this const year_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -18845,14 +19261,14 @@ return; } } const offsetY_result: number | Resource | undefined|undefined = offsetY_buf const colors_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let colors_buf: Array | undefined|undefined + let colors_buf: Array | undefined|undefined if ((RuntimeType.UNDEFINED) != (colors_buf_runtimeType)) { const colors_buf__length: int32 = valueDeserializer.readInt32() - let colors_buf_: Array = new Array() + let colors_buf_: Array = new Array() for (let colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { const colors_buf__buf_selector: number = valueDeserializer.readInt8() - let colors_buf__buf: ResourceColor | LinearGradient_data_panel | undefined|undefined + let colors_buf__buf: ResourceColor | LinearGradient | undefined|undefined if (colors_buf__buf_selector == 0) { const colors_buf__buf_u_selector: number = valueDeserializer.readInt8() let colors_buf__buf_u: Color | number | string | Resource | undefined|undefined @@ -18874,16 +19290,16 @@ return; } colors_buf__buf = (colors_buf__buf_u as Color | number | string | Resource) } else if (colors_buf__buf_selector == 1) { - colors_buf__buf = valueDeserializer.readLinearGradient_data_panel() + colors_buf__buf = (valueDeserializer.readLinearGradient() as LinearGradient) } else { throw new Error("One of the branches for colors_buf__buf has to be chosen through deserialisation.") } - colors_buf_[colors_buf__i] = (colors_buf__buf as ResourceColor | LinearGradient_data_panel) + colors_buf_[colors_buf__i] = (colors_buf__buf as ResourceColor | LinearGradient) } colors_buf = colors_buf_ } - const colors_result: Array | undefined|undefined = colors_buf + const colors_result: Array | undefined|undefined = colors_buf let value: DataPanelShadowOptions = ({radius: radius_result,offsetX: offsetX_result,offsetY: offsetY_result,colors: colors_result} as DataPanelShadowOptions) return value } @@ -18912,6 +19328,30 @@ return; } let value: DataPanelOptions = ({values: values_result,max: max_result,type: type_result} as DataPanelOptions) return value } + readColorStop(): ColorStop { + let valueDeserializer: Deserializer = this + const color_buf_selector: number = valueDeserializer.readInt8() + let color_buf: Color | number | string | Resource | undefined|undefined + if (color_buf_selector == 0) { + color_buf = (valueDeserializer.readInt32() as Color) + } + else if (color_buf_selector == 1) { + color_buf = (valueDeserializer.readNumber() as number) + } + else if (color_buf_selector == 2) { + color_buf = (valueDeserializer.readString() as string) + } + else if (color_buf_selector == 3) { + color_buf = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf has to be chosen through deserialisation.") + } + const color_result: ResourceColor = (color_buf as Color | number | string | Resource) + const offset_result: Length = (valueDeserializer.readLength() as Length) + let value: ColorStop = ({color: color_result,offset: offset_result} as ColorStop) + return value + } readCustomDialogControllerOptions(): CustomDialogControllerOptions { let valueDeserializer: Deserializer = this const builder_result: any = (valueDeserializer.readCustomObject("Any") as Object) @@ -19381,80 +19821,15 @@ return; } let value: CustomDialogControllerOptions = ({builder: builder_result,cancel: cancel_result,autoCancel: autoCancel_result,alignment: alignment_result,offset: offset_result,customStyle: customStyle_result,gridCount: gridCount_result,maskColor: maskColor_result,maskRect: maskRect_result,openAnimation: openAnimation_result,closeAnimation: closeAnimation_result,showInSubWindow: showInSubWindow_result,backgroundColor: backgroundColor_result,cornerRadius: cornerRadius_result,isModal: isModal_result,onWillDismiss: onWillDismiss_result,width: width_result,height: height_result,borderWidth: borderWidth_result,borderColor: borderColor_result,borderStyle: borderStyle_result,shadow: shadow_result,backgroundBlurStyle: backgroundBlurStyle_result,keyboardAvoidMode: keyboardAvoidMode_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CustomDialogControllerOptions) return value } - readTextBackgroundStyle(): TextBackgroundStyle { + readCustomDialogController(): CustomDialogController { let valueDeserializer: Deserializer = this - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector: number = valueDeserializer.readInt8() - let color_buf_: Color | number | string | Resource | undefined|undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) - } - const color_result: ResourceColor | undefined|undefined = color_buf - const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf: Dimension | BorderRadiuses | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) - { - const radius_buf__selector: number = valueDeserializer.readInt8() - let radius_buf_: Dimension | BorderRadiuses | undefined|undefined - if (radius_buf__selector == 0) { - radius_buf_ = (valueDeserializer.readLength() as Dimension) - } - else if (radius_buf__selector == 1) { - const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf - const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf - const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf - const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf - radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") - } - radius_buf = (radius_buf_ as Dimension | BorderRadiuses) - } - const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf - let value: TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return CustomDialogControllerInternal.fromPtr(ptr) + } + readContextMenu(): ContextMenu { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ContextMenuInternal.fromPtr(ptr) } readSceneOptions(): SceneOptions { let valueDeserializer: Deserializer = this @@ -19497,6 +19872,31 @@ return; } let value: SceneOptions = ({scene: scene_result,modelType: modelType_result} as SceneOptions) return value } + readUICommonEvent(): UICommonEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return UICommonEventInternal.fromPtr(ptr) + } + readChildrenMainSize(): ChildrenMainSize { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ChildrenMainSizeInternal.fromPtr(ptr) + } + readScrollOnScrollCallback(isSync: boolean = false): ScrollOnScrollCallback { + 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) @@ -19518,6 +19918,21 @@ _argsSerializer.writeNumber(last); _argsSerializer.release(); return; } } + readTextContentControllerBase(): TextContentControllerBase { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return TextContentControllerBaseInternal.fromPtr(ptr) + } + readView(): View { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ViewInternal.fromPtr(ptr) + } + readMeasurable(): Measurable { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return MeasurableInternal.fromPtr(ptr) + } readSpringBackAction(): SpringBackAction { let valueDeserializer: Deserializer = this const springBack_result: (() => void) = valueDeserializer.readCallback_Void() @@ -19798,8 +20213,8 @@ return; } } readUniformDataType(): UniformDataType { let valueDeserializer: Deserializer = this - const __UniformDataTypeStub_result: string = (valueDeserializer.readString() as string) - let value: UniformDataType = ({__UniformDataTypeStub: __UniformDataTypeStub_result} as UniformDataType) + const _UniformDataTypeStub_result: string = (valueDeserializer.readString() as string) + let value: UniformDataType = ({_UniformDataTypeStub: _UniformDataTypeStub_result} as UniformDataType) return value } readCallback_DragEvent_String_Void(isSync: boolean = false): ((event: DragEvent, extraParams?: string) => void) { @@ -19822,11 +20237,6 @@ if ((RuntimeType.UNDEFINED) != (extraParams_type)) { _argsSerializer.release(); return; } } - readDragEvent(): DragEvent { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return DragEventInternal.fromPtr(ptr) - } 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() @@ -20033,21 +20443,6 @@ _argsSerializer.holdAndWriteCallback(_continuationCallback); _argsSerializer.release(); return (_continuationValue as boolean); } } - readKeyEvent(): KeyEvent { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return KeyEventInternal.fromPtr(ptr) - } - readMouseEvent(): MouseEvent { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return MouseEventInternal.fromPtr(ptr) - } - readAccessibilityHoverEvent(): AccessibilityHoverEvent { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return AccessibilityHoverEventInternal.fromPtr(ptr) - } readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -20062,11 +20457,6 @@ _argsSerializer.writeAccessibilityHoverEvent(event); _argsSerializer.release(); return; } } - readHoverEvent(): HoverEvent { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return HoverEventInternal.fromPtr(ptr) - } readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean, event: HoverEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -20928,14 +21318,14 @@ return; } } readFilter(): Filter { let valueDeserializer: Deserializer = this - const __FilterStub_result: string = (valueDeserializer.readString() as string) - let value: Filter = ({__FilterStub: __FilterStub_result} as Filter) + const _FilterStub_result: string = (valueDeserializer.readString() as string) + let value: Filter = ({_FilterStub: _FilterStub_result} as Filter) return value } readVisualEffect(): VisualEffect { let valueDeserializer: Deserializer = this - const __VisualEffectStub_result: string = (valueDeserializer.readString() as string) - let value: VisualEffect = ({__VisualEffectStub: __VisualEffectStub_result} as VisualEffect) + const _VisualEffectStub_result: string = (valueDeserializer.readString() as string) + let value: VisualEffect = ({_VisualEffectStub: _VisualEffectStub_result} as VisualEffect) return value } readForegroundEffectOptions(): ForegroundEffectOptions { @@ -21178,6 +21568,21 @@ _argsSerializer.holdAndWriteCallback(_continuationCallback); _argsSerializer.release(); return (_continuationValue as TouchResult); } } + readKeyEvent(): KeyEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return KeyEventInternal.fromPtr(ptr) + } + readDragEvent(): DragEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return DragEventInternal.fromPtr(ptr) + } + readPixelMapMock(): PixelMapMock { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return PixelMapMockInternal.fromPtr(ptr) + } readTouchObject(): TouchObject { let valueDeserializer: Deserializer = this const type_result: TouchType = (valueDeserializer.readInt32() as TouchType) @@ -21193,6 +21598,26 @@ return (_continuationValue as TouchResult); } 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 } + readAccessibilityHoverEvent(): AccessibilityHoverEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return AccessibilityHoverEventInternal.fromPtr(ptr) + } + readMouseEvent(): MouseEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return MouseEventInternal.fromPtr(ptr) + } + readHoverEvent(): HoverEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return HoverEventInternal.fromPtr(ptr) + } + readBaseEvent(): BaseEvent { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return BaseEventInternal.fromPtr(ptr) + } readPointLightStyle(): PointLightStyle { let valueDeserializer: Deserializer = this const lightSource_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -21402,24 +21827,32 @@ return; } let value: CheckboxOptions = ({name: name_result,group: group_result,indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) return value } + readCanvasRenderer(): CanvasRenderer { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CanvasRendererInternal.fromPtr(ptr) + } readRenderingContextSettings(): RenderingContextSettings { let valueDeserializer: Deserializer = this - const antialias_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let antialias_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (antialias_buf_runtimeType)) - { - antialias_buf = valueDeserializer.readBoolean() - } - const antialias_result: boolean | undefined|undefined = antialias_buf - let value: RenderingContextSettings = ({antialias: antialias_result} as RenderingContextSettings) - return value + let ptr: KPointer = valueDeserializer.readPointer() + return RenderingContextSettingsInternal.fromPtr(ptr) } readLengthMetricsUnit(): LengthMetricsUnit { let valueDeserializer: Deserializer = this - const __LengthMetricsUnitStub_result: string = (valueDeserializer.readString() as string) - let value: LengthMetricsUnit = ({__LengthMetricsUnitStub: __LengthMetricsUnitStub_result} as LengthMetricsUnit) + const _LengthMetricsUnitStub_result: string = (valueDeserializer.readString() as string) + let value: LengthMetricsUnit = ({_LengthMetricsUnitStub: _LengthMetricsUnitStub_result} as LengthMetricsUnit) return value } + readCanvasPath(): CanvasPath { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CanvasPathInternal.fromPtr(ptr) + } + readCalendarPickerDialog(): CalendarPickerDialog { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CalendarPickerDialogInternal.fromPtr(ptr) + } readCalendarOptions(): CalendarOptions { let valueDeserializer: Deserializer = this const hintRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -22202,9 +22635,25 @@ return; } let value: BadgeParamWithNumber = ({position: position_result,style: style_result,count: count_result,maxCount: maxCount_result} as BadgeParamWithNumber) return value } + readScrollMotion(): ScrollMotion { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ScrollMotionInternal.fromPtr(ptr) + } + readFrictionMotion(): FrictionMotion { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return FrictionMotionInternal.fromPtr(ptr) + } readSpringMotion(): SpringMotion { - let value: SpringMotion = ({} as SpringMotion) - return value + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return SpringMotionInternal.fromPtr(ptr) + } + readSpringProp(): SpringProp { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return SpringPropInternal.fromPtr(ptr) } readOnAlphabetIndexerPopupSelectCallback(isSync: boolean = false): OnAlphabetIndexerPopupSelectCallback { const _resource: CallbackResource = this.readCallbackResource() @@ -22354,6 +22803,11 @@ return; } let value: AlertDialogButtonOptions = ({enabled: enabled_result,defaultFocus: defaultFocus_result,style: style_result,value: value_result,fontColor: fontColor_result,backgroundColor: backgroundColor_result,action: action_result,primary: primary_result} as AlertDialogButtonOptions) return value } + readAlertDialog(): AlertDialog { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return AlertDialogInternal.fromPtr(ptr) + } readDismissDialogAction(): DismissDialogAction { let valueDeserializer: Deserializer = this const dismiss_result: (() => void) = valueDeserializer.readCallback_Void() @@ -22397,6 +22851,31 @@ return; } let value: SheetInfo = ({title: title_result,icon: icon_result,action: action_result} as SheetInfo) return value } + readActionSheet(): ActionSheet { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ActionSheetInternal.fromPtr(ptr) + } + readEventEmulator(): EventEmulator { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return EventEmulatorInternal.fromPtr(ptr) + } + readNavExtender(): NavExtender { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return NavExtenderInternal.fromPtr(ptr) + } + readGlobalScope_ohos_arkui_performanceMonitor(): GlobalScope_ohos_arkui_performanceMonitor { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return GlobalScope_ohos_arkui_performanceMonitorInternal.fromPtr(ptr) + } + readGlobalScope_ohos_arkui_componentSnapshot(): GlobalScope_ohos_arkui_componentSnapshot { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return GlobalScope_ohos_arkui_componentSnapshotInternal.fromPtr(ptr) + } readWebHeader(): WebHeader { let valueDeserializer: Deserializer = this const headerKey_result: string = (valueDeserializer.readString() as string) @@ -22404,6 +22883,16 @@ return; } let value: WebHeader = ({headerKey: headerKey_result,headerValue: headerValue_result} as WebHeader) return value } + readLazyForEachOps(): LazyForEachOps { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LazyForEachOpsInternal.fromPtr(ptr) + } + readAnimationExtender(): AnimationExtender { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return AnimationExtenderInternal.fromPtr(ptr) + } readLength(): Length | undefined { const valueType = this.readInt8() if ((RuntimeType.NUMBER) == (valueType)) { diff --git a/arkoala/arkui/src/peers/Serializer.ts b/arkoala/arkui/src/peers/Serializer.ts index 4d198c937..fd59a2c65 100644 --- a/arkoala/arkui/src/peers/Serializer.ts +++ b/arkoala/arkui/src/peers/Serializer.ts @@ -20,7 +20,7 @@ import { unsafeCast } from "./../shared/generated-utils" 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, LinearGradient_common, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, 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, 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, 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 { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -29,7 +29,7 @@ import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResul import { GetItemMainSizeByIndex, 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, NavPathInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } 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 { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -49,21 +49,22 @@ import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginCo 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, ColorFilter, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, MarkStyle } from "./../ArkUnitsInterfaces" +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 { 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 } from "./../ArkArkuiExternalInterfaces" +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 { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./../ArkStyledStringInterfaces" +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 { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" +import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" @@ -81,20 +82,24 @@ 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 } from "./../ArkSymbolglyphInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" +import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" 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 { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" -import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings } from "./../ArkCanvasInterfaces" +import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" @@ -152,8 +157,8 @@ import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternL import { PanelMode } from "./../ArkPanelInterfaces" import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { LinearGradient_data_panel, ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" @@ -171,6 +176,8 @@ import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMa import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" @@ -181,12 +188,30 @@ import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifie 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" +import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" +import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" +import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" +import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" +import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" +import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" +import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" +import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" +import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" 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" @@ -211,22 +236,49 @@ import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" import { MarqueeOptions } from "./../ArkMarqueeInterfaces" import { LocationButtonOnClickResult, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" import { ListItemGroupOptions, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" +import { ListScroller, ListScrollerInternal } from "./../ArkListScrollerMaterialized" import { LineOptions } from "./../ArkLineInterfaces" import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { GridContainerOptions, SizeType } from "./../ArkGridContainerInterfaces" import { GridItemOptions, GridItemStyle } from "./../ArkGridItemInterfaces" +import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" +import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" +import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" +import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" +import { PinchGestureEvent, PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" +import { PanGestureEvent, PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" +import { LongPressGestureEvent, LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" +import { TapGestureEvent, TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" import { FormLinkOptions } from "./../ArkFormLinkInterfaces" import { FormCallbackInfo, FormInfo, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { EllipseOptions } from "./../ArkEllipseInterfaces" +import { DatePickerDialog, DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" -import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +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 { SpringMotion, SpringProp } from "./../ArkAnimatorInterfaces" +import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" +import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" +import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" +import { FrictionMotion, FrictionMotionInternal } from "./../ArkFrictionMotionMaterialized" +import { SpringMotion, SpringMotionInternal } from "./../ArkSpringMotionMaterialized" +import { AlertDialog, AlertDialogInternal } from "./../ArkAlertDialogMaterialized" +import { ActionSheet, ActionSheetInternal } from "./../ArkActionSheetMaterialized" +import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMaterialized" +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 { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" +import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Serializer extends SerializerBase { private static pool?: Array | undefined = undefined private static poolTop: int32 = -1 @@ -366,8 +418,8 @@ export class Serializer extends SerializerBase { } writeSymbolGlyphModifier(value: SymbolGlyphModifier): void { let valueSerializer: Serializer = this - const value___SymbolGlyphModifierStub = value.__SymbolGlyphModifierStub - valueSerializer.writeString(value___SymbolGlyphModifierStub) + const value__SymbolGlyphModifierStub = value._SymbolGlyphModifierStub + valueSerializer.writeString(value__SymbolGlyphModifierStub) } writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { let valueSerializer: Serializer = this @@ -622,8 +674,8 @@ export class Serializer extends SerializerBase { } writeComponentContent(value: ComponentContent): void { let valueSerializer: Serializer = this - const value___ComponentContentStub = value.__ComponentContentStub - valueSerializer.writeString(value___ComponentContentStub) + const value__ComponentContentStub = value._ComponentContentStub + valueSerializer.writeString(value__ComponentContentStub) } writeScrollAnimationOptions(value: ScrollAnimationOptions): void { let valueSerializer: Serializer = this @@ -1121,8 +1173,8 @@ export class Serializer extends SerializerBase { } writeColorMetrics(value: ColorMetrics): void { let valueSerializer: Serializer = this - const value___ColorMetricsStub = value.__ColorMetricsStub - valueSerializer.writeString(value___ColorMetricsStub) + const value__ColorMetricsStub = value._ColorMetricsStub + valueSerializer.writeString(value__ColorMetricsStub) } writeStyledStringValue(value: StyledStringValue): void { let valueSerializer: Serializer = this @@ -1376,8 +1428,8 @@ export class Serializer extends SerializerBase { } writeDateTimeOptions(value: DateTimeOptions): void { let valueSerializer: Serializer = this - const value___DateTimeOptionsStub = value.__DateTimeOptionsStub - valueSerializer.writeString(value___DateTimeOptionsStub) + const value__DateTimeOptionsStub = value._DateTimeOptionsStub + valueSerializer.writeString(value__DateTimeOptionsStub) } writeRectangle(value: Rectangle): void { let valueSerializer: Serializer = this @@ -2524,31 +2576,19 @@ export class Serializer extends SerializerBase { } writeNavPathInfo(value: NavPathInfo): void { let valueSerializer: Serializer = this - const value_name = value.name - valueSerializer.writeString(value_name) - const value_param = value.param - let value_param_type: int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Any", value_param_value) - } - const value_onPop = value.onPop - let value_onPop_type: int32 = RuntimeType.UNDEFINED - value_onPop_type = runtimeType(value_onPop) - valueSerializer.writeInt8(value_onPop_type) - if ((RuntimeType.UNDEFINED) != (value_onPop_type)) { - const value_onPop_value = value_onPop! - valueSerializer.holdAndWriteCallback(value_onPop_value) + 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 } - const value_isEntry = value.isEntry - let value_isEntry_type: int32 = RuntimeType.UNDEFINED - value_isEntry_type = runtimeType(value_isEntry) - valueSerializer.writeInt8(value_isEntry_type) - if ((RuntimeType.UNDEFINED) != (value_isEntry_type)) { - const value_isEntry_value = value_isEntry! - valueSerializer.writeBoolean(value_isEntry_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } writeTextModifier(value: TextModifier): void { @@ -2747,72 +2787,21 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_xxl_value) } } - writeLinearGradient_common(value: LinearGradient_common): void { + writeLinearGradient(value: LinearGradient): void { let valueSerializer: Serializer = this - const value_angle = value.angle - let value_angle_type: int32 = RuntimeType.UNDEFINED - value_angle_type = runtimeType(value_angle) - valueSerializer.writeInt8(value_angle_type) - if ((RuntimeType.UNDEFINED) != (value_angle_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1) - const value_angle_value_1 = unsafeCast(value_angle_value) - valueSerializer.writeString(value_angle_value_1) - } - } - const value_direction = value.direction - let value_direction_type: int32 = RuntimeType.UNDEFINED - value_direction_type = runtimeType(value_direction) - valueSerializer.writeInt8(value_direction_type) - if ((RuntimeType.UNDEFINED) != (value_direction_type)) { - const value_direction_value = value_direction! - valueSerializer.writeInt32(value_direction_value) - } - const value_colors = value.colors - valueSerializer.writeInt32(value_colors.length) - for (let i = 0; i < value_colors.length; i++) { - const value_colors_element: [ ResourceColor, number ] = value_colors[i] - const value_colors_element_0 = value_colors_element[0] - let value_colors_element_0_type: int32 = RuntimeType.UNDEFINED - value_colors_element_0_type = runtimeType(value_colors_element_0) - if (((RuntimeType.NUMBER) == (value_colors_element_0_type)) && ((unsafeCast(value_colors_element_0)) >= (0)) && ((unsafeCast(value_colors_element_0)) <= (11))) { - valueSerializer.writeInt8(0) - 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))) { - 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))) { - 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))) { - valueSerializer.writeInt8(3) - const value_colors_element_0_3 = unsafeCast(value_colors_element_0) - valueSerializer.writeResource(value_colors_element_0_3) - } - const value_colors_element_1 = value_colors_element[1] - valueSerializer.writeNumber(value_colors_element_1) + 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 } - const value_repeating = value.repeating - let value_repeating_type: int32 = RuntimeType.UNDEFINED - value_repeating_type = runtimeType(value_repeating) - valueSerializer.writeInt8(value_repeating_type) - if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { - const value_repeating_value = value_repeating! - valueSerializer.writeBoolean(value_repeating_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } writeLunarSwitchStyle(value: LunarSwitchStyle): void { @@ -2916,13 +2905,13 @@ export class Serializer extends SerializerBase { } writeScene(value: Scene): void { let valueSerializer: Serializer = this - const value___SceneStub = value.__SceneStub - valueSerializer.writeString(value___SceneStub) + const value__SceneStub = value._SceneStub + valueSerializer.writeString(value__SceneStub) } writeUIContext(value: UIContext): void { let valueSerializer: Serializer = this - const value___UIContextStub = value.__UIContextStub - valueSerializer.writeString(value___UIContextStub) + const value__UIContextStub = value._UIContextStub + valueSerializer.writeString(value__UIContextStub) } writeContextMenuAnimationOptions(value: ContextMenuAnimationOptions): void { let valueSerializer: Serializer = this @@ -3012,8 +3001,8 @@ export class Serializer extends SerializerBase { } writeImageModifier(value: ImageModifier): void { let valueSerializer: Serializer = this - const value___ImageModifierStub = value.__ImageModifierStub - valueSerializer.writeString(value___ImageModifierStub) + const value__ImageModifierStub = value._ImageModifierStub + valueSerializer.writeString(value__ImageModifierStub) } writeMotionPathOptions(value: MotionPathOptions): void { let valueSerializer: Serializer = this @@ -3277,6 +3266,74 @@ export class Serializer extends SerializerBase { } } } + writeLinearGradient_common(value: LinearGradient_common): void { + let valueSerializer: Serializer = this + const value_angle = value.angle + let value_angle_type: int32 = RuntimeType.UNDEFINED + value_angle_type = runtimeType(value_angle) + valueSerializer.writeInt8(value_angle_type) + if ((RuntimeType.UNDEFINED) != (value_angle_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1) + const value_angle_value_1 = unsafeCast(value_angle_value) + valueSerializer.writeString(value_angle_value_1) + } + } + const value_direction = value.direction + let value_direction_type: int32 = RuntimeType.UNDEFINED + value_direction_type = runtimeType(value_direction) + valueSerializer.writeInt8(value_direction_type) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = value_direction! + valueSerializer.writeInt32(value_direction_value) + } + const value_colors = value.colors + valueSerializer.writeInt32(value_colors.length) + for (let i = 0; i < value_colors.length; i++) { + const value_colors_element: [ ResourceColor, number ] = value_colors[i] + const value_colors_element_0 = value_colors_element[0] + let value_colors_element_0_type: int32 = RuntimeType.UNDEFINED + value_colors_element_0_type = runtimeType(value_colors_element_0) + if (((RuntimeType.NUMBER) == (value_colors_element_0_type)) && ((unsafeCast(value_colors_element_0)) >= (0)) && ((unsafeCast(value_colors_element_0)) <= (11))) { + valueSerializer.writeInt8(0) + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(3) + const value_colors_element_0_3 = unsafeCast(value_colors_element_0) + valueSerializer.writeResource(value_colors_element_0_3) + } + const value_colors_element_1 = value_colors_element[1] + valueSerializer.writeNumber(value_colors_element_1) + } + const value_repeating = value.repeating + let value_repeating_type: int32 = RuntimeType.UNDEFINED + value_repeating_type = runtimeType(value_repeating) + valueSerializer.writeInt8(value_repeating_type) + if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { + const value_repeating_value = value_repeating! + valueSerializer.writeBoolean(value_repeating_value) + } + } writeDrawingCanvas(value: DrawingCanvas): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -3512,13 +3569,13 @@ export class Serializer extends SerializerBase { } writeCustomTheme(value: CustomTheme): void { let valueSerializer: Serializer = this - const value___CustomThemeStub = value.__CustomThemeStub - valueSerializer.writeString(value___CustomThemeStub) + const value__CustomThemeStub = value._CustomThemeStub + valueSerializer.writeString(value__CustomThemeStub) } writeRestrictedWorker(value: RestrictedWorker): void { let valueSerializer: Serializer = this - const value___RestrictedWorkerStub = value.__RestrictedWorkerStub - valueSerializer.writeString(value___RestrictedWorkerStub) + const value__RestrictedWorkerStub = value._RestrictedWorkerStub + valueSerializer.writeString(value__RestrictedWorkerStub) } writeWant(value: Want): void { let valueSerializer: Serializer = this @@ -3657,43 +3714,6 @@ export class Serializer extends SerializerBase { const value_transition = value.transition valueSerializer.holdAndWriteCallback(value_transition) } - writeNavContentInfo(value: NavContentInfo): void { - let valueSerializer: Serializer = this - const value_name = value.name - let value_name_type: int32 = RuntimeType.UNDEFINED - value_name_type = runtimeType(value_name) - valueSerializer.writeInt8(value_name_type) - if ((RuntimeType.UNDEFINED) != (value_name_type)) { - const value_name_value = value_name! - valueSerializer.writeString(value_name_value) - } - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_mode = value.mode - let value_mode_type: int32 = RuntimeType.UNDEFINED - value_mode_type = runtimeType(value_mode) - valueSerializer.writeInt8(value_mode_type) - if ((RuntimeType.UNDEFINED) != (value_mode_type)) { - const value_mode_value = value_mode! - valueSerializer.writeInt32(value_mode_value) - } - const value_param = value.param - let value_param_type: int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Object", value_param_value) - } - const value_navDestinationId = value.navDestinationId - let value_navDestinationId_type: int32 = RuntimeType.UNDEFINED - value_navDestinationId_type = runtimeType(value_navDestinationId) - valueSerializer.writeInt8(value_navDestinationId_type) - if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { - const value_navDestinationId_value = value_navDestinationId! - valueSerializer.writeString(value_navDestinationId_value) - } - } writeLinearIndicatorStyle(value: LinearIndicatorStyle): void { let valueSerializer: Serializer = this const value_space = value.space @@ -3769,8 +3789,8 @@ export class Serializer extends SerializerBase { } writeDrawContext(value: DrawContext): void { let valueSerializer: Serializer = this - const value___DrawContextStub = value.__DrawContextStub - valueSerializer.writeString(value___DrawContextStub) + const value__DrawContextStub = value._DrawContextStub + valueSerializer.writeString(value__DrawContextStub) } writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { let valueSerializer: Serializer = this @@ -3788,58 +3808,120 @@ export class Serializer extends SerializerBase { const value_styledValue = value.styledValue valueSerializer.writeStyledStringValue(value_styledValue) } - writeCustomSpan(value: CustomSpan): void { + writeTextBackgroundStyle(value: TextBackgroundStyle): 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_color = value.color + let value_color_type: int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + valueSerializer.writeInt8(value_color_type) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + 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)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { + valueSerializer.writeInt8(0) + const value_color_value_0 = unsafeCast(value_color_value) + valueSerializer.writeInt32(value_color_value_0) + } + 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))) { + 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))) { + valueSerializer.writeInt8(3) + const value_color_value_3 = unsafeCast(value_color_value) + valueSerializer.writeResource(value_color_value_3) + } } - } - writeImageAttachment(value: ImageAttachment): void { - let valueSerializer: Serializer = this - const value_value = value.value - valueSerializer.writePixelMap(value_value) - const value_size = value.size - let value_size_type: int32 = RuntimeType.UNDEFINED - value_size_type = runtimeType(value_size) - valueSerializer.writeInt8(value_size_type) - if ((RuntimeType.UNDEFINED) != (value_size_type)) { - const value_size_value = value_size! - valueSerializer.writeSizeOptions(value_size_value) + const value_radius = value.radius + let value_radius_type: int32 = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + valueSerializer.writeInt8(value_radius_type) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + 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)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(0) + const value_radius_value_0 = unsafeCast(value_radius_value) + valueSerializer.writeLength(value_radius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (((value_radius_value!.hasOwnProperty("topLeft")) || (value_radius_value!.hasOwnProperty("topRight")) || (value_radius_value!.hasOwnProperty("bottomLeft")) || (value_radius_value!.hasOwnProperty("bottomRight"))))) { + valueSerializer.writeInt8(1) + const value_radius_value_1 = unsafeCast(value_radius_value) + const value_radius_value_1_topLeft = value_radius_value_1.topLeft + let value_radius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) + valueSerializer.writeInt8(value_radius_value_1_topLeft_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! + valueSerializer.writeLength(value_radius_value_1_topLeft_value) + } + const value_radius_value_1_topRight = value_radius_value_1.topRight + let value_radius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) + valueSerializer.writeInt8(value_radius_value_1_topRight_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { + const value_radius_value_1_topRight_value = value_radius_value_1_topRight! + valueSerializer.writeLength(value_radius_value_1_topRight_value) + } + const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft + let value_radius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) + } + const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight + let value_radius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! + valueSerializer.writeLength(value_radius_value_1_bottomRight_value) + } + } } - const value_verticalAlign = value.verticalAlign - let value_verticalAlign_type: int32 = RuntimeType.UNDEFINED - value_verticalAlign_type = runtimeType(value_verticalAlign) - valueSerializer.writeInt8(value_verticalAlign_type) - if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { - const value_verticalAlign_value = value_verticalAlign! - valueSerializer.writeInt32(value_verticalAlign_value) + } + writeCustomSpan(value: CustomSpan): 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 } - const value_objectFit = value.objectFit - let value_objectFit_type: int32 = RuntimeType.UNDEFINED - value_objectFit_type = runtimeType(value_objectFit) - valueSerializer.writeInt8(value_objectFit_type) - if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { - const value_objectFit_value = value_objectFit! - valueSerializer.writeInt32(value_objectFit_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } - const value_layoutStyle = value.layoutStyle - let value_layoutStyle_type: int32 = RuntimeType.UNDEFINED - value_layoutStyle_type = runtimeType(value_layoutStyle) - valueSerializer.writeInt8(value_layoutStyle_type) - if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { - const value_layoutStyle_value = value_layoutStyle! - valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) + } + writeImageAttachment(value: ImageAttachment): 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!") } } writeWaterFlowSections(value: WaterFlowSections): void { @@ -5809,7 +5891,7 @@ export class Serializer extends SerializerBase { 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) @@ -7553,6 +7635,43 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_enableWaveEffect_value) } } + writeNavContentInfo(value: NavContentInfo): void { + let valueSerializer: Serializer = this + const value_name = value.name + let value_name_type: int32 = RuntimeType.UNDEFINED + value_name_type = runtimeType(value_name) + valueSerializer.writeInt8(value_name_type) + if ((RuntimeType.UNDEFINED) != (value_name_type)) { + const value_name_value = value_name! + valueSerializer.writeString(value_name_value) + } + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_mode = value.mode + let value_mode_type: int32 = RuntimeType.UNDEFINED + value_mode_type = runtimeType(value_mode) + valueSerializer.writeInt8(value_mode_type) + if ((RuntimeType.UNDEFINED) != (value_mode_type)) { + const value_mode_value = value_mode! + valueSerializer.writeInt32(value_mode_value) + } + const value_param = value.param + let value_param_type: int32 = RuntimeType.UNDEFINED + value_param_type = runtimeType(value_param) + valueSerializer.writeInt8(value_param_type) + if ((RuntimeType.UNDEFINED) != (value_param_type)) { + const value_param_value = value_param! + valueSerializer.writeCustomObject("Object", value_param_value) + } + const value_navDestinationId = value.navDestinationId + let value_navDestinationId_type: int32 = RuntimeType.UNDEFINED + value_navDestinationId_type = runtimeType(value_navDestinationId) + valueSerializer.writeInt8(value_navDestinationId_type) + if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { + const value_navDestinationId_value = value_navDestinationId! + valueSerializer.writeString(value_navDestinationId_value) + } + } writeNavDestinationContext(value: NavDestinationContext): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -7801,8 +7920,8 @@ export class Serializer extends SerializerBase { } writeSystemBarStyle(value: SystemBarStyle): void { let valueSerializer: Serializer = this - const value___SystemBarStyleStub = value.__SystemBarStyleStub - valueSerializer.writeString(value___SystemBarStyleStub) + const value__SystemBarStyleStub = value._SystemBarStyleStub + valueSerializer.writeString(value__SystemBarStyleStub) } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer: Serializer = this @@ -7976,8 +8095,8 @@ export class Serializer extends SerializerBase { } writeDrawableDescriptor(value: DrawableDescriptor): void { let valueSerializer: Serializer = this - const value___DrawableDescriptorStub = value.__DrawableDescriptorStub - valueSerializer.writeString(value___DrawableDescriptorStub) + const value__DrawableDescriptorStub = value._DrawableDescriptorStub + valueSerializer.writeString(value__DrawableDescriptorStub) } writeMatrix2D(value: Matrix2D): void { let valueSerializer: Serializer = this @@ -8059,10 +8178,25 @@ export class Serializer extends SerializerBase { } writeDrawingColorFilter(value: DrawingColorFilter): void { let valueSerializer: Serializer = this - const value___DrawingColorFilterStub = value.__DrawingColorFilterStub - valueSerializer.writeString(value___DrawingColorFilterStub) + const value__DrawingColorFilterStub = value._DrawingColorFilterStub + valueSerializer.writeString(value__DrawingColorFilterStub) } writeColorFilter(value: ColorFilter): 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!") + } } writeBreakPoints(value: BreakPoints): void { let valueSerializer: Serializer = this @@ -8089,8 +8223,8 @@ export class Serializer extends SerializerBase { } writeWindowStatusType(value: WindowStatusType): void { let valueSerializer: Serializer = this - const value___WindowStatusTypeStub = value.__WindowStatusTypeStub - valueSerializer.writeString(value___WindowStatusTypeStub) + const value__WindowStatusTypeStub = value._WindowStatusTypeStub + valueSerializer.writeString(value__WindowStatusTypeStub) } writeFlexSpaceOptions(value: FlexSpaceOptions): void { let valueSerializer: Serializer = this @@ -8397,8 +8531,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_hoverModeArea_value) } } - writeLinearGradient_data_panel(value: LinearGradient_data_panel): void { - } writeAnimateParam(value: AnimateParam): void { let valueSerializer: Serializer = this const value_duration = value.duration @@ -8522,8 +8654,8 @@ export class Serializer extends SerializerBase { } writeRectShape(value: RectShape): void { let valueSerializer: Serializer = this - const value___RectShapeStub = value.__RectShapeStub - valueSerializer.writeString(value___RectShapeStub) + const value__RectShapeStub = value._RectShapeStub + valueSerializer.writeString(value__RectShapeStub) } writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer: Serializer = this @@ -10382,8 +10514,8 @@ export class Serializer extends SerializerBase { } writeBlender(value: Blender): void { let valueSerializer: Serializer = this - const value___BlenderStub = value.__BlenderStub - valueSerializer.writeString(value___BlenderStub) + const value__BlenderStub = value._BlenderStub + valueSerializer.writeString(value__BlenderStub) } writeOverlayOptions(value: OverlayOptions): void { let valueSerializer: Serializer = this @@ -10594,18 +10726,18 @@ export class Serializer extends SerializerBase { } writePathShape(value: PathShape): void { let valueSerializer: Serializer = this - const value___PathShapeStub = value.__PathShapeStub - valueSerializer.writeString(value___PathShapeStub) + const value__PathShapeStub = value._PathShapeStub + valueSerializer.writeString(value__PathShapeStub) } writeEllipseShape(value: EllipseShape): void { let valueSerializer: Serializer = this - const value___EllipseShapeStub = value.__EllipseShapeStub - valueSerializer.writeString(value___EllipseShapeStub) + const value__EllipseShapeStub = value._EllipseShapeStub + valueSerializer.writeString(value__EllipseShapeStub) } writeCircleShape(value: CircleShape): void { let valueSerializer: Serializer = this - const value___CircleShapeStub = value.__CircleShapeStub - valueSerializer.writeString(value___CircleShapeStub) + const value__CircleShapeStub = value._CircleShapeStub + valueSerializer.writeString(value__CircleShapeStub) } writeProgressMask(value: ProgressMask): void { let valueSerializer: Serializer = this @@ -10777,15 +10909,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeRotateOptions(value_rotate_value) } } - writeIntentionCode(value: IntentionCode): void { - let valueSerializer: Serializer = this - const value___IntentionCodeStub = value.__IntentionCodeStub - valueSerializer.writeString(value___IntentionCodeStub) - } writeDrawingLattice(value: DrawingLattice): void { let valueSerializer: Serializer = this - const value___DrawingLatticeStub = value.__DrawingLatticeStub - valueSerializer.writeString(value___DrawingLatticeStub) + const value__DrawingLatticeStub = value._DrawingLatticeStub + valueSerializer.writeString(value__DrawingLatticeStub) } writeRectResult(value: RectResult): void { let valueSerializer: Serializer = this @@ -10815,6 +10942,11 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeIntentionCode(value: IntentionCode): void { + let valueSerializer: Serializer = this + const value__IntentionCodeStub = value._IntentionCodeStub + valueSerializer.writeString(value__IntentionCodeStub) + } writeUnifiedData(value: UnifiedData): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -10944,12 +11076,20 @@ export class Serializer extends SerializerBase { } writeImageData(value: ImageData): void { let valueSerializer: Serializer = this - const value_data = value.data - valueSerializer.writeBuffer(value_data) - const value_height = value.height - valueSerializer.writeNumber(value_height) - const value_width = value.width - valueSerializer.writeNumber(value_width) + 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!") + } } writePath2D(value: Path2D): void { let valueSerializer: Serializer = this @@ -13600,13 +13740,13 @@ export class Serializer extends SerializerBase { const value_propertyName = value.propertyName valueSerializer.writeString(value_propertyName) const value_startValue = value.startValue - valueSerializer.writeNumber(value_startValue) + valueSerializer.writeFloat32(value_startValue) const value_endValue = value.endValue - valueSerializer.writeNumber(value_endValue) + valueSerializer.writeFloat32(value_endValue) const value_duration = value.duration - valueSerializer.writeNumber(value_duration) + valueSerializer.writeInt32(value_duration) const value_delay = value.delay - valueSerializer.writeNumber(value_delay) + valueSerializer.writeInt32(value_delay) const value_curve = value.curve let value_curve_type: int32 = RuntimeType.UNDEFINED value_curve_type = runtimeType(value_curve) @@ -13670,7 +13810,9 @@ export class Serializer extends SerializerBase { } writeWithThemeAttribute(value: WithThemeAttribute): void { } - writeNavigationTransitionProxy(value: NavigationTransitionProxy): void { + writeIsolatedComponentAttribute(value: IsolatedComponentAttribute): void { + } + writeLinearIndicatorController(value: LinearIndicatorController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -13687,9 +13829,44 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeIsolatedComponentAttribute(value: IsolatedComponentAttribute): void { + writeImageAttachmentInterface(value: ImageAttachmentInterface): void { + let valueSerializer: Serializer = this + const value_value = value.value + valueSerializer.writePixelMap(value_value) + const value_size = value.size + let value_size_type: int32 = RuntimeType.UNDEFINED + value_size_type = runtimeType(value_size) + valueSerializer.writeInt8(value_size_type) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeSizeOptions(value_size_value) + } + const value_verticalAlign = value.verticalAlign + let value_verticalAlign_type: int32 = RuntimeType.UNDEFINED + value_verticalAlign_type = runtimeType(value_verticalAlign) + valueSerializer.writeInt8(value_verticalAlign_type) + if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { + const value_verticalAlign_value = value_verticalAlign! + valueSerializer.writeInt32(value_verticalAlign_value) + } + const value_objectFit = value.objectFit + let value_objectFit_type: int32 = RuntimeType.UNDEFINED + value_objectFit_type = runtimeType(value_objectFit) + valueSerializer.writeInt8(value_objectFit_type) + if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { + const value_objectFit_value = value_objectFit! + valueSerializer.writeInt32(value_objectFit_value) + } + const value_layoutStyle = value.layoutStyle + let value_layoutStyle_type: int32 = RuntimeType.UNDEFINED + value_layoutStyle_type = runtimeType(value_layoutStyle) + valueSerializer.writeInt8(value_layoutStyle_type) + if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { + const value_layoutStyle_value = value_layoutStyle! + valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) + } } - writeLinearIndicatorController(value: LinearIndicatorController): void { + writeMutableStyledString(value: MutableStyledString): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -13706,33 +13883,375 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeStyleOptions(value: StyleOptions): void { + writeUrlStyle(value: UrlStyle): void { let valueSerializer: Serializer = this - const value_start = value.start - let value_start_type: int32 = RuntimeType.UNDEFINED - value_start_type = runtimeType(value_start) - valueSerializer.writeInt8(value_start_type) - if ((RuntimeType.UNDEFINED) != (value_start_type)) { - const value_start_value = value_start! - valueSerializer.writeNumber(value_start_value) + 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 } - const value_length = value.length - let value_length_type: int32 = RuntimeType.UNDEFINED - value_length_type = runtimeType(value_length) - valueSerializer.writeInt8(value_length_type) - if ((RuntimeType.UNDEFINED) != (value_length_type)) { - const value_length_value = value_length! - valueSerializer.writeNumber(value_length_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } - const value_styledKey = value.styledKey - valueSerializer.writeInt32(value_styledKey) + } + writeLineHeightStyle(value: LineHeightStyle): 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!") + } + } + writeParagraphStyleInterface(value: ParagraphStyleInterface): void { + let valueSerializer: Serializer = this + const value_textAlign = value.textAlign + let value_textAlign_type: int32 = RuntimeType.UNDEFINED + value_textAlign_type = runtimeType(value_textAlign) + valueSerializer.writeInt8(value_textAlign_type) + if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { + const value_textAlign_value = value_textAlign! + valueSerializer.writeInt32(value_textAlign_value) + } + const value_textIndent = value.textIndent + let value_textIndent_type: int32 = RuntimeType.UNDEFINED + value_textIndent_type = runtimeType(value_textIndent) + valueSerializer.writeInt8(value_textIndent_type) + if ((RuntimeType.UNDEFINED) != (value_textIndent_type)) { + const value_textIndent_value = value_textIndent! + valueSerializer.writeLengthMetrics(value_textIndent_value) + } + const value_maxLines = value.maxLines + let value_maxLines_type: int32 = RuntimeType.UNDEFINED + value_maxLines_type = runtimeType(value_maxLines) + valueSerializer.writeInt8(value_maxLines_type) + if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { + const value_maxLines_value = value_maxLines! + valueSerializer.writeNumber(value_maxLines_value) + } + const value_overflow = value.overflow + let value_overflow_type: int32 = RuntimeType.UNDEFINED + value_overflow_type = runtimeType(value_overflow) + valueSerializer.writeInt8(value_overflow_type) + if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { + const value_overflow_value = value_overflow! + valueSerializer.writeInt32(value_overflow_value) + } + const value_wordBreak = value.wordBreak + let value_wordBreak_type: int32 = RuntimeType.UNDEFINED + value_wordBreak_type = runtimeType(value_wordBreak) + valueSerializer.writeInt8(value_wordBreak_type) + if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { + const value_wordBreak_value = value_wordBreak! + valueSerializer.writeInt32(value_wordBreak_value) + } + const value_leadingMargin = value.leadingMargin + let value_leadingMargin_type: int32 = RuntimeType.UNDEFINED + value_leadingMargin_type = runtimeType(value_leadingMargin) + valueSerializer.writeInt8(value_leadingMargin_type) + if ((RuntimeType.UNDEFINED) != (value_leadingMargin_type)) { + const value_leadingMargin_value = value_leadingMargin! + let value_leadingMargin_value_type: int32 = RuntimeType.UNDEFINED + value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) + if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (value_leadingMargin_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + 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"))))) { + valueSerializer.writeInt8(1) + const value_leadingMargin_value_1 = unsafeCast(value_leadingMargin_value) + valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) + } + } + } + writeParagraphStyle(value: ParagraphStyle): 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!") + } + } + writeGestureStyleInterface(value: GestureStyleInterface): void { + let valueSerializer: Serializer = this + const value_onClick = value.onClick + let value_onClick_type: int32 = RuntimeType.UNDEFINED + value_onClick_type = runtimeType(value_onClick) + valueSerializer.writeInt8(value_onClick_type) + if ((RuntimeType.UNDEFINED) != (value_onClick_type)) { + const value_onClick_value = value_onClick! + valueSerializer.holdAndWriteCallback(value_onClick_value) + } + const value_onLongPress = value.onLongPress + let value_onLongPress_type: int32 = RuntimeType.UNDEFINED + value_onLongPress_type = runtimeType(value_onLongPress) + valueSerializer.writeInt8(value_onLongPress_type) + if ((RuntimeType.UNDEFINED) != (value_onLongPress_type)) { + const value_onLongPress_value = value_onLongPress! + valueSerializer.holdAndWriteCallback(value_onLongPress_value) + } + } + writeGestureStyle(value: GestureStyle): 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!") + } + } + writeBackgroundColorStyle(value: BackgroundColorStyle): 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!") + } + } + writeTextShadowStyle(value: TextShadowStyle): 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!") + } + } + writeLetterSpacingStyle(value: LetterSpacingStyle): 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!") + } + } + writeBaselineOffsetStyle(value: BaselineOffsetStyle): 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!") + } + } + writeDecorationStyle(value: DecorationStyle): 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!") + } + } + writeTextStyleInterface(value: TextStyleInterface): void { + let valueSerializer: Serializer = this + const value_fontColor = value.fontColor + let value_fontColor_type: int32 = RuntimeType.UNDEFINED + value_fontColor_type = runtimeType(value_fontColor) + valueSerializer.writeInt8(value_fontColor_type) + if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { + const value_fontColor_value = value_fontColor! + let value_fontColor_value_type: int32 = RuntimeType.UNDEFINED + value_fontColor_value_type = runtimeType(value_fontColor_value) + if (((RuntimeType.NUMBER) == (value_fontColor_value_type)) && ((unsafeCast(value_fontColor_value)) >= (0)) && ((unsafeCast(value_fontColor_value)) <= (11))) { + valueSerializer.writeInt8(0) + const value_fontColor_value_0 = unsafeCast(value_fontColor_value) + valueSerializer.writeInt32(value_fontColor_value_0) + } + 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))) { + 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))) { + valueSerializer.writeInt8(3) + const value_fontColor_value_3 = unsafeCast(value_fontColor_value) + valueSerializer.writeResource(value_fontColor_value_3) + } + } + const value_fontFamily = value.fontFamily + let value_fontFamily_type: int32 = RuntimeType.UNDEFINED + value_fontFamily_type = runtimeType(value_fontFamily) + valueSerializer.writeInt8(value_fontFamily_type) + if ((RuntimeType.UNDEFINED) != (value_fontFamily_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1) + const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) + valueSerializer.writeResource(value_fontFamily_value_1) + } + } + const value_fontSize = value.fontSize + let value_fontSize_type: int32 = RuntimeType.UNDEFINED + value_fontSize_type = runtimeType(value_fontSize) + valueSerializer.writeInt8(value_fontSize_type) + if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { + const value_fontSize_value = value_fontSize! + valueSerializer.writeLengthMetrics(value_fontSize_value) + } + const value_fontWeight = value.fontWeight + let value_fontWeight_type: int32 = RuntimeType.UNDEFINED + value_fontWeight_type = runtimeType(value_fontWeight) + valueSerializer.writeInt8(value_fontWeight_type) + if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { + 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))) { + valueSerializer.writeInt8(0) + const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) + valueSerializer.writeNumber(value_fontWeight_value_0) + } + else if (((RuntimeType.NUMBER) == (value_fontWeight_value_type)) && ((unsafeCast(value_fontWeight_value)) >= (0)) && ((unsafeCast(value_fontWeight_value)) <= (5))) { + valueSerializer.writeInt8(1) + const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) + valueSerializer.writeInt32(value_fontWeight_value_1) + } + 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) + } + } + const value_fontStyle = value.fontStyle + let value_fontStyle_type: int32 = RuntimeType.UNDEFINED + value_fontStyle_type = runtimeType(value_fontStyle) + valueSerializer.writeInt8(value_fontStyle_type) + if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { + const value_fontStyle_value = value_fontStyle! + valueSerializer.writeInt32(value_fontStyle_value) + } + } + writeTextStyle_styled_string(value: TextStyle_styled_string): 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!") + } + } + writeStyleOptions(value: StyleOptions): void { + let valueSerializer: Serializer = this + const value_start = value.start + let value_start_type: int32 = RuntimeType.UNDEFINED + value_start_type = runtimeType(value_start) + valueSerializer.writeInt8(value_start_type) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_length = value.length + let value_length_type: int32 = RuntimeType.UNDEFINED + value_length_type = runtimeType(value_length) + valueSerializer.writeInt8(value_length_type) + if ((RuntimeType.UNDEFINED) != (value_length_type)) { + const value_length_value = value_length! + valueSerializer.writeNumber(value_length_value) + } + const value_styledKey = value.styledKey + valueSerializer.writeInt32(value_styledKey) const value_styledValue = value.styledValue valueSerializer.writeStyledStringValue(value_styledValue) } writeReceiveCallback(value: ReceiveCallback): void { let valueSerializer: Serializer = this - const value___ReceiveCallbackStub = value.__ReceiveCallbackStub - valueSerializer.writeString(value___ReceiveCallbackStub) + const value__ReceiveCallbackStub = value._ReceiveCallbackStub + valueSerializer.writeString(value__ReceiveCallbackStub) } writeUIExtensionOptions(value: UIExtensionOptions): void { let valueSerializer: Serializer = this @@ -14588,6 +15107,23 @@ 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 @@ -14808,6 +15344,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_isOn_value) } } + writeTimePickerDialog(value: TimePickerDialog): 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!") + } + } writeTimePickerResult(value: TimePickerResult): void { let valueSerializer: Serializer = this const value_hour = value.hour @@ -14900,6 +15453,23 @@ export class Serializer extends SerializerBase { } } } + writeTextPickerDialog(value: TextPickerDialog): 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!") + } + } writeTextCascadePickerRangeContent(value: TextCascadePickerRangeContent): void { let valueSerializer: Serializer = this const value_text = value.text @@ -15150,6 +15720,74 @@ export class Serializer extends SerializerBase { valueSerializer.writeTextInputController(value_controller_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!") + } + } + writeStyledStringController(value: StyledStringController): 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!") + } + } + writeTextEditControllerEx(value: TextEditControllerEx): 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!") + } + } + writeTextBaseController(value: TextBaseController): 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!") + } + } writeTextClockOptions(value: TextClockOptions): void { let valueSerializer: Serializer = this const value_timeZoneOffset = value.timeZoneOffset @@ -15315,13 +15953,115 @@ export class Serializer extends SerializerBase { const value_index_value = value_index! valueSerializer.writeNumber(value_index_value) } - const value_controller = value.controller - let value_controller_type: int32 = RuntimeType.UNDEFINED - value_controller_type = runtimeType(value_controller) - valueSerializer.writeInt8(value_controller_type) - if ((RuntimeType.UNDEFINED) != (value_controller_type)) { - const value_controller_value = value_controller! - valueSerializer.writeTabsController(value_controller_value) + const value_controller = value.controller + let value_controller_type: int32 = RuntimeType.UNDEFINED + value_controller_type = runtimeType(value_controller) + valueSerializer.writeInt8(value_controller_type) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeTabsController(value_controller_value) + } + } + writeReplaceSymbolEffect(value: ReplaceSymbolEffect): 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!") + } + } + writeBounceSymbolEffect(value: BounceSymbolEffect): 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!") + } + } + writeDisappearSymbolEffect(value: DisappearSymbolEffect): 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!") + } + } + writeAppearSymbolEffect(value: AppearSymbolEffect): 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!") + } + } + writeHierarchicalSymbolEffect(value: HierarchicalSymbolEffect): 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!") + } + } + writeScaleSymbolEffect(value: ScaleSymbolEffect): 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!") } } writeSwiperContentTransitionProxy(value: SwiperContentTransitionProxy): void { @@ -16166,7 +16906,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeStyledString(value_previewText_value) } } - writeGestureEvent(value: GestureEvent): void { + writeRichEditorBaseController(value: RichEditorBaseController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -16664,6 +17404,23 @@ export class Serializer extends SerializerBase { } writeNodeController(value: NodeController): void { } + writeNavigationTransitionProxy(value: NavigationTransitionProxy): 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!") + } + } writeRouteInfo(value: RouteInfo): void { let valueSerializer: Serializer = this const value_name = value.name @@ -17101,23 +17858,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_itemIndexInGroup_value) } } - writeChildrenMainSize(value: ChildrenMainSize): 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!") - } - } writeChainAnimationOptions(value: ChainAnimationOptions): void { let valueSerializer: Serializer = this const value_minSpace = value.minSpace @@ -17203,6 +17943,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeScroller(value_scroller_value) } } + writeListScroller(value: ListScroller): 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!") + } + } writeLineOptions(value: LineOptions): void { let valueSerializer: Serializer = this const value_width = value.width @@ -17372,8 +18129,8 @@ export class Serializer extends SerializerBase { } writeResolutionQuality(value: ResolutionQuality): void { let valueSerializer: Serializer = this - const value___ResolutionQualityStub = value.__ResolutionQualityStub - valueSerializer.writeString(value___ResolutionQualityStub) + const value__ResolutionQualityStub = value._ResolutionQualityStub + valueSerializer.writeString(value__ResolutionQualityStub) } writeImageError(value: ImageError): void { let valueSerializer: Serializer = this @@ -17587,54 +18344,241 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value) } } - writeItemDragInfo(value: ItemDragInfo): void { - let valueSerializer: Serializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - } - writeComputedBarAttribute(value: ComputedBarAttribute): void { + writeItemDragInfo(value: ItemDragInfo): void { + let valueSerializer: Serializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeComputedBarAttribute(value: ComputedBarAttribute): void { + let valueSerializer: Serializer = this + const value_totalOffset = value.totalOffset + valueSerializer.writeNumber(value_totalOffset) + const value_totalLength = value.totalLength + valueSerializer.writeNumber(value_totalLength) + } + writeGridLayoutOptions(value: GridLayoutOptions): void { + let valueSerializer: Serializer = this + const value_regularSize = value.regularSize + const value_regularSize_0 = value_regularSize[0] + valueSerializer.writeNumber(value_regularSize_0) + const value_regularSize_1 = value_regularSize[1] + valueSerializer.writeNumber(value_regularSize_1) + const value_irregularIndexes = value.irregularIndexes + let value_irregularIndexes_type: int32 = RuntimeType.UNDEFINED + value_irregularIndexes_type = runtimeType(value_irregularIndexes) + valueSerializer.writeInt8(value_irregularIndexes_type) + if ((RuntimeType.UNDEFINED) != (value_irregularIndexes_type)) { + const value_irregularIndexes_value = value_irregularIndexes! + valueSerializer.writeInt32(value_irregularIndexes_value.length) + for (let i = 0; i < value_irregularIndexes_value.length; i++) { + const value_irregularIndexes_value_element: number = value_irregularIndexes_value[i] + valueSerializer.writeNumber(value_irregularIndexes_value_element) + } + } + const value_onGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex + let value_onGetIrregularSizeByIndex_type: int32 = RuntimeType.UNDEFINED + value_onGetIrregularSizeByIndex_type = runtimeType(value_onGetIrregularSizeByIndex) + valueSerializer.writeInt8(value_onGetIrregularSizeByIndex_type) + if ((RuntimeType.UNDEFINED) != (value_onGetIrregularSizeByIndex_type)) { + const value_onGetIrregularSizeByIndex_value = value_onGetIrregularSizeByIndex! + valueSerializer.holdAndWriteCallback(value_onGetIrregularSizeByIndex_value) + } + const value_onGetRectByIndex = value.onGetRectByIndex + let value_onGetRectByIndex_type: int32 = RuntimeType.UNDEFINED + value_onGetRectByIndex_type = runtimeType(value_onGetRectByIndex) + valueSerializer.writeInt8(value_onGetRectByIndex_type) + if ((RuntimeType.UNDEFINED) != (value_onGetRectByIndex_type)) { + const value_onGetRectByIndex_value = value_onGetRectByIndex! + valueSerializer.holdAndWriteCallback(value_onGetRectByIndex_value) + } + } + writePanRecognizer(value: PanRecognizer): 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!") + } + } + writeScrollableTargetInfo(value: ScrollableTargetInfo): 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!") + } + } + 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")) + { + 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!") + } + } + writeSwipeGestureEvent(value: SwipeGestureEvent): 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!") + } + } + writeRotationGestureEvent(value: RotationGestureEvent): 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!") + } + } + writePinchGestureEvent(value: PinchGestureEvent): 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!") + } + } + writePanGestureEvent(value: PanGestureEvent): 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!") + } + } + writeLongPressGestureEvent(value: LongPressGestureEvent): void { let valueSerializer: Serializer = this - const value_totalOffset = value.totalOffset - valueSerializer.writeNumber(value_totalOffset) - const value_totalLength = value.totalLength - valueSerializer.writeNumber(value_totalLength) + 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!") + } } - writeGridLayoutOptions(value: GridLayoutOptions): void { + writeTapGestureEvent(value: TapGestureEvent): void { let valueSerializer: Serializer = this - const value_regularSize = value.regularSize - const value_regularSize_0 = value_regularSize[0] - valueSerializer.writeNumber(value_regularSize_0) - const value_regularSize_1 = value_regularSize[1] - valueSerializer.writeNumber(value_regularSize_1) - const value_irregularIndexes = value.irregularIndexes - let value_irregularIndexes_type: int32 = RuntimeType.UNDEFINED - value_irregularIndexes_type = runtimeType(value_irregularIndexes) - valueSerializer.writeInt8(value_irregularIndexes_type) - if ((RuntimeType.UNDEFINED) != (value_irregularIndexes_type)) { - const value_irregularIndexes_value = value_irregularIndexes! - valueSerializer.writeInt32(value_irregularIndexes_value.length) - for (let i = 0; i < value_irregularIndexes_value.length; i++) { - const value_irregularIndexes_value_element: number = value_irregularIndexes_value[i] - valueSerializer.writeNumber(value_irregularIndexes_value_element) - } - } - const value_onGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex - let value_onGetIrregularSizeByIndex_type: int32 = RuntimeType.UNDEFINED - value_onGetIrregularSizeByIndex_type = runtimeType(value_onGetIrregularSizeByIndex) - valueSerializer.writeInt8(value_onGetIrregularSizeByIndex_type) - if ((RuntimeType.UNDEFINED) != (value_onGetIrregularSizeByIndex_type)) { - const value_onGetIrregularSizeByIndex_value = value_onGetIrregularSizeByIndex! - valueSerializer.holdAndWriteCallback(value_onGetIrregularSizeByIndex_value) + 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 } - const value_onGetRectByIndex = value.onGetRectByIndex - let value_onGetRectByIndex_type: int32 = RuntimeType.UNDEFINED - value_onGetRectByIndex_type = runtimeType(value_onGetRectByIndex) - valueSerializer.writeInt8(value_onGetRectByIndex_type) - if ((RuntimeType.UNDEFINED) != (value_onGetRectByIndex_type)) { - const value_onGetRectByIndex_value = value_onGetRectByIndex! - valueSerializer.holdAndWriteCallback(value_onGetRectByIndex_value) + else + { + throw new Error("Value is not a MaterializedBase instance!") } } writeGaugeIndicatorOptions(value: GaugeIndicatorOptions): void { @@ -18000,6 +18944,23 @@ export class Serializer extends SerializerBase { } } } + writeDatePickerDialog(value: DatePickerDialog): 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!") + } + } writeDatePickerResult(value: DatePickerResult): void { let valueSerializer: Serializer = this const value_year = value.year @@ -18121,7 +19082,7 @@ export class Serializer extends SerializerBase { const value_colors_value = value_colors! valueSerializer.writeInt32(value_colors_value.length) for (let i = 0; i < value_colors_value.length; i++) { - const value_colors_value_element: ResourceColor | LinearGradient_data_panel = value_colors_value[i] + 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)))) { @@ -18150,10 +19111,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value_colors_value_element_0_3) } } - else if (((RuntimeType.OBJECT == value_colors_value_element_type))) { + else if (((RuntimeType.OBJECT) == (value_colors_value_element_type)) && (value_colors_value_element instanceof LinearGradient)) { valueSerializer.writeInt8(1) - const value_colors_value_element_1 = unsafeCast(value_colors_value_element) - valueSerializer.writeLinearGradient_data_panel(value_colors_value_element_1) + const value_colors_value_element_1 = unsafeCast(value_colors_value_element) + valueSerializer.writeLinearGradient(value_colors_value_element_1) } } } @@ -18183,6 +19144,34 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_type_value) } } + writeColorStop(value: ColorStop): void { + let valueSerializer: Serializer = this + const value_color = value.color + let value_color_type: int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + if (((RuntimeType.NUMBER) == (value_color_type)) && ((unsafeCast(value_color)) >= (0)) && ((unsafeCast(value_color)) <= (11))) { + valueSerializer.writeInt8(0) + const value_color_0 = unsafeCast(value_color) + valueSerializer.writeInt32(value_color_0) + } + 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))) { + valueSerializer.writeInt8(2) + const value_color_2 = unsafeCast(value_color) + valueSerializer.writeString(value_color_2) + } + else if (((RuntimeType.OBJECT == value_color_type))) { + valueSerializer.writeInt8(3) + const value_color_3 = unsafeCast(value_color) + valueSerializer.writeResource(value_color_3) + } + const value_offset = value.offset + valueSerializer.writeLength(value_offset) + } writeCustomDialogControllerOptions(value: CustomDialogControllerOptions): void { let valueSerializer: Serializer = this const value_builder = value.builder @@ -18717,86 +19706,38 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_hoverModeArea_value) } } - writeTextBackgroundStyle(value: TextBackgroundStyle): void { + writeCustomDialogController(value: CustomDialogController): void { let valueSerializer: Serializer = this - const value_color = value.color - let value_color_type: int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - 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)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_color_value_0 = unsafeCast(value_color_value) - valueSerializer.writeInt32(value_color_value_0) - } - 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))) { - 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))) { - valueSerializer.writeInt8(3) - const value_color_value_3 = unsafeCast(value_color_value) - valueSerializer.writeResource(value_color_value_3) - } + 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 } - const value_radius = value.radius - let value_radius_type: int32 = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - valueSerializer.writeInt8(value_radius_type) - if ((RuntimeType.UNDEFINED) != (value_radius_type)) { - 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)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { - valueSerializer.writeInt8(0) - const value_radius_value_0 = unsafeCast(value_radius_value) - valueSerializer.writeLength(value_radius_value_0) - } - else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (((value_radius_value!.hasOwnProperty("topLeft")) || (value_radius_value!.hasOwnProperty("topRight")) || (value_radius_value!.hasOwnProperty("bottomLeft")) || (value_radius_value!.hasOwnProperty("bottomRight"))))) { - valueSerializer.writeInt8(1) - const value_radius_value_1 = unsafeCast(value_radius_value) - const value_radius_value_1_topLeft = value_radius_value_1.topLeft - let value_radius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) - valueSerializer.writeInt8(value_radius_value_1_topLeft_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! - valueSerializer.writeLength(value_radius_value_1_topLeft_value) - } - const value_radius_value_1_topRight = value_radius_value_1.topRight - let value_radius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) - valueSerializer.writeInt8(value_radius_value_1_topRight_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { - const value_radius_value_1_topRight_value = value_radius_value_1_topRight! - valueSerializer.writeLength(value_radius_value_1_topRight_value) - } - const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft - let value_radius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) - } - const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight - let value_radius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! - valueSerializer.writeLength(value_radius_value_1_bottomRight_value) - } - } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeContextMenu(value: ContextMenu): 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!") } } writeSceneOptions(value: SceneOptions): void { @@ -18825,19 +19766,53 @@ export class Serializer extends SerializerBase { 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) } } - const value_modelType = value.modelType - let value_modelType_type: int32 = RuntimeType.UNDEFINED - value_modelType_type = runtimeType(value_modelType) - valueSerializer.writeInt8(value_modelType_type) - if ((RuntimeType.UNDEFINED) != (value_modelType_type)) { - const value_modelType_value = value_modelType! - valueSerializer.writeInt32(value_modelType_value) + const value_modelType = value.modelType + let value_modelType_type: int32 = RuntimeType.UNDEFINED + value_modelType_type = runtimeType(value_modelType) + valueSerializer.writeInt8(value_modelType_type) + if ((RuntimeType.UNDEFINED) != (value_modelType_type)) { + const value_modelType_value = value_modelType! + valueSerializer.writeInt32(value_modelType_value) + } + } + writeUICommonEvent(value: UICommonEvent): 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!") + } + } + writeChildrenMainSize(value: ChildrenMainSize): 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!") } } writeOffsetResult(value: OffsetResult): void { @@ -18847,6 +19822,57 @@ export class Serializer extends SerializerBase { const value_yOffset = value.yOffset valueSerializer.writeNumber(value_yOffset) } + writeTextContentControllerBase(value: TextContentControllerBase): 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!") + } + } + writeView(value: View): 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!") + } + } + writeMeasurable(value: Measurable): 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!") + } + } writeSpringBackAction(value: SpringBackAction): void { let valueSerializer: Serializer = this const value_springBack = value.springBack @@ -19109,25 +20135,8 @@ export class Serializer extends SerializerBase { } writeUniformDataType(value: UniformDataType): void { let valueSerializer: Serializer = this - const value___UniformDataTypeStub = value.__UniformDataTypeStub - valueSerializer.writeString(value___UniformDataTypeStub) - } - writeDragEvent(value: DragEvent): 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__UniformDataTypeStub = value._UniformDataTypeStub + valueSerializer.writeString(value__UniformDataTypeStub) } writeLocalizedAlignRuleOptions(value: LocalizedAlignRuleOptions): void { let valueSerializer: Serializer = this @@ -19299,74 +20308,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeLengthMetrics(value_strokeWidth_value) } } - writeKeyEvent(value: KeyEvent): 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!") - } - } - writeMouseEvent(value: MouseEvent): 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!") - } - } - writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): 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!") - } - } - writeHoverEvent(value: HoverEvent): 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!") - } - } writeOutlineOptions(value: OutlineOptions): void { let valueSerializer: Serializer = this const value_width = value.width @@ -20323,13 +21264,13 @@ export class Serializer extends SerializerBase { } writeFilter(value: Filter): void { let valueSerializer: Serializer = this - const value___FilterStub = value.__FilterStub - valueSerializer.writeString(value___FilterStub) + const value__FilterStub = value._FilterStub + valueSerializer.writeString(value__FilterStub) } writeVisualEffect(value: VisualEffect): void { let valueSerializer: Serializer = this - const value___VisualEffectStub = value.__VisualEffectStub - valueSerializer.writeString(value___VisualEffectStub) + const value__VisualEffectStub = value._VisualEffectStub + valueSerializer.writeString(value__VisualEffectStub) } writeForegroundEffectOptions(value: ForegroundEffectOptions): void { let valueSerializer: Serializer = this @@ -20575,6 +21516,57 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeString(value_id) } + writeKeyEvent(value: KeyEvent): 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!") + } + } + writeDragEvent(value: DragEvent): 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!") + } + } + writePixelMapMock(value: PixelMapMock): 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!") + } + } writeTouchObject(value: TouchObject): void { let valueSerializer: Serializer = this const value_type = value.type @@ -20598,6 +21590,74 @@ export class Serializer extends SerializerBase { const value_y = value.y valueSerializer.writeNumber(value_y) } + writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): 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!") + } + } + writeMouseEvent(value: MouseEvent): 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!") + } + } + writeHoverEvent(value: HoverEvent): 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!") + } + } + writeBaseEvent(value: BaseEvent): 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!") + } + } writePointLightStyle(value: PointLightStyle): void { let valueSerializer: Serializer = this const value_lightSource = value.lightSource @@ -20785,21 +21845,78 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } + writeCanvasRenderer(value: CanvasRenderer): 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 - const value_antialias = value.antialias - let value_antialias_type: int32 = RuntimeType.UNDEFINED - value_antialias_type = runtimeType(value_antialias) - valueSerializer.writeInt8(value_antialias_type) - if ((RuntimeType.UNDEFINED) != (value_antialias_type)) { - const value_antialias_value = value_antialias! - valueSerializer.writeBoolean(value_antialias_value) + 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!") } } writeLengthMetricsUnit(value: LengthMetricsUnit): void { let valueSerializer: Serializer = this - const value___LengthMetricsUnitStub = value.__LengthMetricsUnitStub - valueSerializer.writeString(value___LengthMetricsUnitStub) + const value__LengthMetricsUnitStub = value._LengthMetricsUnitStub + valueSerializer.writeString(value__LengthMetricsUnitStub) + } + writeCanvasPath(value: CanvasPath): 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!") + } + } + writeCalendarPickerDialog(value: CalendarPickerDialog): 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!") + } } writeCalendarOptions(value: CalendarOptions): void { let valueSerializer: Serializer = this @@ -21671,7 +22788,73 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_maxCount_value) } } + writeScrollMotion(value: ScrollMotion): 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!") + } + } + writeFrictionMotion(value: FrictionMotion): 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!") + } + } writeSpringMotion(value: SpringMotion): 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!") + } + } + writeSpringProp(value: SpringProp): 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!") + } } writeAlphabetIndexerOptions(value: AlphabetIndexerOptions): void { let valueSerializer: Serializer = this @@ -21792,6 +22975,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_primary_value) } } + writeAlertDialog(value: AlertDialog): 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!") + } + } writeDismissDialogAction(value: DismissDialogAction): void { let valueSerializer: Serializer = this const value_dismiss = value.dismiss @@ -21836,6 +23036,91 @@ export class Serializer extends SerializerBase { const value_action = value.action valueSerializer.holdAndWriteCallback(value_action) } + writeActionSheet(value: ActionSheet): 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!") + } + } + writeEventEmulator(value: EventEmulator): 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!") + } + } + writeNavExtender(value: NavExtender): 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!") + } + } + writeGlobalScope_ohos_arkui_performanceMonitor(value: GlobalScope_ohos_arkui_performanceMonitor): 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!") + } + } + writeGlobalScope_ohos_arkui_componentSnapshot(value: GlobalScope_ohos_arkui_componentSnapshot): 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!") + } + } writeWebHeader(value: WebHeader): void { let valueSerializer: Serializer = this const value_headerKey = value.headerKey @@ -21843,6 +23128,40 @@ export class Serializer extends SerializerBase { const value_headerValue = value.headerValue valueSerializer.writeString(value_headerValue) } + writeLazyForEachOps(value: LazyForEachOps): 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!") + } + } + writeAnimationExtender(value: AnimationExtender): 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!") + } + } writeLength(value: Length): void { const valueType = runtimeType(value) this.writeInt8(valueType) diff --git a/arkoala/arkui/src/shared/generated-utils.ts b/arkoala/arkui/src/shared/generated-utils.ts index caf8a8591..a8f915e93 100644 --- a/arkoala/arkui/src/shared/generated-utils.ts +++ b/arkoala/arkui/src/shared/generated-utils.ts @@ -1,35 +1,26 @@ -/* - * Copyright (c) 2022-2024 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. +/** + * TODO: move to compat */ +/** + * Only to workaround non-int enums + */ export function unsafeCast(value: unknown): T { return value as unknown as T } -export function unsafeCastAny(value: unknown): any { - return value as any -} - -// TODO for generated export enum GestureName { Tap, LongPress, Pan, Pinch, Swipe, - Rotation + Rotation, + Group +} + +export class GestureComponent { + public type?: GestureName + public value?: T + public hasEvent?: Int32Array } -export interface GestureComponent { - type: GestureName -} \ 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 2af7ff337..75a4c7974 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -30,29 +30,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Int32& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Length& value) -{ - return static_cast(value.type); -} -template <> -inline void WriteToString(std::string* result, const Opt_Length* 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_Length& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Number& value) { return INTEROP_RUNTIME_NUMBER; @@ -138,61 +115,12 @@ inline Ark_RuntimeType runtimeType(const Opt_String& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LengthUnit& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_LengthUnit value) { - result->append("Ark_LengthUnit("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_LengthUnit* 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_LengthUnit& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_Length& value) { - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_BorderRadiuses* value) { - result->append("{"); - // Ark_Length topLeft - result->append(".topLeft="); - WriteToString(result, &value->topLeft); - // Ark_Length topRight - result->append(", "); - result->append(".topRight="); - WriteToString(result, &value->topRight); - // Ark_Length bottomLeft - result->append(", "); - result->append(".bottomLeft="); - WriteToString(result, &value->bottomLeft); - // Ark_Length bottomRight - result->append(", "); - result->append(".bottomRight="); - WriteToString(result, &value->bottomRight); - result->append("}"); + return static_cast(value.type); } template <> -inline void WriteToString(std::string* result, const Opt_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_Length* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -205,7 +133,7 @@ inline void WriteToString(std::string* result, const Opt_BorderRadiuses* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_Length& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -257,18 +185,18 @@ inline Ark_RuntimeType runtimeType(const Opt_Resource& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Color& value) +inline Ark_RuntimeType runtimeType(const Ark_ColoringStrategy& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Color value) { - result->append("Ark_Color("); +inline void WriteToString(std::string* result, const Ark_ColoringStrategy value) { + result->append("Ark_ColoringStrategy("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Color* value) { +inline void WriteToString(std::string* result, const Opt_ColoringStrategy* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -281,34 +209,28 @@ inline void WriteToString(std::string* result, const Opt_Color* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Color& value) +inline Ark_RuntimeType runtimeType(const Opt_ColoringStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Tuple_Dimension_Dimension& value) +inline Ark_RuntimeType runtimeType(const Ark_Color& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Tuple_Dimension_Dimension* value) { - result->append("{"); - // Ark_Length value0 - result->append(".value0="); - WriteToString(result, &value->value0); - // Ark_Length value1 - result->append(", "); - result->append(".value1="); - WriteToString(result, &value->value1); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_Color value) { + result->append("Ark_Color("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Tuple_Dimension_Dimension* value) { +inline void WriteToString(std::string* result, const Opt_Color* 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); @@ -316,17 +238,28 @@ inline void WriteToString(std::string* result, const Opt_Tuple_Dimension_Dimensi result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Tuple_Dimension_Dimension& value) +inline Ark_RuntimeType runtimeType(const Opt_Color& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_PixelMap* value) { +inline Ark_RuntimeType runtimeType(const Ark_LengthUnit& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_LengthUnit value) { + result->append("Ark_LengthUnit("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LengthUnit* 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); @@ -334,17 +267,28 @@ inline void WriteToString(std::string* result, const Opt_PixelMap* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_PixelMap& value) +inline Ark_RuntimeType runtimeType(const Opt_LengthUnit& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_LengthMetrics* value) { +inline Ark_RuntimeType runtimeType(const Ark_FontWeight& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_FontWeight value) { + result->append("Ark_FontWeight("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_FontWeight* 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); @@ -352,42 +296,26 @@ inline void WriteToString(std::string* result, const Opt_LengthMetrics* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LengthMetrics& value) +inline Ark_RuntimeType runtimeType(const Opt_FontWeight& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Padding& value) +inline Ark_RuntimeType runtimeType(const Ark_ICurve& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Padding* value) { - result->append("{"); - // Ark_Length top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_Length right - result->append(", "); - result->append(".right="); - WriteToString(result, &value->right); - // Ark_Length bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_Length left - result->append(", "); - result->append(".left="); - WriteToString(result, &value->left); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ICurve value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Padding* value) { +inline void WriteToString(std::string* result, const Opt_ICurve* 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); @@ -395,23 +323,23 @@ inline void WriteToString(std::string* result, const Opt_Padding* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Padding& value) +inline Ark_RuntimeType runtimeType(const Opt_ICurve& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Ark_Curve& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ColoringStrategy value) { - result->append("Ark_ColoringStrategy("); +inline void WriteToString(std::string* result, const Ark_Curve value) { + result->append("Ark_Curve("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ColoringStrategy* value) { +inline void WriteToString(std::string* result, const Opt_Curve* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -424,39 +352,37 @@ inline void WriteToString(std::string* result, const Opt_ColoringStrategy* value result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_Curve& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_BorderRadiuses& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_BorderRadiuses: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Dimension_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Ark_BorderRadiuses* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); + // Ark_Length topLeft + result->append(".topLeft="); + WriteToString(result, &value->topLeft); + // Ark_Length topRight result->append(", "); - // Ark_Length - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_BorderRadiuses - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } + result->append(".topRight="); + WriteToString(result, &value->topRight); + // Ark_Length bottomLeft + result->append(", "); + result->append(".bottomLeft="); + WriteToString(result, &value->bottomLeft); + // Ark_Length bottomRight + result->append(", "); + result->append(".bottomRight="); + WriteToString(result, &value->bottomRight); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Dimension_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_BorderRadiuses* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -469,51 +395,37 @@ inline void WriteToString(std::string* result, const Opt_Union_Dimension_BorderR result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ResourceColor& value) +inline Ark_RuntimeType runtimeType(const Ark_Padding& value) { - 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: throw "Bad selector in Ark_ResourceColor: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ResourceColor* value) { +inline void WriteToString(std::string* result, const Ark_Padding* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); + // Ark_Length top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_Length right result->append(", "); - // Ark_Color - 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_String - 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(".right="); + WriteToString(result, &value->right); + // Ark_Length bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_Length left + result->append(", "); + result->append(".left="); + WriteToString(result, &value->left); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ResourceColor* value) { +inline void WriteToString(std::string* result, const Opt_Padding* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -526,29 +438,29 @@ inline void WriteToString(std::string* result, const Opt_ResourceColor* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ResourceColor& value) +inline Ark_RuntimeType runtimeType(const Opt_Padding& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Ark_Tuple_Dimension_Dimension& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Ark_Tuple_Dimension_Dimension* value) { result->append("{"); - // Ark_PixelMap pixelMap - result->append(".pixelMap="); - WriteToString(result, &value->pixelMap); - // Ark_Tuple_Dimension_Dimension size + // Ark_Length value0 + result->append(".value0="); + WriteToString(result, &value->value0); + // Ark_Length value1 result->append(", "); - result->append(".size="); - WriteToString(result, &value->size); + result->append(".value1="); + WriteToString(result, &value->value1); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Opt_Tuple_Dimension_Dimension* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -561,44 +473,49 @@ inline void WriteToString(std::string* result, const Opt_LeadingMarginPlaceholde result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Opt_Tuple_Dimension_Dimension& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_PixelMap& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_LengthMetrics_BorderRadiuses: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_BorderRadiuses* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_LengthMetrics - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_BorderRadiuses - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); +inline void WriteToString(std::string* result, const Ark_PixelMap value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PixelMap* 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 void WriteToString(std::string* result, const Opt_Union_LengthMetrics_BorderRadiuses* value) { +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); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -606,31 +523,31 @@ inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Bor result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_BorderRadiuses& value) +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_LengthMetrics_Padding& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Resource& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_LengthMetrics_Padding: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_Resource: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Padding* value) { +inline void WriteToString(std::string* result, const Ark_Union_Number_Resource* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_LengthMetrics + // Ark_Number if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_Padding + // Ark_Resource if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -638,7 +555,7 @@ inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Pad result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Padding* value) { +inline void WriteToString(std::string* result, const Opt_Union_Number_Resource* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -651,39 +568,51 @@ inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Pad result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Padding& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Margin& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Color_String_Resource_ColoringStrategy& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_LengthMetrics_Margin: " + std::to_string(value.selector); + case 2: return runtimeType(value.value2); + case 3: return runtimeType(value.value3); + default: INTEROP_FATAL("Bad selector in Ark_Union_Color_String_Resource_ColoringStrategy: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Margin* value) { +inline void WriteToString(std::string* result, const Ark_Union_Color_String_Resource_ColoringStrategy* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_LengthMetrics + // Ark_Color if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } - // Ark_Padding + // Ark_String if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); } + // Ark_Resource + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, &value->value2); + } + // Ark_ColoringStrategy + if (value->selector == 3) { + result->append(".value3="); + WriteToString(result, value->value3); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Margin* value) { +inline void WriteToString(std::string* result, const Opt_Union_Color_String_Resource_ColoringStrategy* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -696,23 +625,23 @@ inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Mar result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Margin& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Color_String_Resource_ColoringStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FontWeight& value) +inline Ark_RuntimeType runtimeType(const Ark_ShadowType& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_FontWeight value) { - result->append("Ark_FontWeight("); +inline void WriteToString(std::string* result, const Ark_ShadowType value) { + result->append("Ark_ShadowType("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_FontWeight* value) { +inline void WriteToString(std::string* result, const Opt_ShadowType* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -725,17 +654,26 @@ inline void WriteToString(std::string* result, const Opt_FontWeight* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_FontWeight& value) +inline Ark_RuntimeType runtimeType(const Opt_ShadowType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_ICurve* value) { +inline Ark_RuntimeType runtimeType(const Ark_LengthMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LengthMetrics value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LengthMetrics* 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); @@ -743,28 +681,34 @@ inline void WriteToString(std::string* result, const Opt_ICurve* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ICurve& value) +inline Ark_RuntimeType runtimeType(const Opt_LengthMetrics& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Curve& value) +inline Ark_RuntimeType runtimeType(const Ark_Position& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Curve value) { - result->append("Ark_Curve("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Position* value) { + result->append("{"); + // Ark_Length x + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Length y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Curve* value) { +inline void WriteToString(std::string* result, const Opt_Position* 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); @@ -772,17 +716,23 @@ inline void WriteToString(std::string* result, const Opt_Curve* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Curve& value) +inline Ark_RuntimeType runtimeType(const Opt_Position& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) +inline Ark_RuntimeType runtimeType(const Ark_FontStyle& value) { - return INTEROP_RUNTIME_BOOLEAN; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Opt_Boolean* value) { +inline void WriteToString(std::string* result, const Ark_FontStyle value) { + result->append("Ark_FontStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_FontStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -795,26 +745,26 @@ inline void WriteToString(std::string* result, const Opt_Boolean* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) +inline Ark_RuntimeType runtimeType(const Opt_FontStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Resource& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_Resource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_Resource* value) { +inline void WriteToString(std::string* result, const Ark_Union_String_Resource* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Number + // Ark_String if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); @@ -827,7 +777,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Number_Resource* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_Resource* value) { +inline void WriteToString(std::string* result, const Opt_Union_String_Resource* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -840,51 +790,45 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_Resource* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_Resource& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_String_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Color_String_Resource_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_FontWeight_Number_String& value) { 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: throw "Bad selector in Ark_Union_Color_String_Resource_ColoringStrategy: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_FontWeight_Number_String: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Color_String_Resource_ColoringStrategy* value) { +inline void WriteToString(std::string* result, const Ark_Union_FontWeight_Number_String* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Color + // Ark_FontWeight if (value->selector == 0) { result->append(".value0="); WriteToString(result, value->value0); } - // Ark_String + // Ark_Number if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); } - // Ark_Resource + // Ark_String if (value->selector == 2) { result->append(".value2="); WriteToString(result, &value->value2); } - // Ark_ColoringStrategy - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, value->value3); - } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Color_String_Resource_ColoringStrategy* value) { +inline void WriteToString(std::string* result, const Opt_Union_FontWeight_Number_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -897,28 +841,44 @@ inline void WriteToString(std::string* result, const Opt_Union_Color_String_Reso result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Color_String_Resource_ColoringStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_FontWeight_Number_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ShadowType& value) +inline Ark_RuntimeType runtimeType(const Ark_ResourceStr& value) { - return INTEROP_RUNTIME_NUMBER; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_ResourceStr: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_ShadowType value) { - result->append("Ark_ShadowType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_ResourceStr* 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_Resource + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ShadowType* value) { +inline void WriteToString(std::string* result, const Opt_ResourceStr* 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); @@ -926,29 +886,25 @@ inline void WriteToString(std::string* result, const Opt_ShadowType* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ShadowType& value) +inline Ark_RuntimeType runtimeType(const Opt_ResourceStr& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextBackgroundStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_SymbolGlyphModifier& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextBackgroundStyle* value) { +inline void WriteToString(std::string* result, const Ark_SymbolGlyphModifier* value) { result->append("{"); - // Ark_ResourceColor color - result->append(".color="); - WriteToString(result, &value->color); - // Ark_Union_Dimension_BorderRadiuses radius - result->append(", "); - result->append(".radius="); - WriteToString(result, &value->radius); + // Ark_String _SymbolGlyphModifierStub + result->append("._SymbolGlyphModifierStub="); + WriteToString(result, &value->_SymbolGlyphModifierStub); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextBackgroundStyle* value) { +inline void WriteToString(std::string* result, const Opt_SymbolGlyphModifier* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -961,39 +917,39 @@ inline void WriteToString(std::string* result, const Opt_TextBackgroundStyle* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextBackgroundStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_SymbolGlyphModifier& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Curve_ICurve& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_LeadingMarginPlaceholder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Curve_ICurve: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Ark_Union_Curve_ICurve* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Number + // Ark_Curve if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } - // Ark_LeadingMarginPlaceholder + // Ark_ICurve if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Opt_Union_Curve_ICurve* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1006,57 +962,44 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_LeadingMar result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Curve_ICurve& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_WordBreak& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_BorderRadiuses& value) { - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_WordBreak value) { - result->append("Ark_WordBreak("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_BorderRadiuses: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Opt_WordBreak* 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_Dimension_BorderRadiuses* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Length + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_BorderRadiuses + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); } result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_WordBreak& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_TextOverflow& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextOverflow value) { - result->append("Ark_TextOverflow("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextOverflow* value) { +inline void WriteToString(std::string* result, const Opt_Union_Dimension_BorderRadiuses* 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); @@ -1064,28 +1007,44 @@ inline void WriteToString(std::string* result, const Opt_TextOverflow* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextOverflow& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextAlign& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_Margin& value) { - return INTEROP_RUNTIME_NUMBER; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_Margin: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_TextAlign value) { - result->append("Ark_TextAlign("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Union_Dimension_Margin* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Length + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_Padding + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextAlign* value) { +inline void WriteToString(std::string* result, const Opt_Union_Dimension_Margin* 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); @@ -1093,33 +1052,29 @@ inline void WriteToString(std::string* result, const Opt_TextAlign* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextAlign& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_Margin& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageAttachmentLayoutStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_LeadingMarginPlaceholder& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ImageAttachmentLayoutStyle* value) { +inline void WriteToString(std::string* result, const Ark_LeadingMarginPlaceholder* value) { result->append("{"); - // Ark_Union_LengthMetrics_Margin margin - result->append(".margin="); - WriteToString(result, &value->margin); - // Ark_Union_LengthMetrics_Padding padding - result->append(", "); - result->append(".padding="); - WriteToString(result, &value->padding); - // Ark_Union_LengthMetrics_BorderRadiuses borderRadius + // Ark_PixelMap pixelMap + result->append(".pixelMap="); + WriteToString(result, value->pixelMap); + // Ark_Tuple_Dimension_Dimension size result->append(", "); - result->append(".borderRadius="); - WriteToString(result, &value->borderRadius); + result->append(".size="); + WriteToString(result, &value->size); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ImageAttachmentLayoutStyle* value) { +inline void WriteToString(std::string* result, const Opt_LeadingMarginPlaceholder* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1132,23 +1087,23 @@ inline void WriteToString(std::string* result, const Opt_ImageAttachmentLayoutSt result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentLayoutStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_LeadingMarginPlaceholder& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageFit& value) +inline Ark_RuntimeType runtimeType(const Ark_TextDecorationStyle& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ImageFit value) { - result->append("Ark_ImageFit("); +inline void WriteToString(std::string* result, const Ark_TextDecorationStyle value) { + result->append("Ark_TextDecorationStyle("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ImageFit* value) { +inline void WriteToString(std::string* result, const Opt_TextDecorationStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1161,28 +1116,56 @@ inline void WriteToString(std::string* result, const Opt_ImageFit* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageFit& value) +inline Ark_RuntimeType runtimeType(const Opt_TextDecorationStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageSpanAlignment& value) +inline Ark_RuntimeType runtimeType(const Ark_ResourceColor& value) { - return INTEROP_RUNTIME_NUMBER; + 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_ResourceColor: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_ImageSpanAlignment value) { - result->append("Ark_ImageSpanAlignment("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_ResourceColor* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Color + 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_String + 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 void WriteToString(std::string* result, const Opt_ImageSpanAlignment* value) { +inline void WriteToString(std::string* result, const Opt_ResourceColor* 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); @@ -1190,34 +1173,28 @@ inline void WriteToString(std::string* result, const Opt_ImageSpanAlignment* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageSpanAlignment& value) +inline Ark_RuntimeType runtimeType(const Opt_ResourceColor& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SizeOptions& value) +inline Ark_RuntimeType runtimeType(const Ark_TextDecorationType& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_SizeOptions* value) { - result->append("{"); - // Ark_Length width - result->append(".width="); - WriteToString(result, &value->width); - // Ark_Length height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_TextDecorationType value) { + result->append("Ark_TextDecorationType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_SizeOptions* value) { +inline void WriteToString(std::string* result, const Opt_TextDecorationType* 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); @@ -1225,7 +1202,7 @@ inline void WriteToString(std::string* result, const Opt_SizeOptions* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SizeOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_TextDecorationType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -1269,23 +1246,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_ShadowOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextDecorationStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_ShadowOptions& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextDecorationStyle value) { - result->append("Ark_TextDecorationStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_ShadowOptions* value) { + result->append("{"); + // Ark_Union_Number_Resource radius + result->append(".radius="); + WriteToString(result, &value->radius); + // Ark_ShadowType type + result->append(", "); + result->append(".type="); + WriteToString(result, &value->type); + // Ark_Union_Color_String_Resource_ColoringStrategy color + result->append(", "); + result->append(".color="); + WriteToString(result, &value->color); + // Ark_Union_Number_Resource offsetX + result->append(", "); + result->append(".offsetX="); + WriteToString(result, &value->offsetX); + // Ark_Union_Number_Resource offsetY + result->append(", "); + result->append(".offsetY="); + WriteToString(result, &value->offsetY); + // Ark_Boolean fill + result->append(", "); + result->append(".fill="); + WriteToString(result, &value->fill); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextDecorationStyle* value) { +inline void WriteToString(std::string* result, const Opt_ShadowOptions* 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); @@ -1293,28 +1292,50 @@ inline void WriteToString(std::string* result, const Opt_TextDecorationStyle* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextDecorationStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_ShadowOptions& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextDecorationType& value) +inline Ark_RuntimeType runtimeType(const Ark_GridRowSizeOption& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextDecorationType value) { - result->append("Ark_TextDecorationType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_GridRowSizeOption* value) { + result->append("{"); + // Ark_Length xs + result->append(".xs="); + WriteToString(result, &value->xs); + // Ark_Length sm + result->append(", "); + result->append(".sm="); + WriteToString(result, &value->sm); + // Ark_Length md + result->append(", "); + result->append(".md="); + WriteToString(result, &value->md); + // Ark_Length lg + result->append(", "); + result->append(".lg="); + WriteToString(result, &value->lg); + // Ark_Length xl + result->append(", "); + result->append(".xl="); + WriteToString(result, &value->xl); + // Ark_Length xxl + result->append(", "); + result->append(".xxl="); + WriteToString(result, &value->xxl); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextDecorationType* value) { +inline void WriteToString(std::string* result, const Opt_GridRowSizeOption* 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); @@ -1322,23 +1343,23 @@ inline void WriteToString(std::string* result, const Opt_TextDecorationType* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextDecorationType& value) +inline Ark_RuntimeType runtimeType(const Opt_GridRowSizeOption& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FontStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_BorderStyle& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_FontStyle value) { - result->append("Ark_FontStyle("); +inline void WriteToString(std::string* result, const Ark_BorderStyle value) { + result->append("Ark_BorderStyle("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_FontStyle* value) { +inline void WriteToString(std::string* result, const Opt_BorderStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1351,34 +1372,28 @@ inline void WriteToString(std::string* result, const Opt_FontStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_FontStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_BorderStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Position& value) +inline Ark_RuntimeType runtimeType(const Ark_SheetSize& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Position* value) { - result->append("{"); - // Ark_Length x - result->append(".x="); - WriteToString(result, &value->x); - // Ark_Length y - result->append(", "); - result->append(".y="); - WriteToString(result, &value->y); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_SheetSize value) { + result->append("Ark_SheetSize("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Position* value) { +inline void WriteToString(std::string* result, const Opt_SheetSize* 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); @@ -1386,31 +1401,31 @@ inline void WriteToString(std::string* result, const Opt_Position* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Position& value) +inline Ark_RuntimeType runtimeType(const Opt_SheetSize& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_BorderRadiuses& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_String_Resource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_BorderRadiuses: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_String_Resource* value) { +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_BorderRadiuses* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_String + // Ark_LengthMetrics if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } - // Ark_Resource + // Ark_BorderRadiuses if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -1418,7 +1433,7 @@ inline void WriteToString(std::string* result, const Ark_Union_String_Resource* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_String_Resource* value) { +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_BorderRadiuses* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1431,45 +1446,39 @@ inline void WriteToString(std::string* result, const Opt_Union_String_Resource* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_String_Resource& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_FontWeight_Number_String& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Padding& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_FontWeight_Number_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_Padding: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_FontWeight_Number_String* value) { +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Padding* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_FontWeight + // Ark_LengthMetrics if (value->selector == 0) { result->append(".value0="); WriteToString(result, value->value0); } - // Ark_Number + // Ark_Padding if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); } - // Ark_String - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_FontWeight_Number_String* value) { +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Padding* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1482,31 +1491,31 @@ inline void WriteToString(std::string* result, const Opt_Union_FontWeight_Number result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_FontWeight_Number_String& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Padding& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ResourceStr& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_Margin& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_ResourceStr: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_Margin: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_ResourceStr* value) { +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_Margin* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_String + // Ark_LengthMetrics if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } - // Ark_Resource + // Ark_Padding if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -1514,7 +1523,7 @@ inline void WriteToString(std::string* result, const Ark_ResourceStr* value) { result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ResourceStr* value) { +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_Margin* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1527,25 +1536,109 @@ inline void WriteToString(std::string* result, const Opt_ResourceStr* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ResourceStr& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_LengthMetrics_Margin& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SymbolGlyphModifier& value) +inline Ark_RuntimeType runtimeType(const Ark_Area& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SymbolGlyphModifier* value) { +inline void WriteToString(std::string* result, const Ark_Area* value) { + result->append("{"); + // Ark_Length width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Length height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + // Ark_Position position + result->append(", "); + result->append(".position="); + WriteToString(result, &value->position); + // Ark_Position globalPosition + result->append(", "); + result->append(".globalPosition="); + WriteToString(result, &value->globalPosition); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Area* 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_Area& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ShadowStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ShadowStyle value) { + result->append("Ark_ShadowStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ShadowStyle* 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_ShadowStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Font& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Font* value) { result->append("{"); - // Ark_String __SymbolGlyphModifierStub - result->append(".__SymbolGlyphModifierStub="); - WriteToString(result, &value->__SymbolGlyphModifierStub); + // Ark_Length size + result->append(".size="); + WriteToString(result, &value->size); + // Ark_Union_FontWeight_Number_String weight + result->append(", "); + result->append(".weight="); + WriteToString(result, &value->weight); + // Ark_Union_String_Resource family + result->append(", "); + result->append(".family="); + WriteToString(result, &value->family); + // Ark_FontStyle style + result->append(", "); + result->append(".style="); + WriteToString(result, &value->style); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_SymbolGlyphModifier* value) { +inline void WriteToString(std::string* result, const Opt_Font* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1558,31 +1651,31 @@ inline void WriteToString(std::string* result, const Opt_SymbolGlyphModifier* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SymbolGlyphModifier& value) +inline Ark_RuntimeType runtimeType(const Opt_Font& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Curve_ICurve& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Length_BorderRadiuses& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Curve_ICurve: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Length_BorderRadiuses: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Curve_ICurve* value) { +inline void WriteToString(std::string* result, const Ark_Union_Length_BorderRadiuses* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Curve + // Ark_Length if (value->selector == 0) { result->append(".value0="); - WriteToString(result, value->value0); + WriteToString(result, &value->value0); } - // Ark_ICurve + // Ark_BorderRadiuses if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -1590,7 +1683,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Curve_ICurve* val result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Curve_ICurve* value) { +inline void WriteToString(std::string* result, const Opt_Union_Length_BorderRadiuses* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1603,31 +1696,31 @@ inline void WriteToString(std::string* result, const Opt_Union_Curve_ICurve* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Curve_ICurve& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Length_BorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_Margin& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Resource_String& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_Margin: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Resource_String: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Dimension_Margin* value) { +inline void WriteToString(std::string* result, const Ark_Union_Resource_String* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Length + // Ark_Resource if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_Padding + // Ark_String if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -1635,7 +1728,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Dimension_Margin* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Dimension_Margin* value) { +inline void WriteToString(std::string* result, const Opt_Union_Resource_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1648,50 +1741,28 @@ inline void WriteToString(std::string* result, const Opt_Union_Dimension_Margin* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_Margin& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Resource_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Ark_ButtonRole& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ShadowOptions* value) { - result->append("{"); - // Ark_Union_Number_Resource radius - result->append(".radius="); - WriteToString(result, &value->radius); - // Ark_ShadowType type - result->append(", "); - result->append(".type="); - WriteToString(result, &value->type); - // Ark_Union_Color_String_Resource_ColoringStrategy color - result->append(", "); - result->append(".color="); - WriteToString(result, &value->color); - // Ark_Union_Number_Resource offsetX - result->append(", "); - result->append(".offsetX="); - WriteToString(result, &value->offsetX); - // Ark_Union_Number_Resource offsetY - result->append(", "); - result->append(".offsetY="); - WriteToString(result, &value->offsetY); - // Ark_Boolean fill - result->append(", "); - result->append(".fill="); - WriteToString(result, &value->fill); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ButtonRole value) { + result->append("Ark_ButtonRole("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ShadowOptions* value) { +inline void WriteToString(std::string* result, const Opt_ButtonRole* 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); @@ -1699,50 +1770,28 @@ inline void WriteToString(std::string* result, const Opt_ShadowOptions* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_ButtonRole& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GridRowSizeOption& value) +inline Ark_RuntimeType runtimeType(const Ark_ButtonStyleMode& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_GridRowSizeOption* value) { - result->append("{"); - // Ark_Length xs - result->append(".xs="); - WriteToString(result, &value->xs); - // Ark_Length sm - result->append(", "); - result->append(".sm="); - WriteToString(result, &value->sm); - // Ark_Length md - result->append(", "); - result->append(".md="); - WriteToString(result, &value->md); - // Ark_Length lg - result->append(", "); - result->append(".lg="); - WriteToString(result, &value->lg); - // Ark_Length xl - result->append(", "); - result->append(".xl="); - WriteToString(result, &value->xl); - // Ark_Length xxl - result->append(", "); - result->append(".xxl="); - WriteToString(result, &value->xxl); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ButtonStyleMode value) { + result->append("Ark_ButtonStyleMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_GridRowSizeOption* value) { +inline void WriteToString(std::string* result, const Opt_ButtonStyleMode* 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); @@ -1750,23 +1799,23 @@ inline void WriteToString(std::string* result, const Opt_GridRowSizeOption* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GridRowSizeOption& value) +inline Ark_RuntimeType runtimeType(const Opt_ButtonStyleMode& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_BorderStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_ButtonType& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_BorderStyle value) { - result->append("Ark_BorderStyle("); +inline void WriteToString(std::string* result, const Ark_ButtonType value) { + result->append("Ark_ButtonType("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_BorderStyle* value) { +inline void WriteToString(std::string* result, const Opt_ButtonType* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1779,28 +1828,38 @@ inline void WriteToString(std::string* result, const Opt_BorderStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_BorderStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_ButtonType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SheetSize& value) +inline Ark_RuntimeType runtimeType(const Array_Number& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_SheetSize value) { - result->append("Ark_SheetSize("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Number* value); + +inline void WriteToString(std::string* result, const Array_Number* 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_Number*)&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_SheetSize* value) { +inline void WriteToString(std::string* result, const Opt_Array_Number* 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); @@ -1808,25 +1867,33 @@ inline void WriteToString(std::string* result, const Opt_SheetSize* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SheetSize& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_Number& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_BackgroundColorStyle& value) +inline Ark_RuntimeType runtimeType(const Array_TextCascadePickerRangeContent& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_BackgroundColorStyle* value) { - result->append("{"); - // Ark_TextBackgroundStyle textBackgroundStyle - result->append(".textBackgroundStyle="); - WriteToString(result, &value->textBackgroundStyle); +inline void WriteToString(std::string* result, const Ark_TextCascadePickerRangeContent* value); + +inline void WriteToString(std::string* result, const Array_TextCascadePickerRangeContent* 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_TextCascadePickerRangeContent*)&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_BackgroundColorStyle* value) { +inline void WriteToString(std::string* result, const Opt_Array_TextCascadePickerRangeContent* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1839,22 +1906,33 @@ inline void WriteToString(std::string* result, const Opt_BackgroundColorStyle* v result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_BackgroundColorStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_TextCascadePickerRangeContent& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_UserDataSpan& value) +inline Ark_RuntimeType runtimeType(const Array_TextPickerRangeContent& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_UserDataSpan* value) { - result->append("{"); +inline void WriteToString(std::string* result, const Ark_TextPickerRangeContent* value); + +inline void WriteToString(std::string* result, const Array_TextPickerRangeContent* 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_TextPickerRangeContent*)&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_UserDataSpan* value) { +inline void WriteToString(std::string* result, const Opt_Array_TextPickerRangeContent* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1867,12 +1945,33 @@ inline void WriteToString(std::string* result, const Opt_UserDataSpan* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_UserDataSpan& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_TextPickerRangeContent& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_CustomSpan* value) { +inline Ark_RuntimeType runtimeType(const Array_Array_String& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Array_String* value); + +inline void WriteToString(std::string* result, const Array_Array_String* 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 Array_String*)&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_Array_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1885,25 +1984,25 @@ inline void WriteToString(std::string* result, const Opt_CustomSpan* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_CustomSpan& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_Array_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_UrlStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_LocalizedPadding& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_UrlStyle* value) { +inline void WriteToString(std::string* result, const Ark_LocalizedPadding* value) { result->append("{"); - // Ark_String url - result->append(".url="); - WriteToString(result, &value->url); + // Ark_String stub + result->append(".stub="); + WriteToString(result, &value->stub); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_UrlStyle* value) { +inline void WriteToString(std::string* result, const Opt_LocalizedPadding* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1916,30 +2015,28 @@ inline void WriteToString(std::string* result, const Opt_UrlStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_UrlStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_LocalizedPadding& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LineHeightStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_TextHeightAdaptivePolicy& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_LineHeightStyle* value) { - result->append("{"); - // Ark_Number lineHeight - result->append(".lineHeight="); - WriteToString(result, &value->lineHeight); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_TextHeightAdaptivePolicy value) { + result->append("Ark_TextHeightAdaptivePolicy("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_LineHeightStyle* value) { +inline void WriteToString(std::string* result, const Opt_TextHeightAdaptivePolicy* 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); @@ -1947,45 +2044,39 @@ inline void WriteToString(std::string* result, const Opt_LineHeightStyle* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LineHeightStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_TextHeightAdaptivePolicy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ParagraphStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_ResourceStr& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_ResourceStr: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_ParagraphStyle* value) { +inline void WriteToString(std::string* result, const Ark_Union_Number_ResourceStr* value) { result->append("{"); - // Ark_TextAlign textAlign - result->append(".textAlign="); - WriteToString(result, &value->textAlign); - // Ark_Number textIndent - result->append(", "); - result->append(".textIndent="); - WriteToString(result, &value->textIndent); - // Ark_Number maxLines - result->append(", "); - result->append(".maxLines="); - WriteToString(result, &value->maxLines); - // Ark_TextOverflow overflow - result->append(", "); - result->append(".overflow="); - WriteToString(result, &value->overflow); - // Ark_WordBreak wordBreak - result->append(", "); - result->append(".wordBreak="); - WriteToString(result, &value->wordBreak); - // Ark_Union_Number_LeadingMarginPlaceholder leadingMargin + result->append(".selector="); + result->append(std::to_string(value->selector)); result->append(", "); - result->append(".leadingMargin="); - WriteToString(result, &value->leadingMargin); + // Ark_Number + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_ResourceStr + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ParagraphStyle* value) { +inline void WriteToString(std::string* result, const Opt_Union_Number_ResourceStr* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -1998,46 +2089,28 @@ inline void WriteToString(std::string* result, const Opt_ParagraphStyle* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ParagraphStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_ResourceStr& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ImageAttachment& value) +inline Ark_RuntimeType runtimeType(const Ark_TextOverflow& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ImageAttachment* value) { - result->append("{"); - // Ark_PixelMap value - result->append(".value="); - WriteToString(result, &value->value); - // Ark_SizeOptions size - result->append(", "); - result->append(".size="); - WriteToString(result, &value->size); - // Ark_ImageSpanAlignment verticalAlign - result->append(", "); - result->append(".verticalAlign="); - WriteToString(result, &value->verticalAlign); - // Ark_ImageFit objectFit - result->append(", "); - result->append(".objectFit="); - WriteToString(result, &value->objectFit); - // Ark_ImageAttachmentLayoutStyle layoutStyle - result->append(", "); - result->append(".layoutStyle="); - WriteToString(result, &value->layoutStyle); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_TextOverflow value) { + result->append("Ark_TextOverflow("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ImageAttachment* value) { +inline void WriteToString(std::string* result, const Opt_TextOverflow* 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); @@ -2045,22 +2118,29 @@ inline void WriteToString(std::string* result, const Opt_ImageAttachment* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ImageAttachment& value) +inline Ark_RuntimeType runtimeType(const Opt_TextOverflow& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GestureStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_TabBarSymbol& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GestureStyle* value) { +inline void WriteToString(std::string* result, const Ark_TabBarSymbol* value) { result->append("{"); + // Ark_SymbolGlyphModifier normal + result->append(".normal="); + WriteToString(result, &value->normal); + // Ark_SymbolGlyphModifier selected + result->append(", "); + result->append(".selected="); + WriteToString(result, &value->selected); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_GestureStyle* value) { +inline void WriteToString(std::string* result, const Opt_TabBarSymbol* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2073,25 +2153,39 @@ inline void WriteToString(std::string* result, const Opt_GestureStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_TabBarSymbol& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextShadowStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Padding_Dimension& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Padding_Dimension: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_TextShadowStyle* value) { +inline void WriteToString(std::string* result, const Ark_Union_Padding_Dimension* value) { result->append("{"); - // Array_ShadowOptions textShadow - result->append(".textShadow="); - WriteToString(result, &value->textShadow); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Padding + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_Length + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextShadowStyle* value) { +inline void WriteToString(std::string* result, const Opt_Union_Padding_Dimension* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2104,25 +2198,25 @@ inline void WriteToString(std::string* result, const Opt_TextShadowStyle* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextShadowStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Padding_Dimension& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LetterSpacingStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_ComponentContent& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LetterSpacingStyle* value) { +inline void WriteToString(std::string* result, const Ark_ComponentContent* value) { result->append("{"); - // Ark_Number letterSpacing - result->append(".letterSpacing="); - WriteToString(result, &value->letterSpacing); + // Ark_String _ComponentContentStub + result->append("._ComponentContentStub="); + WriteToString(result, &value->_ComponentContentStub); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LetterSpacingStyle* value) { +inline void WriteToString(std::string* result, const Opt_ComponentContent* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2135,25 +2229,29 @@ inline void WriteToString(std::string* result, const Opt_LetterSpacingStyle* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LetterSpacingStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_ComponentContent& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_BaselineOffsetStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_Tuple_Number_Number& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_BaselineOffsetStyle* value) { +inline void WriteToString(std::string* result, const Ark_Tuple_Number_Number* value) { result->append("{"); - // Ark_Number baselineOffset - result->append(".baselineOffset="); - WriteToString(result, &value->baselineOffset); + // Ark_Number value0 + result->append(".value0="); + WriteToString(result, &value->value0); + // Ark_Number value1 + result->append(", "); + result->append(".value1="); + WriteToString(result, &value->value1); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_BaselineOffsetStyle* value) { +inline void WriteToString(std::string* result, const Opt_Tuple_Number_Number* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2166,33 +2264,33 @@ inline void WriteToString(std::string* result, const Opt_BaselineOffsetStyle* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_BaselineOffsetStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Tuple_Number_Number& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DecorationStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_ScrollAnimationOptions& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_DecorationStyle* value) { +inline void WriteToString(std::string* result, const Ark_ScrollAnimationOptions* value) { result->append("{"); - // Ark_TextDecorationType type - result->append(".type="); - WriteToString(result, value->type); - // Ark_ResourceColor color + // Ark_Number duration + result->append(".duration="); + WriteToString(result, &value->duration); + // Ark_Union_Curve_ICurve curve result->append(", "); - result->append(".color="); - WriteToString(result, &value->color); - // Ark_TextDecorationStyle style + result->append(".curve="); + WriteToString(result, &value->curve); + // Ark_Boolean canOverScroll result->append(", "); - result->append(".style="); - WriteToString(result, &value->style); + result->append(".canOverScroll="); + WriteToString(result, &value->canOverScroll); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_DecorationStyle* value) { +inline void WriteToString(std::string* result, const Opt_ScrollAnimationOptions* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2205,41 +2303,29 @@ inline void WriteToString(std::string* result, const Opt_DecorationStyle* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_DecorationStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_ScrollAnimationOptions& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextStyle_styled_string& value) +inline Ark_RuntimeType runtimeType(const Ark_RichEditorLayoutStyle& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextStyle_styled_string* value) { +inline void WriteToString(std::string* result, const Ark_RichEditorLayoutStyle* value) { result->append("{"); - // Ark_ResourceColor fontColor - result->append(".fontColor="); - WriteToString(result, &value->fontColor); - // Ark_String fontFamily - result->append(", "); - result->append(".fontFamily="); - WriteToString(result, &value->fontFamily); - // Ark_Number fontSize - result->append(", "); - result->append(".fontSize="); - WriteToString(result, &value->fontSize); - // Ark_Number fontWeight - result->append(", "); - result->append(".fontWeight="); - WriteToString(result, &value->fontWeight); - // Ark_FontStyle fontStyle + // Ark_Union_Dimension_Margin margin + result->append(".margin="); + WriteToString(result, &value->margin); + // Ark_Union_Dimension_BorderRadiuses borderRadius result->append(", "); - result->append(".fontStyle="); - WriteToString(result, &value->fontStyle); + result->append(".borderRadius="); + WriteToString(result, &value->borderRadius); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextStyle_styled_string* value) { +inline void WriteToString(std::string* result, const Opt_RichEditorLayoutStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2252,42 +2338,28 @@ inline void WriteToString(std::string* result, const Opt_TextStyle_styled_string result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextStyle_styled_string& value) +inline Ark_RuntimeType runtimeType(const Opt_RichEditorLayoutStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Area& value) +inline Ark_RuntimeType runtimeType(const Ark_ImageFit& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Area* value) { - result->append("{"); - // Ark_Length width - result->append(".width="); - WriteToString(result, &value->width); - // Ark_Length height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - // Ark_Position position - result->append(", "); - result->append(".position="); - WriteToString(result, &value->position); - // Ark_Position globalPosition - result->append(", "); - result->append(".globalPosition="); - WriteToString(result, &value->globalPosition); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ImageFit value) { + result->append("Ark_ImageFit("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Area* value) { +inline void WriteToString(std::string* result, const Opt_ImageFit* 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); @@ -2295,23 +2367,23 @@ inline void WriteToString(std::string* result, const Opt_Area* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Area& value) +inline Ark_RuntimeType runtimeType(const Opt_ImageFit& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ShadowStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_ImageSpanAlignment& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ShadowStyle value) { - result->append("Ark_ShadowStyle("); +inline void WriteToString(std::string* result, const Ark_ImageSpanAlignment value) { + result->append("Ark_ImageSpanAlignment("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ShadowStyle* value) { +inline void WriteToString(std::string* result, const Opt_ImageSpanAlignment* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2324,42 +2396,28 @@ inline void WriteToString(std::string* result, const Opt_ShadowStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ShadowStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_ImageSpanAlignment& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Font& value) +inline Ark_RuntimeType runtimeType(const Ark_LineBreakStrategy& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Font* value) { - result->append("{"); - // Ark_Length size - result->append(".size="); - WriteToString(result, &value->size); - // Ark_Union_FontWeight_Number_String weight - result->append(", "); - result->append(".weight="); - WriteToString(result, &value->weight); - // Ark_Union_String_Resource family - result->append(", "); - result->append(".family="); - WriteToString(result, &value->family); - // Ark_FontStyle style - result->append(", "); - result->append(".style="); - WriteToString(result, &value->style); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_LineBreakStrategy value) { + result->append("Ark_LineBreakStrategy("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Font* value) { +inline void WriteToString(std::string* result, const Opt_LineBreakStrategy* 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); @@ -2367,44 +2425,28 @@ inline void WriteToString(std::string* result, const Opt_Font* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Font& value) +inline Ark_RuntimeType runtimeType(const Opt_LineBreakStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Length_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_WordBreak& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Length_BorderRadiuses: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Length_BorderRadiuses* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Length - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_BorderRadiuses - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_WordBreak value) { + result->append("Ark_WordBreak("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Length_BorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_WordBreak* 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); @@ -2412,31 +2454,31 @@ inline void WriteToString(std::string* result, const Opt_Union_Length_BorderRadi result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Length_BorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_WordBreak& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Resource_String& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_LeadingMarginPlaceholder& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Resource_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_LeadingMarginPlaceholder: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Resource_String* value) { +inline void WriteToString(std::string* result, const Ark_Union_Dimension_LeadingMarginPlaceholder* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Resource + // Ark_Length if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_String + // Ark_LeadingMarginPlaceholder if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -2444,7 +2486,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Resource_String* result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Resource_String* value) { +inline void WriteToString(std::string* result, const Opt_Union_Dimension_LeadingMarginPlaceholder* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2457,23 +2499,23 @@ inline void WriteToString(std::string* result, const Opt_Union_Resource_String* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Resource_String& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_LeadingMarginPlaceholder& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ButtonRole& value) +inline Ark_RuntimeType runtimeType(const Ark_TextAlign& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ButtonRole value) { - result->append("Ark_ButtonRole("); +inline void WriteToString(std::string* result, const Ark_TextAlign value) { + result->append("Ark_TextAlign("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ButtonRole* value) { +inline void WriteToString(std::string* result, const Opt_TextAlign* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2486,23 +2528,23 @@ inline void WriteToString(std::string* result, const Opt_ButtonRole* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ButtonRole& value) +inline Ark_RuntimeType runtimeType(const Opt_TextAlign& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ButtonStyleMode& value) +inline Ark_RuntimeType runtimeType(const Ark_SymbolRenderingStrategy& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ButtonStyleMode value) { - result->append("Ark_ButtonStyleMode("); +inline void WriteToString(std::string* result, const Ark_SymbolRenderingStrategy value) { + result->append("Ark_SymbolRenderingStrategy("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ButtonStyleMode* value) { +inline void WriteToString(std::string* result, const Opt_SymbolRenderingStrategy* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2515,23 +2557,23 @@ inline void WriteToString(std::string* result, const Opt_ButtonStyleMode* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ButtonStyleMode& value) +inline Ark_RuntimeType runtimeType(const Opt_SymbolRenderingStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ButtonType& value) +inline Ark_RuntimeType runtimeType(const Ark_SymbolEffectStrategy& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ButtonType value) { - result->append("Ark_ButtonType("); +inline void WriteToString(std::string* result, const Ark_SymbolEffectStrategy value) { + result->append("Ark_SymbolEffectStrategy("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ButtonType* value) { +inline void WriteToString(std::string* result, const Opt_SymbolEffectStrategy* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2544,72 +2586,45 @@ inline void WriteToString(std::string* result, const Opt_ButtonType* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ButtonType& value) +inline Ark_RuntimeType runtimeType(const Opt_SymbolEffectStrategy& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_Number& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_FontWeight_String& value) { - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_Number* value); - -inline void WriteToString(std::string* result, const Array_Number* 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_Number*)&value->array[i]); + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_FontWeight_String: %d", value.selector); } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_Number* 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_Number_FontWeight_String* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Number + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Number& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_TextCascadePickerRangeContent& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_TextCascadePickerRangeContent* value); - -inline void WriteToString(std::string* result, const Array_TextCascadePickerRangeContent* 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_TextCascadePickerRangeContent*)&value->array[i]); + // Ark_FontWeight + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, value->value1); + } + // Ark_String + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, &value->value2); } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_TextCascadePickerRangeContent* value) { +inline void WriteToString(std::string* result, const Opt_Union_Number_FontWeight_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2622,25 +2637,25 @@ inline void WriteToString(std::string* result, const Opt_Array_TextCascadePicker result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_TextCascadePickerRangeContent& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_FontWeight_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_TextPickerRangeContent& value) +inline Ark_RuntimeType runtimeType(const Array_ResourceColor& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TextPickerRangeContent* value); +inline void WriteToString(std::string* result, const Ark_ResourceColor* value); -inline void WriteToString(std::string* result, const Array_TextPickerRangeContent* value) { +inline void WriteToString(std::string* result, const Array_ResourceColor* value) { int32_t count = value->length; - result->append("{.array=allocArray({{"); + result->append("{.array=allocArray({{"); for (int i = 0; i < count; i++) { if (i > 0) result->append(", "); - WriteToString(result, (const Ark_TextPickerRangeContent*)&value->array[i]); + WriteToString(result, (const Ark_ResourceColor*)&value->array[i]); } result->append("}})"); result->append(", .length="); @@ -2648,7 +2663,7 @@ inline void WriteToString(std::string* result, const Array_TextPickerRangeConten result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_TextPickerRangeContent* value) { +inline void WriteToString(std::string* result, const Opt_Array_ResourceColor* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2661,33 +2676,45 @@ inline void WriteToString(std::string* result, const Opt_Array_TextPickerRangeCo result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_TextPickerRangeContent& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_ResourceColor& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_Array_String& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String_Resource& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_String_Resource: %d", value.selector); + } } - template <> -inline void WriteToString(std::string* result, const Array_String* value); - -inline void WriteToString(std::string* result, const Array_Array_String* 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 Array_String*)&value->array[i]); +inline void WriteToString(std::string* result, const Ark_Union_Number_String_Resource* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Number + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_String + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + // Ark_Resource + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, &value->value2); } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_Array_String* value) { +inline void WriteToString(std::string* result, const Opt_Union_Number_String_Resource* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2700,25 +2727,33 @@ inline void WriteToString(std::string* result, const Opt_Array_Array_String* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Array_String& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_String_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LocalizedPadding& value) +inline Ark_RuntimeType runtimeType(const Ark_DecorationStyleResult& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LocalizedPadding* value) { +inline void WriteToString(std::string* result, const Ark_DecorationStyleResult* value) { result->append("{"); - // Ark_String stub - result->append(".stub="); - WriteToString(result, &value->stub); + // Ark_TextDecorationType type + result->append(".type="); + WriteToString(result, value->type); + // Ark_ResourceColor color + result->append(", "); + result->append(".color="); + WriteToString(result, &value->color); + // Ark_TextDecorationStyle style + result->append(", "); + result->append(".style="); + WriteToString(result, &value->style); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LocalizedPadding* value) { +inline void WriteToString(std::string* result, const Opt_DecorationStyleResult* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2731,28 +2766,44 @@ inline void WriteToString(std::string* result, const Opt_LocalizedPadding* value result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LocalizedPadding& value) +inline Ark_RuntimeType runtimeType(const Opt_DecorationStyleResult& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TextHeightAdaptivePolicy& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String& value) { - return INTEROP_RUNTIME_NUMBER; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_String: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_TextHeightAdaptivePolicy value) { - result->append("Ark_TextHeightAdaptivePolicy("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Union_Number_String* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Number + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_String + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TextHeightAdaptivePolicy* value) { +inline void WriteToString(std::string* result, const Opt_Union_Number_String* 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); @@ -2760,31 +2811,31 @@ inline void WriteToString(std::string* result, const Opt_TextHeightAdaptivePolic result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TextHeightAdaptivePolicy& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Number_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_ResourceStr& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_ShadowOptions_Array_ShadowOptions& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_ResourceStr: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ShadowOptions_Array_ShadowOptions: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_ResourceStr* value) { +inline void WriteToString(std::string* result, const Ark_Union_ShadowOptions_Array_ShadowOptions* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Number + // Ark_ShadowOptions if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_ResourceStr + // Array_ShadowOptions if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -2792,7 +2843,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Number_ResourceSt result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_ResourceStr* value) { +inline void WriteToString(std::string* result, const Opt_Union_ShadowOptions_Array_ShadowOptions* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2805,29 +2856,33 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_ResourceSt result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_ResourceStr& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_ShadowOptions_Array_ShadowOptions& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TabBarSymbol& value) +inline Ark_RuntimeType runtimeType(const Ark_DecorationStyleInterface& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TabBarSymbol* value) { +inline void WriteToString(std::string* result, const Ark_DecorationStyleInterface* value) { result->append("{"); - // Ark_SymbolGlyphModifier normal - result->append(".normal="); - WriteToString(result, &value->normal); - // Ark_SymbolGlyphModifier selected + // Ark_TextDecorationType type + result->append(".type="); + WriteToString(result, value->type); + // Ark_ResourceColor color result->append(", "); - result->append(".selected="); - WriteToString(result, &value->selected); + result->append(".color="); + WriteToString(result, &value->color); + // Ark_TextDecorationStyle style + result->append(", "); + result->append(".style="); + WriteToString(result, &value->style); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TabBarSymbol* value) { +inline void WriteToString(std::string* result, const Opt_DecorationStyleInterface* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2840,31 +2895,31 @@ inline void WriteToString(std::string* result, const Opt_TabBarSymbol* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TabBarSymbol& value) +inline Ark_RuntimeType runtimeType(const Opt_DecorationStyleInterface& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Padding_Dimension& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Length_Number& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Padding_Dimension: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Length_Number: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Padding_Dimension* value) { +inline void WriteToString(std::string* result, const Ark_Union_Length_Number* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Padding + // Ark_Length if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_Length + // Ark_Number if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -2872,7 +2927,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Padding_Dimension result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Padding_Dimension* value) { +inline void WriteToString(std::string* result, const Opt_Union_Length_Number* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2885,25 +2940,25 @@ inline void WriteToString(std::string* result, const Opt_Union_Padding_Dimension result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Padding_Dimension& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Length_Number& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ComponentContent& value) +inline Ark_RuntimeType runtimeType(const Callback_GestureEvent_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ComponentContent* value) { +inline void WriteToString(std::string* result, const Callback_GestureEvent_Void* value) { result->append("{"); - // Ark_String __ComponentContentStub - result->append(".__ComponentContentStub="); - WriteToString(result, &value->__ComponentContentStub); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ComponentContent* value) { +inline void WriteToString(std::string* result, const Opt_Callback_GestureEvent_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2916,29 +2971,25 @@ inline void WriteToString(std::string* result, const Opt_ComponentContent* value result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ComponentContent& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_GestureEvent_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Tuple_Number_Number& value) +inline Ark_RuntimeType runtimeType(const Callback_ClickEvent_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Tuple_Number_Number* value) { +inline void WriteToString(std::string* result, const Callback_ClickEvent_Void* value) { result->append("{"); - // Ark_Number value0 - result->append(".value0="); - WriteToString(result, &value->value0); - // Ark_Number value1 - result->append(", "); - result->append(".value1="); - WriteToString(result, &value->value1); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Tuple_Number_Number* value) { +inline void WriteToString(std::string* result, const Opt_Callback_ClickEvent_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2951,33 +3002,33 @@ inline void WriteToString(std::string* result, const Opt_Tuple_Number_Number* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Tuple_Number_Number& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_ClickEvent_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ScrollAnimationOptions& value) +inline Ark_RuntimeType runtimeType(const Array_Union_Number_String& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_ScrollAnimationOptions* value) { - result->append("{"); - // Ark_Number duration - result->append(".duration="); - WriteToString(result, &value->duration); - // Ark_Union_Curve_ICurve curve - result->append(", "); - result->append(".curve="); - WriteToString(result, &value->curve); - // Ark_Boolean canOverScroll - result->append(", "); - result->append(".canOverScroll="); - WriteToString(result, &value->canOverScroll); +inline void WriteToString(std::string* result, const Ark_Union_Number_String* value); + +inline void WriteToString(std::string* result, const Array_Union_Number_String* 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_Number_String*)&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_ScrollAnimationOptions* value) { +inline void WriteToString(std::string* result, const Opt_Array_Union_Number_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -2990,29 +3041,25 @@ inline void WriteToString(std::string* result, const Opt_ScrollAnimationOptions* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ScrollAnimationOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_Union_Number_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RichEditorLayoutStyle& value) +inline Ark_RuntimeType runtimeType(const Callback_PopInfo_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_RichEditorLayoutStyle* value) { +inline void WriteToString(std::string* result, const Callback_PopInfo_Void* value) { result->append("{"); - // Ark_Union_Dimension_Margin margin - result->append(".margin="); - WriteToString(result, &value->margin); - // Ark_Union_Dimension_BorderRadiuses borderRadius - result->append(", "); - result->append(".borderRadius="); - WriteToString(result, &value->borderRadius); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_RichEditorLayoutStyle* value) { +inline void WriteToString(std::string* result, const Opt_Callback_PopInfo_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3025,23 +3072,41 @@ inline void WriteToString(std::string* result, const Opt_RichEditorLayoutStyle* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_RichEditorLayoutStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_PopInfo_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LineBreakStrategy& value) +inline void WriteToString(std::string* result, const Opt_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_CustomObject& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TitleHeight& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_LineBreakStrategy value) { - result->append("Ark_LineBreakStrategy("); +inline void WriteToString(std::string* result, const Ark_TitleHeight value) { + result->append("Ark_TitleHeight("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_LineBreakStrategy* value) { +inline void WriteToString(std::string* result, const Opt_TitleHeight* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3054,39 +3119,25 @@ inline void WriteToString(std::string* result, const Opt_LineBreakStrategy* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LineBreakStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_TitleHeight& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Callback_SwipeActionState_Void& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_LeadingMarginPlaceholder: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Dimension_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Callback_SwipeActionState_Void* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Length - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_LeadingMarginPlaceholder - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Dimension_LeadingMarginPlaceholder* value) { +inline void WriteToString(std::string* result, const Opt_Callback_SwipeActionState_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3099,28 +3150,30 @@ inline void WriteToString(std::string* result, const Opt_Union_Dimension_Leading result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Dimension_LeadingMarginPlaceholder& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_SwipeActionState_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SymbolRenderingStrategy& value) +inline Ark_RuntimeType runtimeType(const Callback_Void& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SymbolRenderingStrategy value) { - result->append("Ark_SymbolRenderingStrategy("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Callback_Void* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_SymbolRenderingStrategy* value) { +inline void WriteToString(std::string* result, const Opt_Callback_Void* 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); @@ -3128,28 +3181,30 @@ inline void WriteToString(std::string* result, const Opt_SymbolRenderingStrategy result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SymbolRenderingStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SymbolEffectStrategy& value) +inline Ark_RuntimeType runtimeType(const CustomNodeBuilder& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SymbolEffectStrategy value) { - result->append("Ark_SymbolEffectStrategy("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const CustomNodeBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_SymbolEffectStrategy* value) { +inline void WriteToString(std::string* result, const Opt_CustomNodeBuilder* 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); @@ -3157,45 +3212,39 @@ inline void WriteToString(std::string* result, const Opt_SymbolEffectStrategy* v result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SymbolEffectStrategy& value) +inline Ark_RuntimeType runtimeType(const Opt_CustomNodeBuilder& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_FontWeight_String& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Length_GridRowSizeOption& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Number_FontWeight_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Length_GridRowSizeOption: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_FontWeight_String* value) { +inline void WriteToString(std::string* result, const Ark_Union_Length_GridRowSizeOption* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Number + // Ark_Length if (value->selector == 0) { result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_FontWeight + // Ark_GridRowSizeOption if (value->selector == 1) { result->append(".value1="); - WriteToString(result, value->value1); - } - // Ark_String - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); + WriteToString(result, &value->value1); } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_FontWeight_String* value) { +inline void WriteToString(std::string* result, const Opt_Union_Length_GridRowSizeOption* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3208,33 +3257,37 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_FontWeight result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_FontWeight_String& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Length_GridRowSizeOption& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_ResourceColor& value) +inline Ark_RuntimeType runtimeType(const Ark_EdgeStyles& value) { return INTEROP_RUNTIME_OBJECT; } - template <> -inline void WriteToString(std::string* result, const Ark_ResourceColor* value); - -inline void WriteToString(std::string* result, const Array_ResourceColor* 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_ResourceColor*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); +inline void WriteToString(std::string* result, const Ark_EdgeStyles* value) { + result->append("{"); + // Ark_BorderStyle top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_BorderStyle right + result->append(", "); + result->append(".right="); + WriteToString(result, &value->right); + // Ark_BorderStyle bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_BorderStyle left + result->append(", "); + result->append(".left="); + WriteToString(result, &value->left); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_ResourceColor* value) { +inline void WriteToString(std::string* result, const Opt_EdgeStyles* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3247,45 +3300,37 @@ inline void WriteToString(std::string* result, const Opt_Array_ResourceColor* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_ResourceColor& value) +inline Ark_RuntimeType runtimeType(const Opt_EdgeStyles& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String_Resource& value) +inline Ark_RuntimeType runtimeType(const Ark_LocalizedEdgeColors& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Number_String_Resource: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_String_Resource* value) { +inline void WriteToString(std::string* result, const Ark_LocalizedEdgeColors* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); + // Ark_ResourceColor top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_ResourceColor end result->append(", "); - // Ark_Number - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_String - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_Resource - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } + result->append(".end="); + WriteToString(result, &value->end); + // Ark_ResourceColor bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_ResourceColor start + result->append(", "); + result->append(".start="); + WriteToString(result, &value->start); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_String_Resource* value) { +inline void WriteToString(std::string* result, const Opt_LocalizedEdgeColors* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3298,33 +3343,37 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_String_Res result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_String_Resource& value) +inline Ark_RuntimeType runtimeType(const Opt_LocalizedEdgeColors& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DecorationStyleResult& value) +inline Ark_RuntimeType runtimeType(const Ark_EdgeColors& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_DecorationStyleResult* value) { +inline void WriteToString(std::string* result, const Ark_EdgeColors* value) { result->append("{"); - // Ark_TextDecorationType type - result->append(".type="); - WriteToString(result, value->type); - // Ark_ResourceColor color + // Ark_ResourceColor top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_ResourceColor right result->append(", "); - result->append(".color="); - WriteToString(result, &value->color); - // Ark_TextDecorationStyle style + result->append(".right="); + WriteToString(result, &value->right); + // Ark_ResourceColor bottom result->append(", "); - result->append(".style="); - WriteToString(result, &value->style); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_ResourceColor left + result->append(", "); + result->append(".left="); + WriteToString(result, &value->left); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_DecorationStyleResult* value) { +inline void WriteToString(std::string* result, const Opt_EdgeColors* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3337,39 +3386,37 @@ inline void WriteToString(std::string* result, const Opt_DecorationStyleResult* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_DecorationStyleResult& value) +inline Ark_RuntimeType runtimeType(const Opt_EdgeColors& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String& value) +inline Ark_RuntimeType runtimeType(const Ark_LocalizedEdgeWidths& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_String: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_String* value) { +inline void WriteToString(std::string* result, const Ark_LocalizedEdgeWidths* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); + // Ark_LengthMetrics top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_LengthMetrics end result->append(", "); - // Ark_Number - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_String - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } + result->append(".end="); + WriteToString(result, &value->end); + // Ark_LengthMetrics bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_LengthMetrics start + result->append(", "); + result->append(".start="); + WriteToString(result, &value->start); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Number_String* value) { +inline void WriteToString(std::string* result, const Opt_LocalizedEdgeWidths* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3382,39 +3429,37 @@ inline void WriteToString(std::string* result, const Opt_Union_Number_String* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Number_String& value) +inline Ark_RuntimeType runtimeType(const Opt_LocalizedEdgeWidths& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_ShadowOptions_Array_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Ark_EdgeWidths& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ShadowOptions_Array_ShadowOptions: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_ShadowOptions_Array_ShadowOptions* value) { +inline void WriteToString(std::string* result, const Ark_EdgeWidths* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); + // Ark_Length top + result->append(".top="); + WriteToString(result, &value->top); + // Ark_Length right result->append(", "); - // Ark_ShadowOptions - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Array_ShadowOptions - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } + result->append(".right="); + WriteToString(result, &value->right); + // Ark_Length bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + // Ark_Length left + result->append(", "); + result->append(".left="); + WriteToString(result, &value->left); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_ShadowOptions_Array_ShadowOptions* value) { +inline void WriteToString(std::string* result, const Opt_EdgeWidths* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3427,33 +3472,29 @@ inline void WriteToString(std::string* result, const Opt_Union_ShadowOptions_Arr result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_ShadowOptions_Array_ShadowOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_EdgeWidths& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DecorationStyleInterface& value) +inline Ark_RuntimeType runtimeType(const Ark_SheetTitleOptions& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_DecorationStyleInterface* value) { +inline void WriteToString(std::string* result, const Ark_SheetTitleOptions* value) { result->append("{"); - // Ark_TextDecorationType type - result->append(".type="); - WriteToString(result, value->type); - // Ark_ResourceColor color - result->append(", "); - result->append(".color="); - WriteToString(result, &value->color); - // Ark_TextDecorationStyle style + // Ark_ResourceStr title + result->append(".title="); + WriteToString(result, &value->title); + // Ark_ResourceStr subtitle result->append(", "); - result->append(".style="); - WriteToString(result, &value->style); + result->append(".subtitle="); + WriteToString(result, &value->subtitle); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_DecorationStyleInterface* value) { +inline void WriteToString(std::string* result, const Opt_SheetTitleOptions* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3466,31 +3507,31 @@ inline void WriteToString(std::string* result, const Opt_DecorationStyleInterfac result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_DecorationStyleInterface& value) +inline Ark_RuntimeType runtimeType(const Opt_SheetTitleOptions& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Length_Number& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_SheetSize_Length& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Length_Number: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_SheetSize_Length: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_Length_Number* value) { +inline void WriteToString(std::string* result, const Ark_Union_SheetSize_Length* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); result->append(", "); - // Ark_Length + // Ark_SheetSize if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } - // Ark_Number + // Ark_Length if (value->selector == 1) { result->append(".value1="); WriteToString(result, &value->value1); @@ -3498,7 +3539,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Length_Number* va result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Length_Number* value) { +inline void WriteToString(std::string* result, const Opt_Union_SheetSize_Length* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3511,30 +3552,26 @@ inline void WriteToString(std::string* result, const Opt_Union_Length_Number* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Length_Number& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_SheetSize_Length& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_GestureEvent_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_TransitionEffect& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_GestureEvent_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_TransitionEffect value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_GestureEvent_Void* value) { +inline void WriteToString(std::string* result, const Opt_TransitionEffect* 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); @@ -3542,25 +3579,37 @@ inline void WriteToString(std::string* result, const Opt_Callback_GestureEvent_V result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_GestureEvent_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_TransitionEffect& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_ClickEvent_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_LocalizedBorderRadiuses& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_ClickEvent_Void* value) { +inline void WriteToString(std::string* result, const Ark_LocalizedBorderRadiuses* value) { result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); + // Ark_LengthMetrics topStart + result->append(".topStart="); + WriteToString(result, &value->topStart); + // Ark_LengthMetrics topEnd + result->append(", "); + result->append(".topEnd="); + WriteToString(result, &value->topEnd); + // Ark_LengthMetrics bottomStart + result->append(", "); + result->append(".bottomStart="); + WriteToString(result, &value->bottomStart); + // Ark_LengthMetrics bottomEnd + result->append(", "); + result->append(".bottomEnd="); + WriteToString(result, &value->bottomEnd); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_ClickEvent_Void* value) { +inline void WriteToString(std::string* result, const Opt_LocalizedBorderRadiuses* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3573,38 +3622,28 @@ inline void WriteToString(std::string* result, const Opt_Callback_ClickEvent_Voi result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_ClickEvent_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_LocalizedBorderRadiuses& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_Union_Number_String& value) +inline Ark_RuntimeType runtimeType(const Ark_MenuPreviewMode& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } - template <> -inline void WriteToString(std::string* result, const Ark_Union_Number_String* value); - -inline void WriteToString(std::string* result, const Array_Union_Number_String* 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_Number_String*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_MenuPreviewMode value) { + result->append("Ark_MenuPreviewMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_Union_Number_String* value) { +inline void WriteToString(std::string* result, const Opt_MenuPreviewMode* 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); @@ -3612,17 +3651,17 @@ inline void WriteToString(std::string* result, const Opt_Array_Union_Number_Stri result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Union_Number_String& value) +inline Ark_RuntimeType runtimeType(const Opt_MenuPreviewMode& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_PopInfo_Void& value) +inline Ark_RuntimeType runtimeType(const Callback_DismissPopupAction_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_PopInfo_Void* value) { +inline void WriteToString(std::string* result, const Callback_DismissPopupAction_Void* value) { result->append("{"); result->append(".resource="); WriteToString(result, &value->resource); @@ -3630,25 +3669,7 @@ inline void WriteToString(std::string* result, const Callback_PopInfo_Void* valu result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_PopInfo_Void* 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_Callback_PopInfo_Void& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline void WriteToString(std::string* result, const Opt_CustomObject* value) { +inline void WriteToString(std::string* result, const Opt_Callback_DismissPopupAction_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3661,54 +3682,25 @@ inline void WriteToString(std::string* result, const Opt_CustomObject* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_CustomObject& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_TitleHeight& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_TitleHeight value) { - result->append("Ark_TitleHeight("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TitleHeight* 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_TitleHeight& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_DismissPopupAction_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_SwipeActionState_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_Literal_ResourceColor_color& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_SwipeActionState_Void* value) { +inline void WriteToString(std::string* result, const Ark_Literal_ResourceColor_color* value) { result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); + // Ark_ResourceColor color + result->append(".color="); + WriteToString(result, &value->color); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_SwipeActionState_Void* value) { +inline void WriteToString(std::string* result, const Opt_Literal_ResourceColor_color* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3721,25 +3713,33 @@ inline void WriteToString(std::string* result, const Opt_Callback_SwipeActionSta result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_SwipeActionState_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_Literal_ResourceColor_color& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_Void& value) +inline Ark_RuntimeType runtimeType(const Array_DragPreviewMode& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Callback_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); +inline void WriteToString(std::string* result, const Ark_DragPreviewMode value); + +inline void WriteToString(std::string* result, const Array_DragPreviewMode* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, 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_Callback_Void* value) { +inline void WriteToString(std::string* result, const Opt_Array_DragPreviewMode* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -3752,30 +3752,28 @@ inline void WriteToString(std::string* result, const Opt_Callback_Void* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_DragPreviewMode& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const CustomNodeBuilder& value) +inline Ark_RuntimeType runtimeType(const Ark_DragPreviewMode& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const CustomNodeBuilder* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_DragPreviewMode value) { + result->append("Ark_DragPreviewMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_CustomNodeBuilder* value) { +inline void WriteToString(std::string* result, const Opt_DragPreviewMode* 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); @@ -3783,44 +3781,28 @@ inline void WriteToString(std::string* result, const Opt_CustomNodeBuilder* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_CustomNodeBuilder& value) +inline Ark_RuntimeType runtimeType(const Opt_DragPreviewMode& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Length_GridRowSizeOption& value) +inline Ark_RuntimeType runtimeType(const Ark_OutlineStyle& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Length_GridRowSizeOption: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Length_GridRowSizeOption* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Length - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_GridRowSizeOption - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_OutlineStyle value) { + result->append("Ark_OutlineStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Length_GridRowSizeOption* value) { +inline void WriteToString(std::string* result, const Opt_OutlineStyle* 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); @@ -3828,7 +3810,7 @@ inline void WriteToString(std::string* result, const Opt_Union_Length_GridRowSiz result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Length_GridRowSizeOption& value) +inline Ark_RuntimeType runtimeType(const Opt_OutlineStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -3901,37 +3883,21 @@ inline Ark_RuntimeType runtimeType(const Opt_GradientDirection& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EdgeStyles& value) +inline Ark_RuntimeType runtimeType(const Ark_CanvasPattern& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_EdgeStyles* value) { - result->append("{"); - // Ark_BorderStyle top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_BorderStyle right - result->append(", "); - result->append(".right="); - WriteToString(result, &value->right); - // Ark_BorderStyle bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_BorderStyle left - result->append(", "); - result->append(".left="); - WriteToString(result, &value->left); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_CanvasPattern value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_EdgeStyles* value) { +inline void WriteToString(std::string* result, const Opt_CanvasPattern* 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); @@ -3939,42 +3905,26 @@ inline void WriteToString(std::string* result, const Opt_EdgeStyles* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_EdgeStyles& value) +inline Ark_RuntimeType runtimeType(const Opt_CanvasPattern& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LocalizedEdgeColors& value) +inline Ark_RuntimeType runtimeType(const Ark_CanvasGradient& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LocalizedEdgeColors* value) { - result->append("{"); - // Ark_ResourceColor top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_ResourceColor end - result->append(", "); - result->append(".end="); - WriteToString(result, &value->end); - // Ark_ResourceColor bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_ResourceColor start - result->append(", "); - result->append(".start="); - WriteToString(result, &value->start); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_CanvasGradient value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_LocalizedEdgeColors* value) { +inline void WriteToString(std::string* result, const Opt_CanvasGradient* 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); @@ -3982,37 +3932,25 @@ inline void WriteToString(std::string* result, const Opt_LocalizedEdgeColors* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LocalizedEdgeColors& value) +inline Ark_RuntimeType runtimeType(const Opt_CanvasGradient& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EdgeColors& value) +inline Ark_RuntimeType runtimeType(const VoidCallback& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_EdgeColors* value) { +inline void WriteToString(std::string* result, const VoidCallback* value) { result->append("{"); - // Ark_ResourceColor top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_ResourceColor right - result->append(", "); - result->append(".right="); - WriteToString(result, &value->right); - // Ark_ResourceColor bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_ResourceColor left - result->append(", "); - result->append(".left="); - WriteToString(result, &value->left); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_EdgeColors* value) { +inline void WriteToString(std::string* result, const Opt_VoidCallback* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4025,42 +3963,28 @@ inline void WriteToString(std::string* result, const Opt_EdgeColors* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_EdgeColors& value) +inline Ark_RuntimeType runtimeType(const Opt_VoidCallback& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LocalizedEdgeWidths& value) +inline Ark_RuntimeType runtimeType(const Ark_DialogButtonStyle& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_LocalizedEdgeWidths* value) { - result->append("{"); - // Ark_LengthMetrics top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_LengthMetrics end - result->append(", "); - result->append(".end="); - WriteToString(result, &value->end); - // Ark_LengthMetrics bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_LengthMetrics start - result->append(", "); - result->append(".start="); - WriteToString(result, &value->start); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_DialogButtonStyle value) { + result->append("Ark_DialogButtonStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_LocalizedEdgeWidths* value) { +inline void WriteToString(std::string* result, const Opt_DialogButtonStyle* 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); @@ -4068,37 +3992,33 @@ inline void WriteToString(std::string* result, const Opt_LocalizedEdgeWidths* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LocalizedEdgeWidths& value) +inline Ark_RuntimeType runtimeType(const Opt_DialogButtonStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EdgeWidths& value) +inline Ark_RuntimeType runtimeType(const Map_String_CustomObject& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_EdgeWidths* value) { +inline void WriteToString(std::string* result, const Ark_String* value); +template <> +inline void WriteToString(std::string* result, const Ark_CustomObject* value); +template <> +inline void WriteToString(std::string* result, const Map_String_CustomObject* value) { result->append("{"); - // Ark_Length top - result->append(".top="); - WriteToString(result, &value->top); - // Ark_Length right - result->append(", "); - result->append(".right="); - WriteToString(result, &value->right); - // Ark_Length bottom - result->append(", "); - result->append(".bottom="); - WriteToString(result, &value->bottom); - // Ark_Length left - result->append(", "); - result->append(".left="); - WriteToString(result, &value->left); + int32_t count = value->size; + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_String*)&value->keys[i]); + result->append(": "); + WriteToString(result, (const Ark_CustomObject*)&value->values[i]); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_EdgeWidths* value) { +inline void WriteToString(std::string* result, const Opt_Map_String_CustomObject* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4111,29 +4031,25 @@ inline void WriteToString(std::string* result, const Opt_EdgeWidths* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_EdgeWidths& value) +inline Ark_RuntimeType runtimeType(const Opt_Map_String_CustomObject& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SheetTitleOptions& value) +inline Ark_RuntimeType runtimeType(const Callback_NavigationTransitionProxy_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SheetTitleOptions* value) { +inline void WriteToString(std::string* result, const Callback_NavigationTransitionProxy_Void* value) { result->append("{"); - // Ark_ResourceStr title - result->append(".title="); - WriteToString(result, &value->title); - // Ark_ResourceStr subtitle - result->append(", "); - result->append(".subtitle="); - WriteToString(result, &value->subtitle); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_SheetTitleOptions* value) { +inline void WriteToString(std::string* result, const Opt_Callback_NavigationTransitionProxy_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4146,39 +4062,25 @@ inline void WriteToString(std::string* result, const Opt_SheetTitleOptions* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SheetTitleOptions& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_NavigationTransitionProxy_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_SheetSize_Length& value) +inline Ark_RuntimeType runtimeType(const Callback_Boolean_Void& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_SheetSize_Length: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_SheetSize_Length* value) { +inline void WriteToString(std::string* result, const Callback_Boolean_Void* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_SheetSize - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_Length - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_SheetSize_Length* value) { +inline void WriteToString(std::string* result, const Opt_Callback_Boolean_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4191,12 +4093,25 @@ inline void WriteToString(std::string* result, const Opt_Union_SheetSize_Length* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_SheetSize_Length& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_Boolean_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_TransitionEffect* value) { +inline Ark_RuntimeType runtimeType(const Ark_ColorMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ColorMetrics* value) { + result->append("{"); + // Ark_String _ColorMetricsStub + result->append("._ColorMetricsStub="); + WriteToString(result, &value->_ColorMetricsStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ColorMetrics* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4209,37 +4124,25 @@ inline void WriteToString(std::string* result, const Opt_TransitionEffect* value result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TransitionEffect& value) +inline Ark_RuntimeType runtimeType(const Opt_ColorMetrics& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LocalizedBorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Ark_StyledStringValue& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LocalizedBorderRadiuses* value) { +inline void WriteToString(std::string* result, const Ark_StyledStringValue* value) { result->append("{"); - // Ark_LengthMetrics topStart - result->append(".topStart="); - WriteToString(result, &value->topStart); - // Ark_LengthMetrics topEnd - result->append(", "); - result->append(".topEnd="); - WriteToString(result, &value->topEnd); - // Ark_LengthMetrics bottomStart - result->append(", "); - result->append(".bottomStart="); - WriteToString(result, &value->bottomStart); - // Ark_LengthMetrics bottomEnd - result->append(", "); - result->append(".bottomEnd="); - WriteToString(result, &value->bottomEnd); + // Ark_String stub + result->append(".stub="); + WriteToString(result, &value->stub); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LocalizedBorderRadiuses* value) { +inline void WriteToString(std::string* result, const Opt_StyledStringValue* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4252,23 +4155,23 @@ inline void WriteToString(std::string* result, const Opt_LocalizedBorderRadiuses result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LocalizedBorderRadiuses& value) +inline Ark_RuntimeType runtimeType(const Opt_StyledStringValue& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_MenuPreviewMode& value) +inline Ark_RuntimeType runtimeType(const Ark_StyledStringKey& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_MenuPreviewMode value) { - result->append("Ark_MenuPreviewMode("); +inline void WriteToString(std::string* result, const Ark_StyledStringKey value) { + result->append("Ark_StyledStringKey("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_MenuPreviewMode* value) { +inline void WriteToString(std::string* result, const Opt_StyledStringKey* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4281,25 +4184,33 @@ inline void WriteToString(std::string* result, const Opt_MenuPreviewMode* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_MenuPreviewMode& value) +inline Ark_RuntimeType runtimeType(const Opt_StyledStringKey& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_DismissPopupAction_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_ImageAttachmentLayoutStyle& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_DismissPopupAction_Void* value) { +inline void WriteToString(std::string* result, const Ark_ImageAttachmentLayoutStyle* value) { result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); + // Ark_Union_LengthMetrics_Margin margin + result->append(".margin="); + WriteToString(result, &value->margin); + // Ark_Union_LengthMetrics_Padding padding + result->append(", "); + result->append(".padding="); + WriteToString(result, &value->padding); + // Ark_Union_LengthMetrics_BorderRadiuses borderRadius + result->append(", "); + result->append(".borderRadius="); + WriteToString(result, &value->borderRadius); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_DismissPopupAction_Void* value) { +inline void WriteToString(std::string* result, const Opt_ImageAttachmentLayoutStyle* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4312,25 +4223,29 @@ inline void WriteToString(std::string* result, const Opt_Callback_DismissPopupAc result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_DismissPopupAction_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentLayoutStyle& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Literal_ResourceColor_color& value) +inline Ark_RuntimeType runtimeType(const Ark_SizeOptions& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Literal_ResourceColor_color* value) { +inline void WriteToString(std::string* result, const Ark_SizeOptions* value) { result->append("{"); - // Ark_ResourceColor color - result->append(".color="); - WriteToString(result, &value->color); + // Ark_Length width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Length height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Literal_ResourceColor_color* value) { +inline void WriteToString(std::string* result, const Opt_SizeOptions* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4343,33 +4258,39 @@ inline void WriteToString(std::string* result, const Opt_Literal_ResourceColor_c result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Literal_ResourceColor_color& value) +inline Ark_RuntimeType runtimeType(const Opt_SizeOptions& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_DragPreviewMode& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_Margin_Dimension& value) { - return INTEROP_RUNTIME_OBJECT; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Margin_Dimension: %d", value.selector); + } } - template <> -inline void WriteToString(std::string* result, const Ark_DragPreviewMode value); - -inline void WriteToString(std::string* result, const Array_DragPreviewMode* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, value->array[i]); +inline void WriteToString(std::string* result, const Ark_Union_Margin_Dimension* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Padding + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_Length + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_DragPreviewMode* value) { +inline void WriteToString(std::string* result, const Opt_Union_Margin_Dimension* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4382,28 +4303,30 @@ inline void WriteToString(std::string* result, const Opt_Array_DragPreviewMode* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_DragPreviewMode& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_Margin_Dimension& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DragPreviewMode& value) +inline Ark_RuntimeType runtimeType(const GetItemMainSizeByIndex& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_DragPreviewMode value) { - result->append("Ark_DragPreviewMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const GetItemMainSizeByIndex* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_DragPreviewMode* value) { +inline void WriteToString(std::string* result, const Opt_GetItemMainSizeByIndex* 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); @@ -4411,28 +4334,50 @@ inline void WriteToString(std::string* result, const Opt_DragPreviewMode* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_DragPreviewMode& value) +inline Ark_RuntimeType runtimeType(const Opt_GetItemMainSizeByIndex& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_OutlineStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_String_PixelMap_Resource& value) { - return INTEROP_RUNTIME_NUMBER; + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_PixelMap_Resource: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Ark_OutlineStyle value) { - result->append("Ark_OutlineStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Union_String_PixelMap_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_PixelMap + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, value->value1); + } + // Ark_Resource + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, &value->value2); + } + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_OutlineStyle* value) { +inline void WriteToString(std::string* result, const Opt_Union_String_PixelMap_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); @@ -4440,35 +4385,26 @@ inline void WriteToString(std::string* result, const Opt_OutlineStyle* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_OutlineStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_String_PixelMap_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_CanvasPattern* 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("}"); +inline Ark_RuntimeType runtimeType(const Ark_ImageAnalyzerController& value) +{ + return INTEROP_RUNTIME_OBJECT; } template <> -inline Ark_RuntimeType runtimeType(const Opt_CanvasPattern& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +inline void WriteToString(std::string* result, const Ark_ImageAnalyzerController value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_CanvasGradient* value) { +inline void WriteToString(std::string* result, const Opt_ImageAnalyzerController* 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); @@ -4476,25 +4412,33 @@ inline void WriteToString(std::string* result, const Opt_CanvasGradient* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_CanvasGradient& value) +inline Ark_RuntimeType runtimeType(const Opt_ImageAnalyzerController& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const VoidCallback& value) +inline Ark_RuntimeType runtimeType(const Array_ImageAnalyzerType& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const VoidCallback* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); +inline void WriteToString(std::string* result, const Ark_ImageAnalyzerType value); + +inline void WriteToString(std::string* result, const Array_ImageAnalyzerType* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, 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_VoidCallback* value) { +inline void WriteToString(std::string* result, const Opt_Array_ImageAnalyzerType* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4507,23 +4451,23 @@ inline void WriteToString(std::string* result, const Opt_VoidCallback* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_VoidCallback& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_ImageAnalyzerType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DialogButtonStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_MenuType& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_DialogButtonStyle value) { - result->append("Ark_DialogButtonStyle("); +inline void WriteToString(std::string* result, const Ark_MenuType value) { + result->append("Ark_MenuType("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_DialogButtonStyle* value) { +inline void WriteToString(std::string* result, const Opt_MenuType* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4536,33 +4480,33 @@ inline void WriteToString(std::string* result, const Opt_DialogButtonStyle* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_DialogButtonStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_MenuType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Map_String_CustomObject& value) +inline Ark_RuntimeType runtimeType(const Array_TouchObject& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_String* value); -template <> -inline void WriteToString(std::string* result, const Ark_CustomObject* value); -template <> -inline void WriteToString(std::string* result, const Map_String_CustomObject* value) { - result->append("{"); - int32_t count = value->size; +inline void WriteToString(std::string* result, const Ark_TouchObject* value); + +inline void WriteToString(std::string* result, const Array_TouchObject* 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_String*)&value->keys[i]); - result->append(": "); - WriteToString(result, (const Ark_CustomObject*)&value->values[i]); + WriteToString(result, (const Ark_TouchObject*)&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_Map_String_CustomObject* value) { +inline void WriteToString(std::string* result, const Opt_Array_TouchObject* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4575,30 +4519,28 @@ inline void WriteToString(std::string* result, const Opt_Map_String_CustomObject result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Map_String_CustomObject& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_TouchObject& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_NavigationTransitionProxy_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_TouchType& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Callback_NavigationTransitionProxy_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_TouchType value) { + result->append("Ark_TouchType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_NavigationTransitionProxy_Void* value) { +inline void WriteToString(std::string* result, const Opt_TouchType* 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); @@ -4606,30 +4548,28 @@ inline void WriteToString(std::string* result, const Opt_Callback_NavigationTran result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_NavigationTransitionProxy_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_TouchType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_Boolean_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_SourceTool& value) { - return INTEROP_RUNTIME_OBJECT; + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Callback_Boolean_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_SourceTool value) { + result->append("Ark_SourceTool("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_Boolean_Void* value) { +inline void WriteToString(std::string* result, const Opt_SourceTool* 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); @@ -4637,23 +4577,23 @@ inline void WriteToString(std::string* result, const Opt_Callback_Boolean_Void* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_Boolean_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_SourceTool& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_NavDestinationMode& value) +inline Ark_RuntimeType runtimeType(const Ark_SourceType& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_NavDestinationMode value) { - result->append("Ark_NavDestinationMode("); +inline void WriteToString(std::string* result, const Ark_SourceType value) { + result->append("Ark_SourceType("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_NavDestinationMode* value) { +inline void WriteToString(std::string* result, const Opt_SourceType* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4666,25 +4606,25 @@ inline void WriteToString(std::string* result, const Opt_NavDestinationMode* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_NavDestinationMode& value) +inline Ark_RuntimeType runtimeType(const Opt_SourceType& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ColorMetrics& value) +inline Ark_RuntimeType runtimeType(const Ark_EventTarget& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ColorMetrics* value) { +inline void WriteToString(std::string* result, const Ark_EventTarget* value) { result->append("{"); - // Ark_String __ColorMetricsStub - result->append(".__ColorMetricsStub="); - WriteToString(result, &value->__ColorMetricsStub); + // Ark_Area area + result->append(".area="); + WriteToString(result, &value->area); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ColorMetrics* value) { +inline void WriteToString(std::string* result, const Opt_EventTarget* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4697,105 +4637,33 @@ inline void WriteToString(std::string* result, const Opt_ColorMetrics* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ColorMetrics& value) +inline Ark_RuntimeType runtimeType(const Opt_EventTarget& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_StyledStringValue& value) +inline Ark_RuntimeType runtimeType(const Map_String_String& value) { - 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); - case 4: return runtimeType(value.value4); - case 5: return runtimeType(value.value5); - case 6: return runtimeType(value.value6); - case 7: return runtimeType(value.value7); - case 8: return runtimeType(value.value8); - case 9: return runtimeType(value.value9); - case 10: return runtimeType(value.value10); - case 11: return runtimeType(value.value11); - case 12: return runtimeType(value.value12); - default: throw "Bad selector in Ark_StyledStringValue: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_StyledStringValue* value) { +inline void WriteToString(std::string* result, const Ark_String* value); +template <> +inline void WriteToString(std::string* result, const Ark_String* value); +template <> +inline void WriteToString(std::string* result, const Map_String_String* value) { result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_TextStyle_styled_string - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_DecorationStyle - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_BaselineOffsetStyle - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_LetterSpacingStyle - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, &value->value3); - } - // Ark_TextShadowStyle - if (value->selector == 4) { - result->append(".value4="); - WriteToString(result, &value->value4); - } - // Ark_GestureStyle - if (value->selector == 5) { - result->append(".value5="); - WriteToString(result, &value->value5); - } - // Ark_ImageAttachment - if (value->selector == 6) { - result->append(".value6="); - WriteToString(result, &value->value6); - } - // Ark_ParagraphStyle - if (value->selector == 7) { - result->append(".value7="); - WriteToString(result, &value->value7); - } - // Ark_LineHeightStyle - if (value->selector == 8) { - result->append(".value8="); - WriteToString(result, &value->value8); - } - // Ark_UrlStyle - if (value->selector == 9) { - result->append(".value9="); - WriteToString(result, &value->value9); - } - // Ark_CustomSpan - if (value->selector == 10) { - result->append(".value10="); - WriteToString(result, &value->value10); - } - // Ark_UserDataSpan - if (value->selector == 11) { - result->append(".value11="); - WriteToString(result, &value->value11); - } - // Ark_BackgroundColorStyle - if (value->selector == 12) { - result->append(".value12="); - WriteToString(result, &value->value12); + int32_t count = value->size; + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_String*)&value->keys[i]); + result->append(": "); + WriteToString(result, (const Ark_String*)&value->values[i]); } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_StyledStringValue* value) { +inline void WriteToString(std::string* result, const Opt_Map_String_String* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4808,23 +4676,23 @@ inline void WriteToString(std::string* result, const Opt_StyledStringValue* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_StyledStringValue& value) +inline Ark_RuntimeType runtimeType(const Opt_Map_String_String& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_StyledStringKey& value) +inline Ark_RuntimeType runtimeType(const Ark_NestedScrollMode& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_StyledStringKey value) { - result->append("Ark_StyledStringKey("); +inline void WriteToString(std::string* result, const Ark_NestedScrollMode value) { + result->append("Ark_NestedScrollMode("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_StyledStringKey* value) { +inline void WriteToString(std::string* result, const Opt_NestedScrollMode* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -4837,44 +4705,26 @@ inline void WriteToString(std::string* result, const Opt_StyledStringKey* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_StyledStringKey& value) +inline Ark_RuntimeType runtimeType(const Opt_NestedScrollMode& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Margin_Dimension& value) +inline Ark_RuntimeType runtimeType(const Ark_WebResourceRequest& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Margin_Dimension: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_Margin_Dimension* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Padding - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_Length - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); +inline void WriteToString(std::string* result, const Ark_WebResourceRequest value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_Union_Margin_Dimension* value) { +inline void WriteToString(std::string* result, const Opt_WebResourceRequest* 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); @@ -4882,288 +4732,21 @@ inline void WriteToString(std::string* result, const Opt_Union_Margin_Dimension* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Margin_Dimension& value) +inline Ark_RuntimeType runtimeType(const Opt_WebResourceRequest& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const GetItemMainSizeByIndex& value) +inline Ark_RuntimeType runtimeType(const Ark_WebviewController& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const GetItemMainSizeByIndex* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_WebviewController value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GetItemMainSizeByIndex* 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_GetItemMainSizeByIndex& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_String_PixelMap_Resource& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_PixelMap_Resource: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_String_PixelMap_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_PixelMap - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_Resource - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_String_PixelMap_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); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_String_PixelMap_Resource& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline void WriteToString(std::string* result, const Opt_ImageAnalyzerController* 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_ImageAnalyzerController& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_ImageAnalyzerType& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_ImageAnalyzerType value); - -inline void WriteToString(std::string* result, const Array_ImageAnalyzerType* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, 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_ImageAnalyzerType* 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_ImageAnalyzerType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_MenuType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_MenuType value) { - result->append("Ark_MenuType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_MenuType* 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_MenuType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_TouchObject& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_TouchObject* value); - -inline void WriteToString(std::string* result, const Array_TouchObject* 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_TouchObject*)&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_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_Array_TouchObject& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_TouchType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_TouchType value) { - result->append("Ark_TouchType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TouchType* 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_TouchType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_SourceTool& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_SourceTool value) { - result->append("Ark_SourceTool("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_SourceTool* 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_SourceTool& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_SourceType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_SourceType value) { - result->append("Ark_SourceType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_SourceType* value) { +inline void WriteToString(std::string* result, const Opt_WebviewController* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -5176,144 +4759,18 @@ inline void WriteToString(std::string* result, const Opt_SourceType* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SourceType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_EventTarget& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_EventTarget* value) { - result->append("{"); - // Ark_Area area - result->append(".area="); - WriteToString(result, &value->area); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_EventTarget* 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_EventTarget& value) +inline Ark_RuntimeType runtimeType(const Opt_WebviewController& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Map_String_String& value) +inline Ark_RuntimeType runtimeType(const Ark_WebController& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_String* value); -template <> -inline void WriteToString(std::string* result, const Ark_String* value); -template <> -inline void WriteToString(std::string* result, const Map_String_String* value) { - result->append("{"); - int32_t count = value->size; - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_String*)&value->keys[i]); - result->append(": "); - WriteToString(result, (const Ark_String*)&value->values[i]); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Map_String_String* 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_Map_String_String& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NestedScrollMode& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_NestedScrollMode value) { - result->append("Ark_NestedScrollMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NestedScrollMode* 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_NestedScrollMode& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline void WriteToString(std::string* result, const Opt_WebResourceRequest* 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_WebResourceRequest& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline void WriteToString(std::string* result, const Opt_WebviewController* 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_WebviewController& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +inline void WriteToString(std::string* result, const Ark_WebController value) { + WriteToString(result, static_cast(value)); } template <> inline void WriteToString(std::string* result, const Opt_WebController* value) { @@ -5321,7 +4778,7 @@ inline void WriteToString(std::string* result, const Opt_WebController* value) { 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); @@ -5498,9 +4955,9 @@ inline Ark_RuntimeType runtimeType(const Ark_DateTimeOptions& value) template <> inline void WriteToString(std::string* result, const Ark_DateTimeOptions* value) { result->append("{"); - // Ark_String __DateTimeOptionsStub - result->append(".__DateTimeOptionsStub="); - WriteToString(result, &value->__DateTimeOptionsStub); + // Ark_String _DateTimeOptionsStub + result->append("._DateTimeOptionsStub="); + WriteToString(result, &value->_DateTimeOptionsStub); result->append("}"); } template <> @@ -5527,7 +4984,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ShadowOptions_ShadowStyle& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ShadowOptions_ShadowStyle: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ShadowOptions_ShadowStyle: %d", value.selector); } } template <> @@ -5923,7 +5380,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Array_Number& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_Array_Number: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_Array_Number: %d", value.selector); } } template <> @@ -5968,7 +5425,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Array_String& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_String_Array_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Array_String: %d", value.selector); } } template <> @@ -6016,7 +5473,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Type_TextPickerOptions_range& value case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); case 4: return runtimeType(value.value4); - default: throw "Bad selector in Ark_Type_TextPickerOptions_range: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Type_TextPickerOptions_range: %d", value.selector); } } template <> @@ -6100,12 +5557,21 @@ inline Ark_RuntimeType runtimeType(const Opt_MenuPolicy& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextMenuItemId& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextMenuItemId value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TextMenuItemId* 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); @@ -6248,7 +5714,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Padding_Dimension_LocalizedPa case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Padding_Dimension_LocalizedPadding: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Padding_Dimension_LocalizedPadding: %d", value.selector); } } template <> @@ -6349,7 +5815,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_TabBarSymbol& val switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceStr_TabBarSymbol: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceStr_TabBarSymbol: %d", value.selector); } } template <> @@ -6394,7 +5860,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Union_Padding_Dimension_Local switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Union_Padding_Dimension_LocalizedPadding: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Union_Padding_Dimension_LocalizedPadding: %d", value.selector); } } template <> @@ -6559,7 +6025,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource_ComponentCont case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_Resource_ComponentContent: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource_ComponentContent: %d", value.selector); } } template <> @@ -6787,7 +6253,7 @@ inline Ark_RuntimeType runtimeType(const Ark_VP& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_VP: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_VP: %d", value.selector); } } template <> @@ -6827,118 +6293,6 @@ inline Ark_RuntimeType runtimeType(const Opt_VP& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RectAttribute& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_RectAttribute* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_RectAttribute* 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_RectAttribute& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_PathAttribute& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_PathAttribute* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_PathAttribute* 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_PathAttribute& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_EllipseAttribute& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_EllipseAttribute* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_EllipseAttribute* 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_EllipseAttribute& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_CircleAttribute& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_CircleAttribute* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_CircleAttribute* 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_CircleAttribute& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_CancelButtonStyle& value) { return INTEROP_RUNTIME_NUMBER; @@ -7080,7 +6434,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ScrollAnimationOptions_Boolea switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ScrollAnimationOptions_Boolean: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ScrollAnimationOptions_Boolean: %d", value.selector); } } template <> @@ -7568,7 +6922,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String_Array_Union_Num case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Number_String_Array_Union_Number_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_String_Array_Union_Number_String: %d", value.selector); } } template <> @@ -7648,7 +7002,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_Resource& value case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_Number_Resource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Number_Resource: %d", value.selector); } } template <> @@ -7693,12 +7047,50 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number_Resource& value return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_NavDestinationMode& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavDestinationMode value) { + result->append("Ark_NavDestinationMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavDestinationMode* 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_NavDestinationMode& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_NavPathStack& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavPathStack value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_NavPathStack* 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); @@ -7716,24 +7108,8 @@ inline Ark_RuntimeType runtimeType(const Ark_NavPathInfo& value) return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_NavPathInfo* value) { - result->append("{"); - // Ark_String name - result->append(".name="); - WriteToString(result, &value->name); - // Ark_CustomObject param - result->append(", "); - result->append(".param="); - WriteToString(result, &value->param); - // Callback_PopInfo_Void onPop - result->append(", "); - result->append(".onPop="); - WriteToString(result, &value->onPop); - // Ark_Boolean isEntry - result->append(", "); - result->append(".isEntry="); - WriteToString(result, &value->isEntry); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_NavPathInfo value) { + WriteToString(result, static_cast(value)); } template <> inline void WriteToString(std::string* result, const Opt_NavPathInfo* value) { @@ -7741,7 +7117,7 @@ inline void WriteToString(std::string* result, const Opt_NavPathInfo* value) { 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); @@ -7907,7 +7283,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_TitleHeight_Length& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_TitleHeight_Length: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_TitleHeight_Length: %d", value.selector); } } template <> @@ -8164,37 +7540,21 @@ inline Ark_RuntimeType runtimeType(const Opt_GridColColumnOption& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LinearGradient_common& value) +inline Ark_RuntimeType runtimeType(const Ark_LinearGradient& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LinearGradient_common* value) { - result->append("{"); - // Ark_Union_Number_String angle - result->append(".angle="); - WriteToString(result, &value->angle); - // Ark_GradientDirection direction - result->append(", "); - result->append(".direction="); - WriteToString(result, &value->direction); - // Array_Tuple_ResourceColor_Number colors - result->append(", "); - result->append(".colors="); - WriteToString(result, &value->colors); - // Ark_Boolean repeating - result->append(", "); - result->append(".repeating="); - WriteToString(result, &value->repeating); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_LinearGradient value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_LinearGradient_common* value) { +inline void WriteToString(std::string* result, const Opt_LinearGradient* 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); @@ -8202,7 +7562,7 @@ inline void WriteToString(std::string* result, const Opt_LinearGradient_common* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LinearGradient_common& value) +inline Ark_RuntimeType runtimeType(const Opt_LinearGradient& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -8411,7 +7771,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Curve_String_ICurve& value) case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Curve_String_ICurve: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Curve_String_ICurve: %d", value.selector); } } template <> @@ -8433,7 +7793,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Curve_String_ICur // Ark_ICurve if (value->selector == 2) { result->append(".value2="); - WriteToString(result, &value->value2); + WriteToString(result, value->value2); } result->append("}"); } @@ -8463,9 +7823,9 @@ inline Ark_RuntimeType runtimeType(const Ark_Scene& value) template <> inline void WriteToString(std::string* result, const Ark_Scene* value) { result->append("{"); - // Ark_String __SceneStub - result->append(".__SceneStub="); - WriteToString(result, &value->__SceneStub); + // Ark_String _SceneStub + result->append("._SceneStub="); + WriteToString(result, &value->_SceneStub); result->append("}"); } template <> @@ -8523,9 +7883,9 @@ inline Ark_RuntimeType runtimeType(const Ark_UIContext& value) template <> inline void WriteToString(std::string* result, const Ark_UIContext* value) { result->append("{"); - // Ark_String __UIContextStub - result->append(".__UIContextStub="); - WriteToString(result, &value->__UIContextStub); + // Ark_String _UIContextStub + result->append("._UIContextStub="); + WriteToString(result, &value->_UIContextStub); result->append("}"); } template <> @@ -8672,7 +8032,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_BorderStyle_EdgeStyles& value switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_BorderStyle_EdgeStyles: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_BorderStyle_EdgeStyles: %d", value.selector); } } template <> @@ -8718,7 +8078,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_EdgeColors_Loca case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_ResourceColor_EdgeColors_LocalizedEdgeColors: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceColor_EdgeColors_LocalizedEdgeColors: %d", value.selector); } } template <> @@ -8769,7 +8129,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_EdgeWidths_Localize case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Dimension_EdgeWidths_LocalizedEdgeWidths: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_EdgeWidths_LocalizedEdgeWidths: %d", value.selector); } } template <> @@ -8912,7 +8272,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_SheetTitleOptions_CustomBuild switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_SheetTitleOptions_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_SheetTitleOptions_CustomBuilder: %d", value.selector); } } template <> @@ -8986,7 +8346,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Boolean_Resource& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Boolean_Resource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Boolean_Resource: %d", value.selector); } } template <> @@ -9170,7 +8530,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Length_BorderRadiuses_Localiz case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Length_BorderRadiuses_LocalizedBorderRadiuses: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Length_BorderRadiuses_LocalizedBorderRadiuses: %d", value.selector); } } template <> @@ -9220,7 +8580,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_MenuPreviewMode_CustomBuilder switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_MenuPreviewMode_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_MenuPreviewMode_CustomBuilder: %d", value.selector); } } template <> @@ -9294,7 +8654,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Boolean_Callback_DismissPopup switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Boolean_Callback_DismissPopupAction_Void: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Boolean_Callback_DismissPopupAction_Void: %d", value.selector); } } template <> @@ -9368,7 +8728,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Boolean_Literal_ResourceColor switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Boolean_Literal_ResourceColor_color: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Boolean_Literal_ResourceColor_color: %d", value.selector); } } template <> @@ -9446,7 +8806,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Color_String_Resource_Number& case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_Color_String_Resource_Number: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Color_String_Resource_Number: %d", value.selector); } } template <> @@ -9664,7 +9024,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Boolean_Number& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Boolean_Number: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Boolean_Number: %d", value.selector); } } template <> @@ -9711,9 +9071,9 @@ inline Ark_RuntimeType runtimeType(const Ark_ImageModifier& value) template <> inline void WriteToString(std::string* result, const Ark_ImageModifier* value) { result->append("{"); - // Ark_String __ImageModifierStub - result->append(".__ImageModifierStub="); - WriteToString(result, &value->__ImageModifierStub); + // Ark_String _ImageModifierStub + result->append("._ImageModifierStub="); + WriteToString(result, &value->_ImageModifierStub); result->append("}"); } template <> @@ -9740,7 +9100,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_DragPreviewMode_Array_DragPre switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_DragPreviewMode_Array_DragPreviewMode: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_DragPreviewMode_Array_DragPreviewMode: %d", value.selector); } } template <> @@ -10483,7 +9843,32 @@ inline Ark_RuntimeType runtimeType(const Opt_EdgeOutlineWidths& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_DrawingCanvas* value) { +inline Ark_RuntimeType runtimeType(const Ark_LinearGradient_common& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LinearGradient_common* value) { + result->append("{"); + // Ark_Union_Number_String angle + result->append(".angle="); + WriteToString(result, &value->angle); + // Ark_GradientDirection direction + result->append(", "); + result->append(".direction="); + WriteToString(result, &value->direction); + // Array_Tuple_ResourceColor_Number colors + result->append(", "); + result->append(".colors="); + WriteToString(result, &value->colors); + // Ark_Boolean repeating + result->append(", "); + result->append(".repeating="); + WriteToString(result, &value->repeating); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LinearGradient_common* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -10496,6 +9881,33 @@ inline void WriteToString(std::string* result, const Opt_DrawingCanvas* value) { result->append("}"); } template <> +inline Ark_RuntimeType runtimeType(const Opt_LinearGradient_common& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_DrawingCanvas& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DrawingCanvas value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_DrawingCanvas* 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_DrawingCanvas& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); @@ -10536,12 +9948,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Size& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_FrameNode& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_FrameNode value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_FrameNode* 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); @@ -10561,7 +9982,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_CanvasGradient_ case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_String_Number_CanvasGradient_CanvasPattern: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Number_CanvasGradient_CanvasPattern: %d", value.selector); } } template <> @@ -10583,12 +10004,12 @@ inline void WriteToString(std::string* result, const Ark_Union_String_Number_Can // Ark_CanvasGradient if (value->selector == 2) { result->append(".value2="); - WriteToString(result, &value->value2); + WriteToString(result, value->value2); } // Ark_CanvasPattern if (value->selector == 3) { result->append(".value3="); - WriteToString(result, &value->value3); + WriteToString(result, value->value3); } result->append("}"); } @@ -10807,7 +10228,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_BorderRadiuses_Loca case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Dimension_BorderRadiuses_LocalizedBorderRadiuses: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_BorderRadiuses_LocalizedBorderRadiuses: %d", value.selector); } } template <> @@ -11121,6 +10542,29 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Extender_OnProgress& value return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Float32& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Opt_Float32* 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_Float32& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CustomTheme& value) { return INTEROP_RUNTIME_OBJECT; @@ -11128,9 +10572,9 @@ inline Ark_RuntimeType runtimeType(const Ark_CustomTheme& value) template <> inline void WriteToString(std::string* result, const Ark_CustomTheme* value) { result->append("{"); - // Ark_String __CustomThemeStub - result->append(".__CustomThemeStub="); - WriteToString(result, &value->__CustomThemeStub); + // Ark_String _CustomThemeStub + result->append("._CustomThemeStub="); + WriteToString(result, &value->_CustomThemeStub); result->append("}"); } template <> @@ -11159,9 +10603,9 @@ inline Ark_RuntimeType runtimeType(const Ark_RestrictedWorker& value) template <> inline void WriteToString(std::string* result, const Ark_RestrictedWorker* value) { result->append("{"); - // Ark_String __RestrictedWorkerStub - result->append(".__RestrictedWorkerStub="); - WriteToString(result, &value->__RestrictedWorkerStub); + // Ark_String _RestrictedWorkerStub + result->append("._RestrictedWorkerStub="); + WriteToString(result, &value->_RestrictedWorkerStub); result->append("}"); } template <> @@ -11250,12 +10694,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Want& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_StyledString& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_StyledString value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_StyledString* 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); @@ -11311,53 +10764,6 @@ inline Ark_RuntimeType runtimeType(const Opt_NavigationAnimatedTransition& value return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_NavContentInfo& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavContentInfo* value) { - result->append("{"); - // Ark_String name - result->append(".name="); - WriteToString(result, &value->name); - // Ark_Number index - result->append(", "); - result->append(".index="); - WriteToString(result, &value->index); - // Ark_NavDestinationMode mode - result->append(", "); - result->append(".mode="); - WriteToString(result, &value->mode); - // Ark_CustomObject param - result->append(", "); - result->append(".param="); - WriteToString(result, &value->param); - // Ark_String navDestinationId - result->append(", "); - result->append(".navDestinationId="); - WriteToString(result, &value->navDestinationId); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavContentInfo* 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_NavContentInfo& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const OnLinearIndicatorChangeCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -11521,9 +10927,9 @@ inline Ark_RuntimeType runtimeType(const Ark_DrawContext& value) template <> inline void WriteToString(std::string* result, const Ark_DrawContext* value) { result->append("{"); - // Ark_String __DrawContextStub - result->append(".__DrawContextStub="); - WriteToString(result, &value->__DrawContextStub); + // Ark_String _DrawContextStub + result->append("._DrawContextStub="); + WriteToString(result, &value->_DrawContextStub); result->append("}"); } template <> @@ -11619,6 +11025,185 @@ inline Ark_RuntimeType runtimeType(const Opt_SpanStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_LengthMetrics_LeadingMarginPlaceholder& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_LengthMetrics_LeadingMarginPlaceholder: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_LengthMetrics_LeadingMarginPlaceholder* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_LengthMetrics + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, value->value0); + } + // Ark_LeadingMarginPlaceholder + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Union_LengthMetrics_LeadingMarginPlaceholder* 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_Union_LengthMetrics_LeadingMarginPlaceholder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_Number_LeadingMarginPlaceholder& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_LeadingMarginPlaceholder: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_Number_LeadingMarginPlaceholder* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_Number + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_LeadingMarginPlaceholder + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Union_Number_LeadingMarginPlaceholder* 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_Union_Number_LeadingMarginPlaceholder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextBackgroundStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextBackgroundStyle* value) { + result->append("{"); + // Ark_ResourceColor color + result->append(".color="); + WriteToString(result, &value->color); + // Ark_Union_Dimension_BorderRadiuses radius + result->append(", "); + result->append(".radius="); + WriteToString(result, &value->radius); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextBackgroundStyle* 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_TextBackgroundStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_CustomSpan& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CustomSpan value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_CustomSpan* 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_CustomSpan& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ImageAttachment& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ImageAttachment value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ImageAttachment* 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_ImageAttachment& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_DpiFollowStrategy& value) { return INTEROP_RUNTIME_NUMBER; @@ -11747,12 +11332,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WaterFlowLayoutMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WaterFlowSections& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WaterFlowSections value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_WaterFlowSections* 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); @@ -11765,12 +11359,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WaterFlowSections& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Scroller& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Scroller value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_Scroller* 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); @@ -11998,12 +11601,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageAIOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_XComponentController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_XComponentController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_XComponentController* 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); @@ -12286,12 +11898,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WebElementType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebKeyboardController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebKeyboardController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_WebKeyboardController* 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); @@ -12364,12 +11985,21 @@ inline Ark_RuntimeType runtimeType(const Opt_RenderProcessNotRespondingReason& v return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_EventResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_EventResult value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_EventResult* 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); @@ -12382,12 +12012,21 @@ inline Ark_RuntimeType runtimeType(const Opt_EventResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TouchEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TouchEvent value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TouchEvent* 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); @@ -12599,12 +12238,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WebNavigationType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_DataResubmissionHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DataResubmissionHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_DataResubmissionHandler* 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); @@ -12617,12 +12265,21 @@ inline Ark_RuntimeType runtimeType(const Opt_DataResubmissionHandler& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ControllerHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ControllerHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ControllerHandler* 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); @@ -12635,12 +12292,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ControllerHandler& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ClientAuthenticationHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ClientAuthenticationHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ClientAuthenticationHandler* 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); @@ -12682,12 +12348,21 @@ inline Ark_RuntimeType runtimeType(const Opt_SslError& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SslErrorHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SslErrorHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_SslErrorHandler* 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); @@ -12739,12 +12414,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_Buffer& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebContextMenuResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebContextMenuResult value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_WebContextMenuResult* 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); @@ -12757,12 +12441,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WebContextMenuResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebContextMenuParam& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebContextMenuParam value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_WebContextMenuParam* 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); @@ -12775,12 +12468,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WebContextMenuParam& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ScreenCaptureHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ScreenCaptureHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ScreenCaptureHandler* 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); @@ -12793,12 +12495,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ScreenCaptureHandler& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PermissionRequest& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PermissionRequest value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_PermissionRequest* 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); @@ -12811,12 +12522,21 @@ inline Ark_RuntimeType runtimeType(const Opt_PermissionRequest& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_HttpAuthHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_HttpAuthHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_HttpAuthHandler* 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); @@ -12829,12 +12549,21 @@ inline Ark_RuntimeType runtimeType(const Opt_HttpAuthHandler& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_FullScreenExitHandler& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_FullScreenExitHandler value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_FullScreenExitHandler* 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); @@ -12870,12 +12599,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Function& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_FileSelectorParam& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_FileSelectorParam value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_FileSelectorParam* 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); @@ -12888,12 +12626,21 @@ inline Ark_RuntimeType runtimeType(const Opt_FileSelectorParam& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_FileSelectorResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_FileSelectorResult value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_FileSelectorResult* 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); @@ -12940,7 +12687,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_WebResourceRequest& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_String_WebResourceRequest: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_WebResourceRequest: %d", value.selector); } } template <> @@ -12957,7 +12704,7 @@ inline void WriteToString(std::string* result, const Ark_Union_String_WebResourc // Ark_WebResourceRequest if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } @@ -12980,12 +12727,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_WebResourceRequest& va return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebResourceResponse& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebResourceResponse value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_WebResourceResponse* 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); @@ -12998,12 +12754,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WebResourceResponse& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebResourceError& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebResourceError value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_WebResourceError* 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); @@ -13016,12 +12781,21 @@ inline Ark_RuntimeType runtimeType(const Opt_WebResourceError& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ConsoleMessage& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ConsoleMessage value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ConsoleMessage* 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); @@ -13034,12 +12808,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ConsoleMessage& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_JsResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_JsResult value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_JsResult* 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); @@ -13052,12 +12835,21 @@ inline Ark_RuntimeType runtimeType(const Opt_JsResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_JsGeolocation& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_JsGeolocation value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_JsGeolocation* 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); @@ -13075,7 +12867,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_WebController_WebviewControll switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_WebController_WebviewController: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_WebController_WebviewController: %d", value.selector); } } template <> @@ -13087,12 +12879,12 @@ inline void WriteToString(std::string* result, const Ark_Union_WebController_Web // Ark_WebController if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_WebviewController if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } @@ -13331,12 +13123,21 @@ 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_VideoController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_VideoController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_VideoController* 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); @@ -13355,7 +13156,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String_PlaybackSpeed& case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Number_String_PlaybackSpeed: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_String_PlaybackSpeed: %d", value.selector); } } template <> @@ -13581,12 +13382,21 @@ inline Ark_RuntimeType runtimeType(const Opt_TimePickerDialogOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextTimerController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextTimerController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TextTimerController* 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); @@ -14029,12 +13839,21 @@ inline Ark_RuntimeType runtimeType(const Opt_TextInputStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextInputController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextInputController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TextInputController* 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); @@ -14130,7 +13949,7 @@ inline void WriteToString(std::string* result, const Ark_TextMenuItem* value) { // Ark_TextMenuItemId id result->append(", "); result->append(".id="); - WriteToString(result, &value->id); + WriteToString(result, value->id); result->append("}"); } template <> @@ -14210,12 +14029,21 @@ 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_TextClockController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextClockController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TextClockController* 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); @@ -14228,12 +14056,21 @@ 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_TextAreaController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextAreaController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TextAreaController* 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); @@ -14374,12 +14211,21 @@ inline Ark_RuntimeType runtimeType(const Opt_FontSettingOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TextController* 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); @@ -14753,12 +14599,21 @@ inline Ark_RuntimeType runtimeType(const Opt_AnimationMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TabsController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TabsController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TabsController* 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); @@ -14828,6 +14683,93 @@ inline Ark_RuntimeType runtimeType(const Opt_SymbolEffect& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_EffectScope& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_EffectScope value) { + result->append("Ark_EffectScope("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_EffectScope* 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_EffectScope& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_EffectDirection& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_EffectDirection value) { + result->append("Ark_EffectDirection("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_EffectDirection* 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_EffectDirection& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_EffectFillStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_EffectFillStyle value) { + result->append("Ark_EffectFillStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_EffectFillStyle* 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_EffectFillStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_DigitIndicator& value) { return INTEROP_RUNTIME_OBJECT; @@ -15091,63 +15033,6 @@ 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_Type_SliderBlockStyle_shape& value) -{ - 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: throw "Bad selector in Ark_Type_SliderBlockStyle_shape: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Type_SliderBlockStyle_shape* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_CircleAttribute - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_EllipseAttribute - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_PathAttribute - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_RectAttribute - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, &value->value3); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Type_SliderBlockStyle_shape* 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_Type_SliderBlockStyle_shape& 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; @@ -15519,12 +15404,21 @@ inline Ark_RuntimeType runtimeType(const Opt_CancelButtonOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SearchController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SearchController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_SearchController* 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); @@ -15631,7 +15525,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_Array_Dimension& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_Array_Dimension: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_Array_Dimension: %d", value.selector); } } template <> @@ -15700,37 +15594,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollSnapAlign& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const ScrollOnScrollCallback& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const ScrollOnScrollCallback* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ScrollOnScrollCallback* 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_ScrollOnScrollCallback& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const ScrollOnWillScrollCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -16054,7 +15917,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_String_Number: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Number: %d", value.selector); } } template <> @@ -16094,12 +15957,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorStyledStringController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorStyledStringController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_RichEditorStyledStringController* 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); @@ -16112,12 +15984,21 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorStyledStringController& v return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_RichEditorController* 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); @@ -16874,45 +16755,6 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorImageSpanOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_FingerInfo& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_FingerInfo* value); - -inline void WriteToString(std::string* result, const Array_FingerInfo* 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_FingerInfo*)&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_FingerInfo* 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_FingerInfo& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorTextSpanOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -17648,7 +17490,36 @@ inline Ark_RuntimeType runtimeType(const Opt_NavigationType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_NavDestinationContext* value) { +inline Ark_RuntimeType runtimeType(const Ark_NavContentInfo& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavContentInfo* value) { + result->append("{"); + // Ark_String name + result->append(".name="); + WriteToString(result, &value->name); + // Ark_Number index + result->append(", "); + result->append(".index="); + WriteToString(result, &value->index); + // Ark_NavDestinationMode mode + result->append(", "); + result->append(".mode="); + WriteToString(result, &value->mode); + // Ark_CustomObject param + result->append(", "); + result->append(".param="); + WriteToString(result, &value->param); + // Ark_String navDestinationId + result->append(", "); + result->append(".navDestinationId="); + WriteToString(result, &value->navDestinationId); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavContentInfo* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -17661,6 +17532,33 @@ inline void WriteToString(std::string* result, const Opt_NavDestinationContext* result->append("}"); } template <> +inline Ark_RuntimeType runtimeType(const Opt_NavContentInfo& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_NavDestinationContext& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavDestinationContext value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavDestinationContext* 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_NavDestinationContext& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); @@ -17983,9 +17881,9 @@ inline Ark_RuntimeType runtimeType(const Ark_SystemBarStyle& value) template <> inline void WriteToString(std::string* result, const Ark_SystemBarStyle* value) { result->append("{"); - // Ark_String __SystemBarStyleStub - result->append(".__SystemBarStyleStub="); - WriteToString(result, &value->__SystemBarStyleStub); + // Ark_String _SystemBarStyleStub + result->append("._SystemBarStyleStub="); + WriteToString(result, &value->_SystemBarStyleStub); result->append("}"); } template <> @@ -18051,7 +17949,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_CustomBuilder& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceStr_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceStr_CustomBuilder: %d", value.selector); } } template <> @@ -18231,9 +18129,9 @@ inline Ark_RuntimeType runtimeType(const Ark_DrawableDescriptor& value) template <> inline void WriteToString(std::string* result, const Ark_DrawableDescriptor* value) { result->append("{"); - // Ark_String __DrawableDescriptorStub - result->append(".__DrawableDescriptorStub="); - WriteToString(result, &value->__DrawableDescriptorStub); + // Ark_String _DrawableDescriptorStub + result->append("._DrawableDescriptorStub="); + WriteToString(result, &value->_DrawableDescriptorStub); result->append("}"); } template <> @@ -18255,12 +18153,21 @@ inline Ark_RuntimeType runtimeType(const Opt_DrawableDescriptor& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Matrix2D& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Matrix2D value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_Matrix2D* 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); @@ -18437,7 +18344,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_CustomBuilder_SwipeActionItem switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_CustomBuilder_SwipeActionItem: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_CustomBuilder_SwipeActionItem: %d", value.selector); } } template <> @@ -18666,9 +18573,9 @@ inline Ark_RuntimeType runtimeType(const Ark_DrawingColorFilter& value) template <> inline void WriteToString(std::string* result, const Ark_DrawingColorFilter* value) { result->append("{"); - // Ark_String __DrawingColorFilterStub - result->append(".__DrawingColorFilterStub="); - WriteToString(result, &value->__DrawingColorFilterStub); + // Ark_String _DrawingColorFilterStub + result->append("._DrawingColorFilterStub="); + WriteToString(result, &value->_DrawingColorFilterStub); result->append("}"); } template <> @@ -18695,9 +18602,8 @@ inline Ark_RuntimeType runtimeType(const Ark_ColorFilter& value) return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ColorFilter* value) { - result->append("{"); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ColorFilter value) { + WriteToString(result, static_cast(value)); } template <> inline void WriteToString(std::string* result, const Opt_ColorFilter* value) { @@ -18705,7 +18611,7 @@ inline void WriteToString(std::string* result, const Opt_ColorFilter* value) { 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); @@ -18724,7 +18630,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource_PixelMap& val case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_Resource_PixelMap: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource_PixelMap: %d", value.selector); } } template <> @@ -18746,7 +18652,7 @@ inline void WriteToString(std::string* result, const Ark_Union_String_Resource_P // Ark_PixelMap if (value->selector == 2) { result->append(".value2="); - WriteToString(result, &value->value2); + WriteToString(result, value->value2); } result->append("}"); } @@ -18867,7 +18773,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_GridRowColumnOption& v switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_GridRowColumnOption: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_GridRowColumnOption: %d", value.selector); } } template <> @@ -18912,7 +18818,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Length_GutterOption& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Length_GutterOption: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Length_GutterOption: %d", value.selector); } } template <> @@ -18986,7 +18892,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_GridColColumnOption& v switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_GridColColumnOption: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_GridColColumnOption: %d", value.selector); } } template <> @@ -19175,16 +19081,55 @@ inline Ark_RuntimeType runtimeType(const Opt_PanDirection& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_LinearGradient_common& value) +inline Ark_RuntimeType runtimeType(const Array_FingerInfo& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_FingerInfo* value); + +inline void WriteToString(std::string* result, const Array_FingerInfo* 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_FingerInfo*)&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_FingerInfo* 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_FingerInfo& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_LinearGradient& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceColor_LinearGradient_common: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceColor_LinearGradient: %d", value.selector); } } template <> -inline void WriteToString(std::string* result, const Ark_Union_ResourceColor_LinearGradient_common* value) { +inline void WriteToString(std::string* result, const Ark_Union_ResourceColor_LinearGradient* value) { result->append("{"); result->append(".selector="); result->append(std::to_string(value->selector)); @@ -19194,15 +19139,15 @@ inline void WriteToString(std::string* result, const Ark_Union_ResourceColor_Lin result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_LinearGradient_common + // Ark_LinearGradient if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Union_ResourceColor_LinearGradient_common* value) { +inline void WriteToString(std::string* result, const Opt_Union_ResourceColor_LinearGradient* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -19215,25 +19160,25 @@ inline void WriteToString(std::string* result, const Opt_Union_ResourceColor_Lin result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceColor_LinearGradient_common& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceColor_LinearGradient& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_Tuple_Union_ResourceColor_LinearGradient_common_Number& value) +inline Ark_RuntimeType runtimeType(const Array_Tuple_Union_ResourceColor_LinearGradient_Number& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number* value); +inline void WriteToString(std::string* result, const Ark_Tuple_Union_ResourceColor_LinearGradient_Number* value); -inline void WriteToString(std::string* result, const Array_Tuple_Union_ResourceColor_LinearGradient_common_Number* value) { +inline void WriteToString(std::string* result, const Array_Tuple_Union_ResourceColor_LinearGradient_Number* value) { int32_t count = value->length; - result->append("{.array=allocArray({{"); + result->append("{.array=allocArray({{"); for (int i = 0; i < count; i++) { if (i > 0) result->append(", "); - WriteToString(result, (const Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number*)&value->array[i]); + WriteToString(result, (const Ark_Tuple_Union_ResourceColor_LinearGradient_Number*)&value->array[i]); } result->append("}})"); result->append(", .length="); @@ -19241,7 +19186,7 @@ inline void WriteToString(std::string* result, const Array_Tuple_Union_ResourceC result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_Tuple_Union_ResourceColor_LinearGradient_common_Number* value) { +inline void WriteToString(std::string* result, const Opt_Array_Tuple_Union_ResourceColor_LinearGradient_Number* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -19254,7 +19199,7 @@ inline void WriteToString(std::string* result, const Opt_Array_Tuple_Union_Resou result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Tuple_Union_ResourceColor_LinearGradient_common_Number& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_Tuple_Union_ResourceColor_LinearGradient_Number& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -19353,9 +19298,9 @@ inline Ark_RuntimeType runtimeType(const Ark_WindowStatusType& value) template <> inline void WriteToString(std::string* result, const Ark_WindowStatusType* value) { result->append("{"); - // Ark_String __WindowStatusTypeStub - result->append(".__WindowStatusTypeStub="); - WriteToString(result, &value->__WindowStatusTypeStub); + // Ark_String _WindowStatusTypeStub + result->append("._WindowStatusTypeStub="); + WriteToString(result, &value->_WindowStatusTypeStub); result->append("}"); } template <> @@ -19737,48 +19682,20 @@ inline Ark_RuntimeType runtimeType(const Opt_DatePickerDialogOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LinearGradient_data_panel& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_LinearGradient_data_panel* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_LinearGradient_data_panel* 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_LinearGradient_data_panel& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_Union_ResourceColor_LinearGradient_data_panel& value) +inline Ark_RuntimeType runtimeType(const Array_Union_ResourceColor_LinearGradient& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Union_ResourceColor_LinearGradient_data_panel* value); +inline void WriteToString(std::string* result, const Ark_Union_ResourceColor_LinearGradient* value); -inline void WriteToString(std::string* result, const Array_Union_ResourceColor_LinearGradient_data_panel* value) { +inline void WriteToString(std::string* result, const Array_Union_ResourceColor_LinearGradient* value) { int32_t count = value->length; - result->append("{.array=allocArray({{"); + result->append("{.array=allocArray({{"); for (int i = 0; i < count; i++) { if (i > 0) result->append(", "); - WriteToString(result, (const Ark_Union_ResourceColor_LinearGradient_data_panel*)&value->array[i]); + WriteToString(result, (const Ark_Union_ResourceColor_LinearGradient*)&value->array[i]); } result->append("}})"); result->append(", .length="); @@ -19786,7 +19703,7 @@ inline void WriteToString(std::string* result, const Array_Union_ResourceColor_L result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_Union_ResourceColor_LinearGradient_data_panel* value) { +inline void WriteToString(std::string* result, const Opt_Array_Union_ResourceColor_LinearGradient* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -19799,7 +19716,7 @@ inline void WriteToString(std::string* result, const Opt_Array_Union_ResourceCol result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Union_ResourceColor_LinearGradient_data_panel& value) +inline Ark_RuntimeType runtimeType(const Opt_Array_Union_ResourceColor_LinearGradient& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -19867,7 +19784,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_EdgeColors& val switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceColor_EdgeColors: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceColor_EdgeColors: %d", value.selector); } } template <> @@ -19912,7 +19829,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_EdgeWidths& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_EdgeWidths: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_EdgeWidths: %d", value.selector); } } template <> @@ -20049,7 +19966,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_Scene& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceStr_Scene: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceStr_Scene: %d", value.selector); } } template <> @@ -20436,9 +20353,9 @@ inline Ark_RuntimeType runtimeType(const Ark_RectShape& value) template <> inline void WriteToString(std::string* result, const Ark_RectShape* value) { result->append("{"); - // Ark_String __RectShapeStub - result->append(".__RectShapeStub="); - WriteToString(result, &value->__RectShapeStub); + // Ark_String _RectShapeStub + result->append("._RectShapeStub="); + WriteToString(result, &value->_RectShapeStub); result->append("}"); } template <> @@ -21412,9 +21329,9 @@ inline Ark_RuntimeType runtimeType(const Ark_Blender& value) template <> inline void WriteToString(std::string* result, const Ark_Blender* value) { result->append("{"); - // Ark_String __BlenderStub - result->append(".__BlenderStub="); - WriteToString(result, &value->__BlenderStub); + // Ark_String _BlenderStub + result->append("._BlenderStub="); + WriteToString(result, &value->_BlenderStub); result->append("}"); } template <> @@ -21757,7 +21674,7 @@ inline Ark_RuntimeType runtimeType(const Ark_GestureType& value) case 4: return runtimeType(value.value4); case 5: return runtimeType(value.value5); case 6: return runtimeType(value.value6); - default: throw "Bad selector in Ark_GestureType: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_GestureType: %d", value.selector); } } template <> @@ -22021,9 +21938,9 @@ inline Ark_RuntimeType runtimeType(const Ark_PathShape& value) template <> inline void WriteToString(std::string* result, const Ark_PathShape* value) { result->append("{"); - // Ark_String __PathShapeStub - result->append(".__PathShapeStub="); - WriteToString(result, &value->__PathShapeStub); + // Ark_String _PathShapeStub + result->append("._PathShapeStub="); + WriteToString(result, &value->_PathShapeStub); result->append("}"); } template <> @@ -22052,9 +21969,9 @@ inline Ark_RuntimeType runtimeType(const Ark_EllipseShape& value) template <> inline void WriteToString(std::string* result, const Ark_EllipseShape* value) { result->append("{"); - // Ark_String __EllipseShapeStub - result->append(".__EllipseShapeStub="); - WriteToString(result, &value->__EllipseShapeStub); + // Ark_String _EllipseShapeStub + result->append("._EllipseShapeStub="); + WriteToString(result, &value->_EllipseShapeStub); result->append("}"); } template <> @@ -22083,9 +22000,9 @@ inline Ark_RuntimeType runtimeType(const Ark_CircleShape& value) template <> inline void WriteToString(std::string* result, const Ark_CircleShape* value) { result->append("{"); - // Ark_String __CircleShapeStub - result->append(".__CircleShapeStub="); - WriteToString(result, &value->__CircleShapeStub); + // Ark_String _CircleShapeStub + result->append("._CircleShapeStub="); + WriteToString(result, &value->_CircleShapeStub); result->append("}"); } template <> @@ -22107,12 +22024,21 @@ inline Ark_RuntimeType runtimeType(const Opt_CircleShape& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ProgressMask& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ProgressMask value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ProgressMask* 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); @@ -22199,35 +22125,6 @@ inline Ark_RuntimeType runtimeType(const Opt_DragItemInfo& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_DragBehavior& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_DragBehavior value) { - result->append("Ark_DragBehavior("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_DragBehavior* 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_DragBehavior& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ClickEffect& value) { return INTEROP_RUNTIME_OBJECT; @@ -22443,7 +22340,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Literal_Number_offset_ switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_Literal_Number_offset_span: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_Literal_Number_offset_span: %d", value.selector); } } template <> @@ -22643,188 +22540,12 @@ inline Ark_RuntimeType runtimeType(const Opt_TransitionOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_IntentionCode& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_IntentionCode* value) { - result->append("{"); - // Ark_String __IntentionCodeStub - result->append(".__IntentionCodeStub="); - WriteToString(result, &value->__IntentionCodeStub); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_IntentionCode* 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_IntentionCode& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_KeySource& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_KeySource value) { - result->append("Ark_KeySource("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_KeySource* 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_KeySource& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_KeyType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_KeyType value) { - result->append("Ark_KeyType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_KeyType* 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_KeyType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_MouseAction& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_MouseAction value) { - result->append("Ark_MouseAction("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_MouseAction* 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_MouseAction& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_MouseButton& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_MouseButton value) { - result->append("Ark_MouseButton("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_MouseButton* 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_MouseButton& 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; -} -template <> -inline void WriteToString(std::string* result, const Ark_AccessibilityHoverType value) { - result->append("Ark_AccessibilityHoverType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_AccessibilityHoverType* 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_AccessibilityHoverType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_EdgeOutlineStyles_OutlineStyle& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_EdgeOutlineStyles_OutlineStyle: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_EdgeOutlineStyles_OutlineStyle: %d", value.selector); } } template <> @@ -22869,7 +22590,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_OutlineRadiuses_Dimension& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_OutlineRadiuses_Dimension: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_OutlineRadiuses_Dimension: %d", value.selector); } } template <> @@ -22915,7 +22636,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_EdgeColors_ResourceColor_Loca case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_EdgeColors_ResourceColor_LocalizedEdgeColors: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_EdgeColors_ResourceColor_LocalizedEdgeColors: %d", value.selector); } } template <> @@ -22965,7 +22686,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_EdgeOutlineWidths_Dimension& switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_EdgeOutlineWidths_Dimension: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_EdgeOutlineWidths_Dimension: %d", value.selector); } } template <> @@ -23011,7 +22732,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Length_EdgeWidths_LocalizedEd case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Length_EdgeWidths_LocalizedEdgeWidths: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Length_EdgeWidths_LocalizedEdgeWidths: %d", value.selector); } } template <> @@ -23062,7 +22783,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource_LinearGradien case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_Resource_LinearGradient_common: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource_LinearGradient_common: %d", value.selector); } } template <> @@ -23142,7 +22863,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_EdgeWidths_LengthMetrics_Loca case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_EdgeWidths_LengthMetrics_LocalizedEdgeWidths: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_EdgeWidths_LengthMetrics_LocalizedEdgeWidths: %d", value.selector); } } template <> @@ -23159,7 +22880,7 @@ inline void WriteToString(std::string* result, const Ark_Union_EdgeWidths_Length // Ark_LengthMetrics if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } // Ark_LocalizedEdgeWidths if (value->selector == 2) { @@ -23192,7 +22913,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_EdgeStyles_BorderStyle& value switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_EdgeStyles_BorderStyle: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_EdgeStyles_BorderStyle: %d", value.selector); } } template <> @@ -23238,7 +22959,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_BorderRadiuses_Length_Localiz case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_BorderRadiuses_Length_LocalizedBorderRadiuses: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_BorderRadiuses_Length_LocalizedBorderRadiuses: %d", value.selector); } } template <> @@ -23289,7 +23010,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_EdgeWidths_Length_LocalizedEd case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_EdgeWidths_Length_LocalizedEdgeWidths: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_EdgeWidths_Length_LocalizedEdgeWidths: %d", value.selector); } } template <> @@ -23341,9 +23062,9 @@ inline Ark_RuntimeType runtimeType(const Ark_DrawingLattice& value) template <> inline void WriteToString(std::string* result, const Ark_DrawingLattice* value) { result->append("{"); - // Ark_String __DrawingLatticeStub - result->append(".__DrawingLatticeStub="); - WriteToString(result, &value->__DrawingLatticeStub); + // Ark_String _DrawingLatticeStub + result->append("._DrawingLatticeStub="); + WriteToString(result, &value->_DrawingLatticeStub); result->append("}"); } template <> @@ -23534,12 +23255,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_Rectangle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_DrawModifier& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DrawModifier value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_DrawModifier* 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); @@ -23552,6 +23282,95 @@ inline Ark_RuntimeType runtimeType(const Opt_DrawModifier& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_IntentionCode& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_IntentionCode* value) { + result->append("{"); + // Ark_String _IntentionCodeStub + result->append("._IntentionCodeStub="); + WriteToString(result, &value->_IntentionCodeStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_IntentionCode* 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_IntentionCode& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_KeySource& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_KeySource value) { + result->append("Ark_KeySource("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_KeySource* 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_KeySource& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_KeyType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_KeyType value) { + result->append("Ark_KeyType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_KeyType* 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_KeyType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_DragResult& value) { return INTEROP_RUNTIME_NUMBER; @@ -23581,12 +23400,21 @@ 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_UnifiedData& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_UnifiedData value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_UnifiedData* 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); @@ -23599,6 +23427,122 @@ inline Ark_RuntimeType runtimeType(const Opt_UnifiedData& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_DragBehavior& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_DragBehavior value) { + result->append("Ark_DragBehavior("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_DragBehavior* 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_DragBehavior& 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; +} +template <> +inline void WriteToString(std::string* result, const Ark_AccessibilityHoverType value) { + result->append("Ark_AccessibilityHoverType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_AccessibilityHoverType* 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_AccessibilityHoverType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MouseAction& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_MouseAction value) { + result->append("Ark_MouseAction("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MouseAction* 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_MouseAction& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MouseButton& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_MouseButton value) { + result->append("Ark_MouseButton("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MouseButton* 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_MouseButton& 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; @@ -23608,11 +23552,11 @@ inline void WriteToString(std::string* result, const Ark_Literal_TransitionEffec result->append("{"); // Ark_TransitionEffect appear result->append(".appear="); - WriteToString(result, &value->appear); + WriteToString(result, value->appear); // Ark_TransitionEffect disappear result->append(", "); result->append(".disappear="); - WriteToString(result, &value->disappear); + WriteToString(result, value->disappear); result->append("}"); } template <> @@ -23826,12 +23770,21 @@ inline Ark_RuntimeType runtimeType(const Opt_SelectStatus& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_DrawingRenderingContext& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DrawingRenderingContext value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_DrawingRenderingContext* 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); @@ -23844,12 +23797,21 @@ inline Ark_RuntimeType runtimeType(const Opt_DrawingRenderingContext& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CanvasRenderingContext2D& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CanvasRenderingContext2D value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_CanvasRenderingContext2D* 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); @@ -23862,12 +23824,21 @@ 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_ImageBitmap& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ImageBitmap value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ImageBitmap* 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); @@ -23885,20 +23856,8 @@ inline Ark_RuntimeType runtimeType(const Ark_ImageData& value) return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ImageData* value) { - result->append("{"); - // Ark_Buffer data - result->append(".data="); - WriteToString(result, value->data); - // Ark_Number height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - // Ark_Number width - result->append(", "); - result->append(".width="); - WriteToString(result, &value->width); - result->append("}"); +inline void WriteToString(std::string* result, const Ark_ImageData value) { + WriteToString(result, static_cast(value)); } template <> inline void WriteToString(std::string* result, const Opt_ImageData* value) { @@ -23906,7 +23865,7 @@ inline void WriteToString(std::string* result, const Opt_ImageData* value) { 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); @@ -23919,12 +23878,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageData& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Path2D& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Path2D value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_Path2D* 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); @@ -24057,12 +24025,21 @@ inline Ark_RuntimeType runtimeType(const Opt_CalendarAlign& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CalendarController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CalendarController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_CalendarController* 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); @@ -24242,7 +24219,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_BadgePosition_Position& value switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_BadgePosition_Position: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_BadgePosition_Position: %d", value.selector); } } template <> @@ -24282,90 +24259,6 @@ 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_ScrollMotion& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_ScrollMotion* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ScrollMotion* 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_ScrollMotion& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_FrictionMotion& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_FrictionMotion* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_FrictionMotion* 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_FrictionMotion& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_SpringMotion& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_SpringMotion* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_SpringMotion* 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_SpringMotion& 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; @@ -24923,12 +24816,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ActionSheetOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ClickEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ClickEvent value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_ClickEvent* 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); @@ -25137,22 +25039,22 @@ inline void WriteToString(std::string* result, const Ark_DoubleAnimationParam* v // Ark_String propertyName result->append(".propertyName="); WriteToString(result, &value->propertyName); - // Ark_Number startValue + // Ark_Float32 startValue result->append(", "); result->append(".startValue="); - WriteToString(result, &value->startValue); - // Ark_Number endValue + WriteToString(result, value->startValue); + // Ark_Float32 endValue result->append(", "); result->append(".endValue="); - WriteToString(result, &value->endValue); - // Ark_Number duration + WriteToString(result, value->endValue); + // Ark_Int32 duration result->append(", "); result->append(".duration="); - WriteToString(result, &value->duration); - // Ark_Number delay + WriteToString(result, value->duration); + // Ark_Int32 delay result->append(", "); result->append(".delay="); - WriteToString(result, &value->delay); + WriteToString(result, value->delay); // Ark_Union_Curve_String_ICurve curve result->append(", "); result->append(".curve="); @@ -25935,24 +25837,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_OffsetResult_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_NavigationTransitionProxy* 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_NavigationTransitionProxy& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Callback_NavigationTitleMode_Void& value) { return INTEROP_RUNTIME_OBJECT; @@ -26322,12 +26206,48 @@ 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_LinearIndicatorController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LinearIndicatorController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_LinearIndicatorController* 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); @@ -26340,6 +26260,483 @@ inline Ark_RuntimeType runtimeType(const Opt_LinearIndicatorController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ImageAttachmentInterface& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ImageAttachmentInterface* value) { + result->append("{"); + // Ark_PixelMap value + result->append(".value="); + WriteToString(result, value->value); + // Ark_SizeOptions size + result->append(", "); + result->append(".size="); + WriteToString(result, &value->size); + // Ark_ImageSpanAlignment verticalAlign + result->append(", "); + result->append(".verticalAlign="); + WriteToString(result, &value->verticalAlign); + // Ark_ImageFit objectFit + result->append(", "); + result->append(".objectFit="); + WriteToString(result, &value->objectFit); + // Ark_ImageAttachmentLayoutStyle layoutStyle + result->append(", "); + result->append(".layoutStyle="); + WriteToString(result, &value->layoutStyle); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ImageAttachmentInterface* 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_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; +} +template <> +inline void WriteToString(std::string* result, const Ark_UrlStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_UrlStyle* 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_UrlStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_LineHeightStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LineHeightStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LineHeightStyle* 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_LineHeightStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ParagraphStyleInterface& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ParagraphStyleInterface* value) { + result->append("{"); + // Ark_TextAlign textAlign + result->append(".textAlign="); + WriteToString(result, &value->textAlign); + // Ark_LengthMetrics textIndent + result->append(", "); + result->append(".textIndent="); + WriteToString(result, &value->textIndent); + // Ark_Number maxLines + result->append(", "); + result->append(".maxLines="); + WriteToString(result, &value->maxLines); + // Ark_TextOverflow overflow + result->append(", "); + result->append(".overflow="); + WriteToString(result, &value->overflow); + // Ark_WordBreak wordBreak + result->append(", "); + result->append(".wordBreak="); + WriteToString(result, &value->wordBreak); + // Ark_Union_LengthMetrics_LeadingMarginPlaceholder leadingMargin + result->append(", "); + result->append(".leadingMargin="); + WriteToString(result, &value->leadingMargin); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ParagraphStyleInterface* 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_ParagraphStyleInterface& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ParagraphStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ParagraphStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ParagraphStyle* 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_ParagraphStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureStyleInterface& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureStyleInterface* value) { + result->append("{"); + // Callback_ClickEvent_Void onClick + result->append(".onClick="); + WriteToString(result, &value->onClick); + // Callback_GestureEvent_Void onLongPress + result->append(", "); + result->append(".onLongPress="); + WriteToString(result, &value->onLongPress); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureStyleInterface* 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_GestureStyleInterface& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureStyle* 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_GestureStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_BackgroundColorStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_BackgroundColorStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_BackgroundColorStyle* 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_BackgroundColorStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextShadowStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextShadowStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextShadowStyle* 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_TextShadowStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_LetterSpacingStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LetterSpacingStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LetterSpacingStyle* 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_LetterSpacingStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_BaselineOffsetStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_BaselineOffsetStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_BaselineOffsetStyle* 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_BaselineOffsetStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_DecorationStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DecorationStyle value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_DecorationStyle* 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_DecorationStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextStyleInterface& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextStyleInterface* value) { + result->append("{"); + // Ark_ResourceColor fontColor + result->append(".fontColor="); + WriteToString(result, &value->fontColor); + // Ark_ResourceStr fontFamily + result->append(", "); + result->append(".fontFamily="); + WriteToString(result, &value->fontFamily); + // Ark_LengthMetrics fontSize + result->append(", "); + result->append(".fontSize="); + WriteToString(result, &value->fontSize); + // Ark_Union_Number_FontWeight_String fontWeight + result->append(", "); + result->append(".fontWeight="); + WriteToString(result, &value->fontWeight); + // Ark_FontStyle fontStyle + result->append(", "); + result->append(".fontStyle="); + WriteToString(result, &value->fontStyle); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextStyleInterface* 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_TextStyleInterface& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextStyle_styled_string& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextStyle_styled_string value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextStyle_styled_string* 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_TextStyle_styled_string& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_StyleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -26428,7 +26825,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_ImageAttachment_Custom case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_ImageAttachment_CustomSpan: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_ImageAttachment_CustomSpan: %d", value.selector); } } template <> @@ -26445,12 +26842,12 @@ inline void WriteToString(std::string* result, const Ark_Union_String_ImageAttac // Ark_ImageAttachment if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } // Ark_CustomSpan if (value->selector == 2) { result->append(".value2="); - WriteToString(result, &value->value2); + WriteToString(result, value->value2); } result->append("}"); } @@ -26546,9 +26943,9 @@ inline Ark_RuntimeType runtimeType(const Ark_ReceiveCallback& value) template <> inline void WriteToString(std::string* result, const Ark_ReceiveCallback* value) { result->append("{"); - // Ark_String __ReceiveCallbackStub - result->append(".__ReceiveCallbackStub="); - WriteToString(result, &value->__ReceiveCallbackStub); + // Ark_String _ReceiveCallbackStub + result->append("._ReceiveCallbackStub="); + WriteToString(result, &value->_ReceiveCallbackStub); result->append("}"); } template <> @@ -26613,12 +27010,21 @@ inline Ark_RuntimeType runtimeType(const Opt_UIExtensionOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_UIExtensionProxy& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_UIExtensionProxy value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_UIExtensionProxy* 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); @@ -26905,7 +27311,7 @@ inline void WriteToString(std::string* result, const Ark_XComponentOptions* valu // Ark_XComponentController controller result->append(", "); result->append(".controller="); - WriteToString(result, &value->controller); + WriteToString(result, value->controller); // Ark_ImageAIOptions imageAIOptions result->append(", "); result->append(".imageAIOptions="); @@ -27088,7 +27494,7 @@ inline void WriteToString(std::string* result, const Ark_WebKeyboardCallbackInfo result->append("{"); // Ark_WebKeyboardController controller result->append(".controller="); - WriteToString(result, &value->controller); + WriteToString(result, value->controller); // Map_String_String attributes result->append(", "); result->append(".attributes="); @@ -27667,7 +28073,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_NestedScrollOptions_NestedScr switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_NestedScrollOptions_NestedScrollOptionsExt: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_NestedScrollOptions_NestedScrollOptionsExt: %d", value.selector); } } template <> @@ -28031,7 +28437,7 @@ inline void WriteToString(std::string* result, const Ark_OnLoadInterceptEvent* v result->append("{"); // Ark_WebResourceRequest data result->append(".data="); - WriteToString(result, &value->data); + WriteToString(result, value->data); result->append("}"); } template <> @@ -28369,7 +28775,7 @@ inline void WriteToString(std::string* result, const Ark_OnDataResubmittedEvent* result->append("{"); // Ark_DataResubmissionHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); result->append("}"); } template <> @@ -28493,7 +28899,7 @@ inline void WriteToString(std::string* result, const Ark_OnFaviconReceivedEvent* result->append("{"); // Ark_PixelMap favicon result->append(".favicon="); - WriteToString(result, &value->favicon); + WriteToString(result, value->favicon); result->append("}"); } template <> @@ -28633,7 +29039,7 @@ inline void WriteToString(std::string* result, const Ark_OnWindowNewEvent* value // Ark_ControllerHandler handler result->append(", "); result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); result->append("}"); } template <> @@ -28695,7 +29101,7 @@ inline void WriteToString(std::string* result, const Ark_OnClientAuthenticationE result->append("{"); // Ark_ClientAuthenticationHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); // Ark_String host result->append(", "); result->append(".host="); @@ -28773,7 +29179,7 @@ inline void WriteToString(std::string* result, const Ark_SslErrorEvent* value) { result->append("{"); // Ark_SslErrorHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); // Ark_SslError error result->append(", "); result->append(".error="); @@ -28859,7 +29265,7 @@ inline void WriteToString(std::string* result, const Ark_OnSslErrorEventReceiveE result->append("{"); // Ark_SslErrorHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); // Ark_SslError error result->append(", "); result->append(".error="); @@ -29096,11 +29502,11 @@ inline void WriteToString(std::string* result, const Ark_OnContextMenuShowEvent* result->append("{"); // Ark_WebContextMenuParam param result->append(".param="); - WriteToString(result, &value->param); + WriteToString(result, value->param); // Ark_WebContextMenuResult result result->append(", "); result->append(".result="); - WriteToString(result, &value->result); + WriteToString(result, value->result); result->append("}"); } template <> @@ -29162,7 +29568,7 @@ inline void WriteToString(std::string* result, const Ark_OnScreenCaptureRequestE result->append("{"); // Ark_ScreenCaptureHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); result->append("}"); } template <> @@ -29224,7 +29630,7 @@ inline void WriteToString(std::string* result, const Ark_OnPermissionRequestEven result->append("{"); // Ark_PermissionRequest request result->append(".request="); - WriteToString(result, &value->request); + WriteToString(result, value->request); result->append("}"); } template <> @@ -29286,7 +29692,7 @@ inline void WriteToString(std::string* result, const Ark_OnInterceptRequestEvent result->append("{"); // Ark_WebResourceRequest request result->append(".request="); - WriteToString(result, &value->request); + WriteToString(result, value->request); result->append("}"); } template <> @@ -29348,7 +29754,7 @@ inline void WriteToString(std::string* result, const Ark_OnHttpAuthRequestEvent* result->append("{"); // Ark_HttpAuthHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); // Ark_String host result->append(", "); result->append(".host="); @@ -29484,7 +29890,7 @@ inline void WriteToString(std::string* result, const Ark_FullScreenEnterEvent* v result->append("{"); // Ark_FullScreenExitHandler handler result->append(".handler="); - WriteToString(result, &value->handler); + WriteToString(result, value->handler); // Ark_Number videoWidth result->append(", "); result->append(".videoWidth="); @@ -29744,11 +30150,11 @@ inline void WriteToString(std::string* result, const Ark_OnShowFileSelectorEvent result->append("{"); // Ark_FileSelectorResult result result->append(".result="); - WriteToString(result, &value->result); + WriteToString(result, value->result); // Ark_FileSelectorParam fileSelector result->append(", "); result->append(".fileSelector="); - WriteToString(result, &value->fileSelector); + WriteToString(result, value->fileSelector); result->append("}"); } template <> @@ -30144,11 +30550,11 @@ inline void WriteToString(std::string* result, const Ark_OnHttpErrorReceiveEvent result->append("{"); // Ark_WebResourceRequest request result->append(".request="); - WriteToString(result, &value->request); + WriteToString(result, value->request); // Ark_WebResourceResponse response result->append(", "); result->append(".response="); - WriteToString(result, &value->response); + WriteToString(result, value->response); result->append("}"); } template <> @@ -30210,11 +30616,11 @@ inline void WriteToString(std::string* result, const Ark_OnErrorReceiveEvent* va result->append("{"); // Ark_WebResourceRequest request result->append(".request="); - WriteToString(result, &value->request); + WriteToString(result, value->request); // Ark_WebResourceError error result->append(", "); result->append(".error="); - WriteToString(result, &value->error); + WriteToString(result, value->error); result->append("}"); } template <> @@ -30276,7 +30682,7 @@ inline void WriteToString(std::string* result, const Ark_OnConsoleEvent* value) result->append("{"); // Ark_ConsoleMessage message result->append(".message="); - WriteToString(result, &value->message); + WriteToString(result, value->message); result->append("}"); } template <> @@ -30350,7 +30756,7 @@ inline void WriteToString(std::string* result, const Ark_OnPromptEvent* value) { // Ark_JsResult result result->append(", "); result->append(".result="); - WriteToString(result, &value->result); + WriteToString(result, value->result); result->append("}"); } template <> @@ -30420,7 +30826,7 @@ inline void WriteToString(std::string* result, const Ark_OnConfirmEvent* value) // Ark_JsResult result result->append(", "); result->append(".result="); - WriteToString(result, &value->result); + WriteToString(result, value->result); result->append("}"); } template <> @@ -30490,7 +30896,7 @@ inline void WriteToString(std::string* result, const Ark_OnBeforeUnloadEvent* va // Ark_JsResult result result->append(", "); result->append(".result="); - WriteToString(result, &value->result); + WriteToString(result, value->result); result->append("}"); } template <> @@ -30560,7 +30966,7 @@ inline void WriteToString(std::string* result, const Ark_OnAlertEvent* value) { // Ark_JsResult result result->append(", "); result->append(".result="); - WriteToString(result, &value->result); + WriteToString(result, value->result); result->append("}"); } template <> @@ -30626,7 +31032,7 @@ inline void WriteToString(std::string* result, const Ark_OnGeolocationShowEvent* // Ark_JsGeolocation geolocation result->append(", "); result->append(".geolocation="); - WriteToString(result, &value->geolocation); + WriteToString(result, value->geolocation); result->append("}"); } template <> @@ -31089,6 +31495,33 @@ 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; @@ -31131,7 +31564,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_Resource_Buffer case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_String_Number_Resource_Buffer: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Number_Resource_Buffer: %d", value.selector); } } template <> @@ -31927,6 +32360,33 @@ inline Ark_RuntimeType runtimeType(const Opt_ToggleOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TimePickerDialog& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TimePickerDialog value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TimePickerDialog* 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_TimePickerDialog& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TimePickerResult& value) { return INTEROP_RUNTIME_OBJECT; @@ -32075,6 +32535,33 @@ inline Ark_RuntimeType runtimeType(const Opt_TextPickerResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextPickerDialog& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextPickerDialog value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextPickerDialog* 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_TextPickerDialog& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Type_TextPickerAttribute_onChange_callback& value) { return INTEROP_RUNTIME_OBJECT; @@ -32251,7 +32738,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_UnderlineColor& switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceColor_UnderlineColor: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceColor_UnderlineColor: %d", value.selector); } } template <> @@ -32331,7 +32818,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_TextInputStyle_TextContentSty switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_TextInputStyle_TextContentStyle: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_TextInputStyle_TextContentStyle: %d", value.selector); } } template <> @@ -32509,6 +32996,114 @@ 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) +{ + 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_StyledStringController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_StyledStringController value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_StyledStringController* 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_StyledStringController& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextEditControllerEx& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextEditControllerEx value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextEditControllerEx* 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_TextEditControllerEx& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TextBaseController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextBaseController value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextBaseController* 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_TextBaseController& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TextClockOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -32774,7 +33369,7 @@ inline void WriteToString(std::string* result, const Ark_TextOptions* value) { result->append("{"); // Ark_TextController controller result->append(".controller="); - WriteToString(result, &value->controller); + WriteToString(result, value->controller); result->append("}"); } template <> @@ -32801,7 +33396,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_SubTabBarStyle_BottomTabBarSt switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_SubTabBarStyle_BottomTabBarStyle: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_SubTabBarStyle_BottomTabBarStyle: %d", value.selector); } } template <> @@ -32848,7 +33443,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_Resource_CustomBuilder case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_String_Resource_CustomBuilder_TabBarOptions: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Resource_CustomBuilder_TabBarOptions: %d", value.selector); } } template <> @@ -32929,12 +33524,21 @@ inline Ark_RuntimeType runtimeType(const Opt_OnTabsContentWillChangeCallback& va return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TabContentTransitionProxy& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TabContentTransitionProxy value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_TabContentTransitionProxy* 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); @@ -33196,18 +33800,16 @@ inline Ark_RuntimeType runtimeType(const Opt_TabsOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EffectFillStyle& value) +inline Ark_RuntimeType runtimeType(const Ark_ReplaceSymbolEffect& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_EffectFillStyle value) { - result->append("Ark_EffectFillStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_ReplaceSymbolEffect value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_EffectFillStyle* value) { +inline void WriteToString(std::string* result, const Opt_ReplaceSymbolEffect* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -33220,23 +33822,21 @@ inline void WriteToString(std::string* result, const Opt_EffectFillStyle* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_EffectFillStyle& value) +inline Ark_RuntimeType runtimeType(const Opt_ReplaceSymbolEffect& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EffectScope& value) +inline Ark_RuntimeType runtimeType(const Ark_BounceSymbolEffect& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_EffectScope value) { - result->append("Ark_EffectScope("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_BounceSymbolEffect value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_EffectScope* value) { +inline void WriteToString(std::string* result, const Opt_BounceSymbolEffect* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -33249,23 +33849,21 @@ inline void WriteToString(std::string* result, const Opt_EffectScope* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_EffectScope& value) +inline Ark_RuntimeType runtimeType(const Opt_BounceSymbolEffect& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EffectDirection& value) +inline Ark_RuntimeType runtimeType(const Ark_DisappearSymbolEffect& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_EffectDirection value) { - result->append("Ark_EffectDirection("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_DisappearSymbolEffect value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_EffectDirection* value) { +inline void WriteToString(std::string* result, const Opt_DisappearSymbolEffect* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -33278,7 +33876,88 @@ inline void WriteToString(std::string* result, const Opt_EffectDirection* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_EffectDirection& value) +inline Ark_RuntimeType runtimeType(const Opt_DisappearSymbolEffect& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_AppearSymbolEffect& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_AppearSymbolEffect value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_AppearSymbolEffect* 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_AppearSymbolEffect& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_HierarchicalSymbolEffect& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_HierarchicalSymbolEffect value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_HierarchicalSymbolEffect* 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_HierarchicalSymbolEffect& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ScaleSymbolEffect& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ScaleSymbolEffect value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ScaleSymbolEffect* 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_ScaleSymbolEffect& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -33288,7 +33967,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_DotIndicator_DigitIndicator& switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_DotIndicator_DigitIndicator: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_DotIndicator_DigitIndicator: %d", value.selector); } } template <> @@ -33334,7 +34013,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_String_SwiperAutoFill& case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Number_String_SwiperAutoFill: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_String_SwiperAutoFill: %d", value.selector); } } template <> @@ -33384,7 +34063,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ArrowStyle_Boolean& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ArrowStyle_Boolean: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ArrowStyle_Boolean: %d", value.selector); } } template <> @@ -33455,12 +34134,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ContentDidScrollCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SwiperContentTransitionProxy& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SwiperContentTransitionProxy value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_SwiperContentTransitionProxy* 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); @@ -33640,12 +34328,21 @@ inline Ark_RuntimeType runtimeType(const Opt_OnSwiperAnimationStartCallback& val return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_IndicatorComponentController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_IndicatorComponentController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_IndicatorComponentController* 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); @@ -33664,7 +34361,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_DotIndicator_DigitIndicator_B case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_DotIndicator_DigitIndicator_Boolean: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_DotIndicator_DigitIndicator_Boolean: %d", value.selector); } } template <> @@ -33738,12 +34435,23 @@ inline Ark_RuntimeType runtimeType(const Opt_SwiperNestedScrollMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_SwiperController* value) { +inline Ark_RuntimeType runtimeType(const Ark_SwiperDisplayMode& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_SwiperDisplayMode value) { + result->append("Ark_SwiperDisplayMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SwiperDisplayMode* 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); @@ -33751,23 +34459,21 @@ inline void WriteToString(std::string* result, const Opt_SwiperController* value result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SwiperController& value) +inline Ark_RuntimeType runtimeType(const Opt_SwiperDisplayMode& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_SwiperDisplayMode& value) +inline Ark_RuntimeType runtimeType(const Ark_SwiperController& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_SwiperDisplayMode value) { - result->append("Ark_SwiperDisplayMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_SwiperController value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_SwiperDisplayMode* value) { +inline void WriteToString(std::string* result, const Opt_SwiperController* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -33780,7 +34486,7 @@ inline void WriteToString(std::string* result, const Opt_SwiperDisplayMode* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_SwiperDisplayMode& value) +inline Ark_RuntimeType runtimeType(const Opt_SwiperController& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -33983,7 +34689,7 @@ inline void WriteToString(std::string* result, const Ark_SliderBlockStyle* value result->append(", "); result->append(".image="); WriteToString(result, &value->image); - // Ark_Type_SliderBlockStyle_shape shape + // Ark_String shape result->append(", "); result->append(".shape="); WriteToString(result, &value->shape); @@ -34200,7 +34906,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_OptionWidthMode& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_OptionWidthMode: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_OptionWidthMode: %d", value.selector); } } template <> @@ -34384,7 +35090,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Position_Edges_LocalizedEdges case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Position_Edges_LocalizedEdges: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Position_Edges_LocalizedEdges: %d", value.selector); } } template <> @@ -34925,7 +35631,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_CancelButtonOptions_CancelBut switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_CancelButtonOptions_CancelButtonSymbolOptions: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_CancelButtonOptions_CancelButtonSymbolOptions: %d", value.selector); } } template <> @@ -34970,7 +35676,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_IconOptions_SymbolGlyphModifi switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_IconOptions_SymbolGlyphModifier: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_IconOptions_SymbolGlyphModifier: %d", value.selector); } } template <> @@ -35091,7 +35797,7 @@ inline void WriteToString(std::string* result, const Ark_ScrollBarOptions* value result->append("{"); // Ark_Scroller scroller result->append(".scroller="); - WriteToString(result, &value->scroller); + WriteToString(result, value->scroller); // Ark_ScrollBarDirection direction result->append(", "); result->append(".direction="); @@ -35267,7 +35973,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Color_Number_String& value) case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Color_Number_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Color_Number_String: %d", value.selector); } } template <> @@ -35539,7 +36245,7 @@ inline void WriteToString(std::string* result, const Ark_RichEditorStyledStringO result->append("{"); // Ark_RichEditorStyledStringController controller result->append(".controller="); - WriteToString(result, &value->controller); + WriteToString(result, value->controller); result->append("}"); } template <> @@ -35570,7 +36276,7 @@ inline void WriteToString(std::string* result, const Ark_RichEditorOptions* valu result->append("{"); // Ark_RichEditorController controller result->append(".controller="); - WriteToString(result, &value->controller); + WriteToString(result, value->controller); result->append("}"); } template <> @@ -35597,7 +36303,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResponseType_RichEditorRespon switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResponseType_RichEditorResponseType: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResponseType_RichEditorResponseType: %d", value.selector); } } template <> @@ -35637,12 +36343,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ResponseType_RichEditorRespon return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_EditMenuOptions& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_EditMenuOptions value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_EditMenuOptions* 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); @@ -35853,12 +36568,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorChangeValue_Bool return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SubmitEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SubmitEvent value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_SubmitEvent* 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); @@ -36070,7 +36794,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_RichEditorTextSpanResult_Rich switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult: %d", value.selector); } } template <> @@ -36426,7 +37150,7 @@ inline void WriteToString(std::string* result, const Ark_StyledStringChangeValue // Ark_StyledString replacementString result->append(", "); result->append(".replacementString="); - WriteToString(result, &value->replacementString); + WriteToString(result, value->replacementString); // Ark_StyledString previewText result->append(", "); result->append(".previewText="); @@ -36458,7 +37182,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Type_RichEditorController_updateSpa case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Type_RichEditorController_updateSpanStyle_value: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Type_RichEditorController_updateSpanStyle_value: %d", value.selector); } } template <> @@ -36508,7 +37232,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_PixelMap_ResourceStr& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_PixelMap_ResourceStr: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_PixelMap_ResourceStr: %d", value.selector); } } template <> @@ -36520,7 +37244,7 @@ inline void WriteToString(std::string* result, const Ark_Union_PixelMap_Resource // Ark_PixelMap if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_ResourceStr if (value->selector == 1) { @@ -36548,12 +37272,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_PixelMap_ResourceStr& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_GestureEvent* value) { +inline Ark_RuntimeType runtimeType(const Ark_RichEditorBaseController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorBaseController value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorBaseController* 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); @@ -36561,7 +37294,7 @@ inline void WriteToString(std::string* result, const Opt_GestureEvent* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureEvent& value) +inline Ark_RuntimeType runtimeType(const Opt_RichEditorBaseController& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -36916,7 +37649,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_RectOptions_RoundedRectOption switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_RectOptions_RoundedRectOptions: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_RectOptions_RoundedRectOptions: %d", value.selector); } } template <> @@ -37119,7 +37852,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_LinearStyleOptions_RingStyleO case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_LinearStyleOptions_RingStyleOptions_CapsuleStyleOptions_ProgressStyleOptions: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_LinearStyleOptions_RingStyleOptions_CapsuleStyleOptions_ProgressStyleOptions: %d", value.selector); } } template <> @@ -37488,12 +38221,21 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Array_Number_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PatternLockController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PatternLockController value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_PatternLockController* 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); @@ -37825,7 +38567,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_PanelHeight& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_PanelHeight: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_PanelHeight: %d", value.selector); } } template <> @@ -38044,6 +38786,33 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_String_target_NavigationTyp return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_NavigationTransitionProxy& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavigationTransitionProxy value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavigationTransitionProxy* 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_NavigationTransitionProxy& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_NavigationOperation& value) { return INTEROP_RUNTIME_NUMBER; @@ -38078,7 +38847,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_NavDestinationContext_NavBar& switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_NavDestinationContext_NavBar: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_NavDestinationContext_NavBar: %d", value.selector); } } template <> @@ -38090,7 +38859,7 @@ inline void WriteToString(std::string* result, const Ark_Union_NavDestinationCon // Ark_NavDestinationContext if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_String if (value->selector == 1) { @@ -38407,7 +39176,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Array_ToolbarItem_CustomBuild switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Array_ToolbarItem_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Array_ToolbarItem_CustomBuilder: %d", value.selector); } } template <> @@ -38455,7 +39224,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Type_NavDestinationAttribute_title_ case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); case 4: return runtimeType(value.value4); - default: throw "Bad selector in Ark_Type_NavDestinationAttribute_title_value: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Type_NavDestinationAttribute_title_value: %d", value.selector); } } template <> @@ -38593,7 +39362,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Array_NavigationMenuItem_Cust switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Array_NavigationMenuItem_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Array_NavigationMenuItem_CustomBuilder: %d", value.selector); } } template <> @@ -38639,7 +39408,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_PixelMap_SymbolGl case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier: %d", value.selector); } } template <> @@ -38656,7 +39425,7 @@ inline void WriteToString(std::string* result, const Ark_Union_ResourceStr_Pixel // Ark_PixelMap if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } // Ark_SymbolGlyphModifier if (value->selector == 2) { @@ -38724,7 +39493,7 @@ inline void WriteToString(std::string* result, const Ark_PopInfo* value) { result->append("{"); // Ark_NavPathInfo info result->append(".info="); - WriteToString(result, &value->info); + WriteToString(result, value->info); // Ark_CustomObject result result->append(", "); result->append(".result="); @@ -38820,7 +39589,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Boolean_ResourceStr_SymbolGly case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Boolean_ResourceStr_SymbolGlyphModifier: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Boolean_ResourceStr_SymbolGlyphModifier: %d", value.selector); } } template <> @@ -38870,7 +39639,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_MenuItemOptions_CustomBuilder switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_MenuItemOptions_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_MenuItemOptions_CustomBuilder: %d", value.selector); } } template <> @@ -38946,7 +39715,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_PixelMap_ResourceStr_Drawable case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ASTCResource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ASTCResource: %d", value.selector); } } template <> @@ -38958,7 +39727,7 @@ inline void WriteToString(std::string* result, const Ark_Union_PixelMap_Resource // Ark_PixelMap if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_ResourceStr if (value->selector == 1) { @@ -39270,7 +40039,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Boolean_EditMode& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Boolean_EditMode: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Boolean_EditMode: %d", value.selector); } } template <> @@ -39404,7 +40173,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_LengthConstrain& value switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_LengthConstrain: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_LengthConstrain: %d", value.selector); } } template <> @@ -39607,24 +40376,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Number_Number_Number_Void& return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_ChildrenMainSize* 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_ChildrenMainSize& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ChainAnimationOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -39719,6 +40470,33 @@ inline Ark_RuntimeType runtimeType(const Opt_ListOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ListScroller& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ListScroller value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ListScroller* 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_ListScroller& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_StickyStyle& value) { return INTEROP_RUNTIME_NUMBER; @@ -39940,7 +40718,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ColorFilter_DrawingColorFilte switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ColorFilter_DrawingColorFilter: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ColorFilter_DrawingColorFilter: %d", value.selector); } } template <> @@ -39952,7 +40730,7 @@ inline void WriteToString(std::string* result, const Ark_Union_ColorFilter_Drawi // Ark_ColorFilter if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_DrawingColorFilter if (value->selector == 1) { @@ -39985,7 +40763,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_PixelMap& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceStr_PixelMap: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceStr_PixelMap: %d", value.selector); } } template <> @@ -40002,7 +40780,7 @@ inline void WriteToString(std::string* result, const Ark_Union_ResourceStr_Pixel // Ark_PixelMap if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } @@ -40122,9 +40900,9 @@ inline Ark_RuntimeType runtimeType(const Ark_ResolutionQuality& value) template <> inline void WriteToString(std::string* result, const Ark_ResolutionQuality* value) { result->append("{"); - // Ark_String __ResolutionQualityStub - result->append(".__ResolutionQualityStub="); - WriteToString(result, &value->__ResolutionQualityStub); + // Ark_String _ResolutionQualityStub + result->append("._ResolutionQualityStub="); + WriteToString(result, &value->_ResolutionQualityStub); result->append("}"); } template <> @@ -40351,7 +41129,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_PixelMap_ResourceStr_Drawable case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_PixelMap_ResourceStr_DrawableDescriptor: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_PixelMap_ResourceStr_DrawableDescriptor: %d", value.selector); } } template <> @@ -40363,7 +41141,7 @@ inline void WriteToString(std::string* result, const Ark_Union_PixelMap_Resource // Ark_PixelMap if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_ResourceStr if (value->selector == 1) { @@ -40403,7 +41181,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_PixelMap_ResourceStr_Drawable case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ImageContent: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ImageContent: %d", value.selector); } } template <> @@ -40415,7 +41193,7 @@ inline void WriteToString(std::string* result, const Ark_Union_PixelMap_Resource // Ark_PixelMap if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_ResourceStr if (value->selector == 1) { @@ -40547,7 +41325,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Color_Number_String_Resource& case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_Color_Number_String_Resource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Color_Number_String_Resource: %d", value.selector); } } template <> @@ -41186,6 +41964,87 @@ inline Ark_RuntimeType runtimeType(const Opt_GridLayoutOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PanRecognizer& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PanRecognizer value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PanRecognizer* 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_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; +} +template <> +inline void WriteToString(std::string* result, const Ark_ScrollableTargetInfo value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ScrollableTargetInfo* 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_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; @@ -41283,6 +42142,222 @@ 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; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureEvent* 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_GestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_SwipeGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SwipeGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_SwipeGestureEvent* 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_SwipeGestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_RotationGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RotationGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_RotationGestureEvent* 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_RotationGestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PinchGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PinchGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PinchGestureEvent* 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_PinchGestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PanGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PanGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PanGestureEvent* 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_PanGestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_LongPressGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LongPressGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LongPressGestureEvent* 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_LongPressGestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_TapGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TapGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TapGestureEvent* 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_TapGestureEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_GestureMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -41415,14 +42490,14 @@ inline Ark_RuntimeType runtimeType(const Opt_GaugeShadowOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number& value) +inline Ark_RuntimeType runtimeType(const Ark_Tuple_Union_ResourceColor_LinearGradient_Number& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number* value) { +inline void WriteToString(std::string* result, const Ark_Tuple_Union_ResourceColor_LinearGradient_Number* value) { result->append("{"); - // Ark_Union_ResourceColor_LinearGradient_common value0 + // Ark_Union_ResourceColor_LinearGradient value0 result->append(".value0="); WriteToString(result, &value->value0); // Ark_Number value1 @@ -41432,7 +42507,7 @@ inline void WriteToString(std::string* result, const Ark_Tuple_Union_ResourceCol result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Tuple_Union_ResourceColor_LinearGradient_common_Number* value) { +inline void WriteToString(std::string* result, const Opt_Tuple_Union_ResourceColor_LinearGradient_Number* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -41445,7 +42520,7 @@ inline void WriteToString(std::string* result, const Opt_Tuple_Union_ResourceCol result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Tuple_Union_ResourceColor_LinearGradient_common_Number& value) +inline Ark_RuntimeType runtimeType(const Opt_Tuple_Union_ResourceColor_LinearGradient_Number& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -41456,7 +42531,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Type_GaugeAttribute_colors_colors& case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Type_GaugeAttribute_colors_colors: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Type_GaugeAttribute_colors_colors: %d", value.selector); } } template <> @@ -41470,12 +42545,12 @@ inline void WriteToString(std::string* result, const Ark_Type_GaugeAttribute_col result->append(".value0="); WriteToString(result, &value->value0); } - // Ark_LinearGradient_common + // Ark_LinearGradient if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } - // Array_Tuple_Union_ResourceColor_LinearGradient_common_Number + // Array_Tuple_Union_ResourceColor_LinearGradient_Number if (value->selector == 2) { result->append(".value2="); WriteToString(result, &value->value2); @@ -42430,6 +43505,33 @@ inline Ark_RuntimeType runtimeType(const Opt_EllipseOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_DatePickerDialog& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DatePickerDialog value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_DatePickerDialog* 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_DatePickerDialog& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_DatePickerResult& value) { return INTEROP_RUNTIME_OBJECT; @@ -42508,51 +43610,6 @@ inline Ark_RuntimeType runtimeType(const Opt_DatePickerOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_LinearGradient_data_panel& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceColor_LinearGradient_data_panel: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_ResourceColor_LinearGradient_data_panel* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_ResourceColor - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_LinearGradient_data_panel - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_ResourceColor_LinearGradient_data_panel* 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_Union_ResourceColor_LinearGradient_data_panel& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_DataPanelShadowOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -42571,7 +43628,7 @@ inline void WriteToString(std::string* result, const Ark_DataPanelShadowOptions* result->append(", "); result->append(".offsetY="); WriteToString(result, &value->offsetY); - // Array_Union_ResourceColor_LinearGradient_data_panel colors + // Array_Union_ResourceColor_LinearGradient colors result->append(", "); result->append(".colors="); WriteToString(result, &value->colors); @@ -42635,6 +43692,80 @@ inline Ark_RuntimeType runtimeType(const Opt_DataPanelOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ColorStop& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ColorStop* value) { + result->append("{"); + // Ark_ResourceColor color + result->append(".color="); + WriteToString(result, &value->color); + // Ark_Length offset + result->append(", "); + result->append(".offset="); + WriteToString(result, &value->offset); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ColorStop* 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_ColorStop& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_ColorStop& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_ColorStop* value); + +inline void WriteToString(std::string* result, const Array_ColorStop* 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_ColorStop*)&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_ColorStop* 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_ColorStop& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CustomDialogControllerOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -42766,6 +43897,60 @@ inline Ark_RuntimeType runtimeType(const Opt_CustomDialogControllerOptions& valu return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CustomDialogController& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CustomDialogController value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_CustomDialogController* 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_CustomDialogController& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenu& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenu value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenu* 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_ContextMenu& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SceneOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -42840,12 +44025,120 @@ 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_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; +} +template <> +inline void WriteToString(std::string* result, const Ark_UICommonEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_UICommonEvent* 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_UICommonEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ChildrenMainSize& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ChildrenMainSize value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ChildrenMainSize* 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_ChildrenMainSize& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_DynamicNode& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DynamicNode value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_DynamicNode* 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_DynamicNode& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Union_ContentClipMode_RectShape& value) { switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ContentClipMode_RectShape: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ContentClipMode_RectShape: %d", value.selector); } } template <> @@ -42885,6 +44178,37 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ContentClipMode_RectShape& va return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const ScrollOnScrollCallback& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const ScrollOnScrollCallback* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ScrollOnScrollCallback* 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_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; @@ -43009,6 +44333,87 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Number_Number_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextContentControllerBase& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextContentControllerBase value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextContentControllerBase* 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_TextContentControllerBase& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_View& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_View value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_View* 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_View& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Measurable& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Measurable value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_Measurable* 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_Measurable& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LineJoinStyle& value) { return INTEROP_RUNTIME_NUMBER; @@ -43140,7 +44545,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_FunctionKey& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_String_FunctionKey: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_FunctionKey: %d", value.selector); } } template <> @@ -43317,7 +44722,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Array_MenuElement_CustomBuild switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Array_MenuElement_CustomBuilder: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Array_MenuElement_CustomBuilder: %d", value.selector); } } template <> @@ -43475,7 +44880,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_PopupOptions_CustomPopupOptio switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_PopupOptions_CustomPopupOptions: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_PopupOptions_CustomPopupOptions: %d", value.selector); } } template <> @@ -43520,7 +44925,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_BlendMode_Blender& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_BlendMode_Blender: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_BlendMode_Blender: %d", value.selector); } } template <> @@ -43566,7 +44971,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_String_CustomBuilder_Componen case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_String_CustomBuilder_ComponentContent: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_CustomBuilder_ComponentContent: %d", value.selector); } } template <> @@ -43761,14 +45166,14 @@ inline Ark_RuntimeType runtimeType(const Array_GestureRecognizer& value) } template <> -inline void WriteToString(std::string* result, const Ark_GestureRecognizer* value); +inline void WriteToString(std::string* result, const Ark_GestureRecognizer value); inline void WriteToString(std::string* result, const Array_GestureRecognizer* 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_GestureRecognizer*)&value->array[i]); + WriteToString(result, value->array[i]); } result->append("}})"); result->append(", .length="); @@ -43825,12 +45230,21 @@ inline Ark_RuntimeType runtimeType(const Opt_ShouldBuiltInRecognizerParallelWith return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureRecognizer& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureRecognizer value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_GestureRecognizer* 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); @@ -43927,12 +45341,21 @@ inline Ark_RuntimeType runtimeType(const Opt_FingerInfo& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_BaseGestureEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_BaseGestureEvent value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_BaseGestureEvent* 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); @@ -44050,12 +45473,21 @@ inline Ark_RuntimeType runtimeType(const Opt_BackgroundBrightnessOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureModifier& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureModifier value) { + WriteToString(result, static_cast(value)); +} +template <> inline void WriteToString(std::string* result, const Opt_GestureModifier* 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); @@ -44266,7 +45698,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_CircleShape_EllipseShape_Path case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); case 3: return runtimeType(value.value3); - default: throw "Bad selector in Ark_Union_CircleShape_EllipseShape_PathShape_RectShape: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_CircleShape_EllipseShape_PathShape_RectShape: %d", value.selector); } } template <> @@ -44316,132 +45748,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_CircleShape_EllipseShape_Path return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Type_CommonMethod_mask_value& value) -{ - 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); - case 4: return runtimeType(value.value4); - default: throw "Bad selector in Ark_Type_CommonMethod_mask_value: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Type_CommonMethod_mask_value* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_CircleAttribute - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_EllipseAttribute - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_PathAttribute - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_RectAttribute - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, &value->value3); - } - // Ark_ProgressMask - if (value->selector == 4) { - result->append(".value4="); - WriteToString(result, &value->value4); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Type_CommonMethod_mask_value* 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_Type_CommonMethod_mask_value& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Type_CommonMethod_clip_value& value) -{ - 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); - case 4: return runtimeType(value.value4); - default: throw "Bad selector in Ark_Type_CommonMethod_clip_value: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Type_CommonMethod_clip_value* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_Boolean - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_CircleAttribute - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_EllipseAttribute - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_PathAttribute - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, &value->value3); - } - // Ark_RectAttribute - if (value->selector == 4) { - result->append(".value4="); - WriteToString(result, &value->value4); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Type_CommonMethod_clip_value* 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_Type_CommonMethod_clip_value& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Type_CommonMethod_radialGradient_value& value) { return INTEROP_RUNTIME_OBJECT; @@ -44616,7 +45922,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_CustomBuilder_DragItemInfo_St case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_CustomBuilder_DragItemInfo_String: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_CustomBuilder_DragItemInfo_String: %d", value.selector); } } template <> @@ -44668,9 +45974,9 @@ inline Ark_RuntimeType runtimeType(const Ark_UniformDataType& value) template <> inline void WriteToString(std::string* result, const Ark_UniformDataType* value) { result->append("{"); - // Ark_String __UniformDataTypeStub - result->append(".__UniformDataTypeStub="); - WriteToString(result, &value->__UniformDataTypeStub); + // Ark_String _UniformDataTypeStub + result->append("._UniformDataTypeStub="); + WriteToString(result, &value->_UniformDataTypeStub); result->append("}"); } template <> @@ -44767,7 +46073,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_CustomBuilder_DragItemInfo& v switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_CustomBuilder_DragItemInfo: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_CustomBuilder_DragItemInfo: %d", value.selector); } } template <> @@ -44807,24 +46113,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_CustomBuilder_DragItemInfo& v return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_DragEvent* 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_DragEvent& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -45014,7 +46302,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Position_LocalizedPosition& v switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Position_LocalizedPosition: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Position_LocalizedPosition: %d", value.selector); } } template <> @@ -45148,7 +46436,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Number_InvertOptions& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Number_InvertOptions: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Number_InvertOptions: %d", value.selector); } } template <> @@ -45194,7 +46482,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Color_String_Resource& value) case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Color_String_Resource: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Color_String_Resource: %d", value.selector); } } template <> @@ -45279,7 +46567,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_TransitionOptions_TransitionE switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_TransitionOptions_TransitionEffect: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_TransitionOptions_TransitionEffect: %d", value.selector); } } template <> @@ -45296,7 +46584,7 @@ inline void WriteToString(std::string* result, const Ark_Union_TransitionOptions // Ark_TransitionEffect if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } @@ -45389,42 +46677,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_KeyEvent_Boolean& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_KeyEvent* 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_KeyEvent& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline void WriteToString(std::string* result, const Opt_MouseEvent* 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_MouseEvent& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_HoverEffect& value) { return INTEROP_RUNTIME_NUMBER; @@ -45454,24 +46706,6 @@ inline Ark_RuntimeType runtimeType(const Opt_HoverEffect& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_AccessibilityHoverEvent* 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_AccessibilityHoverEvent& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const AccessibilityCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -45503,24 +46737,6 @@ inline Ark_RuntimeType runtimeType(const Opt_AccessibilityCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_HoverEvent* 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_HoverEvent& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Callback_Boolean_HoverEvent_Void& value) { return INTEROP_RUNTIME_OBJECT; @@ -45557,7 +46773,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceColor_ColoringStrateg switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ResourceColor_ColoringStrategy: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ResourceColor_ColoringStrategy: %d", value.selector); } } template <> @@ -45602,7 +46818,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_OutlineRadiuses& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_OutlineRadiuses: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_OutlineRadiuses: %d", value.selector); } } template <> @@ -45647,7 +46863,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Dimension_EdgeOutlineWidths& switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Dimension_EdgeOutlineWidths: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Dimension_EdgeOutlineWidths: %d", value.selector); } } template <> @@ -45692,7 +46908,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_OutlineStyle_EdgeOutlineStyle switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_OutlineStyle_EdgeOutlineStyles: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_OutlineStyle_EdgeOutlineStyles: %d", value.selector); } } template <> @@ -45919,9 +47135,9 @@ inline Ark_RuntimeType runtimeType(const Ark_Filter& value) template <> inline void WriteToString(std::string* result, const Ark_Filter* value) { result->append("{"); - // Ark_String __FilterStub - result->append(".__FilterStub="); - WriteToString(result, &value->__FilterStub); + // Ark_String _FilterStub + result->append("._FilterStub="); + WriteToString(result, &value->_FilterStub); result->append("}"); } template <> @@ -45950,9 +47166,9 @@ inline Ark_RuntimeType runtimeType(const Ark_VisualEffect& value) template <> inline void WriteToString(std::string* result, const Ark_VisualEffect* value) { result->append("{"); - // Ark_String __VisualEffectStub - result->append(".__VisualEffectStub="); - WriteToString(result, &value->__VisualEffectStub); + // Ark_String _VisualEffectStub + result->append("._VisualEffectStub="); + WriteToString(result, &value->_VisualEffectStub); result->append("}"); } template <> @@ -46104,7 +47320,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Position_Alignment& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Position_Alignment: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Position_Alignment: %d", value.selector); } } template <> @@ -46149,7 +47365,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_SizeOptions_ImageSize& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_SizeOptions_ImageSize: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_SizeOptions_ImageSize: %d", value.selector); } } template <> @@ -46238,7 +47454,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Margin_Length_LocalizedMargin case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Margin_Length_LocalizedMargin: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Margin_Length_LocalizedMargin: %d", value.selector); } } template <> @@ -46289,7 +47505,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Padding_LengthMetrics_Localiz case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Padding_LengthMetrics_LocalizedPadding: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Padding_LengthMetrics_LocalizedPadding: %d", value.selector); } } template <> @@ -46306,7 +47522,7 @@ inline void WriteToString(std::string* result, const Ark_Union_Padding_LengthMet // Ark_LengthMetrics if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } // Ark_LocalizedPadding if (value->selector == 2) { @@ -46340,7 +47556,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Padding_Length_LocalizedPaddi case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_Padding_Length_LocalizedPadding: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Padding_Length_LocalizedPadding: %d", value.selector); } } template <> @@ -46618,7 +47834,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_Array_Rectangle_Rectangle& va switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Array_Rectangle_Rectangle: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_Array_Rectangle_Rectangle: %d", value.selector); } } template <> @@ -46658,6 +47874,87 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_Array_Rectangle_Rectangle& va return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_KeyEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_KeyEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_KeyEvent* 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_KeyEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_DragEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DragEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_DragEvent* 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_DragEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PixelMapMock& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PixelMapMock value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PixelMapMock* 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_PixelMapMock& 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; @@ -46725,6 +48022,114 @@ 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_AccessibilityHoverEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_AccessibilityHoverEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_AccessibilityHoverEvent* 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_AccessibilityHoverEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MouseEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_MouseEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_MouseEvent* 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_MouseEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_HoverEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_HoverEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_HoverEvent* 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_HoverEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_BaseEvent& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_BaseEvent value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_BaseEvent* 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_BaseEvent& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LayoutSafeAreaEdge& value) { return INTEROP_RUNTIME_NUMBER; @@ -47274,7 +48679,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_CanvasRenderingContext2D_Draw switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext: %d", value.selector); } } template <> @@ -47286,12 +48691,12 @@ inline void WriteToString(std::string* result, const Ark_Union_CanvasRenderingCo // Ark_CanvasRenderingContext2D if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_DrawingRenderingContext if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } @@ -47314,37 +48719,6 @@ 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_RenderingContextSettings& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_RenderingContextSettings* value) { - result->append("{"); - // Ark_Boolean antialias - result->append(".antialias="); - WriteToString(result, &value->antialias); - result->append("}"); -} -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_ImageAnalyzerType& value) { return INTEROP_RUNTIME_NUMBER; @@ -47379,7 +48753,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Union_ImageBitmap_PixelMap& value) switch (value.selector) { case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_ImageBitmap_PixelMap: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Union_ImageBitmap_PixelMap: %d", value.selector); } } template <> @@ -47391,12 +48765,12 @@ inline void WriteToString(std::string* result, const Ark_Union_ImageBitmap_Pixel // Ark_ImageBitmap if (value->selector == 0) { result->append(".value0="); - WriteToString(result, &value->value0); + WriteToString(result, value->value0); } // Ark_PixelMap if (value->selector == 1) { result->append(".value1="); - WriteToString(result, &value->value1); + WriteToString(result, value->value1); } result->append("}"); } @@ -47419,6 +48793,60 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ImageBitmap_PixelMap& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CanvasRenderer& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CanvasRenderer value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_CanvasRenderer* 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_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; @@ -47426,9 +48854,9 @@ inline Ark_RuntimeType runtimeType(const Ark_LengthMetricsUnit& value) template <> inline void WriteToString(std::string* result, const Ark_LengthMetricsUnit* value) { result->append("{"); - // Ark_String __LengthMetricsUnitStub - result->append(".__LengthMetricsUnitStub="); - WriteToString(result, &value->__LengthMetricsUnitStub); + // Ark_String _LengthMetricsUnitStub + result->append("._LengthMetricsUnitStub="); + WriteToString(result, &value->_LengthMetricsUnitStub); result->append("}"); } template <> @@ -47450,6 +48878,60 @@ inline Ark_RuntimeType runtimeType(const Opt_LengthMetricsUnit& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CanvasPath& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CanvasPath value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_CanvasPath* 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_CanvasPath& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_CalendarPickerDialog& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CalendarPickerDialog value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_CalendarPickerDialog* 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_CalendarPickerDialog& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CalendarOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -48195,45 +49677,106 @@ inline Ark_RuntimeType runtimeType(const Opt_BadgeParamWithNumber& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_SpringMotion_FrictionMotion_ScrollMotion& value) +inline Ark_RuntimeType runtimeType(const Ark_FillMode& value) { - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_SpringMotion_FrictionMotion_ScrollMotion: " + std::to_string(value.selector); - } + return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_Union_SpringMotion_FrictionMotion_ScrollMotion* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_SpringMotion - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); +inline void WriteToString(std::string* result, const Ark_FillMode value) { + result->append("Ark_FillMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_FillMode* 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); } - // Ark_FrictionMotion - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_FillMode& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_AnimationStatus& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_AnimationStatus value) { + result->append("Ark_AnimationStatus("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_AnimationStatus* 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); } - // Ark_ScrollMotion - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_AnimationStatus& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ScrollMotion& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ScrollMotion value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ScrollMotion* 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 void WriteToString(std::string* result, const Opt_Union_SpringMotion_FrictionMotion_ScrollMotion* value) { +inline Ark_RuntimeType runtimeType(const Opt_ScrollMotion& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_FrictionMotion& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_FrictionMotion value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_FrictionMotion* 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); @@ -48241,23 +49784,21 @@ inline void WriteToString(std::string* result, const Opt_Union_SpringMotion_Fric result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_SpringMotion_FrictionMotion_ScrollMotion& value) +inline Ark_RuntimeType runtimeType(const Opt_FrictionMotion& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FillMode& value) +inline Ark_RuntimeType runtimeType(const Ark_SpringMotion& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_FillMode value) { - result->append("Ark_FillMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_SpringMotion value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_FillMode* value) { +inline void WriteToString(std::string* result, const Opt_SpringMotion* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -48270,23 +49811,21 @@ inline void WriteToString(std::string* result, const Opt_FillMode* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_FillMode& value) +inline Ark_RuntimeType runtimeType(const Opt_SpringMotion& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_AnimationStatus& value) +inline Ark_RuntimeType runtimeType(const Ark_SpringProp& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_AnimationStatus value) { - result->append("Ark_AnimationStatus("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_SpringProp value) { + WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_AnimationStatus* value) { +inline void WriteToString(std::string* result, const Opt_SpringProp* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -48299,7 +49838,7 @@ inline void WriteToString(std::string* result, const Opt_AnimationStatus* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_AnimationStatus& value) +inline Ark_RuntimeType runtimeType(const Opt_SpringProp& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -48497,7 +50036,7 @@ inline Ark_RuntimeType runtimeType(const Ark_Type_AlertDialog_show_value& value) case 0: return runtimeType(value.value0); case 1: return runtimeType(value.value1); case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Type_AlertDialog_show_value: " + std::to_string(value.selector); + default: INTEROP_FATAL("Bad selector in Ark_Type_AlertDialog_show_value: %d", value.selector); } } template <> @@ -48542,6 +50081,33 @@ inline Ark_RuntimeType runtimeType(const Opt_Type_AlertDialog_show_value& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_AlertDialog& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_AlertDialog value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_AlertDialog* 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_AlertDialog& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_DismissDialogAction& value) { return INTEROP_RUNTIME_OBJECT; @@ -48616,6 +50182,33 @@ inline Ark_RuntimeType runtimeType(const Opt_SheetInfo& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ActionSheet& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ActionSheet value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_ActionSheet* 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_ActionSheet& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Want_want& value) { return INTEROP_RUNTIME_OBJECT; @@ -48647,6 +50240,114 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Want_want& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_EventEmulator& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_EventEmulator value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_EventEmulator* 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_EventEmulator& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_NavExtender& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavExtender value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavExtender* 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_NavExtender& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_ohos_arkui_performanceMonitor& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_ohos_arkui_performanceMonitor value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_ohos_arkui_performanceMonitor* 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_ohos_arkui_performanceMonitor& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_ohos_arkui_componentSnapshot& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_ohos_arkui_componentSnapshot value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_ohos_arkui_componentSnapshot* 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_ohos_arkui_componentSnapshot& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_WebHeader& value) { return INTEROP_RUNTIME_OBJECT; @@ -48721,12 +50422,16 @@ 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_Float32& value) +inline Ark_RuntimeType runtimeType(const Ark_LazyForEachOps& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Opt_Float32* value) { +inline void WriteToString(std::string* result, const Ark_LazyForEachOps value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LazyForEachOps* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -48739,7 +50444,7 @@ inline void WriteToString(std::string* result, const Opt_Float32* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Float32& value) +inline Ark_RuntimeType runtimeType(const Opt_LazyForEachOps& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -48766,6 +50471,33 @@ inline Ark_RuntimeType runtimeType(const Opt_NativePointer& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } +template <> +inline Ark_RuntimeType runtimeType(const Ark_AnimationExtender& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_AnimationExtender value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_AnimationExtender* 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_AnimationExtender& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} // Serializers @@ -48804,288 +50536,20 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_type_value); } } - void writePixelMap(Ark_PixelMap value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeLengthMetrics(Ark_LengthMetrics value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeLeadingMarginPlaceholder(Ark_LeadingMarginPlaceholder value) - { - Serializer& valueSerializer = *this; - const auto value_pixelMap = value.pixelMap; - valueSerializer.writePixelMap(value_pixelMap); - const auto value_size = value.size; - const auto value_size_0 = value_size.value0; - valueSerializer.writeLength(value_size_0); - const auto value_size_1 = value_size.value1; - valueSerializer.writeLength(value_size_1); - } void writeICurve(Ark_ICurve value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeTextBackgroundStyle(Ark_TextBackgroundStyle value) - { - Serializer& valueSerializer = *this; - const auto value_color = value.color; - Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; - value_color_type = runtimeType(value_color); - valueSerializer.writeInt8(value_color_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_color_type)) { - 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))) { - 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))) { - 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))) { - 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))) { - valueSerializer.writeInt8(3); - const auto value_color_value_3 = value_color_value.value3; - valueSerializer.writeResource(value_color_value_3); - } - } - const auto value_radius = value.radius; - Ark_Int32 value_radius_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_type = runtimeType(value_radius); - valueSerializer.writeInt8(value_radius_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_type)) { - 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))) { - 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))) { - 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; - Ark_Int32 value_radius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft); - valueSerializer.writeInt8(value_radius_value_1_topLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const auto value_radius_value_1_topLeft_value = value_radius_value_1_topLeft.value; - valueSerializer.writeLength(value_radius_value_1_topLeft_value); - } - const auto value_radius_value_1_topRight = value_radius_value_1.topRight; - Ark_Int32 value_radius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight); - valueSerializer.writeInt8(value_radius_value_1_topRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topRight_type)) { - const auto value_radius_value_1_topRight_value = value_radius_value_1_topRight.value; - valueSerializer.writeLength(value_radius_value_1_topRight_value); - } - const auto value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft; - Ark_Int32 value_radius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft); - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const auto value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft.value; - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value); - } - const auto value_radius_value_1_bottomRight = value_radius_value_1.bottomRight; - Ark_Int32 value_radius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight); - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const auto value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight.value; - valueSerializer.writeLength(value_radius_value_1_bottomRight_value); - } - } - } + valueSerializer.writePointer(value); } - void writeImageAttachmentLayoutStyle(Ark_ImageAttachmentLayoutStyle value) + void writePixelMap(Ark_PixelMap value) { Serializer& valueSerializer = *this; - const auto value_margin = value.margin; - Ark_Int32 value_margin_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_type = runtimeType(value_margin); - valueSerializer.writeInt8(value_margin_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_type)) { - 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))) { - 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))) { - 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; - Ark_Int32 value_margin_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_top_type = runtimeType(value_margin_value_1_top); - valueSerializer.writeInt8(value_margin_value_1_top_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_top_type)) { - const auto value_margin_value_1_top_value = value_margin_value_1_top.value; - valueSerializer.writeLength(value_margin_value_1_top_value); - } - const auto value_margin_value_1_right = value_margin_value_1.right; - Ark_Int32 value_margin_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_right_type = runtimeType(value_margin_value_1_right); - valueSerializer.writeInt8(value_margin_value_1_right_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_right_type)) { - const auto value_margin_value_1_right_value = value_margin_value_1_right.value; - valueSerializer.writeLength(value_margin_value_1_right_value); - } - const auto value_margin_value_1_bottom = value_margin_value_1.bottom; - Ark_Int32 value_margin_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom); - valueSerializer.writeInt8(value_margin_value_1_bottom_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_bottom_type)) { - const auto value_margin_value_1_bottom_value = value_margin_value_1_bottom.value; - valueSerializer.writeLength(value_margin_value_1_bottom_value); - } - const auto value_margin_value_1_left = value_margin_value_1.left; - Ark_Int32 value_margin_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; - value_margin_value_1_left_type = runtimeType(value_margin_value_1_left); - valueSerializer.writeInt8(value_margin_value_1_left_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_left_type)) { - const auto value_margin_value_1_left_value = value_margin_value_1_left.value; - valueSerializer.writeLength(value_margin_value_1_left_value); - } - } - } - const auto value_padding = value.padding; - Ark_Int32 value_padding_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_type = runtimeType(value_padding); - valueSerializer.writeInt8(value_padding_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_type)) { - 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))) { - 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))) { - 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; - Ark_Int32 value_padding_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_top_type = runtimeType(value_padding_value_1_top); - valueSerializer.writeInt8(value_padding_value_1_top_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_top_type)) { - const auto value_padding_value_1_top_value = value_padding_value_1_top.value; - valueSerializer.writeLength(value_padding_value_1_top_value); - } - const auto value_padding_value_1_right = value_padding_value_1.right; - Ark_Int32 value_padding_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_right_type = runtimeType(value_padding_value_1_right); - valueSerializer.writeInt8(value_padding_value_1_right_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_right_type)) { - const auto value_padding_value_1_right_value = value_padding_value_1_right.value; - valueSerializer.writeLength(value_padding_value_1_right_value); - } - const auto value_padding_value_1_bottom = value_padding_value_1.bottom; - Ark_Int32 value_padding_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom); - valueSerializer.writeInt8(value_padding_value_1_bottom_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_bottom_type)) { - const auto value_padding_value_1_bottom_value = value_padding_value_1_bottom.value; - valueSerializer.writeLength(value_padding_value_1_bottom_value); - } - const auto value_padding_value_1_left = value_padding_value_1.left; - Ark_Int32 value_padding_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; - value_padding_value_1_left_type = runtimeType(value_padding_value_1_left); - valueSerializer.writeInt8(value_padding_value_1_left_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_left_type)) { - const auto value_padding_value_1_left_value = value_padding_value_1_left.value; - valueSerializer.writeLength(value_padding_value_1_left_value); - } - } - } - const auto value_borderRadius = value.borderRadius; - Ark_Int32 value_borderRadius_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_type = runtimeType(value_borderRadius); - valueSerializer.writeInt8(value_borderRadius_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_type)) { - 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))) { - 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))) { - 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; - Ark_Int32 value_borderRadius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft); - valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { - const auto value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft.value; - valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); - } - const auto value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight; - Ark_Int32 value_borderRadius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight); - valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { - const auto value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight.value; - valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); - } - const auto value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft; - Ark_Int32 value_borderRadius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft); - valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { - const auto value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft.value; - valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); - } - const auto value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight; - Ark_Int32 value_borderRadius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; - value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight); - valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { - const auto value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight.value; - valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); - } - } - } + valueSerializer.writePointer(value); } - void writeSizeOptions(Ark_SizeOptions value) + void writeLengthMetrics(Ark_LengthMetrics value) { Serializer& valueSerializer = *this; - const auto value_width = value.width; - Ark_Int32 value_width_type = INTEROP_RUNTIME_UNDEFINED; - value_width_type = runtimeType(value_width); - valueSerializer.writeInt8(value_width_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_width_type)) { - const auto value_width_value = value_width.value; - valueSerializer.writeLength(value_width_value); - } - 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.writeLength(value_height_value); - } + valueSerializer.writePointer(value); } void writePosition(Ark_Position value) { @@ -49110,8 +50574,19 @@ class Serializer : public SerializerBase { void writeSymbolGlyphModifier(Ark_SymbolGlyphModifier value) { Serializer& valueSerializer = *this; - const auto value___SymbolGlyphModifierStub = value.__SymbolGlyphModifierStub; - valueSerializer.writeString(value___SymbolGlyphModifierStub); + const auto value__SymbolGlyphModifierStub = value._SymbolGlyphModifierStub; + valueSerializer.writeString(value__SymbolGlyphModifierStub); + } + void writeLeadingMarginPlaceholder(Ark_LeadingMarginPlaceholder value) + { + Serializer& valueSerializer = *this; + const auto value_pixelMap = value.pixelMap; + valueSerializer.writePixelMap(value_pixelMap); + const auto value_size = value.size; + const auto value_size_0 = value_size.value0; + valueSerializer.writeLength(value_size_0); + const auto value_size_1 = value_size.value1; + valueSerializer.writeLength(value_size_1); } void writeShadowOptions(Ark_ShadowOptions value) { @@ -49265,190 +50740,70 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_xxl_value); } } - void writeBackgroundColorStyle(Ark_BackgroundColorStyle value) - { - Serializer& valueSerializer = *this; - const auto value_textBackgroundStyle = value.textBackgroundStyle; - valueSerializer.writeTextBackgroundStyle(value_textBackgroundStyle); - } - void writeUserDataSpan(Ark_UserDataSpan value) - { - } - void writeCustomSpan(Ark_CustomSpan value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeUrlStyle(Ark_UrlStyle value) - { - Serializer& valueSerializer = *this; - const auto value_url = value.url; - valueSerializer.writeString(value_url); - } - void writeLineHeightStyle(Ark_LineHeightStyle value) - { - Serializer& valueSerializer = *this; - const auto value_lineHeight = value.lineHeight; - valueSerializer.writeNumber(value_lineHeight); - } - void writeParagraphStyle(Ark_ParagraphStyle value) + void writeArea(Ark_Area value) { Serializer& valueSerializer = *this; - const auto value_textAlign = value.textAlign; - Ark_Int32 value_textAlign_type = INTEROP_RUNTIME_UNDEFINED; - value_textAlign_type = runtimeType(value_textAlign); - valueSerializer.writeInt8(value_textAlign_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_textAlign_type)) { - const auto value_textAlign_value = value_textAlign.value; - valueSerializer.writeInt32(static_cast(value_textAlign_value)); - } - const auto value_textIndent = value.textIndent; - Ark_Int32 value_textIndent_type = INTEROP_RUNTIME_UNDEFINED; - value_textIndent_type = runtimeType(value_textIndent); - valueSerializer.writeInt8(value_textIndent_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_textIndent_type)) { - const auto value_textIndent_value = value_textIndent.value; - valueSerializer.writeNumber(value_textIndent_value); - } - const auto value_maxLines = value.maxLines; - Ark_Int32 value_maxLines_type = INTEROP_RUNTIME_UNDEFINED; - value_maxLines_type = runtimeType(value_maxLines); - valueSerializer.writeInt8(value_maxLines_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_maxLines_type)) { - const auto value_maxLines_value = value_maxLines.value; - valueSerializer.writeNumber(value_maxLines_value); - } - const auto value_overflow = value.overflow; - Ark_Int32 value_overflow_type = INTEROP_RUNTIME_UNDEFINED; - value_overflow_type = runtimeType(value_overflow); - valueSerializer.writeInt8(value_overflow_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_overflow_type)) { - const auto value_overflow_value = value_overflow.value; - valueSerializer.writeInt32(static_cast(value_overflow_value)); - } - const auto value_wordBreak = value.wordBreak; - Ark_Int32 value_wordBreak_type = INTEROP_RUNTIME_UNDEFINED; - value_wordBreak_type = runtimeType(value_wordBreak); - valueSerializer.writeInt8(value_wordBreak_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_wordBreak_type)) { - const auto value_wordBreak_value = value_wordBreak.value; - valueSerializer.writeInt32(static_cast(value_wordBreak_value)); - } - const auto value_leadingMargin = value.leadingMargin; - Ark_Int32 value_leadingMargin_type = INTEROP_RUNTIME_UNDEFINED; - value_leadingMargin_type = runtimeType(value_leadingMargin); - valueSerializer.writeInt8(value_leadingMargin_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_leadingMargin_type)) { - 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))) { - valueSerializer.writeInt8(0); - const auto value_leadingMargin_value_0 = value_leadingMargin_value.value0; - valueSerializer.writeNumber(value_leadingMargin_value_0); - } - 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); - } - } + const auto value_width = value.width; + valueSerializer.writeLength(value_width); + const auto value_height = value.height; + valueSerializer.writeLength(value_height); + const auto value_position = value.position; + valueSerializer.writePosition(value_position); + const auto value_globalPosition = value.globalPosition; + valueSerializer.writePosition(value_globalPosition); } - void writeImageAttachment(Ark_ImageAttachment value) + void writeFont(Ark_Font value) { Serializer& valueSerializer = *this; - const auto value_value = value.value; - valueSerializer.writePixelMap(value_value); const auto value_size = value.size; Ark_Int32 value_size_type = INTEROP_RUNTIME_UNDEFINED; value_size_type = runtimeType(value_size); valueSerializer.writeInt8(value_size_type); if ((INTEROP_RUNTIME_UNDEFINED) != (value_size_type)) { const auto value_size_value = value_size.value; - valueSerializer.writeSizeOptions(value_size_value); - } - const auto value_verticalAlign = value.verticalAlign; - Ark_Int32 value_verticalAlign_type = INTEROP_RUNTIME_UNDEFINED; - value_verticalAlign_type = runtimeType(value_verticalAlign); - valueSerializer.writeInt8(value_verticalAlign_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_verticalAlign_type)) { - const auto value_verticalAlign_value = value_verticalAlign.value; - valueSerializer.writeInt32(static_cast(value_verticalAlign_value)); - } - const auto value_objectFit = value.objectFit; - Ark_Int32 value_objectFit_type = INTEROP_RUNTIME_UNDEFINED; - value_objectFit_type = runtimeType(value_objectFit); - valueSerializer.writeInt8(value_objectFit_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_objectFit_type)) { - const auto value_objectFit_value = value_objectFit.value; - valueSerializer.writeInt32(static_cast(value_objectFit_value)); - } - const auto value_layoutStyle = value.layoutStyle; - Ark_Int32 value_layoutStyle_type = INTEROP_RUNTIME_UNDEFINED; - value_layoutStyle_type = runtimeType(value_layoutStyle); - valueSerializer.writeInt8(value_layoutStyle_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_layoutStyle_type)) { - const auto value_layoutStyle_value = value_layoutStyle.value; - valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value); - } - } - void writeGestureStyle(Ark_GestureStyle value) - { - } - void writeTextShadowStyle(Ark_TextShadowStyle value) - { - Serializer& valueSerializer = *this; - const auto value_textShadow = value.textShadow; - valueSerializer.writeInt32(value_textShadow.length); - for (int i = 0; i < value_textShadow.length; i++) { - const Ark_ShadowOptions value_textShadow_element = value_textShadow.array[i]; - valueSerializer.writeShadowOptions(value_textShadow_element); + valueSerializer.writeLength(value_size_value); } - } - void writeLetterSpacingStyle(Ark_LetterSpacingStyle value) - { - Serializer& valueSerializer = *this; - const auto value_letterSpacing = value.letterSpacing; - valueSerializer.writeNumber(value_letterSpacing); - } - void writeBaselineOffsetStyle(Ark_BaselineOffsetStyle value) - { - Serializer& valueSerializer = *this; - const auto value_baselineOffset = value.baselineOffset; - valueSerializer.writeNumber(value_baselineOffset); - } - void writeDecorationStyle(Ark_DecorationStyle value) - { - Serializer& valueSerializer = *this; - const auto value_type = value.type; - valueSerializer.writeInt32(static_cast(value_type)); - const auto value_color = value.color; - Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; - value_color_type = runtimeType(value_color); - valueSerializer.writeInt8(value_color_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_color_type)) { - 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))) { + const auto value_weight = value.weight; + Ark_Int32 value_weight_type = INTEROP_RUNTIME_UNDEFINED; + value_weight_type = runtimeType(value_weight); + valueSerializer.writeInt8(value_weight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_weight_type)) { + 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))) { valueSerializer.writeInt8(0); - const auto value_color_value_0 = value_color_value.value0; - valueSerializer.writeInt32(static_cast(value_color_value_0)); + const auto value_weight_value_0 = value_weight_value.value0; + valueSerializer.writeInt32(static_cast(value_weight_value_0)); } - else if (((value_color_value_type == 1))) { + else if (((value_weight_value_type == 1))) { valueSerializer.writeInt8(1); - const auto value_color_value_1 = value_color_value.value1; - valueSerializer.writeNumber(value_color_value_1); + const auto value_weight_value_1 = value_weight_value.value1; + valueSerializer.writeNumber(value_weight_value_1); } - else if (((value_color_value_type == 2))) { + else if (((value_weight_value_type == 2))) { valueSerializer.writeInt8(2); - const auto value_color_value_2 = value_color_value.value2; - valueSerializer.writeString(value_color_value_2); + const auto value_weight_value_2 = value_weight_value.value2; + valueSerializer.writeString(value_weight_value_2); } - 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); + } + const auto value_family = value.family; + Ark_Int32 value_family_type = INTEROP_RUNTIME_UNDEFINED; + value_family_type = runtimeType(value_family); + valueSerializer.writeInt8(value_family_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_family_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1); + const auto value_family_value_1 = value_family_value.value1; + valueSerializer.writeResource(value_family_value_1); } } const auto value_style = value.style; @@ -49457,150 +50812,10 @@ class Serializer : public SerializerBase { valueSerializer.writeInt8(value_style_type); if ((INTEROP_RUNTIME_UNDEFINED) != (value_style_type)) { const auto value_style_value = value_style.value; - valueSerializer.writeInt32(static_cast(value_style_value)); + valueSerializer.writeInt32(static_cast(value_style_value)); } } - void writeTextStyle_styled_string(Ark_TextStyle_styled_string value) - { - Serializer& valueSerializer = *this; - const auto value_fontColor = value.fontColor; - Ark_Int32 value_fontColor_type = INTEROP_RUNTIME_UNDEFINED; - value_fontColor_type = runtimeType(value_fontColor); - valueSerializer.writeInt8(value_fontColor_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontColor_type)) { - 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))) { - 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))) { - 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))) { - 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))) { - valueSerializer.writeInt8(3); - const auto value_fontColor_value_3 = value_fontColor_value.value3; - valueSerializer.writeResource(value_fontColor_value_3); - } - } - const auto value_fontFamily = value.fontFamily; - Ark_Int32 value_fontFamily_type = INTEROP_RUNTIME_UNDEFINED; - value_fontFamily_type = runtimeType(value_fontFamily); - valueSerializer.writeInt8(value_fontFamily_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontFamily_type)) { - const auto value_fontFamily_value = value_fontFamily.value; - valueSerializer.writeString(value_fontFamily_value); - } - const auto value_fontSize = value.fontSize; - Ark_Int32 value_fontSize_type = INTEROP_RUNTIME_UNDEFINED; - value_fontSize_type = runtimeType(value_fontSize); - valueSerializer.writeInt8(value_fontSize_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontSize_type)) { - const auto value_fontSize_value = value_fontSize.value; - valueSerializer.writeNumber(value_fontSize_value); - } - const auto value_fontWeight = value.fontWeight; - Ark_Int32 value_fontWeight_type = INTEROP_RUNTIME_UNDEFINED; - value_fontWeight_type = runtimeType(value_fontWeight); - valueSerializer.writeInt8(value_fontWeight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontWeight_type)) { - const auto value_fontWeight_value = value_fontWeight.value; - valueSerializer.writeNumber(value_fontWeight_value); - } - const auto value_fontStyle = value.fontStyle; - Ark_Int32 value_fontStyle_type = INTEROP_RUNTIME_UNDEFINED; - value_fontStyle_type = runtimeType(value_fontStyle); - valueSerializer.writeInt8(value_fontStyle_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontStyle_type)) { - const auto value_fontStyle_value = value_fontStyle.value; - valueSerializer.writeInt32(static_cast(value_fontStyle_value)); - } - } - void writeArea(Ark_Area value) - { - Serializer& valueSerializer = *this; - const auto value_width = value.width; - valueSerializer.writeLength(value_width); - const auto value_height = value.height; - valueSerializer.writeLength(value_height); - const auto value_position = value.position; - valueSerializer.writePosition(value_position); - const auto value_globalPosition = value.globalPosition; - valueSerializer.writePosition(value_globalPosition); - } - void writeFont(Ark_Font value) - { - Serializer& valueSerializer = *this; - const auto value_size = value.size; - Ark_Int32 value_size_type = INTEROP_RUNTIME_UNDEFINED; - value_size_type = runtimeType(value_size); - valueSerializer.writeInt8(value_size_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_size_type)) { - const auto value_size_value = value_size.value; - valueSerializer.writeLength(value_size_value); - } - const auto value_weight = value.weight; - Ark_Int32 value_weight_type = INTEROP_RUNTIME_UNDEFINED; - value_weight_type = runtimeType(value_weight); - valueSerializer.writeInt8(value_weight_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_weight_type)) { - 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))) { - 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))) { - 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))) { - valueSerializer.writeInt8(2); - const auto value_weight_value_2 = value_weight_value.value2; - valueSerializer.writeString(value_weight_value_2); - } - } - const auto value_family = value.family; - Ark_Int32 value_family_type = INTEROP_RUNTIME_UNDEFINED; - value_family_type = runtimeType(value_family); - valueSerializer.writeInt8(value_family_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_family_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1); - const auto value_family_value_1 = value_family_value.value1; - valueSerializer.writeResource(value_family_value_1); - } - } - const auto value_style = value.style; - Ark_Int32 value_style_type = INTEROP_RUNTIME_UNDEFINED; - value_style_type = runtimeType(value_style); - valueSerializer.writeInt8(value_style_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_style_type)) { - const auto value_style_value = value_style.value; - valueSerializer.writeInt32(static_cast(value_style_value)); - } - } - void writeLocalizedPadding(Ark_LocalizedPadding value) + void writeLocalizedPadding(Ark_LocalizedPadding value) { Serializer& valueSerializer = *this; const auto value_stub = value.stub; @@ -49623,8 +50838,8 @@ class Serializer : public SerializerBase { void writeComponentContent(Ark_ComponentContent value) { Serializer& valueSerializer = *this; - const auto value___ComponentContentStub = value.__ComponentContentStub; - valueSerializer.writeString(value___ComponentContentStub); + const auto value__ComponentContentStub = value._ComponentContentStub; + valueSerializer.writeString(value__ComponentContentStub); } void writeScrollAnimationOptions(Ark_ScrollAnimationOptions value) { @@ -50044,7 +51259,7 @@ class Serializer : public SerializerBase { void writeTransitionEffect(Ark_TransitionEffect value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeLocalizedBorderRadiuses(Ark_LocalizedBorderRadiuses value) { @@ -50085,23 +51300,203 @@ class Serializer : public SerializerBase { void writeCanvasPattern(Ark_CanvasPattern value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeCanvasGradient(Ark_CanvasGradient value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeColorMetrics(Ark_ColorMetrics value) { Serializer& valueSerializer = *this; - const auto value___ColorMetricsStub = value.__ColorMetricsStub; - valueSerializer.writeString(value___ColorMetricsStub); + const auto value__ColorMetricsStub = value._ColorMetricsStub; + valueSerializer.writeString(value__ColorMetricsStub); + } + void writeStyledStringValue(Ark_StyledStringValue value) + { + Serializer& valueSerializer = *this; + const auto value_stub = value.stub; + valueSerializer.writeString(value_stub); + } + void writeImageAttachmentLayoutStyle(Ark_ImageAttachmentLayoutStyle value) + { + Serializer& valueSerializer = *this; + const auto value_margin = value.margin; + Ark_Int32 value_margin_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_type = runtimeType(value_margin); + valueSerializer.writeInt8(value_margin_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_type)) { + 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))) { + 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))) { + 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; + Ark_Int32 value_margin_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_top_type = runtimeType(value_margin_value_1_top); + valueSerializer.writeInt8(value_margin_value_1_top_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_top_type)) { + const auto value_margin_value_1_top_value = value_margin_value_1_top.value; + valueSerializer.writeLength(value_margin_value_1_top_value); + } + const auto value_margin_value_1_right = value_margin_value_1.right; + Ark_Int32 value_margin_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_right_type = runtimeType(value_margin_value_1_right); + valueSerializer.writeInt8(value_margin_value_1_right_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_right_type)) { + const auto value_margin_value_1_right_value = value_margin_value_1_right.value; + valueSerializer.writeLength(value_margin_value_1_right_value); + } + const auto value_margin_value_1_bottom = value_margin_value_1.bottom; + Ark_Int32 value_margin_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom); + valueSerializer.writeInt8(value_margin_value_1_bottom_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_bottom_type)) { + const auto value_margin_value_1_bottom_value = value_margin_value_1_bottom.value; + valueSerializer.writeLength(value_margin_value_1_bottom_value); + } + const auto value_margin_value_1_left = value_margin_value_1.left; + Ark_Int32 value_margin_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; + value_margin_value_1_left_type = runtimeType(value_margin_value_1_left); + valueSerializer.writeInt8(value_margin_value_1_left_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_margin_value_1_left_type)) { + const auto value_margin_value_1_left_value = value_margin_value_1_left.value; + valueSerializer.writeLength(value_margin_value_1_left_value); + } + } + } + const auto value_padding = value.padding; + Ark_Int32 value_padding_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_type = runtimeType(value_padding); + valueSerializer.writeInt8(value_padding_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_type)) { + 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))) { + 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))) { + 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; + Ark_Int32 value_padding_value_1_top_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_top_type = runtimeType(value_padding_value_1_top); + valueSerializer.writeInt8(value_padding_value_1_top_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_top_type)) { + const auto value_padding_value_1_top_value = value_padding_value_1_top.value; + valueSerializer.writeLength(value_padding_value_1_top_value); + } + const auto value_padding_value_1_right = value_padding_value_1.right; + Ark_Int32 value_padding_value_1_right_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_right_type = runtimeType(value_padding_value_1_right); + valueSerializer.writeInt8(value_padding_value_1_right_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_right_type)) { + const auto value_padding_value_1_right_value = value_padding_value_1_right.value; + valueSerializer.writeLength(value_padding_value_1_right_value); + } + const auto value_padding_value_1_bottom = value_padding_value_1.bottom; + Ark_Int32 value_padding_value_1_bottom_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom); + valueSerializer.writeInt8(value_padding_value_1_bottom_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_bottom_type)) { + const auto value_padding_value_1_bottom_value = value_padding_value_1_bottom.value; + valueSerializer.writeLength(value_padding_value_1_bottom_value); + } + const auto value_padding_value_1_left = value_padding_value_1.left; + Ark_Int32 value_padding_value_1_left_type = INTEROP_RUNTIME_UNDEFINED; + value_padding_value_1_left_type = runtimeType(value_padding_value_1_left); + valueSerializer.writeInt8(value_padding_value_1_left_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_padding_value_1_left_type)) { + const auto value_padding_value_1_left_value = value_padding_value_1_left.value; + valueSerializer.writeLength(value_padding_value_1_left_value); + } + } + } + const auto value_borderRadius = value.borderRadius; + Ark_Int32 value_borderRadius_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_type = runtimeType(value_borderRadius); + valueSerializer.writeInt8(value_borderRadius_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_type)) { + 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))) { + 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))) { + 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; + Ark_Int32 value_borderRadius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft); + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const auto value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft.value; + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); + } + const auto value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight; + Ark_Int32 value_borderRadius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight); + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const auto value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight.value; + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); + } + const auto value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft; + Ark_Int32 value_borderRadius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft); + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const auto value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft.value; + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); + } + const auto value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight; + Ark_Int32 value_borderRadius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; + value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight); + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const auto value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight.value; + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); + } + } + } + } + void writeSizeOptions(Ark_SizeOptions value) + { + Serializer& valueSerializer = *this; + const auto value_width = value.width; + Ark_Int32 value_width_type = INTEROP_RUNTIME_UNDEFINED; + value_width_type = runtimeType(value_width); + valueSerializer.writeInt8(value_width_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_width_type)) { + const auto value_width_value = value_width.value; + valueSerializer.writeLength(value_width_value); + } + 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.writeLength(value_height_value); + } } void writeImageAnalyzerController(Ark_ImageAnalyzerController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeEventTarget(Ark_EventTarget value) { @@ -50112,23 +51507,23 @@ class Serializer : public SerializerBase { void writeWebResourceRequest(Ark_WebResourceRequest value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWebviewController(Ark_WebviewController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWebController(Ark_WebController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeDateTimeOptions(Ark_DateTimeOptions value) { Serializer& valueSerializer = *this; - const auto value___DateTimeOptionsStub = value.__DateTimeOptionsStub; - valueSerializer.writeString(value___DateTimeOptionsStub); + const auto value__DateTimeOptionsStub = value._DateTimeOptionsStub; + valueSerializer.writeString(value__DateTimeOptionsStub); } void writeRectangle(Ark_Rectangle value) { @@ -50413,7 +51808,7 @@ class Serializer : public SerializerBase { void writeTextMenuItemId(Ark_TextMenuItemId value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTabBarIconStyle(Ark_TabBarIconStyle value) { @@ -50704,18 +52099,6 @@ class Serializer : public SerializerBase { const auto value_grayscale_1 = value_grayscale.value1; valueSerializer.writeNumber(value_grayscale_1); } - void writeRectAttribute(Ark_RectAttribute value) - { - } - void writePathAttribute(Ark_PathAttribute value) - { - } - void writeEllipseAttribute(Ark_EllipseAttribute value) - { - } - void writeCircleAttribute(Ark_CircleAttribute value) - { - } void writeIconOptions(Ark_IconOptions value) { Serializer& valueSerializer = *this; @@ -51280,39 +52663,12 @@ class Serializer : public SerializerBase { void writeNavPathStack(Ark_NavPathStack value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeNavPathInfo(Ark_NavPathInfo value) { Serializer& valueSerializer = *this; - const auto value_name = value.name; - valueSerializer.writeString(value_name); - const auto value_param = value.param; - Ark_Int32 value_param_type = INTEROP_RUNTIME_UNDEFINED; - value_param_type = runtimeType(value_param); - valueSerializer.writeInt8(value_param_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_param_type)) { - const auto value_param_value = value_param.value; - valueSerializer.writeCustomObject("Any", value_param_value); - } - const auto value_onPop = value.onPop; - Ark_Int32 value_onPop_type = INTEROP_RUNTIME_UNDEFINED; - value_onPop_type = runtimeType(value_onPop); - valueSerializer.writeInt8(value_onPop_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_onPop_type)) { - const auto value_onPop_value = value_onPop.value; - valueSerializer.writeCallbackResource(value_onPop_value.resource); - valueSerializer.writePointer(reinterpret_cast(value_onPop_value.call)); - valueSerializer.writePointer(reinterpret_cast(value_onPop_value.callSync)); - } - const auto value_isEntry = value.isEntry; - Ark_Int32 value_isEntry_type = INTEROP_RUNTIME_UNDEFINED; - value_isEntry_type = runtimeType(value_isEntry); - valueSerializer.writeInt8(value_isEntry_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_isEntry_type)) { - const auto value_isEntry_value = value_isEntry.value; - valueSerializer.writeBoolean(value_isEntry_value); - } + valueSerializer.writePointer(value); } void writeTextModifier(Ark_TextModifier value) { @@ -51525,74 +52881,10 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_xxl_value); } } - void writeLinearGradient_common(Ark_LinearGradient_common value) + void writeLinearGradient(Ark_LinearGradient value) { Serializer& valueSerializer = *this; - const auto value_angle = value.angle; - Ark_Int32 value_angle_type = INTEROP_RUNTIME_UNDEFINED; - value_angle_type = runtimeType(value_angle); - valueSerializer.writeInt8(value_angle_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_angle_type)) { - 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))) { - 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))) { - valueSerializer.writeInt8(1); - const auto value_angle_value_1 = value_angle_value.value1; - valueSerializer.writeString(value_angle_value_1); - } - } - const auto value_direction = value.direction; - Ark_Int32 value_direction_type = INTEROP_RUNTIME_UNDEFINED; - value_direction_type = runtimeType(value_direction); - valueSerializer.writeInt8(value_direction_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_direction_type)) { - const auto value_direction_value = value_direction.value; - valueSerializer.writeInt32(static_cast(value_direction_value)); - } - const auto value_colors = value.colors; - valueSerializer.writeInt32(value_colors.length); - for (int i = 0; i < value_colors.length; i++) { - const Ark_Tuple_ResourceColor_Number value_colors_element = value_colors.array[i]; - 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))) { - 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))) { - 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))) { - 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))) { - valueSerializer.writeInt8(3); - const auto value_colors_element_0_3 = value_colors_element_0.value3; - valueSerializer.writeResource(value_colors_element_0_3); - } - const auto value_colors_element_1 = value_colors_element.value1; - valueSerializer.writeNumber(value_colors_element_1); - } - const auto value_repeating = value.repeating; - Ark_Int32 value_repeating_type = INTEROP_RUNTIME_UNDEFINED; - value_repeating_type = runtimeType(value_repeating); - valueSerializer.writeInt8(value_repeating_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_repeating_type)) { - const auto value_repeating_value = value_repeating.value; - valueSerializer.writeBoolean(value_repeating_value); - } + valueSerializer.writePointer(value); } void writeLunarSwitchStyle(Ark_LunarSwitchStyle value) { @@ -51698,14 +52990,14 @@ class Serializer : public SerializerBase { void writeScene(Ark_Scene value) { Serializer& valueSerializer = *this; - const auto value___SceneStub = value.__SceneStub; - valueSerializer.writeString(value___SceneStub); + const auto value__SceneStub = value._SceneStub; + valueSerializer.writeString(value__SceneStub); } void writeUIContext(Ark_UIContext value) { Serializer& valueSerializer = *this; - const auto value___UIContextStub = value.__UIContextStub; - valueSerializer.writeString(value___UIContextStub); + const auto value__UIContextStub = value._UIContextStub; + valueSerializer.writeString(value__UIContextStub); } void writeContextMenuAnimationOptions(Ark_ContextMenuAnimationOptions value) { @@ -51799,8 +53091,8 @@ class Serializer : public SerializerBase { void writeImageModifier(Ark_ImageModifier value) { Serializer& valueSerializer = *this; - const auto value___ImageModifierStub = value.__ImageModifierStub; - valueSerializer.writeString(value___ImageModifierStub); + const auto value__ImageModifierStub = value._ImageModifierStub; + valueSerializer.writeString(value__ImageModifierStub); } void writeMotionPathOptions(Ark_MotionPathOptions value) { @@ -52075,10 +53367,79 @@ class Serializer : public SerializerBase { } } } + void writeLinearGradient_common(Ark_LinearGradient_common value) + { + Serializer& valueSerializer = *this; + const auto value_angle = value.angle; + Ark_Int32 value_angle_type = INTEROP_RUNTIME_UNDEFINED; + value_angle_type = runtimeType(value_angle); + valueSerializer.writeInt8(value_angle_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_angle_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1); + const auto value_angle_value_1 = value_angle_value.value1; + valueSerializer.writeString(value_angle_value_1); + } + } + const auto value_direction = value.direction; + Ark_Int32 value_direction_type = INTEROP_RUNTIME_UNDEFINED; + value_direction_type = runtimeType(value_direction); + valueSerializer.writeInt8(value_direction_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_direction_type)) { + const auto value_direction_value = value_direction.value; + valueSerializer.writeInt32(static_cast(value_direction_value)); + } + const auto value_colors = value.colors; + valueSerializer.writeInt32(value_colors.length); + for (int i = 0; i < value_colors.length; i++) { + const Ark_Tuple_ResourceColor_Number value_colors_element = value_colors.array[i]; + 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))) { + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(3); + const auto value_colors_element_0_3 = value_colors_element_0.value3; + valueSerializer.writeResource(value_colors_element_0_3); + } + const auto value_colors_element_1 = value_colors_element.value1; + valueSerializer.writeNumber(value_colors_element_1); + } + const auto value_repeating = value.repeating; + Ark_Int32 value_repeating_type = INTEROP_RUNTIME_UNDEFINED; + value_repeating_type = runtimeType(value_repeating); + valueSerializer.writeInt8(value_repeating_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_repeating_type)) { + const auto value_repeating_value = value_repeating.value; + valueSerializer.writeBoolean(value_repeating_value); + } + } void writeDrawingCanvas(Ark_DrawingCanvas value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSize(Ark_Size value) { @@ -52091,7 +53452,7 @@ class Serializer : public SerializerBase { void writeFrameNode(Ark_FrameNode value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTextStyle_alert_dialog(Ark_TextStyle_alert_dialog value) { @@ -52296,14 +53657,14 @@ class Serializer : public SerializerBase { void writeCustomTheme(Ark_CustomTheme value) { Serializer& valueSerializer = *this; - const auto value___CustomThemeStub = value.__CustomThemeStub; - valueSerializer.writeString(value___CustomThemeStub); + const auto value__CustomThemeStub = value._CustomThemeStub; + valueSerializer.writeString(value__CustomThemeStub); } void writeRestrictedWorker(Ark_RestrictedWorker value) { Serializer& valueSerializer = *this; - const auto value___RestrictedWorkerStub = value.__RestrictedWorkerStub; - valueSerializer.writeString(value___RestrictedWorkerStub); + const auto value__RestrictedWorkerStub = value._RestrictedWorkerStub; + valueSerializer.writeString(value__RestrictedWorkerStub); } void writeWant(Ark_Want value) { @@ -52402,7 +53763,7 @@ class Serializer : public SerializerBase { void writeStyledString(Ark_StyledString value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeNavigationAnimatedTransition(Ark_NavigationAnimatedTransition value) { @@ -52438,44 +53799,6 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_transition.call)); valueSerializer.writePointer(reinterpret_cast(value_transition.callSync)); } - void writeNavContentInfo(Ark_NavContentInfo value) - { - Serializer& valueSerializer = *this; - const auto value_name = value.name; - Ark_Int32 value_name_type = INTEROP_RUNTIME_UNDEFINED; - value_name_type = runtimeType(value_name); - valueSerializer.writeInt8(value_name_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_name_type)) { - const auto value_name_value = value_name.value; - valueSerializer.writeString(value_name_value); - } - const auto value_index = value.index; - valueSerializer.writeNumber(value_index); - const auto value_mode = value.mode; - Ark_Int32 value_mode_type = INTEROP_RUNTIME_UNDEFINED; - value_mode_type = runtimeType(value_mode); - valueSerializer.writeInt8(value_mode_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_mode_type)) { - const auto value_mode_value = value_mode.value; - valueSerializer.writeInt32(static_cast(value_mode_value)); - } - const auto value_param = value.param; - Ark_Int32 value_param_type = INTEROP_RUNTIME_UNDEFINED; - value_param_type = runtimeType(value_param); - valueSerializer.writeInt8(value_param_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_param_type)) { - const auto value_param_value = value_param.value; - valueSerializer.writeCustomObject("Object", value_param_value); - } - const auto value_navDestinationId = value.navDestinationId; - Ark_Int32 value_navDestinationId_type = INTEROP_RUNTIME_UNDEFINED; - value_navDestinationId_type = runtimeType(value_navDestinationId); - valueSerializer.writeInt8(value_navDestinationId_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_navDestinationId_type)) { - const auto value_navDestinationId_value = value_navDestinationId.value; - valueSerializer.writeString(value_navDestinationId_value); - } - } void writeLinearIndicatorStyle(Ark_LinearIndicatorStyle value) { Serializer& valueSerializer = *this; @@ -52555,8 +53878,8 @@ class Serializer : public SerializerBase { void writeDrawContext(Ark_DrawContext value) { Serializer& valueSerializer = *this; - const auto value___DrawContextStub = value.__DrawContextStub; - valueSerializer.writeString(value___DrawContextStub); + const auto value__DrawContextStub = value._DrawContextStub; + valueSerializer.writeString(value__DrawContextStub); } void writeCustomSpanMeasureInfo(Ark_CustomSpanMeasureInfo value) { @@ -52574,83 +53897,110 @@ class Serializer : public SerializerBase { const auto value_styledKey = value.styledKey; valueSerializer.writeInt32(static_cast(value_styledKey)); const auto value_styledValue = value.styledValue; - Ark_Int32 value_styledValue_type = INTEROP_RUNTIME_UNDEFINED; - value_styledValue_type = value_styledValue.selector; - if (((value_styledValue_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_styledValue_0 = value_styledValue.value0; - valueSerializer.writeTextStyle_styled_string(value_styledValue_0); - } - else if (((value_styledValue_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_styledValue_1 = value_styledValue.value1; - valueSerializer.writeDecorationStyle(value_styledValue_1); - } - else if (((value_styledValue_type == 2))) { - valueSerializer.writeInt8(2); - const auto value_styledValue_2 = value_styledValue.value2; - valueSerializer.writeBaselineOffsetStyle(value_styledValue_2); - } - else if (((value_styledValue_type == 3))) { - valueSerializer.writeInt8(3); - const auto value_styledValue_3 = value_styledValue.value3; - valueSerializer.writeLetterSpacingStyle(value_styledValue_3); + valueSerializer.writeStyledStringValue(value_styledValue); + } + void writeTextBackgroundStyle(Ark_TextBackgroundStyle value) + { + Serializer& valueSerializer = *this; + const auto value_color = value.color; + Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; + value_color_type = runtimeType(value_color); + valueSerializer.writeInt8(value_color_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_color_type)) { + 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))) { + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(3); + const auto value_color_value_3 = value_color_value.value3; + valueSerializer.writeResource(value_color_value_3); + } } - else if (((value_styledValue_type == 4))) { - valueSerializer.writeInt8(4); - const auto value_styledValue_4 = value_styledValue.value4; - valueSerializer.writeTextShadowStyle(value_styledValue_4); - } - else if (((value_styledValue_type == 5))) { - valueSerializer.writeInt8(5); - const auto value_styledValue_5 = value_styledValue.value5; - valueSerializer.writeGestureStyle(value_styledValue_5); - } - else if (((value_styledValue_type == 6))) { - valueSerializer.writeInt8(6); - const auto value_styledValue_6 = value_styledValue.value6; - valueSerializer.writeImageAttachment(value_styledValue_6); - } - else if (((value_styledValue_type == 7))) { - valueSerializer.writeInt8(7); - const auto value_styledValue_7 = value_styledValue.value7; - valueSerializer.writeParagraphStyle(value_styledValue_7); - } - else if (((value_styledValue_type == 8))) { - valueSerializer.writeInt8(8); - const auto value_styledValue_8 = value_styledValue.value8; - valueSerializer.writeLineHeightStyle(value_styledValue_8); - } - else if (((value_styledValue_type == 9))) { - valueSerializer.writeInt8(9); - const auto value_styledValue_9 = value_styledValue.value9; - valueSerializer.writeUrlStyle(value_styledValue_9); - } - else if (((value_styledValue_type == 10))) { - valueSerializer.writeInt8(10); - const auto value_styledValue_10 = value_styledValue.value10; - valueSerializer.writeCustomSpan(value_styledValue_10); - } - else if (((value_styledValue_type == 11))) { - valueSerializer.writeInt8(11); - const auto value_styledValue_11 = value_styledValue.value11; - valueSerializer.writeUserDataSpan(value_styledValue_11); - } - else if (((value_styledValue_type == 12))) { - valueSerializer.writeInt8(12); - const auto value_styledValue_12 = value_styledValue.value12; - valueSerializer.writeBackgroundColorStyle(value_styledValue_12); + const auto value_radius = value.radius; + Ark_Int32 value_radius_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_type = runtimeType(value_radius); + valueSerializer.writeInt8(value_radius_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_type)) { + 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))) { + 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))) { + 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; + Ark_Int32 value_radius_value_1_topLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft); + valueSerializer.writeInt8(value_radius_value_1_topLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const auto value_radius_value_1_topLeft_value = value_radius_value_1_topLeft.value; + valueSerializer.writeLength(value_radius_value_1_topLeft_value); + } + const auto value_radius_value_1_topRight = value_radius_value_1.topRight; + Ark_Int32 value_radius_value_1_topRight_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight); + valueSerializer.writeInt8(value_radius_value_1_topRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_topRight_type)) { + const auto value_radius_value_1_topRight_value = value_radius_value_1_topRight.value; + valueSerializer.writeLength(value_radius_value_1_topRight_value); + } + const auto value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft; + Ark_Int32 value_radius_value_1_bottomLeft_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft); + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const auto value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft.value; + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value); + } + const auto value_radius_value_1_bottomRight = value_radius_value_1.bottomRight; + Ark_Int32 value_radius_value_1_bottomRight_type = INTEROP_RUNTIME_UNDEFINED; + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight); + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const auto value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight.value; + valueSerializer.writeLength(value_radius_value_1_bottomRight_value); + } + } } } + void writeCustomSpan(Ark_CustomSpan value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeImageAttachment(Ark_ImageAttachment value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeWaterFlowSections(Ark_WaterFlowSections value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeScroller(Ark_Scroller value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSectionOptions(Ark_SectionOptions value) { @@ -52898,7 +54248,7 @@ class Serializer : public SerializerBase { void writeXComponentController(Ark_XComponentController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeImageAnalyzerConfig(Ark_ImageAnalyzerConfig value) { @@ -52991,17 +54341,17 @@ class Serializer : public SerializerBase { void writeWebKeyboardController(Ark_WebKeyboardController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeEventResult(Ark_EventResult value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTouchEvent(Ark_TouchEvent value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeNativeEmbedInfo(Ark_NativeEmbedInfo value) { @@ -53132,87 +54482,87 @@ class Serializer : public SerializerBase { void writeDataResubmissionHandler(Ark_DataResubmissionHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeControllerHandler(Ark_ControllerHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeClientAuthenticationHandler(Ark_ClientAuthenticationHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSslErrorHandler(Ark_SslErrorHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWebContextMenuResult(Ark_WebContextMenuResult value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWebContextMenuParam(Ark_WebContextMenuParam value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeScreenCaptureHandler(Ark_ScreenCaptureHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writePermissionRequest(Ark_PermissionRequest value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeHttpAuthHandler(Ark_HttpAuthHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeFullScreenExitHandler(Ark_FullScreenExitHandler value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeFileSelectorParam(Ark_FileSelectorParam value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeFileSelectorResult(Ark_FileSelectorResult value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWebResourceResponse(Ark_WebResourceResponse value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWebResourceError(Ark_WebResourceError value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeConsoleMessage(Ark_ConsoleMessage value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeJsResult(Ark_JsResult value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeJsGeolocation(Ark_JsGeolocation value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeScreenCaptureConfig(Ark_ScreenCaptureConfig value) { @@ -53223,7 +54573,7 @@ class Serializer : public SerializerBase { void writeVideoController(Ark_VideoController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTimePickerDialogOptions(Ark_TimePickerDialogOptions value) { @@ -53473,7 +54823,7 @@ class Serializer : public SerializerBase { void writeTextTimerController(Ark_TextTimerController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTextPickerDialogOptions(Ark_TextPickerDialogOptions value) { @@ -54021,7 +55371,7 @@ class Serializer : public SerializerBase { void writeTextInputController(Ark_TextInputController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSelectionOptions(Ark_SelectionOptions value) { @@ -54096,12 +55446,12 @@ class Serializer : public SerializerBase { void writeTextClockController(Ark_TextClockController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTextAreaController(Ark_TextAreaController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSelectionMenuOptions(Ark_SelectionMenuOptions value) { @@ -54150,7 +55500,7 @@ class Serializer : public SerializerBase { void writeTextController(Ark_TextController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeBottomTabBarStyle(Ark_BottomTabBarStyle value) { @@ -54591,7 +55941,7 @@ class Serializer : public SerializerBase { void writeTabsController(Ark_TabsController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSymbolEffect(Ark_SymbolEffect value) { @@ -55155,7 +56505,7 @@ class Serializer : public SerializerBase { void writeSearchController(Ark_SearchController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeEdgeEffectOptions(Ark_EdgeEffectOptions value) { @@ -55253,12 +56603,12 @@ class Serializer : public SerializerBase { void writeRichEditorStyledStringController(Ark_RichEditorStyledStringController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeRichEditorController(Ark_RichEditorController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writePlaceholderStyle(Ark_PlaceholderStyle value) { @@ -56072,10 +57422,48 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_enableWaveEffect_value); } } + void writeNavContentInfo(Ark_NavContentInfo value) + { + Serializer& valueSerializer = *this; + const auto value_name = value.name; + Ark_Int32 value_name_type = INTEROP_RUNTIME_UNDEFINED; + value_name_type = runtimeType(value_name); + valueSerializer.writeInt8(value_name_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_name_type)) { + const auto value_name_value = value_name.value; + valueSerializer.writeString(value_name_value); + } + const auto value_index = value.index; + valueSerializer.writeNumber(value_index); + const auto value_mode = value.mode; + Ark_Int32 value_mode_type = INTEROP_RUNTIME_UNDEFINED; + value_mode_type = runtimeType(value_mode); + valueSerializer.writeInt8(value_mode_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_mode_type)) { + const auto value_mode_value = value_mode.value; + valueSerializer.writeInt32(static_cast(value_mode_value)); + } + const auto value_param = value.param; + Ark_Int32 value_param_type = INTEROP_RUNTIME_UNDEFINED; + value_param_type = runtimeType(value_param); + valueSerializer.writeInt8(value_param_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_param_type)) { + const auto value_param_value = value_param.value; + valueSerializer.writeCustomObject("Object", value_param_value); + } + const auto value_navDestinationId = value.navDestinationId; + Ark_Int32 value_navDestinationId_type = INTEROP_RUNTIME_UNDEFINED; + value_navDestinationId_type = runtimeType(value_navDestinationId); + valueSerializer.writeInt8(value_navDestinationId_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_navDestinationId_type)) { + const auto value_navDestinationId_value = value_navDestinationId.value; + valueSerializer.writeString(value_navDestinationId_value); + } + } void writeNavDestinationContext(Ark_NavDestinationContext value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeNavigationInterception(Ark_NavigationInterception value) { @@ -56323,8 +57711,8 @@ class Serializer : public SerializerBase { void writeSystemBarStyle(Ark_SystemBarStyle value) { Serializer& valueSerializer = *this; - const auto value___SystemBarStyleStub = value.__SystemBarStyleStub; - valueSerializer.writeString(value___SystemBarStyleStub); + const auto value__SystemBarStyleStub = value._SystemBarStyleStub; + valueSerializer.writeString(value__SystemBarStyleStub); } void writeMenuItemOptions(Ark_MenuItemOptions value) { @@ -56504,13 +57892,13 @@ class Serializer : public SerializerBase { void writeDrawableDescriptor(Ark_DrawableDescriptor value) { Serializer& valueSerializer = *this; - const auto value___DrawableDescriptorStub = value.__DrawableDescriptorStub; - valueSerializer.writeString(value___DrawableDescriptorStub); + const auto value__DrawableDescriptorStub = value._DrawableDescriptorStub; + valueSerializer.writeString(value__DrawableDescriptorStub); } void writeMatrix2D(Ark_Matrix2D value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeListDividerOptions(Ark_ListDividerOptions value) { @@ -56580,11 +57968,13 @@ class Serializer : public SerializerBase { void writeDrawingColorFilter(Ark_DrawingColorFilter value) { Serializer& valueSerializer = *this; - const auto value___DrawingColorFilterStub = value.__DrawingColorFilterStub; - valueSerializer.writeString(value___DrawingColorFilterStub); + const auto value__DrawingColorFilterStub = value._DrawingColorFilterStub; + valueSerializer.writeString(value__DrawingColorFilterStub); } void writeColorFilter(Ark_ColorFilter value) { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); } void writeBreakPoints(Ark_BreakPoints value) { @@ -56613,8 +58003,8 @@ class Serializer : public SerializerBase { void writeWindowStatusType(Ark_WindowStatusType value) { Serializer& valueSerializer = *this; - const auto value___WindowStatusTypeStub = value.__WindowStatusTypeStub; - valueSerializer.writeString(value___WindowStatusTypeStub); + const auto value__WindowStatusTypeStub = value._WindowStatusTypeStub; + valueSerializer.writeString(value__WindowStatusTypeStub); } void writeFlexSpaceOptions(Ark_FlexSpaceOptions value) { @@ -56941,9 +58331,6 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_hoverModeArea_value)); } } - void writeLinearGradient_data_panel(Ark_LinearGradient_data_panel value) - { - } void writeAnimateParam(Ark_AnimateParam value) { Serializer& valueSerializer = *this; @@ -57074,8 +58461,8 @@ class Serializer : public SerializerBase { void writeRectShape(Ark_RectShape value) { Serializer& valueSerializer = *this; - const auto value___RectShapeStub = value.__RectShapeStub; - valueSerializer.writeString(value___RectShapeStub); + const auto value__RectShapeStub = value._RectShapeStub; + valueSerializer.writeString(value__RectShapeStub); } void writeConstraintSizeOptions(Ark_ConstraintSizeOptions value) { @@ -59012,8 +60399,8 @@ class Serializer : public SerializerBase { void writeBlender(Ark_Blender value) { Serializer& valueSerializer = *this; - const auto value___BlenderStub = value.__BlenderStub; - valueSerializer.writeString(value___BlenderStub); + const auto value__BlenderStub = value._BlenderStub; + valueSerializer.writeString(value__BlenderStub); } void writeOverlayOptions(Ark_OverlayOptions value) { @@ -59231,25 +60618,25 @@ class Serializer : public SerializerBase { void writePathShape(Ark_PathShape value) { Serializer& valueSerializer = *this; - const auto value___PathShapeStub = value.__PathShapeStub; - valueSerializer.writeString(value___PathShapeStub); + const auto value__PathShapeStub = value._PathShapeStub; + valueSerializer.writeString(value__PathShapeStub); } void writeEllipseShape(Ark_EllipseShape value) { Serializer& valueSerializer = *this; - const auto value___EllipseShapeStub = value.__EllipseShapeStub; - valueSerializer.writeString(value___EllipseShapeStub); + const auto value__EllipseShapeStub = value._EllipseShapeStub; + valueSerializer.writeString(value__EllipseShapeStub); } void writeCircleShape(Ark_CircleShape value) { Serializer& valueSerializer = *this; - const auto value___CircleShapeStub = value.__CircleShapeStub; - valueSerializer.writeString(value___CircleShapeStub); + const auto value__CircleShapeStub = value._CircleShapeStub; + valueSerializer.writeString(value__CircleShapeStub); } void writeProgressMask(Ark_ProgressMask value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeDragItemInfo(Ark_DragItemInfo value) { @@ -59415,17 +60802,11 @@ class Serializer : public SerializerBase { valueSerializer.writeRotateOptions(value_rotate_value); } } - void writeIntentionCode(Ark_IntentionCode value) - { - Serializer& valueSerializer = *this; - const auto value___IntentionCodeStub = value.__IntentionCodeStub; - valueSerializer.writeString(value___IntentionCodeStub); - } void writeDrawingLattice(Ark_DrawingLattice value) { Serializer& valueSerializer = *this; - const auto value___DrawingLatticeStub = value.__DrawingLatticeStub; - valueSerializer.writeString(value___DrawingLatticeStub); + const auto value__DrawingLatticeStub = value._DrawingLatticeStub; + valueSerializer.writeString(value__DrawingLatticeStub); } void writeRectResult(Ark_RectResult value) { @@ -59442,12 +60823,18 @@ class Serializer : public SerializerBase { void writeDrawModifier(Ark_DrawModifier value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); + } + void writeIntentionCode(Ark_IntentionCode value) + { + Serializer& valueSerializer = *this; + const auto value__IntentionCodeStub = value._IntentionCodeStub; + valueSerializer.writeString(value__IntentionCodeStub); } void writeUnifiedData(Ark_UnifiedData value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeColumnSplitDividerStyle(Ark_ColumnSplitDividerStyle value) { @@ -59513,32 +60900,27 @@ class Serializer : public SerializerBase { void writeDrawingRenderingContext(Ark_DrawingRenderingContext value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeCanvasRenderingContext2D(Ark_CanvasRenderingContext2D value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeImageBitmap(Ark_ImageBitmap value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeImageData(Ark_ImageData value) { Serializer& valueSerializer = *this; - const auto value_data = value.data; - valueSerializer.writeBuffer(value_data); - const auto value_height = value.height; - valueSerializer.writeNumber(value_height); - const auto value_width = value.width; - valueSerializer.writeNumber(value_width); + valueSerializer.writePointer(value); } void writePath2D(Ark_Path2D value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeCalendarDialogOptions(Ark_CalendarDialogOptions value) { @@ -59732,7 +61114,7 @@ class Serializer : public SerializerBase { void writeCalendarController(Ark_CalendarController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeMonthData(Ark_MonthData value) { @@ -59909,15 +61291,6 @@ class Serializer : public SerializerBase { } } } - void writeScrollMotion(Ark_ScrollMotion value) - { - } - void writeFrictionMotion(Ark_FrictionMotion value) - { - } - void writeSpringMotion(Ark_SpringMotion value) - { - } void writeAlertDialogParamWithOptions(Ark_AlertDialogParamWithOptions value) { Serializer& valueSerializer = *this; @@ -62168,7 +63541,7 @@ class Serializer : public SerializerBase { void writeClickEvent(Ark_ClickEvent value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSnapshotOptions(Ark_SnapshotOptions value) { @@ -62196,13 +63569,13 @@ class Serializer : public SerializerBase { const auto value_propertyName = value.propertyName; valueSerializer.writeString(value_propertyName); const auto value_startValue = value.startValue; - valueSerializer.writeNumber(value_startValue); + valueSerializer.writeFloat32(value_startValue); const auto value_endValue = value.endValue; - valueSerializer.writeNumber(value_endValue); + valueSerializer.writeFloat32(value_endValue); const auto value_duration = value.duration; - valueSerializer.writeNumber(value_duration); + valueSerializer.writeInt32(value_duration); const auto value_delay = value.delay; - valueSerializer.writeNumber(value_delay); + valueSerializer.writeInt32(value_delay); const auto value_curve = value.curve; Ark_Int32 value_curve_type = INTEROP_RUNTIME_UNDEFINED; value_curve_type = value_curve.selector; @@ -62273,18 +63646,285 @@ class Serializer : public SerializerBase { void writeWithThemeAttribute(Ark_WithThemeAttribute value) { } - void writeNavigationTransitionProxy(Ark_NavigationTransitionProxy value) + void writeIsolatedComponentAttribute(Ark_IsolatedComponentAttribute value) + { + } + void writeLinearIndicatorController(Ark_LinearIndicatorController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } - void writeIsolatedComponentAttribute(Ark_IsolatedComponentAttribute value) + void writeImageAttachmentInterface(Ark_ImageAttachmentInterface value) + { + Serializer& valueSerializer = *this; + const auto value_value = value.value; + valueSerializer.writePixelMap(value_value); + const auto value_size = value.size; + Ark_Int32 value_size_type = INTEROP_RUNTIME_UNDEFINED; + value_size_type = runtimeType(value_size); + valueSerializer.writeInt8(value_size_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_size_type)) { + const auto value_size_value = value_size.value; + valueSerializer.writeSizeOptions(value_size_value); + } + const auto value_verticalAlign = value.verticalAlign; + Ark_Int32 value_verticalAlign_type = INTEROP_RUNTIME_UNDEFINED; + value_verticalAlign_type = runtimeType(value_verticalAlign); + valueSerializer.writeInt8(value_verticalAlign_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_verticalAlign_type)) { + const auto value_verticalAlign_value = value_verticalAlign.value; + valueSerializer.writeInt32(static_cast(value_verticalAlign_value)); + } + const auto value_objectFit = value.objectFit; + Ark_Int32 value_objectFit_type = INTEROP_RUNTIME_UNDEFINED; + value_objectFit_type = runtimeType(value_objectFit); + valueSerializer.writeInt8(value_objectFit_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_objectFit_type)) { + const auto value_objectFit_value = value_objectFit.value; + valueSerializer.writeInt32(static_cast(value_objectFit_value)); + } + const auto value_layoutStyle = value.layoutStyle; + Ark_Int32 value_layoutStyle_type = INTEROP_RUNTIME_UNDEFINED; + value_layoutStyle_type = runtimeType(value_layoutStyle); + valueSerializer.writeInt8(value_layoutStyle_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_layoutStyle_type)) { + const auto value_layoutStyle_value = value_layoutStyle.value; + valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value); + } + } + void writeMutableStyledString(Ark_MutableStyledString value) { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); } - void writeLinearIndicatorController(Ark_LinearIndicatorController value) + void writeUrlStyle(Ark_UrlStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeLineHeightStyle(Ark_LineHeightStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeParagraphStyleInterface(Ark_ParagraphStyleInterface value) + { + Serializer& valueSerializer = *this; + const auto value_textAlign = value.textAlign; + Ark_Int32 value_textAlign_type = INTEROP_RUNTIME_UNDEFINED; + value_textAlign_type = runtimeType(value_textAlign); + valueSerializer.writeInt8(value_textAlign_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_textAlign_type)) { + const auto value_textAlign_value = value_textAlign.value; + valueSerializer.writeInt32(static_cast(value_textAlign_value)); + } + const auto value_textIndent = value.textIndent; + Ark_Int32 value_textIndent_type = INTEROP_RUNTIME_UNDEFINED; + value_textIndent_type = runtimeType(value_textIndent); + valueSerializer.writeInt8(value_textIndent_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_textIndent_type)) { + const auto value_textIndent_value = value_textIndent.value; + valueSerializer.writeLengthMetrics(value_textIndent_value); + } + const auto value_maxLines = value.maxLines; + Ark_Int32 value_maxLines_type = INTEROP_RUNTIME_UNDEFINED; + value_maxLines_type = runtimeType(value_maxLines); + valueSerializer.writeInt8(value_maxLines_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_maxLines_type)) { + const auto value_maxLines_value = value_maxLines.value; + valueSerializer.writeNumber(value_maxLines_value); + } + const auto value_overflow = value.overflow; + Ark_Int32 value_overflow_type = INTEROP_RUNTIME_UNDEFINED; + value_overflow_type = runtimeType(value_overflow); + valueSerializer.writeInt8(value_overflow_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_overflow_type)) { + const auto value_overflow_value = value_overflow.value; + valueSerializer.writeInt32(static_cast(value_overflow_value)); + } + const auto value_wordBreak = value.wordBreak; + Ark_Int32 value_wordBreak_type = INTEROP_RUNTIME_UNDEFINED; + value_wordBreak_type = runtimeType(value_wordBreak); + valueSerializer.writeInt8(value_wordBreak_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_wordBreak_type)) { + const auto value_wordBreak_value = value_wordBreak.value; + valueSerializer.writeInt32(static_cast(value_wordBreak_value)); + } + const auto value_leadingMargin = value.leadingMargin; + Ark_Int32 value_leadingMargin_type = INTEROP_RUNTIME_UNDEFINED; + value_leadingMargin_type = runtimeType(value_leadingMargin); + valueSerializer.writeInt8(value_leadingMargin_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_leadingMargin_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1); + const auto value_leadingMargin_value_1 = value_leadingMargin_value.value1; + valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1); + } + } + } + void writeParagraphStyle(Ark_ParagraphStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeGestureStyleInterface(Ark_GestureStyleInterface value) + { + Serializer& valueSerializer = *this; + const auto value_onClick = value.onClick; + Ark_Int32 value_onClick_type = INTEROP_RUNTIME_UNDEFINED; + value_onClick_type = runtimeType(value_onClick); + valueSerializer.writeInt8(value_onClick_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_onClick_type)) { + const auto value_onClick_value = value_onClick.value; + valueSerializer.writeCallbackResource(value_onClick_value.resource); + valueSerializer.writePointer(reinterpret_cast(value_onClick_value.call)); + valueSerializer.writePointer(reinterpret_cast(value_onClick_value.callSync)); + } + const auto value_onLongPress = value.onLongPress; + Ark_Int32 value_onLongPress_type = INTEROP_RUNTIME_UNDEFINED; + value_onLongPress_type = runtimeType(value_onLongPress); + valueSerializer.writeInt8(value_onLongPress_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_onLongPress_type)) { + const auto value_onLongPress_value = value_onLongPress.value; + valueSerializer.writeCallbackResource(value_onLongPress_value.resource); + valueSerializer.writePointer(reinterpret_cast(value_onLongPress_value.call)); + valueSerializer.writePointer(reinterpret_cast(value_onLongPress_value.callSync)); + } + } + void writeGestureStyle(Ark_GestureStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeBackgroundColorStyle(Ark_BackgroundColorStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTextShadowStyle(Ark_TextShadowStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeLetterSpacingStyle(Ark_LetterSpacingStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeBaselineOffsetStyle(Ark_BaselineOffsetStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeDecorationStyle(Ark_DecorationStyle value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTextStyleInterface(Ark_TextStyleInterface value) + { + Serializer& valueSerializer = *this; + const auto value_fontColor = value.fontColor; + Ark_Int32 value_fontColor_type = INTEROP_RUNTIME_UNDEFINED; + value_fontColor_type = runtimeType(value_fontColor); + valueSerializer.writeInt8(value_fontColor_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontColor_type)) { + 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))) { + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(3); + const auto value_fontColor_value_3 = value_fontColor_value.value3; + valueSerializer.writeResource(value_fontColor_value_3); + } + } + const auto value_fontFamily = value.fontFamily; + Ark_Int32 value_fontFamily_type = INTEROP_RUNTIME_UNDEFINED; + value_fontFamily_type = runtimeType(value_fontFamily); + valueSerializer.writeInt8(value_fontFamily_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontFamily_type)) { + 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))) { + 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))) { + valueSerializer.writeInt8(1); + const auto value_fontFamily_value_1 = value_fontFamily_value.value1; + valueSerializer.writeResource(value_fontFamily_value_1); + } + } + const auto value_fontSize = value.fontSize; + Ark_Int32 value_fontSize_type = INTEROP_RUNTIME_UNDEFINED; + value_fontSize_type = runtimeType(value_fontSize); + valueSerializer.writeInt8(value_fontSize_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontSize_type)) { + const auto value_fontSize_value = value_fontSize.value; + valueSerializer.writeLengthMetrics(value_fontSize_value); + } + const auto value_fontWeight = value.fontWeight; + Ark_Int32 value_fontWeight_type = INTEROP_RUNTIME_UNDEFINED; + value_fontWeight_type = runtimeType(value_fontWeight); + valueSerializer.writeInt8(value_fontWeight_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontWeight_type)) { + 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))) { + 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))) { + 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))) { + valueSerializer.writeInt8(2); + const auto value_fontWeight_value_2 = value_fontWeight_value.value2; + valueSerializer.writeString(value_fontWeight_value_2); + } + } + const auto value_fontStyle = value.fontStyle; + Ark_Int32 value_fontStyle_type = INTEROP_RUNTIME_UNDEFINED; + value_fontStyle_type = runtimeType(value_fontStyle); + valueSerializer.writeInt8(value_fontStyle_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_fontStyle_type)) { + const auto value_fontStyle_value = value_fontStyle.value; + valueSerializer.writeInt32(static_cast(value_fontStyle_value)); + } + } + void writeTextStyle_styled_string(Ark_TextStyle_styled_string value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeStyleOptions(Ark_StyleOptions value) { @@ -62308,79 +63948,13 @@ class Serializer : public SerializerBase { const auto value_styledKey = value.styledKey; valueSerializer.writeInt32(static_cast(value_styledKey)); const auto value_styledValue = value.styledValue; - Ark_Int32 value_styledValue_type = INTEROP_RUNTIME_UNDEFINED; - value_styledValue_type = value_styledValue.selector; - if (((value_styledValue_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_styledValue_0 = value_styledValue.value0; - valueSerializer.writeTextStyle_styled_string(value_styledValue_0); - } - else if (((value_styledValue_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_styledValue_1 = value_styledValue.value1; - valueSerializer.writeDecorationStyle(value_styledValue_1); - } - else if (((value_styledValue_type == 2))) { - valueSerializer.writeInt8(2); - const auto value_styledValue_2 = value_styledValue.value2; - valueSerializer.writeBaselineOffsetStyle(value_styledValue_2); - } - else if (((value_styledValue_type == 3))) { - valueSerializer.writeInt8(3); - const auto value_styledValue_3 = value_styledValue.value3; - valueSerializer.writeLetterSpacingStyle(value_styledValue_3); - } - else if (((value_styledValue_type == 4))) { - valueSerializer.writeInt8(4); - const auto value_styledValue_4 = value_styledValue.value4; - valueSerializer.writeTextShadowStyle(value_styledValue_4); - } - else if (((value_styledValue_type == 5))) { - valueSerializer.writeInt8(5); - const auto value_styledValue_5 = value_styledValue.value5; - valueSerializer.writeGestureStyle(value_styledValue_5); - } - else if (((value_styledValue_type == 6))) { - valueSerializer.writeInt8(6); - const auto value_styledValue_6 = value_styledValue.value6; - valueSerializer.writeImageAttachment(value_styledValue_6); - } - else if (((value_styledValue_type == 7))) { - valueSerializer.writeInt8(7); - const auto value_styledValue_7 = value_styledValue.value7; - valueSerializer.writeParagraphStyle(value_styledValue_7); - } - else if (((value_styledValue_type == 8))) { - valueSerializer.writeInt8(8); - const auto value_styledValue_8 = value_styledValue.value8; - valueSerializer.writeLineHeightStyle(value_styledValue_8); - } - else if (((value_styledValue_type == 9))) { - valueSerializer.writeInt8(9); - const auto value_styledValue_9 = value_styledValue.value9; - valueSerializer.writeUrlStyle(value_styledValue_9); - } - else if (((value_styledValue_type == 10))) { - valueSerializer.writeInt8(10); - const auto value_styledValue_10 = value_styledValue.value10; - valueSerializer.writeCustomSpan(value_styledValue_10); - } - else if (((value_styledValue_type == 11))) { - valueSerializer.writeInt8(11); - const auto value_styledValue_11 = value_styledValue.value11; - valueSerializer.writeUserDataSpan(value_styledValue_11); - } - else if (((value_styledValue_type == 12))) { - valueSerializer.writeInt8(12); - const auto value_styledValue_12 = value_styledValue.value12; - valueSerializer.writeBackgroundColorStyle(value_styledValue_12); - } + valueSerializer.writeStyledStringValue(value_styledValue); } void writeReceiveCallback(Ark_ReceiveCallback value) { Serializer& valueSerializer = *this; - const auto value___ReceiveCallbackStub = value.__ReceiveCallbackStub; - valueSerializer.writeString(value___ReceiveCallbackStub); + const auto value__ReceiveCallbackStub = value._ReceiveCallbackStub; + valueSerializer.writeString(value__ReceiveCallbackStub); } void writeUIExtensionOptions(Ark_UIExtensionOptions value) { @@ -62427,7 +64001,7 @@ class Serializer : public SerializerBase { void writeUIExtensionProxy(Ark_UIExtensionProxy value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeWaterFlowOptions(Ark_WaterFlowOptions value) { @@ -63294,6 +64868,11 @@ 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; @@ -63521,6 +65100,11 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_isOn_value); } } + void writeTimePickerDialog(Ark_TimePickerDialog value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeTimePickerResult(Ark_TimePickerResult value) { Serializer& valueSerializer = *this; @@ -63617,6 +65201,11 @@ class Serializer : public SerializerBase { } } } + void writeTextPickerDialog(Ark_TextPickerDialog value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeTextCascadePickerRangeContent(Ark_TextCascadePickerRangeContent value) { Serializer& valueSerializer = *this; @@ -63872,6 +65461,26 @@ class Serializer : public SerializerBase { valueSerializer.writeTextInputController(value_controller_value); } } + void writeLayoutManager(Ark_LayoutManager value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeStyledStringController(Ark_StyledStringController value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTextEditControllerEx(Ark_TextEditControllerEx value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTextBaseController(Ark_TextBaseController value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeTextClockOptions(Ark_TextClockOptions value) { Serializer& valueSerializer = *this; @@ -63957,7 +65566,7 @@ class Serializer : public SerializerBase { void writeTabContentTransitionProxy(Ark_TabContentTransitionProxy value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeBarGridColumnOptions(Ark_BarGridColumnOptions value) { @@ -64041,10 +65650,40 @@ class Serializer : public SerializerBase { valueSerializer.writeTabsController(value_controller_value); } } + void writeReplaceSymbolEffect(Ark_ReplaceSymbolEffect value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeBounceSymbolEffect(Ark_BounceSymbolEffect value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeDisappearSymbolEffect(Ark_DisappearSymbolEffect value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeAppearSymbolEffect(Ark_AppearSymbolEffect value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeHierarchicalSymbolEffect(Ark_HierarchicalSymbolEffect value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeScaleSymbolEffect(Ark_ScaleSymbolEffect value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeSwiperContentTransitionProxy(Ark_SwiperContentTransitionProxy value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSwiperContentAnimatedTransition(Ark_SwiperContentAnimatedTransition value) { @@ -64075,12 +65714,12 @@ class Serializer : public SerializerBase { void writeIndicatorComponentController(Ark_IndicatorComponentController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeSwiperController(Ark_SwiperController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeStackOptions(Ark_StackOptions value) { @@ -64144,28 +65783,7 @@ class Serializer : public SerializerBase { valueSerializer.writeInt8(value_shape_type); if ((INTEROP_RUNTIME_UNDEFINED) != (value_shape_type)) { const auto value_shape_value = value_shape.value; - Ark_Int32 value_shape_value_type = INTEROP_RUNTIME_UNDEFINED; - value_shape_value_type = value_shape_value.selector; - if (((value_shape_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_shape_value_0 = value_shape_value.value0; - valueSerializer.writeCircleAttribute(value_shape_value_0); - } - else if (((value_shape_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_shape_value_1 = value_shape_value.value1; - valueSerializer.writeEllipseAttribute(value_shape_value_1); - } - else if (((value_shape_value_type == 2))) { - valueSerializer.writeInt8(2); - const auto value_shape_value_2 = value_shape_value.value2; - valueSerializer.writePathAttribute(value_shape_value_2); - } - else if (((value_shape_value_type == 3))) { - valueSerializer.writeInt8(3); - const auto value_shape_value_3 = value_shape_value.value3; - valueSerializer.writeRectAttribute(value_shape_value_3); - } + valueSerializer.writeString(value_shape_value); } } void writeSliderOptions(Ark_SliderOptions value) @@ -64671,7 +66289,7 @@ class Serializer : public SerializerBase { void writeEditMenuOptions(Ark_EditMenuOptions value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeCopyEvent(Ark_CopyEvent value) { @@ -64728,7 +66346,7 @@ class Serializer : public SerializerBase { void writeSubmitEvent(Ark_SubmitEvent value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeTextDataDetectorConfig(Ark_TextDataDetectorConfig value) { @@ -64886,10 +66504,10 @@ class Serializer : public SerializerBase { valueSerializer.writeStyledString(value_previewText_value); } } - void writeGestureEvent(Ark_GestureEvent value) + void writeRichEditorBaseController(Ark_RichEditorBaseController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeLocalizedBarrierStyle(Ark_LocalizedBarrierStyle value) { @@ -65298,7 +66916,7 @@ class Serializer : public SerializerBase { void writePatternLockController(Ark_PatternLockController value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writePathOptions(Ark_PathOptions value) { @@ -65381,6 +66999,11 @@ class Serializer : public SerializerBase { void writeNodeController(Ark_NodeController value) { } + void writeNavigationTransitionProxy(Ark_NavigationTransitionProxy value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeRouteInfo(Ark_RouteInfo value) { Serializer& valueSerializer = *this; @@ -65847,11 +67470,6 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_itemIndexInGroup_value); } } - void writeChildrenMainSize(Ark_ChildrenMainSize value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } void writeChainAnimationOptions(Ark_ChainAnimationOptions value) { Serializer& valueSerializer = *this; @@ -65939,6 +67557,11 @@ class Serializer : public SerializerBase { valueSerializer.writeScroller(value_scroller_value); } } + void writeListScroller(Ark_ListScroller value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeLineOptions(Ark_LineOptions value) { Serializer& valueSerializer = *this; @@ -66112,8 +67735,8 @@ class Serializer : public SerializerBase { void writeResolutionQuality(Ark_ResolutionQuality value) { Serializer& valueSerializer = *this; - const auto value___ResolutionQualityStub = value.__ResolutionQualityStub; - valueSerializer.writeString(value___ResolutionQualityStub); + const auto value__ResolutionQualityStub = value._ResolutionQualityStub; + valueSerializer.writeString(value__ResolutionQualityStub); } void writeImageError(Ark_ImageError value) { @@ -66390,6 +68013,61 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_onGetRectByIndex_value.callSync)); } } + void writePanRecognizer(Ark_PanRecognizer value) + { + 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; + valueSerializer.writePointer(value); + } + void writeSwipeGestureEvent(Ark_SwipeGestureEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeRotationGestureEvent(Ark_RotationGestureEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writePinchGestureEvent(Ark_PinchGestureEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writePanGestureEvent(Ark_PanGestureEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeLongPressGestureEvent(Ark_LongPressGestureEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeTapGestureEvent(Ark_TapGestureEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeGaugeIndicatorOptions(Ark_GaugeIndicatorOptions value) { Serializer& valueSerializer = *this; @@ -66765,6 +68443,11 @@ class Serializer : public SerializerBase { } } } + void writeDatePickerDialog(Ark_DatePickerDialog value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeDatePickerResult(Ark_DatePickerResult value) { Serializer& valueSerializer = *this; @@ -66889,7 +68572,7 @@ class Serializer : public SerializerBase { const auto value_colors_value = value_colors.value; valueSerializer.writeInt32(value_colors_value.length); for (int i = 0; i < value_colors_value.length; i++) { - const Ark_Union_ResourceColor_LinearGradient_data_panel value_colors_value_element = value_colors_value.array[i]; + 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))) { @@ -66921,7 +68604,7 @@ class Serializer : public SerializerBase { 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_data_panel(value_colors_value_element_1); + valueSerializer.writeLinearGradient(value_colors_value_element_1); } } } @@ -66952,6 +68635,35 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_type_value)); } } + void writeColorStop(Ark_ColorStop value) + { + Serializer& valueSerializer = *this; + 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))) { + valueSerializer.writeInt8(0); + const auto value_color_0 = value_color.value0; + valueSerializer.writeInt32(static_cast(value_color_0)); + } + 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))) { + valueSerializer.writeInt8(2); + const auto value_color_2 = value_color.value2; + valueSerializer.writeString(value_color_2); + } + else if (((value_color_type == 3))) { + valueSerializer.writeInt8(3); + const auto value_color_3 = value_color.value3; + valueSerializer.writeResource(value_color_3); + } + const auto value_offset = value.offset; + valueSerializer.writeLength(value_offset); + } void writeCustomDialogControllerOptions(Ark_CustomDialogControllerOptions value) { Serializer& valueSerializer = *this; @@ -67491,6 +69203,16 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_hoverModeArea_value)); } } + void writeCustomDialogController(Ark_CustomDialogController value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeContextMenu(Ark_ContextMenu value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeSceneOptions(Ark_SceneOptions value) { Serializer& valueSerializer = *this; @@ -67533,6 +69255,16 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_modelType_value)); } } + void writeUICommonEvent(Ark_UICommonEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeChildrenMainSize(Ark_ChildrenMainSize value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeOffsetResult(Ark_OffsetResult value) { Serializer& valueSerializer = *this; @@ -67541,6 +69273,21 @@ class Serializer : public SerializerBase { const auto value_yOffset = value.yOffset; valueSerializer.writeNumber(value_yOffset); } + void writeTextContentControllerBase(Ark_TextContentControllerBase value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeView(Ark_View value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeMeasurable(Ark_Measurable value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeSpringBackAction(Ark_SpringBackAction value) { Serializer& valueSerializer = *this; @@ -67646,7 +69393,7 @@ class Serializer : public SerializerBase { void writeGestureRecognizer(Ark_GestureRecognizer value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeFingerInfo(Ark_FingerInfo value) { @@ -67669,7 +69416,7 @@ class Serializer : public SerializerBase { void writeBaseGestureEvent(Ark_BaseGestureEvent value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writeGestureInfo(Ark_GestureInfo value) { @@ -67698,7 +69445,7 @@ class Serializer : public SerializerBase { void writeGestureModifier(Ark_GestureModifier value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + valueSerializer.writePointer(value); } void writePixelStretchEffectOptions(Ark_PixelStretchEffectOptions value) { @@ -67791,13 +69538,8 @@ class Serializer : public SerializerBase { void writeUniformDataType(Ark_UniformDataType value) { Serializer& valueSerializer = *this; - const auto value___UniformDataTypeStub = value.__UniformDataTypeStub; - valueSerializer.writeString(value___UniformDataTypeStub); - } - void writeDragEvent(Ark_DragEvent value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); + const auto value__UniformDataTypeStub = value._UniformDataTypeStub; + valueSerializer.writeString(value__UniformDataTypeStub); } void writeLocalizedAlignRuleOptions(Ark_LocalizedAlignRuleOptions value) { @@ -67973,26 +69715,6 @@ class Serializer : public SerializerBase { valueSerializer.writeLengthMetrics(value_strokeWidth_value); } } - void writeKeyEvent(Ark_KeyEvent value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeMouseEvent(Ark_MouseEvent value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeAccessibilityHoverEvent(Ark_AccessibilityHoverEvent value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } - void writeHoverEvent(Ark_HoverEvent value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } void writeOutlineOptions(Ark_OutlineOptions value) { Serializer& valueSerializer = *this; @@ -68953,14 +70675,14 @@ class Serializer : public SerializerBase { void writeFilter(Ark_Filter value) { Serializer& valueSerializer = *this; - const auto value___FilterStub = value.__FilterStub; - valueSerializer.writeString(value___FilterStub); + const auto value__FilterStub = value._FilterStub; + valueSerializer.writeString(value__FilterStub); } void writeVisualEffect(Ark_VisualEffect value) { Serializer& valueSerializer = *this; - const auto value___VisualEffectStub = value.__VisualEffectStub; - valueSerializer.writeString(value___VisualEffectStub); + const auto value__VisualEffectStub = value._VisualEffectStub; + valueSerializer.writeString(value__VisualEffectStub); } void writeForegroundEffectOptions(Ark_ForegroundEffectOptions value) { @@ -69213,6 +70935,21 @@ class Serializer : public SerializerBase { const auto value_id = value.id; valueSerializer.writeString(value_id); } + void writeKeyEvent(Ark_KeyEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeDragEvent(Ark_DragEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writePixelMapMock(Ark_PixelMapMock value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeTouchObject(Ark_TouchObject value) { Serializer& valueSerializer = *this; @@ -69237,6 +70974,26 @@ class Serializer : public SerializerBase { const auto value_y = value.y; valueSerializer.writeNumber(value_y); } + void writeAccessibilityHoverEvent(Ark_AccessibilityHoverEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeMouseEvent(Ark_MouseEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeHoverEvent(Ark_HoverEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeBaseEvent(Ark_BaseEvent value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writePointLightStyle(Ark_PointLightStyle value) { Serializer& valueSerializer = *this; @@ -69433,23 +71190,31 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_indicatorBuilder_value.callSync)); } } + void writeCanvasRenderer(Ark_CanvasRenderer value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeRenderingContextSettings(Ark_RenderingContextSettings value) { Serializer& valueSerializer = *this; - const auto value_antialias = value.antialias; - Ark_Int32 value_antialias_type = INTEROP_RUNTIME_UNDEFINED; - value_antialias_type = runtimeType(value_antialias); - valueSerializer.writeInt8(value_antialias_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_antialias_type)) { - const auto value_antialias_value = value_antialias.value; - valueSerializer.writeBoolean(value_antialias_value); - } + valueSerializer.writePointer(value); } void writeLengthMetricsUnit(Ark_LengthMetricsUnit value) { Serializer& valueSerializer = *this; - const auto value___LengthMetricsUnitStub = value.__LengthMetricsUnitStub; - valueSerializer.writeString(value___LengthMetricsUnitStub); + const auto value__LengthMetricsUnitStub = value._LengthMetricsUnitStub; + valueSerializer.writeString(value__LengthMetricsUnitStub); + } + void writeCanvasPath(Ark_CanvasPath value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeCalendarPickerDialog(Ark_CalendarPickerDialog value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); } void writeCalendarOptions(Ark_CalendarOptions value) { @@ -70333,6 +72098,26 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_maxCount_value); } } + void writeScrollMotion(Ark_ScrollMotion value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeFrictionMotion(Ark_FrictionMotion value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeSpringMotion(Ark_SpringMotion value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeSpringProp(Ark_SpringProp value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeAlphabetIndexerOptions(Ark_AlphabetIndexerOptions value) { Serializer& valueSerializer = *this; @@ -70456,6 +72241,11 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_primary_value); } } + void writeAlertDialog(Ark_AlertDialog value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeDismissDialogAction(Ark_DismissDialogAction value) { Serializer& valueSerializer = *this; @@ -70506,6 +72296,31 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_action.call)); valueSerializer.writePointer(reinterpret_cast(value_action.callSync)); } + void writeActionSheet(Ark_ActionSheet value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeEventEmulator(Ark_EventEmulator value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeNavExtender(Ark_NavExtender value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeGlobalScope_ohos_arkui_performanceMonitor(Ark_GlobalScope_ohos_arkui_performanceMonitor value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeGlobalScope_ohos_arkui_componentSnapshot(Ark_GlobalScope_ohos_arkui_componentSnapshot value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeWebHeader(Ark_WebHeader value) { Serializer& valueSerializer = *this; @@ -70514,6 +72329,16 @@ class Serializer : public SerializerBase { const auto value_headerValue = value.headerValue; valueSerializer.writeString(value_headerValue); } + void writeLazyForEachOps(Ark_LazyForEachOps value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeAnimationExtender(Ark_AnimationExtender value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } }; // Deserializers @@ -70555,318 +72380,23 @@ class Deserializer : public DeserializerBase { value.type = type_buf; return value; } - Ark_PixelMap readPixelMap() + Ark_ICurve readICurve() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } - Ark_LengthMetrics readLengthMetrics() + Ark_PixelMap readPixelMap() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } - Ark_LeadingMarginPlaceholder readLeadingMarginPlaceholder() - { - Ark_LeadingMarginPlaceholder value = {}; - Deserializer& valueDeserializer = *this; - value.pixelMap = static_cast(valueDeserializer.readPixelMap()); - Ark_Tuple_Dimension_Dimension size_buf = {}; - size_buf.value0 = valueDeserializer.readLength(); - size_buf.value1 = valueDeserializer.readLength(); - value.size = size_buf; - return value; + return static_cast(ptr); } - Ark_ICurve readICurve() + Ark_LengthMetrics readLengthMetrics() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } - Ark_TextBackgroundStyle readTextBackgroundStyle() - { - Ark_TextBackgroundStyle value = {}; - Deserializer& valueDeserializer = *this; - const auto color_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceColor color_buf = {}; - color_buf.tag = color_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (color_buf_runtimeType)) - { - const Ark_Int8 color_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceColor color_buf_ = {}; - color_buf_.selector = color_buf__selector; - if (color_buf__selector == 0) { - color_buf_.selector = 0; - color_buf_.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (color_buf__selector == 1) { - color_buf_.selector = 1; - color_buf_.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (color_buf__selector == 2) { - color_buf_.selector = 2; - color_buf_.value2 = static_cast(valueDeserializer.readString()); - } - else if (color_buf__selector == 3) { - color_buf_.selector = 3; - color_buf_.value3 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; - } - color_buf.value = static_cast(color_buf_); - } - value.color = color_buf; - const auto radius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_Dimension_BorderRadiuses radius_buf = {}; - radius_buf.tag = radius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf_runtimeType)) - { - const Ark_Int8 radius_buf__selector = valueDeserializer.readInt8(); - Ark_Union_Dimension_BorderRadiuses radius_buf_ = {}; - radius_buf_.selector = radius_buf__selector; - if (radius_buf__selector == 0) { - radius_buf_.selector = 0; - radius_buf_.value0 = valueDeserializer.readLength(); - } - else if (radius_buf__selector == 1) { - radius_buf_.selector = 1; - Ark_BorderRadiuses radius_buf__u = {}; - const auto radius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_topLeft_buf = {}; - radius_buf__u_topLeft_buf.tag = radius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.topLeft = radius_buf__u_topLeft_buf; - const auto radius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_topRight_buf = {}; - radius_buf__u_topRight_buf.tag = radius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.topRight = radius_buf__u_topRight_buf; - const auto radius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_bottomLeft_buf = {}; - radius_buf__u_bottomLeft_buf.tag = radius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.bottomLeft = radius_buf__u_bottomLeft_buf; - const auto radius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length radius_buf__u_bottomRight_buf = {}; - radius_buf__u_bottomRight_buf.tag = radius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); - } - radius_buf__u.bottomRight = radius_buf__u_bottomRight_buf; - radius_buf_.value1 = radius_buf__u; - } - else { - throw "One of the branches for radius_buf_ has to be chosen through deserialisation."; - } - radius_buf.value = static_cast(radius_buf_); - } - value.radius = radius_buf; - return value; - } - Ark_ImageAttachmentLayoutStyle readImageAttachmentLayoutStyle() - { - Ark_ImageAttachmentLayoutStyle value = {}; - Deserializer& valueDeserializer = *this; - const auto margin_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_LengthMetrics_Margin margin_buf = {}; - margin_buf.tag = margin_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf_runtimeType)) - { - const Ark_Int8 margin_buf__selector = valueDeserializer.readInt8(); - Ark_Union_LengthMetrics_Margin margin_buf_ = {}; - margin_buf_.selector = margin_buf__selector; - if (margin_buf__selector == 0) { - margin_buf_.selector = 0; - margin_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); - } - else if (margin_buf__selector == 1) { - margin_buf_.selector = 1; - Ark_Padding margin_buf__u = {}; - const auto margin_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_top_buf = {}; - margin_buf__u_top_buf.tag = margin_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) - { - margin_buf__u_top_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.top = margin_buf__u_top_buf; - const auto margin_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_right_buf = {}; - margin_buf__u_right_buf.tag = margin_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) - { - margin_buf__u_right_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.right = margin_buf__u_right_buf; - const auto margin_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_bottom_buf = {}; - margin_buf__u_bottom_buf.tag = margin_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) - { - margin_buf__u_bottom_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.bottom = margin_buf__u_bottom_buf; - const auto margin_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length margin_buf__u_left_buf = {}; - margin_buf__u_left_buf.tag = margin_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) - { - margin_buf__u_left_buf.value = valueDeserializer.readLength(); - } - margin_buf__u.left = margin_buf__u_left_buf; - margin_buf_.value1 = margin_buf__u; - } - else { - throw "One of the branches for margin_buf_ has to be chosen through deserialisation."; - } - margin_buf.value = static_cast(margin_buf_); - } - value.margin = margin_buf; - const auto padding_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_LengthMetrics_Padding padding_buf = {}; - padding_buf.tag = padding_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf_runtimeType)) - { - const Ark_Int8 padding_buf__selector = valueDeserializer.readInt8(); - Ark_Union_LengthMetrics_Padding padding_buf_ = {}; - padding_buf_.selector = padding_buf__selector; - if (padding_buf__selector == 0) { - padding_buf_.selector = 0; - padding_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); - } - else if (padding_buf__selector == 1) { - padding_buf_.selector = 1; - Ark_Padding padding_buf__u = {}; - const auto padding_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_top_buf = {}; - padding_buf__u_top_buf.tag = padding_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) - { - padding_buf__u_top_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.top = padding_buf__u_top_buf; - const auto padding_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_right_buf = {}; - padding_buf__u_right_buf.tag = padding_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) - { - padding_buf__u_right_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.right = padding_buf__u_right_buf; - const auto padding_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_bottom_buf = {}; - padding_buf__u_bottom_buf.tag = padding_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) - { - padding_buf__u_bottom_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.bottom = padding_buf__u_bottom_buf; - const auto padding_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length padding_buf__u_left_buf = {}; - padding_buf__u_left_buf.tag = padding_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) - { - padding_buf__u_left_buf.value = valueDeserializer.readLength(); - } - padding_buf__u.left = padding_buf__u_left_buf; - padding_buf_.value1 = padding_buf__u; - } - else { - throw "One of the branches for padding_buf_ has to be chosen through deserialisation."; - } - padding_buf.value = static_cast(padding_buf_); - } - value.padding = padding_buf; - const auto borderRadius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_LengthMetrics_BorderRadiuses borderRadius_buf = {}; - borderRadius_buf.tag = borderRadius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf_runtimeType)) - { - const Ark_Int8 borderRadius_buf__selector = valueDeserializer.readInt8(); - Ark_Union_LengthMetrics_BorderRadiuses borderRadius_buf_ = {}; - borderRadius_buf_.selector = borderRadius_buf__selector; - if (borderRadius_buf__selector == 0) { - borderRadius_buf_.selector = 0; - borderRadius_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); - } - else if (borderRadius_buf__selector == 1) { - borderRadius_buf_.selector = 1; - Ark_BorderRadiuses borderRadius_buf__u = {}; - const auto borderRadius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_topLeft_buf = {}; - borderRadius_buf__u_topLeft_buf.tag = borderRadius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) - { - borderRadius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.topLeft = borderRadius_buf__u_topLeft_buf; - const auto borderRadius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_topRight_buf = {}; - borderRadius_buf__u_topRight_buf.tag = borderRadius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) - { - borderRadius_buf__u_topRight_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.topRight = borderRadius_buf__u_topRight_buf; - const auto borderRadius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_bottomLeft_buf = {}; - borderRadius_buf__u_bottomLeft_buf.tag = borderRadius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) - { - borderRadius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.bottomLeft = borderRadius_buf__u_bottomLeft_buf; - const auto borderRadius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length borderRadius_buf__u_bottomRight_buf = {}; - borderRadius_buf__u_bottomRight_buf.tag = borderRadius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) - { - borderRadius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); - } - borderRadius_buf__u.bottomRight = borderRadius_buf__u_bottomRight_buf; - borderRadius_buf_.value1 = borderRadius_buf__u; - } - else { - throw "One of the branches for borderRadius_buf_ has to be chosen through deserialisation."; - } - borderRadius_buf.value = static_cast(borderRadius_buf_); - } - value.borderRadius = borderRadius_buf; - return value; - } - Ark_SizeOptions readSizeOptions() - { - Ark_SizeOptions value = {}; - Deserializer& valueDeserializer = *this; - const auto width_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length width_buf = {}; - width_buf.tag = width_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (width_buf_runtimeType)) - { - width_buf.value = valueDeserializer.readLength(); - } - value.width = width_buf; - const auto height_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Length 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 = valueDeserializer.readLength(); - } - value.height = height_buf; - return value; + return static_cast(ptr); } Ark_Position readPosition() { @@ -70894,7 +72424,18 @@ class Deserializer : public DeserializerBase { { Ark_SymbolGlyphModifier value = {}; Deserializer& valueDeserializer = *this; - value.__SymbolGlyphModifierStub = static_cast(valueDeserializer.readString()); + value._SymbolGlyphModifierStub = static_cast(valueDeserializer.readString()); + return value; + } + Ark_LeadingMarginPlaceholder readLeadingMarginPlaceholder() + { + Ark_LeadingMarginPlaceholder value = {}; + Deserializer& valueDeserializer = *this; + value.pixelMap = static_cast(valueDeserializer.readPixelMap()); + Ark_Tuple_Dimension_Dimension size_buf = {}; + size_buf.value0 = valueDeserializer.readLength(); + size_buf.value1 = valueDeserializer.readLength(); + value.size = size_buf; return value; } Ark_ShadowOptions readShadowOptions() @@ -70913,7 +72454,7 @@ class Deserializer : public DeserializerBase { radius_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for radius_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf has to be chosen through deserialisation."); } value.radius = static_cast(radius_buf); const auto type_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -70949,7 +72490,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -70971,7 +72512,7 @@ class Deserializer : public DeserializerBase { offsetX_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offsetX_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offsetX_buf_ has to be chosen through deserialisation."); } offsetX_buf.value = static_cast(offsetX_buf_); } @@ -70993,7 +72534,7 @@ class Deserializer : public DeserializerBase { offsetY_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offsetY_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offsetY_buf_ has to be chosen through deserialisation."); } offsetY_buf.value = static_cast(offsetY_buf_); } @@ -71062,291 +72603,6 @@ class Deserializer : public DeserializerBase { value.xxl = xxl_buf; return value; } - Ark_BackgroundColorStyle readBackgroundColorStyle() - { - Ark_BackgroundColorStyle value = {}; - Deserializer& valueDeserializer = *this; - value.textBackgroundStyle = valueDeserializer.readTextBackgroundStyle(); - return value; - } - Ark_UserDataSpan readUserDataSpan() - { - Ark_UserDataSpan value = {}; - return value; - } - Ark_CustomSpan readCustomSpan() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } - Ark_UrlStyle readUrlStyle() - { - Ark_UrlStyle value = {}; - Deserializer& valueDeserializer = *this; - value.url = static_cast(valueDeserializer.readString()); - return value; - } - Ark_LineHeightStyle readLineHeightStyle() - { - Ark_LineHeightStyle value = {}; - Deserializer& valueDeserializer = *this; - value.lineHeight = static_cast(valueDeserializer.readNumber()); - return value; - } - Ark_ParagraphStyle readParagraphStyle() - { - Ark_ParagraphStyle value = {}; - Deserializer& valueDeserializer = *this; - const auto textAlign_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_TextAlign textAlign_buf = {}; - textAlign_buf.tag = textAlign_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (textAlign_buf_runtimeType)) - { - textAlign_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.textAlign = textAlign_buf; - const auto textIndent_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number textIndent_buf = {}; - textIndent_buf.tag = textIndent_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (textIndent_buf_runtimeType)) - { - textIndent_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.textIndent = textIndent_buf; - const auto maxLines_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number maxLines_buf = {}; - maxLines_buf.tag = maxLines_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (maxLines_buf_runtimeType)) - { - maxLines_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.maxLines = maxLines_buf; - const auto overflow_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_TextOverflow overflow_buf = {}; - overflow_buf.tag = overflow_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (overflow_buf_runtimeType)) - { - overflow_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.overflow = overflow_buf; - const auto wordBreak_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_WordBreak wordBreak_buf = {}; - wordBreak_buf.tag = wordBreak_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (wordBreak_buf_runtimeType)) - { - wordBreak_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.wordBreak = wordBreak_buf; - const auto leadingMargin_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_Number_LeadingMarginPlaceholder leadingMargin_buf = {}; - leadingMargin_buf.tag = leadingMargin_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (leadingMargin_buf_runtimeType)) - { - const Ark_Int8 leadingMargin_buf__selector = valueDeserializer.readInt8(); - Ark_Union_Number_LeadingMarginPlaceholder leadingMargin_buf_ = {}; - leadingMargin_buf_.selector = leadingMargin_buf__selector; - if (leadingMargin_buf__selector == 0) { - leadingMargin_buf_.selector = 0; - leadingMargin_buf_.value0 = static_cast(valueDeserializer.readNumber()); - } - else if (leadingMargin_buf__selector == 1) { - leadingMargin_buf_.selector = 1; - leadingMargin_buf_.value1 = valueDeserializer.readLeadingMarginPlaceholder(); - } - else { - throw "One of the branches for leadingMargin_buf_ has to be chosen through deserialisation."; - } - leadingMargin_buf.value = static_cast(leadingMargin_buf_); - } - value.leadingMargin = leadingMargin_buf; - return value; - } - Ark_ImageAttachment readImageAttachment() - { - Ark_ImageAttachment value = {}; - Deserializer& valueDeserializer = *this; - value.value = static_cast(valueDeserializer.readPixelMap()); - const auto size_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_SizeOptions size_buf = {}; - size_buf.tag = size_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (size_buf_runtimeType)) - { - size_buf.value = valueDeserializer.readSizeOptions(); - } - value.size = size_buf; - const auto verticalAlign_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ImageSpanAlignment verticalAlign_buf = {}; - verticalAlign_buf.tag = verticalAlign_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (verticalAlign_buf_runtimeType)) - { - verticalAlign_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.verticalAlign = verticalAlign_buf; - const auto objectFit_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ImageFit objectFit_buf = {}; - objectFit_buf.tag = objectFit_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (objectFit_buf_runtimeType)) - { - objectFit_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.objectFit = objectFit_buf; - const auto layoutStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ImageAttachmentLayoutStyle layoutStyle_buf = {}; - layoutStyle_buf.tag = layoutStyle_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (layoutStyle_buf_runtimeType)) - { - layoutStyle_buf.value = valueDeserializer.readImageAttachmentLayoutStyle(); - } - value.layoutStyle = layoutStyle_buf; - return value; - } - Ark_GestureStyle readGestureStyle() - { - Ark_GestureStyle value = {}; - return value; - } - Ark_TextShadowStyle readTextShadowStyle() - { - Ark_TextShadowStyle value = {}; - Deserializer& valueDeserializer = *this; - const Ark_Int32 textShadow_buf_length = valueDeserializer.readInt32(); - Array_ShadowOptions textShadow_buf = {}; - valueDeserializer.resizeArray::type, - std::decay::type>(&textShadow_buf, textShadow_buf_length); - for (int textShadow_buf_i = 0; textShadow_buf_i < textShadow_buf_length; textShadow_buf_i++) { - textShadow_buf.array[textShadow_buf_i] = valueDeserializer.readShadowOptions(); - } - value.textShadow = textShadow_buf; - return value; - } - Ark_LetterSpacingStyle readLetterSpacingStyle() - { - Ark_LetterSpacingStyle value = {}; - Deserializer& valueDeserializer = *this; - value.letterSpacing = static_cast(valueDeserializer.readNumber()); - return value; - } - Ark_BaselineOffsetStyle readBaselineOffsetStyle() - { - Ark_BaselineOffsetStyle value = {}; - Deserializer& valueDeserializer = *this; - value.baselineOffset = static_cast(valueDeserializer.readNumber()); - return value; - } - Ark_DecorationStyle readDecorationStyle() - { - Ark_DecorationStyle value = {}; - Deserializer& valueDeserializer = *this; - value.type = static_cast(valueDeserializer.readInt32()); - const auto color_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceColor color_buf = {}; - color_buf.tag = color_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (color_buf_runtimeType)) - { - const Ark_Int8 color_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceColor color_buf_ = {}; - color_buf_.selector = color_buf__selector; - if (color_buf__selector == 0) { - color_buf_.selector = 0; - color_buf_.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (color_buf__selector == 1) { - color_buf_.selector = 1; - color_buf_.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (color_buf__selector == 2) { - color_buf_.selector = 2; - color_buf_.value2 = static_cast(valueDeserializer.readString()); - } - else if (color_buf__selector == 3) { - color_buf_.selector = 3; - color_buf_.value3 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; - } - color_buf.value = static_cast(color_buf_); - } - value.color = color_buf; - const auto style_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_TextDecorationStyle style_buf = {}; - style_buf.tag = style_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (style_buf_runtimeType)) - { - style_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.style = style_buf; - return value; - } - Ark_TextStyle_styled_string readTextStyle_styled_string() - { - Ark_TextStyle_styled_string value = {}; - Deserializer& valueDeserializer = *this; - const auto fontColor_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceColor fontColor_buf = {}; - fontColor_buf.tag = fontColor_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (fontColor_buf_runtimeType)) - { - const Ark_Int8 fontColor_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceColor fontColor_buf_ = {}; - fontColor_buf_.selector = fontColor_buf__selector; - if (fontColor_buf__selector == 0) { - fontColor_buf_.selector = 0; - fontColor_buf_.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (fontColor_buf__selector == 1) { - fontColor_buf_.selector = 1; - fontColor_buf_.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (fontColor_buf__selector == 2) { - fontColor_buf_.selector = 2; - fontColor_buf_.value2 = static_cast(valueDeserializer.readString()); - } - else if (fontColor_buf__selector == 3) { - fontColor_buf_.selector = 3; - fontColor_buf_.value3 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; - } - fontColor_buf.value = static_cast(fontColor_buf_); - } - value.fontColor = fontColor_buf; - const auto fontFamily_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_String fontFamily_buf = {}; - fontFamily_buf.tag = fontFamily_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (fontFamily_buf_runtimeType)) - { - fontFamily_buf.value = static_cast(valueDeserializer.readString()); - } - value.fontFamily = fontFamily_buf; - const auto fontSize_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number fontSize_buf = {}; - fontSize_buf.tag = fontSize_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (fontSize_buf_runtimeType)) - { - fontSize_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.fontSize = fontSize_buf; - const auto fontWeight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number fontWeight_buf = {}; - fontWeight_buf.tag = fontWeight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (fontWeight_buf_runtimeType)) - { - fontWeight_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.fontWeight = fontWeight_buf; - const auto fontStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_FontStyle fontStyle_buf = {}; - fontStyle_buf.tag = fontStyle_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (fontStyle_buf_runtimeType)) - { - fontStyle_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.fontStyle = fontStyle_buf; - return value; - } Ark_Area readArea() { Ark_Area value = {}; @@ -71390,7 +72646,7 @@ class Deserializer : public DeserializerBase { weight_buf_.value2 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for weight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for weight_buf_ has to be chosen through deserialisation."); } weight_buf.value = static_cast(weight_buf_); } @@ -71412,7 +72668,7 @@ class Deserializer : public DeserializerBase { family_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for family_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for family_buf_ has to be chosen through deserialisation."); } family_buf.value = static_cast(family_buf_); } @@ -71453,7 +72709,7 @@ class Deserializer : public DeserializerBase { { Ark_ComponentContent value = {}; Deserializer& valueDeserializer = *this; - value.__ComponentContentStub = static_cast(valueDeserializer.readString()); + value._ComponentContentStub = static_cast(valueDeserializer.readString()); return value; } Ark_ScrollAnimationOptions readScrollAnimationOptions() @@ -71485,7 +72741,7 @@ class Deserializer : public DeserializerBase { curve_buf_.value1 = static_cast(valueDeserializer.readICurve()); } else { - throw "One of the branches for curve_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for curve_buf_ has to be chosen through deserialisation."); } curve_buf.value = static_cast(curve_buf_); } @@ -71554,7 +72810,7 @@ class Deserializer : public DeserializerBase { margin_buf_.value1 = margin_buf__u; } else { - throw "One of the branches for margin_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for margin_buf_ has to be chosen through deserialisation."); } margin_buf.value = static_cast(margin_buf_); } @@ -71609,7 +72865,7 @@ class Deserializer : public DeserializerBase { borderRadius_buf_.value1 = borderRadius_buf__u; } else { - throw "One of the branches for borderRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); } borderRadius_buf.value = static_cast(borderRadius_buf_); } @@ -71641,7 +72897,7 @@ class Deserializer : public DeserializerBase { color_buf.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf has to be chosen through deserialisation."); } value.color = static_cast(color_buf); const auto style_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -71684,7 +72940,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -71728,7 +72984,7 @@ class Deserializer : public DeserializerBase { top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for top_buf_ has to be chosen through deserialisation."); } top_buf.value = static_cast(top_buf_); } @@ -71758,7 +73014,7 @@ class Deserializer : public DeserializerBase { end_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for end_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for end_buf_ has to be chosen through deserialisation."); } end_buf.value = static_cast(end_buf_); } @@ -71788,7 +73044,7 @@ class Deserializer : public DeserializerBase { bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for bottom_buf_ has to be chosen through deserialisation."); } bottom_buf.value = static_cast(bottom_buf_); } @@ -71818,7 +73074,7 @@ class Deserializer : public DeserializerBase { start_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for start_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for start_buf_ has to be chosen through deserialisation."); } start_buf.value = static_cast(start_buf_); } @@ -71879,7 +73135,7 @@ class Deserializer : public DeserializerBase { title_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf has to be chosen through deserialisation."); } value.title = static_cast(title_buf); const auto subtitle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -71899,7 +73155,7 @@ class Deserializer : public DeserializerBase { subtitle_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for subtitle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for subtitle_buf_ has to be chosen through deserialisation."); } subtitle_buf.value = static_cast(subtitle_buf_); } @@ -71910,7 +73166,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_LocalizedBorderRadiuses readLocalizedBorderRadiuses() { @@ -71954,26 +73210,226 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_CanvasGradient readCanvasGradient() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ColorMetrics readColorMetrics() { Ark_ColorMetrics value = {}; Deserializer& valueDeserializer = *this; - value.__ColorMetricsStub = static_cast(valueDeserializer.readString()); + value._ColorMetricsStub = static_cast(valueDeserializer.readString()); + return value; + } + Ark_StyledStringValue readStyledStringValue() + { + Ark_StyledStringValue value = {}; + Deserializer& valueDeserializer = *this; + value.stub = static_cast(valueDeserializer.readString()); + return value; + } + Ark_ImageAttachmentLayoutStyle readImageAttachmentLayoutStyle() + { + Ark_ImageAttachmentLayoutStyle value = {}; + Deserializer& valueDeserializer = *this; + const auto margin_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_Margin margin_buf = {}; + margin_buf.tag = margin_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf_runtimeType)) + { + const Ark_Int8 margin_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_Margin margin_buf_ = {}; + margin_buf_.selector = margin_buf__selector; + if (margin_buf__selector == 0) { + margin_buf_.selector = 0; + margin_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (margin_buf__selector == 1) { + margin_buf_.selector = 1; + Ark_Padding margin_buf__u = {}; + const auto margin_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_top_buf = {}; + margin_buf__u_top_buf.tag = margin_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) + { + margin_buf__u_top_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.top = margin_buf__u_top_buf; + const auto margin_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_right_buf = {}; + margin_buf__u_right_buf.tag = margin_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) + { + margin_buf__u_right_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.right = margin_buf__u_right_buf; + const auto margin_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_bottom_buf = {}; + margin_buf__u_bottom_buf.tag = margin_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) + { + margin_buf__u_bottom_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.bottom = margin_buf__u_bottom_buf; + const auto margin_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length margin_buf__u_left_buf = {}; + margin_buf__u_left_buf.tag = margin_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) + { + margin_buf__u_left_buf.value = valueDeserializer.readLength(); + } + margin_buf__u.left = margin_buf__u_left_buf; + margin_buf_.value1 = margin_buf__u; + } + else { + INTEROP_FATAL("One of the branches for margin_buf_ has to be chosen through deserialisation."); + } + margin_buf.value = static_cast(margin_buf_); + } + value.margin = margin_buf; + const auto padding_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_Padding padding_buf = {}; + padding_buf.tag = padding_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf_runtimeType)) + { + const Ark_Int8 padding_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_Padding padding_buf_ = {}; + padding_buf_.selector = padding_buf__selector; + if (padding_buf__selector == 0) { + padding_buf_.selector = 0; + padding_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (padding_buf__selector == 1) { + padding_buf_.selector = 1; + Ark_Padding padding_buf__u = {}; + const auto padding_buf__u_top_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_top_buf = {}; + padding_buf__u_top_buf.tag = padding_buf__u_top_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) + { + padding_buf__u_top_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.top = padding_buf__u_top_buf; + const auto padding_buf__u_right_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_right_buf = {}; + padding_buf__u_right_buf.tag = padding_buf__u_right_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) + { + padding_buf__u_right_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.right = padding_buf__u_right_buf; + const auto padding_buf__u_bottom_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_bottom_buf = {}; + padding_buf__u_bottom_buf.tag = padding_buf__u_bottom_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) + { + padding_buf__u_bottom_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.bottom = padding_buf__u_bottom_buf; + const auto padding_buf__u_left_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length padding_buf__u_left_buf = {}; + padding_buf__u_left_buf.tag = padding_buf__u_left_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) + { + padding_buf__u_left_buf.value = valueDeserializer.readLength(); + } + padding_buf__u.left = padding_buf__u_left_buf; + padding_buf_.value1 = padding_buf__u; + } + else { + INTEROP_FATAL("One of the branches for padding_buf_ has to be chosen through deserialisation."); + } + padding_buf.value = static_cast(padding_buf_); + } + value.padding = padding_buf; + const auto borderRadius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_BorderRadiuses borderRadius_buf = {}; + borderRadius_buf.tag = borderRadius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf_runtimeType)) + { + const Ark_Int8 borderRadius_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_BorderRadiuses borderRadius_buf_ = {}; + borderRadius_buf_.selector = borderRadius_buf__selector; + if (borderRadius_buf__selector == 0) { + borderRadius_buf_.selector = 0; + borderRadius_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (borderRadius_buf__selector == 1) { + borderRadius_buf_.selector = 1; + Ark_BorderRadiuses borderRadius_buf__u = {}; + const auto borderRadius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_topLeft_buf = {}; + borderRadius_buf__u_topLeft_buf.tag = borderRadius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) + { + borderRadius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.topLeft = borderRadius_buf__u_topLeft_buf; + const auto borderRadius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_topRight_buf = {}; + borderRadius_buf__u_topRight_buf.tag = borderRadius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) + { + borderRadius_buf__u_topRight_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.topRight = borderRadius_buf__u_topRight_buf; + const auto borderRadius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_bottomLeft_buf = {}; + borderRadius_buf__u_bottomLeft_buf.tag = borderRadius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) + { + borderRadius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.bottomLeft = borderRadius_buf__u_bottomLeft_buf; + const auto borderRadius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length borderRadius_buf__u_bottomRight_buf = {}; + borderRadius_buf__u_bottomRight_buf.tag = borderRadius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) + { + borderRadius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); + } + borderRadius_buf__u.bottomRight = borderRadius_buf__u_bottomRight_buf; + borderRadius_buf_.value1 = borderRadius_buf__u; + } + else { + INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); + } + borderRadius_buf.value = static_cast(borderRadius_buf_); + } + value.borderRadius = borderRadius_buf; + return value; + } + Ark_SizeOptions readSizeOptions() + { + Ark_SizeOptions value = {}; + Deserializer& valueDeserializer = *this; + const auto width_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length width_buf = {}; + width_buf.tag = width_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (width_buf_runtimeType)) + { + width_buf.value = valueDeserializer.readLength(); + } + value.width = width_buf; + const auto height_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length 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 = valueDeserializer.readLength(); + } + value.height = height_buf; return value; } Ark_ImageAnalyzerController readImageAnalyzerController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_EventTarget readEventTarget() { @@ -71986,25 +73442,25 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WebviewController readWebviewController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WebController readWebController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_DateTimeOptions readDateTimeOptions() { Ark_DateTimeOptions value = {}; Deserializer& valueDeserializer = *this; - value.__DateTimeOptionsStub = static_cast(valueDeserializer.readString()); + value._DateTimeOptionsStub = static_cast(valueDeserializer.readString()); return value; } Ark_Rectangle readRectangle() @@ -72074,7 +73530,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -72150,7 +73606,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -72176,7 +73632,7 @@ class Deserializer : public DeserializerBase { fontWeight_buf_.value2 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for fontWeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontWeight_buf_ has to be chosen through deserialisation."); } fontWeight_buf.value = static_cast(fontWeight_buf_); } @@ -72206,7 +73662,7 @@ class Deserializer : public DeserializerBase { fontFamily_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for fontFamily_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontFamily_buf_ has to be chosen through deserialisation."); } fontFamily_buf.value = static_cast(fontFamily_buf_); } @@ -72236,7 +73692,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -72291,7 +73747,7 @@ class Deserializer : public DeserializerBase { borderRadius_buf_.value1 = borderRadius_buf__u; } else { - throw "One of the branches for borderRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); } borderRadius_buf.value = static_cast(borderRadius_buf_); } @@ -72310,7 +73766,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TabBarIconStyle readTabBarIconStyle() { @@ -72341,7 +73797,7 @@ class Deserializer : public DeserializerBase { selectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for selectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selectedColor_buf_ has to be chosen through deserialisation."); } selectedColor_buf.value = static_cast(selectedColor_buf_); } @@ -72371,7 +73827,7 @@ class Deserializer : public DeserializerBase { unselectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for unselectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation."); } unselectedColor_buf.value = static_cast(unselectedColor_buf_); } @@ -72424,12 +73880,12 @@ class Deserializer : public DeserializerBase { minFontSize_buf__u.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for minFontSize_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for minFontSize_buf__u has to be chosen through deserialisation."); } minFontSize_buf_.value1 = static_cast(minFontSize_buf__u); } else { - throw "One of the branches for minFontSize_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for minFontSize_buf_ has to be chosen through deserialisation."); } minFontSize_buf.value = static_cast(minFontSize_buf_); } @@ -72460,12 +73916,12 @@ class Deserializer : public DeserializerBase { maxFontSize_buf__u.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for maxFontSize_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for maxFontSize_buf__u has to be chosen through deserialisation."); } maxFontSize_buf_.value1 = static_cast(maxFontSize_buf__u); } else { - throw "One of the branches for maxFontSize_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for maxFontSize_buf_ has to be chosen through deserialisation."); } maxFontSize_buf.value = static_cast(maxFontSize_buf_); } @@ -72579,7 +74035,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -72609,7 +74065,7 @@ class Deserializer : public DeserializerBase { selectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for selectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selectedColor_buf_ has to be chosen through deserialisation."); } selectedColor_buf.value = static_cast(selectedColor_buf_); } @@ -72626,26 +74082,6 @@ class Deserializer : public DeserializerBase { value.grayscale = grayscale_buf; return value; } - Ark_RectAttribute readRectAttribute() - { - Ark_RectAttribute value = {}; - return value; - } - Ark_PathAttribute readPathAttribute() - { - Ark_PathAttribute value = {}; - return value; - } - Ark_EllipseAttribute readEllipseAttribute() - { - Ark_EllipseAttribute value = {}; - return value; - } - Ark_CircleAttribute readCircleAttribute() - { - Ark_CircleAttribute value = {}; - return value; - } Ark_IconOptions readIconOptions() { Ark_IconOptions value = {}; @@ -72683,7 +74119,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -72705,7 +74141,7 @@ class Deserializer : public DeserializerBase { src_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for src_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_buf_ has to be chosen through deserialisation."); } src_buf.value = static_cast(src_buf_); } @@ -72772,7 +74208,7 @@ class Deserializer : public DeserializerBase { leadingMargin_buf_.value1 = valueDeserializer.readLeadingMarginPlaceholder(); } else { - throw "One of the branches for leadingMargin_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation."); } leadingMargin_buf.value = static_cast(leadingMargin_buf_); } @@ -72820,7 +74256,7 @@ class Deserializer : public DeserializerBase { fontSize_buf_.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontSize_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontSize_buf_ has to be chosen through deserialisation."); } fontSize_buf.value = static_cast(fontSize_buf_); } @@ -72855,7 +74291,7 @@ class Deserializer : public DeserializerBase { fontColor_buf__buf.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf__buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf__buf has to be chosen through deserialisation."); } fontColor_buf_.array[fontColor_buf__i] = static_cast(fontColor_buf__buf); } @@ -72883,7 +74319,7 @@ class Deserializer : public DeserializerBase { fontWeight_buf_.value2 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for fontWeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontWeight_buf_ has to be chosen through deserialisation."); } fontWeight_buf.value = static_cast(fontWeight_buf_); } @@ -72930,7 +74366,7 @@ class Deserializer : public DeserializerBase { fontColor_buf.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf has to be chosen through deserialisation."); } value.fontColor = static_cast(fontColor_buf); value.fontSize = static_cast(valueDeserializer.readNumber()); @@ -73049,7 +74485,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -73071,7 +74507,7 @@ class Deserializer : public DeserializerBase { fontSize_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for fontSize_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontSize_buf_ has to be chosen through deserialisation."); } fontSize_buf.value = static_cast(fontSize_buf_); } @@ -73105,7 +74541,7 @@ class Deserializer : public DeserializerBase { fontWeight_buf_.value2 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for fontWeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontWeight_buf_ has to be chosen through deserialisation."); } fontWeight_buf.value = static_cast(fontWeight_buf_); } @@ -73127,7 +74563,7 @@ class Deserializer : public DeserializerBase { fontFamily_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontFamily_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontFamily_buf_ has to be chosen through deserialisation."); } fontFamily_buf.value = static_cast(fontFamily_buf_); } @@ -73164,7 +74600,7 @@ class Deserializer : public DeserializerBase { textShadow_buf_.value1 = textShadow_buf__u; } else { - throw "One of the branches for textShadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for textShadow_buf_ has to be chosen through deserialisation."); } textShadow_buf.value = static_cast(textShadow_buf_); } @@ -73186,7 +74622,7 @@ class Deserializer : public DeserializerBase { letterSpacing_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for letterSpacing_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for letterSpacing_buf_ has to be chosen through deserialisation."); } letterSpacing_buf.value = static_cast(letterSpacing_buf_); } @@ -73212,7 +74648,7 @@ class Deserializer : public DeserializerBase { lineHeight_buf_.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for lineHeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for lineHeight_buf_ has to be chosen through deserialisation."); } lineHeight_buf.value = static_cast(lineHeight_buf_); } @@ -73253,38 +74689,13 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_NavPathInfo readNavPathInfo() { - Ark_NavPathInfo value = {}; Deserializer& valueDeserializer = *this; - value.name = static_cast(valueDeserializer.readString()); - const auto param_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_CustomObject param_buf = {}; - param_buf.tag = param_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (param_buf_runtimeType)) - { - param_buf.value = static_cast(valueDeserializer.readCustomObject("Any")); - } - value.param = param_buf; - const auto onPop_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Callback_PopInfo_Void onPop_buf = {}; - onPop_buf.tag = onPop_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (onPop_buf_runtimeType)) - { - onPop_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))}; - } - value.onPop = onPop_buf; - const auto isEntry_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean isEntry_buf = {}; - isEntry_buf.tag = isEntry_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (isEntry_buf_runtimeType)) - { - isEntry_buf.value = valueDeserializer.readBoolean(); - } - value.isEntry = isEntry_buf; - return value; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); } Ark_TextModifier readTextModifier() { @@ -73420,7 +74831,7 @@ class Deserializer : public DeserializerBase { x_buf_.value1 = valueDeserializer.readGridRowSizeOption(); } else { - throw "One of the branches for x_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for x_buf_ has to be chosen through deserialisation."); } x_buf.value = static_cast(x_buf_); } @@ -73442,7 +74853,7 @@ class Deserializer : public DeserializerBase { y_buf_.value1 = valueDeserializer.readGridRowSizeOption(); } else { - throw "One of the branches for y_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for y_buf_ has to be chosen through deserialisation."); } y_buf.value = static_cast(y_buf_); } @@ -73503,82 +74914,11 @@ class Deserializer : public DeserializerBase { value.xxl = xxl_buf; return value; } - Ark_LinearGradient_common readLinearGradient_common() + Ark_LinearGradient readLinearGradient() { - Ark_LinearGradient_common value = {}; Deserializer& valueDeserializer = *this; - const auto angle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_Number_String angle_buf = {}; - angle_buf.tag = angle_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (angle_buf_runtimeType)) - { - const Ark_Int8 angle_buf__selector = valueDeserializer.readInt8(); - Ark_Union_Number_String angle_buf_ = {}; - angle_buf_.selector = angle_buf__selector; - if (angle_buf__selector == 0) { - angle_buf_.selector = 0; - angle_buf_.value0 = static_cast(valueDeserializer.readNumber()); - } - else if (angle_buf__selector == 1) { - angle_buf_.selector = 1; - angle_buf_.value1 = static_cast(valueDeserializer.readString()); - } - else { - throw "One of the branches for angle_buf_ has to be chosen through deserialisation."; - } - angle_buf.value = static_cast(angle_buf_); - } - value.angle = angle_buf; - const auto direction_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_GradientDirection direction_buf = {}; - direction_buf.tag = direction_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (direction_buf_runtimeType)) - { - direction_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.direction = direction_buf; - const Ark_Int32 colors_buf_length = valueDeserializer.readInt32(); - Array_Tuple_ResourceColor_Number colors_buf = {}; - valueDeserializer.resizeArray::type, - std::decay::type>(&colors_buf, colors_buf_length); - for (int colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { - Ark_Tuple_ResourceColor_Number colors_buf_buf = {}; - const Ark_Int8 colors_buf_buf_value0_buf_selector = valueDeserializer.readInt8(); - Ark_ResourceColor colors_buf_buf_value0_buf = {}; - colors_buf_buf_value0_buf.selector = colors_buf_buf_value0_buf_selector; - if (colors_buf_buf_value0_buf_selector == 0) { - colors_buf_buf_value0_buf.selector = 0; - colors_buf_buf_value0_buf.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (colors_buf_buf_value0_buf_selector == 1) { - colors_buf_buf_value0_buf.selector = 1; - colors_buf_buf_value0_buf.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (colors_buf_buf_value0_buf_selector == 2) { - colors_buf_buf_value0_buf.selector = 2; - colors_buf_buf_value0_buf.value2 = static_cast(valueDeserializer.readString()); - } - else if (colors_buf_buf_value0_buf_selector == 3) { - colors_buf_buf_value0_buf.selector = 3; - colors_buf_buf_value0_buf.value3 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation."; - } - colors_buf_buf.value0 = static_cast(colors_buf_buf_value0_buf); - colors_buf_buf.value1 = static_cast(valueDeserializer.readNumber()); - colors_buf.array[colors_buf_i] = colors_buf_buf; - } - value.colors = colors_buf; - const auto repeating_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean repeating_buf = {}; - repeating_buf.tag = repeating_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (repeating_buf_runtimeType)) - { - repeating_buf.value = valueDeserializer.readBoolean(); - } - value.repeating = repeating_buf; - return value; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); } Ark_LunarSwitchStyle readLunarSwitchStyle() { @@ -73609,7 +74949,7 @@ class Deserializer : public DeserializerBase { selectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for selectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selectedColor_buf_ has to be chosen through deserialisation."); } selectedColor_buf.value = static_cast(selectedColor_buf_); } @@ -73639,7 +74979,7 @@ class Deserializer : public DeserializerBase { unselectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for unselectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation."); } unselectedColor_buf.value = static_cast(unselectedColor_buf_); } @@ -73669,7 +75009,7 @@ class Deserializer : public DeserializerBase { strokeColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for strokeColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for strokeColor_buf_ has to be chosen through deserialisation."); } strokeColor_buf.value = static_cast(strokeColor_buf_); } @@ -73689,14 +75029,14 @@ class Deserializer : public DeserializerBase { { Ark_Scene value = {}; Deserializer& valueDeserializer = *this; - value.__SceneStub = static_cast(valueDeserializer.readString()); + value._SceneStub = static_cast(valueDeserializer.readString()); return value; } Ark_UIContext readUIContext() { Ark_UIContext value = {}; Deserializer& valueDeserializer = *this; - value.__UIContextStub = static_cast(valueDeserializer.readString()); + value._UIContextStub = static_cast(valueDeserializer.readString()); return value; } Ark_ContextMenuAnimationOptions readContextMenuAnimationOptions() @@ -73758,7 +75098,7 @@ class Deserializer : public DeserializerBase { textColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for textColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for textColor_buf_ has to be chosen through deserialisation."); } textColor_buf.value = static_cast(textColor_buf_); } @@ -73799,7 +75139,7 @@ class Deserializer : public DeserializerBase { { Ark_ImageModifier value = {}; Deserializer& valueDeserializer = *this; - value.__ImageModifierStub = static_cast(valueDeserializer.readString()); + value._ImageModifierStub = static_cast(valueDeserializer.readString()); return value; } Ark_MotionPathOptions readMotionPathOptions() @@ -73913,7 +75253,7 @@ class Deserializer : public DeserializerBase { centerX_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for centerX_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for centerX_buf_ has to be chosen through deserialisation."); } centerX_buf.value = static_cast(centerX_buf_); } @@ -73935,7 +75275,7 @@ class Deserializer : public DeserializerBase { centerY_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for centerY_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for centerY_buf_ has to be chosen through deserialisation."); } centerY_buf.value = static_cast(centerY_buf_); } @@ -73968,7 +75308,7 @@ class Deserializer : public DeserializerBase { angle_buf.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for angle_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for angle_buf has to be chosen through deserialisation."); } value.angle = static_cast(angle_buf); return value; @@ -74018,7 +75358,7 @@ class Deserializer : public DeserializerBase { centerX_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for centerX_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for centerX_buf_ has to be chosen through deserialisation."); } centerX_buf.value = static_cast(centerX_buf_); } @@ -74040,7 +75380,7 @@ class Deserializer : public DeserializerBase { centerY_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for centerY_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for centerY_buf_ has to be chosen through deserialisation."); } centerY_buf.value = static_cast(centerY_buf_); } @@ -74068,7 +75408,7 @@ class Deserializer : public DeserializerBase { x_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for x_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for x_buf_ has to be chosen through deserialisation."); } x_buf.value = static_cast(x_buf_); } @@ -74090,7 +75430,7 @@ class Deserializer : public DeserializerBase { y_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for y_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for y_buf_ has to be chosen through deserialisation."); } y_buf.value = static_cast(y_buf_); } @@ -74112,18 +75452,95 @@ class Deserializer : public DeserializerBase { z_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for z_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for z_buf_ has to be chosen through deserialisation."); } z_buf.value = static_cast(z_buf_); } value.z = z_buf; return value; } + Ark_LinearGradient_common readLinearGradient_common() + { + Ark_LinearGradient_common value = {}; + Deserializer& valueDeserializer = *this; + const auto angle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_Number_String angle_buf = {}; + angle_buf.tag = angle_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (angle_buf_runtimeType)) + { + const Ark_Int8 angle_buf__selector = valueDeserializer.readInt8(); + Ark_Union_Number_String angle_buf_ = {}; + angle_buf_.selector = angle_buf__selector; + if (angle_buf__selector == 0) { + angle_buf_.selector = 0; + angle_buf_.value0 = static_cast(valueDeserializer.readNumber()); + } + else if (angle_buf__selector == 1) { + angle_buf_.selector = 1; + angle_buf_.value1 = static_cast(valueDeserializer.readString()); + } + else { + INTEROP_FATAL("One of the branches for angle_buf_ has to be chosen through deserialisation."); + } + angle_buf.value = static_cast(angle_buf_); + } + value.angle = angle_buf; + const auto direction_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_GradientDirection direction_buf = {}; + direction_buf.tag = direction_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (direction_buf_runtimeType)) + { + direction_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.direction = direction_buf; + const Ark_Int32 colors_buf_length = valueDeserializer.readInt32(); + Array_Tuple_ResourceColor_Number colors_buf = {}; + valueDeserializer.resizeArray::type, + std::decay::type>(&colors_buf, colors_buf_length); + for (int colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { + Ark_Tuple_ResourceColor_Number colors_buf_buf = {}; + const Ark_Int8 colors_buf_buf_value0_buf_selector = valueDeserializer.readInt8(); + Ark_ResourceColor colors_buf_buf_value0_buf = {}; + colors_buf_buf_value0_buf.selector = colors_buf_buf_value0_buf_selector; + if (colors_buf_buf_value0_buf_selector == 0) { + colors_buf_buf_value0_buf.selector = 0; + colors_buf_buf_value0_buf.value0 = static_cast(valueDeserializer.readInt32()); + } + else if (colors_buf_buf_value0_buf_selector == 1) { + colors_buf_buf_value0_buf.selector = 1; + colors_buf_buf_value0_buf.value1 = static_cast(valueDeserializer.readNumber()); + } + else if (colors_buf_buf_value0_buf_selector == 2) { + colors_buf_buf_value0_buf.selector = 2; + colors_buf_buf_value0_buf.value2 = static_cast(valueDeserializer.readString()); + } + else if (colors_buf_buf_value0_buf_selector == 3) { + colors_buf_buf_value0_buf.selector = 3; + colors_buf_buf_value0_buf.value3 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation."); + } + colors_buf_buf.value0 = static_cast(colors_buf_buf_value0_buf); + colors_buf_buf.value1 = static_cast(valueDeserializer.readNumber()); + colors_buf.array[colors_buf_i] = colors_buf_buf; + } + value.colors = colors_buf; + const auto repeating_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Boolean repeating_buf = {}; + repeating_buf.tag = repeating_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (repeating_buf_runtimeType)) + { + repeating_buf.value = valueDeserializer.readBoolean(); + } + value.repeating = repeating_buf; + return value; + } Ark_DrawingCanvas readDrawingCanvas() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_Size readSize() { @@ -74137,7 +75554,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TextStyle_alert_dialog readTextStyle_alert_dialog() { @@ -74193,7 +75610,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const auto fontColor_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -74221,7 +75638,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -74251,7 +75668,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -74279,7 +75696,7 @@ class Deserializer : public DeserializerBase { dx_buf.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for dx_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dx_buf has to be chosen through deserialisation."); } value.dx = static_cast(dx_buf); const Ark_Int8 dy_buf_selector = valueDeserializer.readInt8(); @@ -74298,7 +75715,7 @@ class Deserializer : public DeserializerBase { dy_buf.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for dy_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dy_buf has to be chosen through deserialisation."); } value.dy = static_cast(dy_buf); return value; @@ -74343,7 +75760,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); value.action = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_VoidCallback)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_VoidCallback))))}; @@ -74353,14 +75770,14 @@ class Deserializer : public DeserializerBase { { Ark_CustomTheme value = {}; Deserializer& valueDeserializer = *this; - value.__CustomThemeStub = static_cast(valueDeserializer.readString()); + value._CustomThemeStub = static_cast(valueDeserializer.readString()); return value; } Ark_RestrictedWorker readRestrictedWorker() { Ark_RestrictedWorker value = {}; Deserializer& valueDeserializer = *this; - value.__RestrictedWorkerStub = static_cast(valueDeserializer.readString()); + value._RestrictedWorkerStub = static_cast(valueDeserializer.readString()); return value; } Ark_Want readWant() @@ -74469,7 +75886,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_NavigationAnimatedTransition readNavigationAnimatedTransition() { @@ -74502,45 +75919,6 @@ class Deserializer : public DeserializerBase { value.transition = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_NavigationTransitionProxy_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_NavigationTransitionProxy_Void))))}; return value; } - Ark_NavContentInfo readNavContentInfo() - { - Ark_NavContentInfo value = {}; - Deserializer& valueDeserializer = *this; - const auto name_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_String name_buf = {}; - name_buf.tag = name_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (name_buf_runtimeType)) - { - name_buf.value = static_cast(valueDeserializer.readString()); - } - value.name = name_buf; - value.index = static_cast(valueDeserializer.readNumber()); - const auto mode_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_NavDestinationMode mode_buf = {}; - mode_buf.tag = mode_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (mode_buf_runtimeType)) - { - mode_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.mode = mode_buf; - const auto param_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_CustomObject param_buf = {}; - param_buf.tag = param_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (param_buf_runtimeType)) - { - param_buf.value = static_cast(valueDeserializer.readCustomObject("Object")); - } - value.param = param_buf; - const auto navDestinationId_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_String navDestinationId_buf = {}; - navDestinationId_buf.tag = navDestinationId_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (navDestinationId_buf_runtimeType)) - { - navDestinationId_buf.value = static_cast(valueDeserializer.readString()); - } - value.navDestinationId = navDestinationId_buf; - return value; - } Ark_LinearIndicatorStyle readLinearIndicatorStyle() { Ark_LinearIndicatorStyle value = {}; @@ -74623,7 +76001,7 @@ class Deserializer : public DeserializerBase { { Ark_DrawContext value = {}; Deserializer& valueDeserializer = *this; - value.__DrawContextStub = static_cast(valueDeserializer.readString()); + value._DrawContextStub = static_cast(valueDeserializer.readString()); return value; } Ark_CustomSpanMeasureInfo readCustomSpanMeasureInfo() @@ -74640,78 +76018,123 @@ class Deserializer : public DeserializerBase { value.start = static_cast(valueDeserializer.readNumber()); value.length = static_cast(valueDeserializer.readNumber()); value.styledKey = static_cast(valueDeserializer.readInt32()); - const Ark_Int8 styledValue_buf_selector = valueDeserializer.readInt8(); - Ark_StyledStringValue styledValue_buf = {}; - styledValue_buf.selector = styledValue_buf_selector; - if (styledValue_buf_selector == 0) { - styledValue_buf.selector = 0; - styledValue_buf.value0 = valueDeserializer.readTextStyle_styled_string(); - } - else if (styledValue_buf_selector == 1) { - styledValue_buf.selector = 1; - styledValue_buf.value1 = valueDeserializer.readDecorationStyle(); - } - else if (styledValue_buf_selector == 2) { - styledValue_buf.selector = 2; - styledValue_buf.value2 = valueDeserializer.readBaselineOffsetStyle(); - } - else if (styledValue_buf_selector == 3) { - styledValue_buf.selector = 3; - styledValue_buf.value3 = valueDeserializer.readLetterSpacingStyle(); - } - else if (styledValue_buf_selector == 4) { - styledValue_buf.selector = 4; - styledValue_buf.value4 = valueDeserializer.readTextShadowStyle(); - } - else if (styledValue_buf_selector == 5) { - styledValue_buf.selector = 5; - styledValue_buf.value5 = valueDeserializer.readGestureStyle(); - } - else if (styledValue_buf_selector == 6) { - styledValue_buf.selector = 6; - styledValue_buf.value6 = valueDeserializer.readImageAttachment(); - } - else if (styledValue_buf_selector == 7) { - styledValue_buf.selector = 7; - styledValue_buf.value7 = valueDeserializer.readParagraphStyle(); - } - else if (styledValue_buf_selector == 8) { - styledValue_buf.selector = 8; - styledValue_buf.value8 = valueDeserializer.readLineHeightStyle(); - } - else if (styledValue_buf_selector == 9) { - styledValue_buf.selector = 9; - styledValue_buf.value9 = valueDeserializer.readUrlStyle(); - } - else if (styledValue_buf_selector == 10) { - styledValue_buf.selector = 10; - styledValue_buf.value10 = static_cast(valueDeserializer.readCustomSpan()); - } - else if (styledValue_buf_selector == 11) { - styledValue_buf.selector = 11; - styledValue_buf.value11 = valueDeserializer.readUserDataSpan(); - } - else if (styledValue_buf_selector == 12) { - styledValue_buf.selector = 12; - styledValue_buf.value12 = valueDeserializer.readBackgroundColorStyle(); + value.styledValue = valueDeserializer.readStyledStringValue(); + return value; + } + Ark_TextBackgroundStyle readTextBackgroundStyle() + { + Ark_TextBackgroundStyle value = {}; + Deserializer& valueDeserializer = *this; + const auto color_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ResourceColor color_buf = {}; + color_buf.tag = color_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (color_buf_runtimeType)) + { + const Ark_Int8 color_buf__selector = valueDeserializer.readInt8(); + Ark_ResourceColor color_buf_ = {}; + color_buf_.selector = color_buf__selector; + if (color_buf__selector == 0) { + color_buf_.selector = 0; + color_buf_.value0 = static_cast(valueDeserializer.readInt32()); + } + else if (color_buf__selector == 1) { + color_buf_.selector = 1; + color_buf_.value1 = static_cast(valueDeserializer.readNumber()); + } + else if (color_buf__selector == 2) { + color_buf_.selector = 2; + color_buf_.value2 = static_cast(valueDeserializer.readString()); + } + else if (color_buf__selector == 3) { + color_buf_.selector = 3; + color_buf_.value3 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); + } + color_buf.value = static_cast(color_buf_); } - else { - throw "One of the branches for styledValue_buf has to be chosen through deserialisation."; + value.color = color_buf; + const auto radius_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_Dimension_BorderRadiuses radius_buf = {}; + radius_buf.tag = radius_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf_runtimeType)) + { + const Ark_Int8 radius_buf__selector = valueDeserializer.readInt8(); + Ark_Union_Dimension_BorderRadiuses radius_buf_ = {}; + radius_buf_.selector = radius_buf__selector; + if (radius_buf__selector == 0) { + radius_buf_.selector = 0; + radius_buf_.value0 = valueDeserializer.readLength(); + } + else if (radius_buf__selector == 1) { + radius_buf_.selector = 1; + Ark_BorderRadiuses radius_buf__u = {}; + const auto radius_buf__u_topLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_topLeft_buf = {}; + radius_buf__u_topLeft_buf.tag = radius_buf__u_topLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.topLeft = radius_buf__u_topLeft_buf; + const auto radius_buf__u_topRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_topRight_buf = {}; + radius_buf__u_topRight_buf.tag = radius_buf__u_topRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.topRight = radius_buf__u_topRight_buf; + const auto radius_buf__u_bottomLeft_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_bottomLeft_buf = {}; + radius_buf__u_bottomLeft_buf.tag = radius_buf__u_bottomLeft_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.bottomLeft = radius_buf__u_bottomLeft_buf; + const auto radius_buf__u_bottomRight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Length radius_buf__u_bottomRight_buf = {}; + radius_buf__u_bottomRight_buf.tag = radius_buf__u_bottomRight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf.value = valueDeserializer.readLength(); + } + radius_buf__u.bottomRight = radius_buf__u_bottomRight_buf; + radius_buf_.value1 = radius_buf__u; + } + else { + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); + } + radius_buf.value = static_cast(radius_buf_); } - value.styledValue = static_cast(styledValue_buf); + value.radius = radius_buf; return value; } + Ark_CustomSpan readCustomSpan() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ImageAttachment readImageAttachment() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_WaterFlowSections readWaterFlowSections() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_Scroller readScroller() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SectionOptions readSectionOptions() { @@ -74800,7 +76223,7 @@ class Deserializer : public DeserializerBase { margin_buf_.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for margin_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for margin_buf_ has to be chosen through deserialisation."); } margin_buf.value = static_cast(margin_buf_); } @@ -74848,7 +76271,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -74891,7 +76314,7 @@ class Deserializer : public DeserializerBase { shown_buf.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for shown_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shown_buf has to be chosen through deserialisation."); } value.shown = static_cast(shown_buf); const Ark_Int8 hidden_buf_selector = valueDeserializer.readInt8(); @@ -74910,7 +76333,7 @@ class Deserializer : public DeserializerBase { hidden_buf.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for hidden_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for hidden_buf has to be chosen through deserialisation."); } value.hidden = static_cast(hidden_buf); const auto switching_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -74934,7 +76357,7 @@ class Deserializer : public DeserializerBase { switching_buf_.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for switching_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for switching_buf_ has to be chosen through deserialisation."); } switching_buf.value = static_cast(switching_buf_); } @@ -74974,7 +76397,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ImageAnalyzerConfig readImageAnalyzerConfig() { @@ -75070,19 +76493,19 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_EventResult readEventResult() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TouchEvent readTouchEvent() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_NativeEmbedInfo readNativeEmbedInfo() { @@ -75221,103 +76644,103 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ControllerHandler readControllerHandler() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ClientAuthenticationHandler readClientAuthenticationHandler() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SslErrorHandler readSslErrorHandler() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WebContextMenuResult readWebContextMenuResult() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WebContextMenuParam readWebContextMenuParam() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ScreenCaptureHandler readScreenCaptureHandler() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_PermissionRequest readPermissionRequest() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_HttpAuthHandler readHttpAuthHandler() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_FullScreenExitHandler readFullScreenExitHandler() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_FileSelectorParam readFileSelectorParam() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_FileSelectorResult readFileSelectorResult() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WebResourceResponse readWebResourceResponse() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WebResourceError readWebResourceError() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ConsoleMessage readConsoleMessage() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_JsResult readJsResult() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_JsGeolocation readJsGeolocation() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ScreenCaptureConfig readScreenCaptureConfig() { @@ -75330,7 +76753,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TimePickerDialogOptions readTimePickerDialogOptions() { @@ -75476,7 +76899,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -75538,7 +76961,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -75573,7 +76996,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TextPickerDialogOptions readTextPickerDialogOptions() { @@ -75638,7 +77061,7 @@ class Deserializer : public DeserializerBase { range_buf.value4 = range_buf_u; } else { - throw "One of the branches for range_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for range_buf has to be chosen through deserialisation."); } value.range = static_cast(range_buf); const auto value_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -75665,7 +77088,7 @@ class Deserializer : public DeserializerBase { value_buf_.value1 = value_buf__u; } else { - throw "One of the branches for value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf_ has to be chosen through deserialisation."); } value_buf.value = static_cast(value_buf_); } @@ -75694,7 +77117,7 @@ class Deserializer : public DeserializerBase { selected_buf_.value1 = selected_buf__u; } else { - throw "One of the branches for selected_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selected_buf_ has to be chosen through deserialisation."); } selected_buf.value = static_cast(selected_buf_); } @@ -75716,7 +77139,7 @@ class Deserializer : public DeserializerBase { defaultPickerItemHeight_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for defaultPickerItemHeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for defaultPickerItemHeight_buf_ has to be chosen through deserialisation."); } defaultPickerItemHeight_buf.value = static_cast(defaultPickerItemHeight_buf_); } @@ -75845,7 +77268,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -75907,7 +77330,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -75967,7 +77390,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -76055,7 +77478,7 @@ class Deserializer : public DeserializerBase { typing_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for typing_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for typing_buf_ has to be chosen through deserialisation."); } typing_buf.value = static_cast(typing_buf_); } @@ -76085,7 +77508,7 @@ class Deserializer : public DeserializerBase { normal_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for normal_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for normal_buf_ has to be chosen through deserialisation."); } normal_buf.value = static_cast(normal_buf_); } @@ -76115,7 +77538,7 @@ class Deserializer : public DeserializerBase { error_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for error_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for error_buf_ has to be chosen through deserialisation."); } error_buf.value = static_cast(error_buf_); } @@ -76145,7 +77568,7 @@ class Deserializer : public DeserializerBase { disable_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for disable_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for disable_buf_ has to be chosen through deserialisation."); } disable_buf.value = static_cast(disable_buf_); } @@ -76156,7 +77579,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SelectionOptions readSelectionOptions() { @@ -76210,7 +77633,7 @@ class Deserializer : public DeserializerBase { content_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for content_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_buf has to be chosen through deserialisation."); } value.content = static_cast(content_buf); const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -76230,7 +77653,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -76242,13 +77665,13 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TextAreaController readTextAreaController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SelectionMenuOptions readSelectionMenuOptions() { @@ -76298,7 +77721,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_BottomTabBarStyle readBottomTabBarStyle() { @@ -76326,7 +77749,7 @@ class Deserializer : public DeserializerBase { _icon_buf__u.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for _icon_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _icon_buf__u has to be chosen through deserialisation."); } _icon_buf_.value0 = static_cast(_icon_buf__u); } @@ -76335,7 +77758,7 @@ class Deserializer : public DeserializerBase { _icon_buf_.value1 = valueDeserializer.readTabBarSymbol(); } else { - throw "One of the branches for _icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _icon_buf_ has to be chosen through deserialisation."); } _icon_buf.value = static_cast(_icon_buf_); } @@ -76357,7 +77780,7 @@ class Deserializer : public DeserializerBase { _text_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for _text_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _text_buf_ has to be chosen through deserialisation."); } _text_buf.value = static_cast(_text_buf_); } @@ -76424,7 +77847,7 @@ class Deserializer : public DeserializerBase { _padding_buf_.value2 = valueDeserializer.readLocalizedPadding(); } else { - throw "One of the branches for _padding_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _padding_buf_ has to be chosen through deserialisation."); } _padding_buf.value = static_cast(_padding_buf_); } @@ -76496,7 +77919,7 @@ class Deserializer : public DeserializerBase { _content_buf_.value2 = valueDeserializer.readComponentContent(); } else { - throw "One of the branches for _content_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _content_buf_ has to be chosen through deserialisation."); } _content_buf.value = static_cast(_content_buf_); } @@ -76588,7 +78011,7 @@ class Deserializer : public DeserializerBase { _padding_buf__u.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for _padding_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _padding_buf__u has to be chosen through deserialisation."); } _padding_buf_.value0 = static_cast(_padding_buf__u); } @@ -76597,7 +78020,7 @@ class Deserializer : public DeserializerBase { _padding_buf_.value1 = valueDeserializer.readLocalizedPadding(); } else { - throw "One of the branches for _padding_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _padding_buf_ has to be chosen through deserialisation."); } _padding_buf.value = static_cast(_padding_buf_); } @@ -76633,7 +78056,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -76655,7 +78078,7 @@ class Deserializer : public DeserializerBase { text_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for text_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for text_buf_ has to be chosen through deserialisation."); } text_buf.value = static_cast(text_buf_); } @@ -76731,7 +78154,7 @@ class Deserializer : public DeserializerBase { inactiveColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for inactiveColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for inactiveColor_buf_ has to be chosen through deserialisation."); } inactiveColor_buf.value = static_cast(inactiveColor_buf_); } @@ -76779,7 +78202,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SymbolEffect readSymbolEffect() { @@ -76863,7 +78286,7 @@ class Deserializer : public DeserializerBase { _fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for _fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _fontColor_buf_ has to be chosen through deserialisation."); } _fontColor_buf.value = static_cast(_fontColor_buf_); } @@ -76893,7 +78316,7 @@ class Deserializer : public DeserializerBase { _selectedFontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for _selectedFontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _selectedFontColor_buf_ has to be chosen through deserialisation."); } _selectedFontColor_buf.value = static_cast(_selectedFontColor_buf_); } @@ -77033,7 +78456,7 @@ class Deserializer : public DeserializerBase { _color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for _color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _color_buf_ has to be chosen through deserialisation."); } _color_buf.value = static_cast(_color_buf_); } @@ -77063,7 +78486,7 @@ class Deserializer : public DeserializerBase { _selectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for _selectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for _selectedColor_buf_ has to be chosen through deserialisation."); } _selectedColor_buf.value = static_cast(_selectedColor_buf_); } @@ -77094,7 +78517,7 @@ class Deserializer : public DeserializerBase { minSize_buf.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for minSize_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for minSize_buf has to be chosen through deserialisation."); } value.minSize = static_cast(minSize_buf); return value; @@ -77152,7 +78575,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -77190,7 +78613,7 @@ class Deserializer : public DeserializerBase { arrowColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for arrowColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for arrowColor_buf_ has to be chosen through deserialisation."); } arrowColor_buf.value = static_cast(arrowColor_buf_); } @@ -77310,7 +78733,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -77373,7 +78796,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_EdgeEffectOptions readEdgeEffectOptions() { @@ -77441,7 +78864,7 @@ class Deserializer : public DeserializerBase { xOffset_buf.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for xOffset_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for xOffset_buf has to be chosen through deserialisation."); } value.xOffset = static_cast(xOffset_buf); const Ark_Int8 yOffset_buf_selector = valueDeserializer.readInt8(); @@ -77456,7 +78879,7 @@ class Deserializer : public DeserializerBase { yOffset_buf.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for yOffset_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for yOffset_buf has to be chosen through deserialisation."); } value.yOffset = static_cast(yOffset_buf); const auto animation_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -77476,7 +78899,7 @@ class Deserializer : public DeserializerBase { animation_buf_.value1 = valueDeserializer.readBoolean(); } else { - throw "One of the branches for animation_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for animation_buf_ has to be chosen through deserialisation."); } animation_buf.value = static_cast(animation_buf_); } @@ -77487,13 +78910,13 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_RichEditorController readRichEditorController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_PlaceholderStyle readPlaceholderStyle() { @@ -77532,7 +78955,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -77569,7 +78992,7 @@ class Deserializer : public DeserializerBase { valueResourceStr_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for valueResourceStr_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for valueResourceStr_buf_ has to be chosen through deserialisation."); } valueResourceStr_buf.value = static_cast(valueResourceStr_buf_); } @@ -77909,7 +79332,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -77931,7 +79354,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -77953,7 +79376,7 @@ class Deserializer : public DeserializerBase { radiusWidth_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for radiusWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radiusWidth_buf_ has to be chosen through deserialisation."); } radiusWidth_buf.value = static_cast(radiusWidth_buf_); } @@ -77975,7 +79398,7 @@ class Deserializer : public DeserializerBase { radiusHeight_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for radiusHeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radiusHeight_buf_ has to be chosen through deserialisation."); } radiusHeight_buf.value = static_cast(radiusHeight_buf_); } @@ -78003,7 +79426,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -78025,7 +79448,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -78065,14 +79488,14 @@ class Deserializer : public DeserializerBase { radius_buf__u_buf.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for radius_buf__u_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf__u_buf has to be chosen through deserialisation."); } radius_buf__u.array[radius_buf__u_i] = static_cast(radius_buf__u_buf); } radius_buf_.value2 = radius_buf__u; } else { - throw "One of the branches for radius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); } radius_buf.value = static_cast(radius_buf_); } @@ -78154,7 +79577,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -78208,7 +79631,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -78302,7 +79725,7 @@ class Deserializer : public DeserializerBase { strokeRadius_buf_.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for strokeRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for strokeRadius_buf_ has to be chosen through deserialisation."); } strokeRadius_buf.value = static_cast(strokeRadius_buf_); } @@ -78346,7 +79769,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -78369,11 +79792,50 @@ class Deserializer : public DeserializerBase { value.enableWaveEffect = enableWaveEffect_buf; return value; } + Ark_NavContentInfo readNavContentInfo() + { + Ark_NavContentInfo value = {}; + Deserializer& valueDeserializer = *this; + const auto name_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_String name_buf = {}; + name_buf.tag = name_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (name_buf_runtimeType)) + { + name_buf.value = static_cast(valueDeserializer.readString()); + } + value.name = name_buf; + value.index = static_cast(valueDeserializer.readNumber()); + const auto mode_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_NavDestinationMode mode_buf = {}; + mode_buf.tag = mode_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (mode_buf_runtimeType)) + { + mode_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.mode = mode_buf; + const auto param_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_CustomObject param_buf = {}; + param_buf.tag = param_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (param_buf_runtimeType)) + { + param_buf.value = static_cast(valueDeserializer.readCustomObject("Object")); + } + value.param = param_buf; + const auto navDestinationId_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_String navDestinationId_buf = {}; + navDestinationId_buf.tag = navDestinationId_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (navDestinationId_buf_runtimeType)) + { + navDestinationId_buf.value = static_cast(valueDeserializer.readString()); + } + value.navDestinationId = navDestinationId_buf; + return value; + } Ark_NavDestinationContext readNavDestinationContext() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_NavigationInterception readNavigationInterception() { @@ -78456,7 +79918,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -78508,7 +79970,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -78588,7 +80050,7 @@ class Deserializer : public DeserializerBase { height_buf.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for height_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf has to be chosen through deserialisation."); } value.height = static_cast(height_buf); return value; @@ -78609,7 +80071,7 @@ class Deserializer : public DeserializerBase { main_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for main_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for main_buf has to be chosen through deserialisation."); } value.main = static_cast(main_buf); const Ark_Int8 sub_buf_selector = valueDeserializer.readInt8(); @@ -78624,7 +80086,7 @@ class Deserializer : public DeserializerBase { sub_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for sub_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for sub_buf has to be chosen through deserialisation."); } value.sub = static_cast(sub_buf); return value; @@ -78633,7 +80095,7 @@ class Deserializer : public DeserializerBase { { Ark_SystemBarStyle value = {}; Deserializer& valueDeserializer = *this; - value.__SystemBarStyleStub = static_cast(valueDeserializer.readString()); + value._SystemBarStyleStub = static_cast(valueDeserializer.readString()); return value; } Ark_MenuItemOptions readMenuItemOptions() @@ -78657,7 +80119,7 @@ class Deserializer : public DeserializerBase { startIcon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for startIcon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for startIcon_buf_ has to be chosen through deserialisation."); } startIcon_buf.value = static_cast(startIcon_buf_); } @@ -78687,7 +80149,7 @@ class Deserializer : public DeserializerBase { content_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for content_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_buf_ has to be chosen through deserialisation."); } content_buf.value = static_cast(content_buf_); } @@ -78709,7 +80171,7 @@ class Deserializer : public DeserializerBase { endIcon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for endIcon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for endIcon_buf_ has to be chosen through deserialisation."); } endIcon_buf.value = static_cast(endIcon_buf_); } @@ -78739,7 +80201,7 @@ class Deserializer : public DeserializerBase { labelInfo_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for labelInfo_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for labelInfo_buf_ has to be chosen through deserialisation."); } labelInfo_buf.value = static_cast(labelInfo_buf_); } @@ -78791,7 +80253,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -78833,14 +80295,14 @@ class Deserializer : public DeserializerBase { { Ark_DrawableDescriptor value = {}; Deserializer& valueDeserializer = *this; - value.__DrawableDescriptorStub = static_cast(valueDeserializer.readString()); + value._DrawableDescriptorStub = static_cast(valueDeserializer.readString()); return value; } Ark_Matrix2D readMatrix2D() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ListDividerOptions readListDividerOptions() { @@ -78872,7 +80334,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -78913,13 +80375,14 @@ class Deserializer : public DeserializerBase { { Ark_DrawingColorFilter value = {}; Deserializer& valueDeserializer = *this; - value.__DrawingColorFilterStub = static_cast(valueDeserializer.readString()); + value._DrawingColorFilterStub = static_cast(valueDeserializer.readString()); return value; } Ark_ColorFilter readColorFilter() { - Ark_ColorFilter value = {}; - return value; + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); } Ark_BreakPoints readBreakPoints() { @@ -78954,7 +80417,7 @@ class Deserializer : public DeserializerBase { { Ark_WindowStatusType value = {}; Deserializer& valueDeserializer = *this; - value.__WindowStatusTypeStub = static_cast(valueDeserializer.readString()); + value._WindowStatusTypeStub = static_cast(valueDeserializer.readString()); return value; } Ark_FlexSpaceOptions readFlexSpaceOptions() @@ -79179,7 +80642,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -79241,7 +80704,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -79272,11 +80735,6 @@ class Deserializer : public DeserializerBase { value.hoverModeArea = hoverModeArea_buf; return value; } - Ark_LinearGradient_data_panel readLinearGradient_data_panel() - { - Ark_LinearGradient_data_panel value = {}; - return value; - } Ark_AnimateParam readAnimateParam() { Ark_AnimateParam value = {}; @@ -79318,7 +80776,7 @@ class Deserializer : public DeserializerBase { curve_buf_.value2 = static_cast(valueDeserializer.readICurve()); } else { - throw "One of the branches for curve_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for curve_buf_ has to be chosen through deserialisation."); } curve_buf.value = static_cast(curve_buf_); } @@ -79418,7 +80876,7 @@ class Deserializer : public DeserializerBase { { Ark_RectShape value = {}; Deserializer& valueDeserializer = *this; - value.__RectShapeStub = static_cast(valueDeserializer.readString()); + value._RectShapeStub = static_cast(valueDeserializer.readString()); return value; } Ark_ConstraintSizeOptions readConstraintSizeOptions() @@ -79502,7 +80960,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -79556,7 +81014,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -79594,7 +81052,7 @@ class Deserializer : public DeserializerBase { maskColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for maskColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for maskColor_buf_ has to be chosen through deserialisation."); } maskColor_buf.value = static_cast(maskColor_buf_); } @@ -79617,7 +81075,7 @@ class Deserializer : public DeserializerBase { detents_buf__value0_buf.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for detents_buf__value0_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for detents_buf__value0_buf has to be chosen through deserialisation."); } detents_buf_.value0 = static_cast(detents_buf__value0_buf); const auto detents_buf__value1_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -79637,7 +81095,7 @@ class Deserializer : public DeserializerBase { detents_buf__value1_buf_.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for detents_buf__value1_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for detents_buf__value1_buf_ has to be chosen through deserialisation."); } detents_buf__value1_buf.value = static_cast(detents_buf__value1_buf_); } @@ -79659,7 +81117,7 @@ class Deserializer : public DeserializerBase { detents_buf__value2_buf_.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for detents_buf__value2_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for detents_buf__value2_buf_ has to be chosen through deserialisation."); } detents_buf__value2_buf.value = static_cast(detents_buf__value2_buf_); } @@ -79692,7 +81150,7 @@ class Deserializer : public DeserializerBase { showClose_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for showClose_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for showClose_buf_ has to be chosen through deserialisation."); } showClose_buf.value = static_cast(showClose_buf_); } @@ -79722,7 +81180,7 @@ class Deserializer : public DeserializerBase { title_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for title_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf_ has to be chosen through deserialisation."); } title_buf.value = static_cast(title_buf_); } @@ -79821,7 +81279,7 @@ class Deserializer : public DeserializerBase { borderWidth_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for borderWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderWidth_buf_ has to be chosen through deserialisation."); } borderWidth_buf.value = static_cast(borderWidth_buf_); } @@ -79856,7 +81314,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u has to be chosen through deserialisation."); } borderColor_buf_.value0 = static_cast(borderColor_buf__u); } @@ -79888,7 +81346,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_top_buf.value = static_cast(borderColor_buf__u_top_buf_); } @@ -79918,7 +81376,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_right_buf.value = static_cast(borderColor_buf__u_right_buf_); } @@ -79948,7 +81406,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_bottom_buf.value = static_cast(borderColor_buf__u_bottom_buf_); } @@ -79978,7 +81436,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_left_buf.value = static_cast(borderColor_buf__u_left_buf_); } @@ -79990,7 +81448,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -80045,7 +81503,7 @@ class Deserializer : public DeserializerBase { borderStyle_buf_.value1 = borderStyle_buf__u; } else { - throw "One of the branches for borderStyle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderStyle_buf_ has to be chosen through deserialisation."); } borderStyle_buf.value = static_cast(borderStyle_buf_); } @@ -80067,7 +81525,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -80167,7 +81625,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -80283,7 +81741,7 @@ class Deserializer : public DeserializerBase { preview_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for preview_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for preview_buf_ has to be chosen through deserialisation."); } preview_buf.value = static_cast(preview_buf_); } @@ -80342,7 +81800,7 @@ class Deserializer : public DeserializerBase { borderRadius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for borderRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); } borderRadius_buf.value = static_cast(borderRadius_buf_); } @@ -80453,7 +81911,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -80537,7 +81995,7 @@ class Deserializer : public DeserializerBase { preview_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for preview_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for preview_buf_ has to be chosen through deserialisation."); } preview_buf.value = static_cast(preview_buf_); } @@ -80596,7 +82054,7 @@ class Deserializer : public DeserializerBase { borderRadius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for borderRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderRadius_buf_ has to be chosen through deserialisation."); } borderRadius_buf.value = static_cast(borderRadius_buf_); } @@ -80707,7 +82165,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -80753,7 +82211,7 @@ class Deserializer : public DeserializerBase { title_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf_ has to be chosen through deserialisation."); } title_buf.value = static_cast(title_buf_); } @@ -80806,7 +82264,7 @@ class Deserializer : public DeserializerBase { maskColor_buf_.value3 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for maskColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for maskColor_buf_ has to be chosen through deserialisation."); } maskColor_buf.value = static_cast(maskColor_buf_); } @@ -80836,7 +82294,7 @@ class Deserializer : public DeserializerBase { popupColor_buf_.value3 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for popupColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for popupColor_buf_ has to be chosen through deserialisation."); } popupColor_buf.value = static_cast(popupColor_buf_); } @@ -80916,13 +82374,13 @@ class Deserializer : public DeserializerBase { mask_buf__u_color_buf.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation."); } mask_buf__u.color = static_cast(mask_buf__u_color_buf); mask_buf_.value1 = mask_buf__u; } else { - throw "One of the branches for mask_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for mask_buf_ has to be chosen through deserialisation."); } mask_buf.value = static_cast(mask_buf_); } @@ -81000,7 +82458,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -81046,7 +82504,7 @@ class Deserializer : public DeserializerBase { onWillDismiss_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_DismissPopupAction_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_DismissPopupAction_Void))))}; } else { - throw "One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation."); } onWillDismiss_buf.value = static_cast(onWillDismiss_buf_); } @@ -81171,13 +82629,13 @@ class Deserializer : public DeserializerBase { mask_buf__u_color_buf.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation."); } mask_buf__u.color = static_cast(mask_buf__u_color_buf); mask_buf_.value1 = mask_buf__u; } else { - throw "One of the branches for mask_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for mask_buf_ has to be chosen through deserialisation."); } mask_buf.value = static_cast(mask_buf_); } @@ -81239,7 +82697,7 @@ class Deserializer : public DeserializerBase { popupColor_buf_.value3 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for popupColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for popupColor_buf_ has to be chosen through deserialisation."); } popupColor_buf.value = static_cast(popupColor_buf_); } @@ -81309,7 +82767,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -81347,7 +82805,7 @@ class Deserializer : public DeserializerBase { onWillDismiss_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_DismissPopupAction_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_DismissPopupAction_Void))))}; } else { - throw "One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation."); } onWillDismiss_buf.value = static_cast(onWillDismiss_buf_); } @@ -81396,7 +82854,7 @@ class Deserializer : public DeserializerBase { { Ark_Blender value = {}; Deserializer& valueDeserializer = *this; - value.__BlenderStub = static_cast(valueDeserializer.readString()); + value._BlenderStub = static_cast(valueDeserializer.readString()); return value; } Ark_OverlayOptions readOverlayOptions() @@ -81471,7 +82929,7 @@ class Deserializer : public DeserializerBase { mode_buf_.value1 = mode_buf__u; } else { - throw "One of the branches for mode_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for mode_buf_ has to be chosen through deserialisation."); } mode_buf.value = static_cast(mode_buf_); } @@ -81501,7 +82959,7 @@ class Deserializer : public DeserializerBase { numberBadge_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for numberBadge_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for numberBadge_buf_ has to be chosen through deserialisation."); } numberBadge_buf.value = static_cast(numberBadge_buf_); } @@ -81541,7 +82999,7 @@ class Deserializer : public DeserializerBase { curve_buf_.value2 = static_cast(valueDeserializer.readICurve()); } else { - throw "One of the branches for curve_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for curve_buf_ has to be chosen through deserialisation."); } curve_buf.value = static_cast(curve_buf_); } @@ -81640,28 +83098,28 @@ class Deserializer : public DeserializerBase { { Ark_PathShape value = {}; Deserializer& valueDeserializer = *this; - value.__PathShapeStub = static_cast(valueDeserializer.readString()); + value._PathShapeStub = static_cast(valueDeserializer.readString()); return value; } Ark_EllipseShape readEllipseShape() { Ark_EllipseShape value = {}; Deserializer& valueDeserializer = *this; - value.__EllipseShapeStub = static_cast(valueDeserializer.readString()); + value._EllipseShapeStub = static_cast(valueDeserializer.readString()); return value; } Ark_CircleShape readCircleShape() { Ark_CircleShape value = {}; Deserializer& valueDeserializer = *this; - value.__CircleShapeStub = static_cast(valueDeserializer.readString()); + value._CircleShapeStub = static_cast(valueDeserializer.readString()); return value; } Ark_ProgressMask readProgressMask() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_DragItemInfo readDragItemInfo() { @@ -81832,18 +83290,11 @@ class Deserializer : public DeserializerBase { value.rotate = rotate_buf; return value; } - Ark_IntentionCode readIntentionCode() - { - Ark_IntentionCode value = {}; - Deserializer& valueDeserializer = *this; - value.__IntentionCodeStub = static_cast(valueDeserializer.readString()); - return value; - } Ark_DrawingLattice readDrawingLattice() { Ark_DrawingLattice value = {}; Deserializer& valueDeserializer = *this; - value.__DrawingLatticeStub = static_cast(valueDeserializer.readString()); + value._DrawingLatticeStub = static_cast(valueDeserializer.readString()); return value; } Ark_RectResult readRectResult() @@ -81860,13 +83311,20 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); + } + Ark_IntentionCode readIntentionCode() + { + Ark_IntentionCode value = {}; + Deserializer& valueDeserializer = *this; + value._IntentionCodeStub = static_cast(valueDeserializer.readString()); + return value; } Ark_UnifiedData readUnifiedData() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ColumnSplitDividerStyle readColumnSplitDividerStyle() { @@ -81923,7 +83381,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -81934,34 +83392,31 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_CanvasRenderingContext2D readCanvasRenderingContext2D() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ImageBitmap readImageBitmap() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_ImageData readImageData() { - Ark_ImageData value = {}; Deserializer& valueDeserializer = *this; - value.data = static_cast(valueDeserializer.readBuffer()); - value.height = static_cast(valueDeserializer.readNumber()); - value.width = static_cast(valueDeserializer.readNumber()); - return value; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); } Ark_Path2D readPath2D() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_CalendarDialogOptions readCalendarDialogOptions() { @@ -81984,7 +83439,7 @@ class Deserializer : public DeserializerBase { hintRadius_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for hintRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for hintRadius_buf_ has to be chosen through deserialisation."); } hintRadius_buf.value = static_cast(hintRadius_buf_); } @@ -82046,7 +83501,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -82124,7 +83579,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -82151,7 +83606,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_MonthData readMonthData() { @@ -82198,7 +83653,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -82220,7 +83675,7 @@ class Deserializer : public DeserializerBase { fontSize_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for fontSize_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontSize_buf_ has to be chosen through deserialisation."); } fontSize_buf.value = static_cast(fontSize_buf_); } @@ -82242,7 +83697,7 @@ class Deserializer : public DeserializerBase { badgeSize_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for badgeSize_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for badgeSize_buf_ has to be chosen through deserialisation."); } badgeSize_buf.value = static_cast(badgeSize_buf_); } @@ -82272,7 +83727,7 @@ class Deserializer : public DeserializerBase { badgeColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for badgeColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for badgeColor_buf_ has to be chosen through deserialisation."); } badgeColor_buf.value = static_cast(badgeColor_buf_); } @@ -82302,7 +83757,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -82336,28 +83791,13 @@ class Deserializer : public DeserializerBase { fontWeight_buf_.value2 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for fontWeight_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontWeight_buf_ has to be chosen through deserialisation."); } fontWeight_buf.value = static_cast(fontWeight_buf_); } value.fontWeight = fontWeight_buf; return value; } - Ark_ScrollMotion readScrollMotion() - { - Ark_ScrollMotion value = {}; - return value; - } - Ark_FrictionMotion readFrictionMotion() - { - Ark_FrictionMotion value = {}; - return value; - } - Ark_SpringMotion readSpringMotion() - { - Ark_SpringMotion value = {}; - return value; - } Ark_AlertDialogParamWithOptions readAlertDialogParamWithOptions() { Ark_AlertDialogParamWithOptions value = {}; @@ -82379,7 +83819,7 @@ class Deserializer : public DeserializerBase { title_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf_ has to be chosen through deserialisation."); } title_buf.value = static_cast(title_buf_); } @@ -82401,7 +83841,7 @@ class Deserializer : public DeserializerBase { subtitle_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for subtitle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for subtitle_buf_ has to be chosen through deserialisation."); } subtitle_buf.value = static_cast(subtitle_buf_); } @@ -82418,7 +83858,7 @@ class Deserializer : public DeserializerBase { message_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for message_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for message_buf has to be chosen through deserialisation."); } value.message = static_cast(message_buf); const auto autoCancel_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -82513,7 +83953,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -82596,7 +84036,7 @@ class Deserializer : public DeserializerBase { cornerRadius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."); } cornerRadius_buf.value = static_cast(cornerRadius_buf_); } @@ -82671,7 +84111,7 @@ class Deserializer : public DeserializerBase { borderWidth_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for borderWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderWidth_buf_ has to be chosen through deserialisation."); } borderWidth_buf.value = static_cast(borderWidth_buf_); } @@ -82706,7 +84146,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u has to be chosen through deserialisation."); } borderColor_buf_.value0 = static_cast(borderColor_buf__u); } @@ -82738,7 +84178,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_top_buf.value = static_cast(borderColor_buf__u_top_buf_); } @@ -82768,7 +84208,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_right_buf.value = static_cast(borderColor_buf__u_right_buf_); } @@ -82798,7 +84238,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_bottom_buf.value = static_cast(borderColor_buf__u_bottom_buf_); } @@ -82828,7 +84268,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_left_buf.value = static_cast(borderColor_buf__u_left_buf_); } @@ -82840,7 +84280,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -82895,7 +84335,7 @@ class Deserializer : public DeserializerBase { borderStyle_buf_.value1 = borderStyle_buf__u; } else { - throw "One of the branches for borderStyle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderStyle_buf_ has to be chosen through deserialisation."); } borderStyle_buf.value = static_cast(borderStyle_buf_); } @@ -82917,7 +84357,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -82985,7 +84425,7 @@ class Deserializer : public DeserializerBase { title_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf_ has to be chosen through deserialisation."); } title_buf.value = static_cast(title_buf_); } @@ -83007,7 +84447,7 @@ class Deserializer : public DeserializerBase { subtitle_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for subtitle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for subtitle_buf_ has to be chosen through deserialisation."); } subtitle_buf.value = static_cast(subtitle_buf_); } @@ -83024,7 +84464,7 @@ class Deserializer : public DeserializerBase { message_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for message_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for message_buf has to be chosen through deserialisation."); } value.message = static_cast(message_buf); const auto autoCancel_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -83119,7 +84559,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -83202,7 +84642,7 @@ class Deserializer : public DeserializerBase { cornerRadius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."); } cornerRadius_buf.value = static_cast(cornerRadius_buf_); } @@ -83277,7 +84717,7 @@ class Deserializer : public DeserializerBase { borderWidth_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for borderWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderWidth_buf_ has to be chosen through deserialisation."); } borderWidth_buf.value = static_cast(borderWidth_buf_); } @@ -83312,7 +84752,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u has to be chosen through deserialisation."); } borderColor_buf_.value0 = static_cast(borderColor_buf__u); } @@ -83344,7 +84784,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_top_buf.value = static_cast(borderColor_buf__u_top_buf_); } @@ -83374,7 +84814,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_right_buf.value = static_cast(borderColor_buf__u_right_buf_); } @@ -83404,7 +84844,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_bottom_buf.value = static_cast(borderColor_buf__u_bottom_buf_); } @@ -83434,7 +84874,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_left_buf.value = static_cast(borderColor_buf__u_left_buf_); } @@ -83446,7 +84886,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -83501,7 +84941,7 @@ class Deserializer : public DeserializerBase { borderStyle_buf_.value1 = borderStyle_buf__u; } else { - throw "One of the branches for borderStyle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderStyle_buf_ has to be chosen through deserialisation."); } borderStyle_buf.value = static_cast(borderStyle_buf_); } @@ -83523,7 +84963,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -83577,7 +85017,7 @@ class Deserializer : public DeserializerBase { title_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf_ has to be chosen through deserialisation."); } title_buf.value = static_cast(title_buf_); } @@ -83599,7 +85039,7 @@ class Deserializer : public DeserializerBase { subtitle_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for subtitle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for subtitle_buf_ has to be chosen through deserialisation."); } subtitle_buf.value = static_cast(subtitle_buf_); } @@ -83616,7 +85056,7 @@ class Deserializer : public DeserializerBase { message_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for message_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for message_buf has to be chosen through deserialisation."); } value.message = static_cast(message_buf); const auto autoCancel_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -83711,7 +85151,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -83794,7 +85234,7 @@ class Deserializer : public DeserializerBase { cornerRadius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."); } cornerRadius_buf.value = static_cast(cornerRadius_buf_); } @@ -83869,7 +85309,7 @@ class Deserializer : public DeserializerBase { borderWidth_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for borderWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderWidth_buf_ has to be chosen through deserialisation."); } borderWidth_buf.value = static_cast(borderWidth_buf_); } @@ -83904,7 +85344,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u has to be chosen through deserialisation."); } borderColor_buf_.value0 = static_cast(borderColor_buf__u); } @@ -83936,7 +85376,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_top_buf.value = static_cast(borderColor_buf__u_top_buf_); } @@ -83966,7 +85406,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_right_buf.value = static_cast(borderColor_buf__u_right_buf_); } @@ -83996,7 +85436,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_bottom_buf.value = static_cast(borderColor_buf__u_bottom_buf_); } @@ -84026,7 +85466,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_left_buf.value = static_cast(borderColor_buf__u_left_buf_); } @@ -84038,7 +85478,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -84093,7 +85533,7 @@ class Deserializer : public DeserializerBase { borderStyle_buf_.value1 = borderStyle_buf__u; } else { - throw "One of the branches for borderStyle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderStyle_buf_ has to be chosen through deserialisation."); } borderStyle_buf.value = static_cast(borderStyle_buf_); } @@ -84115,7 +85555,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -84170,7 +85610,7 @@ class Deserializer : public DeserializerBase { title_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf has to be chosen through deserialisation."); } value.title = static_cast(title_buf); const auto subtitle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -84190,7 +85630,7 @@ class Deserializer : public DeserializerBase { subtitle_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for subtitle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for subtitle_buf_ has to be chosen through deserialisation."); } subtitle_buf.value = static_cast(subtitle_buf_); } @@ -84207,7 +85647,7 @@ class Deserializer : public DeserializerBase { message_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for message_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for message_buf has to be chosen through deserialisation."); } value.message = static_cast(message_buf); const auto confirm_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -84307,7 +85747,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -84390,7 +85830,7 @@ class Deserializer : public DeserializerBase { cornerRadius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."); } cornerRadius_buf.value = static_cast(cornerRadius_buf_); } @@ -84465,7 +85905,7 @@ class Deserializer : public DeserializerBase { borderWidth_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for borderWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderWidth_buf_ has to be chosen through deserialisation."); } borderWidth_buf.value = static_cast(borderWidth_buf_); } @@ -84500,7 +85940,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u has to be chosen through deserialisation."); } borderColor_buf_.value0 = static_cast(borderColor_buf__u); } @@ -84532,7 +85972,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_top_buf.value = static_cast(borderColor_buf__u_top_buf_); } @@ -84562,7 +86002,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_right_buf.value = static_cast(borderColor_buf__u_right_buf_); } @@ -84592,7 +86032,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_bottom_buf.value = static_cast(borderColor_buf__u_bottom_buf_); } @@ -84622,7 +86062,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_left_buf.value = static_cast(borderColor_buf__u_left_buf_); } @@ -84634,7 +86074,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -84689,7 +86129,7 @@ class Deserializer : public DeserializerBase { borderStyle_buf_.value1 = borderStyle_buf__u; } else { - throw "One of the branches for borderStyle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderStyle_buf_ has to be chosen through deserialisation."); } borderStyle_buf.value = static_cast(borderStyle_buf_); } @@ -84711,7 +86151,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -84738,7 +86178,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SnapshotOptions readSnapshotOptions() { @@ -84767,10 +86207,10 @@ class Deserializer : public DeserializerBase { Ark_DoubleAnimationParam value = {}; Deserializer& valueDeserializer = *this; value.propertyName = static_cast(valueDeserializer.readString()); - value.startValue = static_cast(valueDeserializer.readNumber()); - value.endValue = static_cast(valueDeserializer.readNumber()); - value.duration = static_cast(valueDeserializer.readNumber()); - value.delay = static_cast(valueDeserializer.readNumber()); + value.startValue = valueDeserializer.readFloat32(); + value.endValue = valueDeserializer.readFloat32(); + value.duration = valueDeserializer.readInt32(); + value.delay = valueDeserializer.readInt32(); const Ark_Int8 curve_buf_selector = valueDeserializer.readInt8(); Ark_Union_Curve_String_ICurve curve_buf = {}; curve_buf.selector = curve_buf_selector; @@ -84787,7 +86227,7 @@ class Deserializer : public DeserializerBase { curve_buf.value2 = static_cast(valueDeserializer.readICurve()); } else { - throw "One of the branches for curve_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for curve_buf has to be chosen through deserialisation."); } value.curve = static_cast(curve_buf); const auto onProgress_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -84843,22 +86283,311 @@ class Deserializer : public DeserializerBase { Ark_WithThemeAttribute value = {}; return value; } - Ark_NavigationTransitionProxy readNavigationTransitionProxy() + Ark_IsolatedComponentAttribute readIsolatedComponentAttribute() + { + Ark_IsolatedComponentAttribute value = {}; + return value; + } + Ark_LinearIndicatorController readLinearIndicatorController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } - Ark_IsolatedComponentAttribute readIsolatedComponentAttribute() + Ark_ImageAttachmentInterface readImageAttachmentInterface() { - Ark_IsolatedComponentAttribute value = {}; + Ark_ImageAttachmentInterface value = {}; + Deserializer& valueDeserializer = *this; + value.value = static_cast(valueDeserializer.readPixelMap()); + const auto size_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_SizeOptions size_buf = {}; + size_buf.tag = size_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (size_buf_runtimeType)) + { + size_buf.value = valueDeserializer.readSizeOptions(); + } + value.size = size_buf; + const auto verticalAlign_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ImageSpanAlignment verticalAlign_buf = {}; + verticalAlign_buf.tag = verticalAlign_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (verticalAlign_buf_runtimeType)) + { + verticalAlign_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.verticalAlign = verticalAlign_buf; + const auto objectFit_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ImageFit objectFit_buf = {}; + objectFit_buf.tag = objectFit_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (objectFit_buf_runtimeType)) + { + objectFit_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.objectFit = objectFit_buf; + const auto layoutStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ImageAttachmentLayoutStyle layoutStyle_buf = {}; + layoutStyle_buf.tag = layoutStyle_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (layoutStyle_buf_runtimeType)) + { + layoutStyle_buf.value = valueDeserializer.readImageAttachmentLayoutStyle(); + } + value.layoutStyle = layoutStyle_buf; return value; } - Ark_LinearIndicatorController readLinearIndicatorController() + Ark_MutableStyledString readMutableStyledString() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_UrlStyle readUrlStyle() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); + } + Ark_LineHeightStyle readLineHeightStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ParagraphStyleInterface readParagraphStyleInterface() + { + Ark_ParagraphStyleInterface value = {}; + Deserializer& valueDeserializer = *this; + const auto textAlign_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_TextAlign textAlign_buf = {}; + textAlign_buf.tag = textAlign_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (textAlign_buf_runtimeType)) + { + textAlign_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.textAlign = textAlign_buf; + const auto textIndent_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_LengthMetrics textIndent_buf = {}; + textIndent_buf.tag = textIndent_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (textIndent_buf_runtimeType)) + { + textIndent_buf.value = static_cast(valueDeserializer.readLengthMetrics()); + } + value.textIndent = textIndent_buf; + const auto maxLines_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Number maxLines_buf = {}; + maxLines_buf.tag = maxLines_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (maxLines_buf_runtimeType)) + { + maxLines_buf.value = static_cast(valueDeserializer.readNumber()); + } + value.maxLines = maxLines_buf; + const auto overflow_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_TextOverflow overflow_buf = {}; + overflow_buf.tag = overflow_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (overflow_buf_runtimeType)) + { + overflow_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.overflow = overflow_buf; + const auto wordBreak_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_WordBreak wordBreak_buf = {}; + wordBreak_buf.tag = wordBreak_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (wordBreak_buf_runtimeType)) + { + wordBreak_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.wordBreak = wordBreak_buf; + const auto leadingMargin_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_LengthMetrics_LeadingMarginPlaceholder leadingMargin_buf = {}; + leadingMargin_buf.tag = leadingMargin_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (leadingMargin_buf_runtimeType)) + { + const Ark_Int8 leadingMargin_buf__selector = valueDeserializer.readInt8(); + Ark_Union_LengthMetrics_LeadingMarginPlaceholder leadingMargin_buf_ = {}; + leadingMargin_buf_.selector = leadingMargin_buf__selector; + if (leadingMargin_buf__selector == 0) { + leadingMargin_buf_.selector = 0; + leadingMargin_buf_.value0 = static_cast(valueDeserializer.readLengthMetrics()); + } + else if (leadingMargin_buf__selector == 1) { + leadingMargin_buf_.selector = 1; + leadingMargin_buf_.value1 = valueDeserializer.readLeadingMarginPlaceholder(); + } + else { + INTEROP_FATAL("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation."); + } + leadingMargin_buf.value = static_cast(leadingMargin_buf_); + } + value.leadingMargin = leadingMargin_buf; + return value; + } + Ark_ParagraphStyle readParagraphStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_GestureStyleInterface readGestureStyleInterface() + { + Ark_GestureStyleInterface value = {}; + Deserializer& valueDeserializer = *this; + const auto onClick_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Callback_ClickEvent_Void onClick_buf = {}; + onClick_buf.tag = onClick_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (onClick_buf_runtimeType)) + { + onClick_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_ClickEvent_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_ClickEvent_Void))))}; + } + value.onClick = onClick_buf; + const auto onLongPress_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Callback_GestureEvent_Void onLongPress_buf = {}; + onLongPress_buf.tag = onLongPress_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (onLongPress_buf_runtimeType)) + { + onLongPress_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_GestureEvent_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_GestureEvent_Void))))}; + } + value.onLongPress = onLongPress_buf; + return value; + } + Ark_GestureStyle readGestureStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_BackgroundColorStyle readBackgroundColorStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextShadowStyle readTextShadowStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_LetterSpacingStyle readLetterSpacingStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_BaselineOffsetStyle readBaselineOffsetStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_DecorationStyle readDecorationStyle() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextStyleInterface readTextStyleInterface() + { + Ark_TextStyleInterface value = {}; + Deserializer& valueDeserializer = *this; + const auto fontColor_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ResourceColor fontColor_buf = {}; + fontColor_buf.tag = fontColor_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (fontColor_buf_runtimeType)) + { + const Ark_Int8 fontColor_buf__selector = valueDeserializer.readInt8(); + Ark_ResourceColor fontColor_buf_ = {}; + fontColor_buf_.selector = fontColor_buf__selector; + if (fontColor_buf__selector == 0) { + fontColor_buf_.selector = 0; + fontColor_buf_.value0 = static_cast(valueDeserializer.readInt32()); + } + else if (fontColor_buf__selector == 1) { + fontColor_buf_.selector = 1; + fontColor_buf_.value1 = static_cast(valueDeserializer.readNumber()); + } + else if (fontColor_buf__selector == 2) { + fontColor_buf_.selector = 2; + fontColor_buf_.value2 = static_cast(valueDeserializer.readString()); + } + else if (fontColor_buf__selector == 3) { + fontColor_buf_.selector = 3; + fontColor_buf_.value3 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); + } + fontColor_buf.value = static_cast(fontColor_buf_); + } + value.fontColor = fontColor_buf; + const auto fontFamily_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ResourceStr fontFamily_buf = {}; + fontFamily_buf.tag = fontFamily_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (fontFamily_buf_runtimeType)) + { + const Ark_Int8 fontFamily_buf__selector = valueDeserializer.readInt8(); + Ark_ResourceStr fontFamily_buf_ = {}; + fontFamily_buf_.selector = fontFamily_buf__selector; + if (fontFamily_buf__selector == 0) { + fontFamily_buf_.selector = 0; + fontFamily_buf_.value0 = static_cast(valueDeserializer.readString()); + } + else if (fontFamily_buf__selector == 1) { + fontFamily_buf_.selector = 1; + fontFamily_buf_.value1 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for fontFamily_buf_ has to be chosen through deserialisation."); + } + fontFamily_buf.value = static_cast(fontFamily_buf_); + } + value.fontFamily = fontFamily_buf; + const auto fontSize_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_LengthMetrics fontSize_buf = {}; + fontSize_buf.tag = fontSize_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (fontSize_buf_runtimeType)) + { + fontSize_buf.value = static_cast(valueDeserializer.readLengthMetrics()); + } + value.fontSize = fontSize_buf; + const auto fontWeight_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Union_Number_FontWeight_String fontWeight_buf = {}; + fontWeight_buf.tag = fontWeight_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (fontWeight_buf_runtimeType)) + { + const Ark_Int8 fontWeight_buf__selector = valueDeserializer.readInt8(); + Ark_Union_Number_FontWeight_String fontWeight_buf_ = {}; + fontWeight_buf_.selector = fontWeight_buf__selector; + if (fontWeight_buf__selector == 0) { + fontWeight_buf_.selector = 0; + fontWeight_buf_.value0 = static_cast(valueDeserializer.readNumber()); + } + else if (fontWeight_buf__selector == 1) { + fontWeight_buf_.selector = 1; + fontWeight_buf_.value1 = static_cast(valueDeserializer.readInt32()); + } + else if (fontWeight_buf__selector == 2) { + fontWeight_buf_.selector = 2; + fontWeight_buf_.value2 = static_cast(valueDeserializer.readString()); + } + else { + INTEROP_FATAL("One of the branches for fontWeight_buf_ has to be chosen through deserialisation."); + } + fontWeight_buf.value = static_cast(fontWeight_buf_); + } + value.fontWeight = fontWeight_buf; + const auto fontStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_FontStyle fontStyle_buf = {}; + fontStyle_buf.tag = fontStyle_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (fontStyle_buf_runtimeType)) + { + fontStyle_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.fontStyle = fontStyle_buf; + return value; + } + Ark_TextStyle_styled_string readTextStyle_styled_string() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); } Ark_StyleOptions readStyleOptions() { @@ -84881,72 +86610,14 @@ class Deserializer : public DeserializerBase { } value.length = length_buf; value.styledKey = static_cast(valueDeserializer.readInt32()); - const Ark_Int8 styledValue_buf_selector = valueDeserializer.readInt8(); - Ark_StyledStringValue styledValue_buf = {}; - styledValue_buf.selector = styledValue_buf_selector; - if (styledValue_buf_selector == 0) { - styledValue_buf.selector = 0; - styledValue_buf.value0 = valueDeserializer.readTextStyle_styled_string(); - } - else if (styledValue_buf_selector == 1) { - styledValue_buf.selector = 1; - styledValue_buf.value1 = valueDeserializer.readDecorationStyle(); - } - else if (styledValue_buf_selector == 2) { - styledValue_buf.selector = 2; - styledValue_buf.value2 = valueDeserializer.readBaselineOffsetStyle(); - } - else if (styledValue_buf_selector == 3) { - styledValue_buf.selector = 3; - styledValue_buf.value3 = valueDeserializer.readLetterSpacingStyle(); - } - else if (styledValue_buf_selector == 4) { - styledValue_buf.selector = 4; - styledValue_buf.value4 = valueDeserializer.readTextShadowStyle(); - } - else if (styledValue_buf_selector == 5) { - styledValue_buf.selector = 5; - styledValue_buf.value5 = valueDeserializer.readGestureStyle(); - } - else if (styledValue_buf_selector == 6) { - styledValue_buf.selector = 6; - styledValue_buf.value6 = valueDeserializer.readImageAttachment(); - } - else if (styledValue_buf_selector == 7) { - styledValue_buf.selector = 7; - styledValue_buf.value7 = valueDeserializer.readParagraphStyle(); - } - else if (styledValue_buf_selector == 8) { - styledValue_buf.selector = 8; - styledValue_buf.value8 = valueDeserializer.readLineHeightStyle(); - } - else if (styledValue_buf_selector == 9) { - styledValue_buf.selector = 9; - styledValue_buf.value9 = valueDeserializer.readUrlStyle(); - } - else if (styledValue_buf_selector == 10) { - styledValue_buf.selector = 10; - styledValue_buf.value10 = static_cast(valueDeserializer.readCustomSpan()); - } - else if (styledValue_buf_selector == 11) { - styledValue_buf.selector = 11; - styledValue_buf.value11 = valueDeserializer.readUserDataSpan(); - } - else if (styledValue_buf_selector == 12) { - styledValue_buf.selector = 12; - styledValue_buf.value12 = valueDeserializer.readBackgroundColorStyle(); - } - else { - throw "One of the branches for styledValue_buf has to be chosen through deserialisation."; - } - value.styledValue = static_cast(styledValue_buf); + value.styledValue = valueDeserializer.readStyledStringValue(); return value; } Ark_ReceiveCallback readReceiveCallback() { Ark_ReceiveCallback value = {}; Deserializer& valueDeserializer = *this; - value.__ReceiveCallbackStub = static_cast(valueDeserializer.readString()); + value._ReceiveCallbackStub = static_cast(valueDeserializer.readString()); return value; } Ark_UIExtensionOptions readUIExtensionOptions() @@ -85000,7 +86671,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_WaterFlowOptions readWaterFlowOptions() { @@ -85183,7 +86854,7 @@ class Deserializer : public DeserializerBase { content_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for content_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_buf has to be chosen through deserialisation."); } value.content = static_cast(content_buf); const auto startIcon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -85203,7 +86874,7 @@ class Deserializer : public DeserializerBase { startIcon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for startIcon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for startIcon_buf_ has to be chosen through deserialisation."); } startIcon_buf.value = static_cast(startIcon_buf_); } @@ -85815,7 +87486,7 @@ class Deserializer : public DeserializerBase { controller_buf.value1 = static_cast(valueDeserializer.readWebviewController()); } else { - throw "One of the branches for controller_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for controller_buf has to be chosen through deserialisation."); } value.controller = static_cast(controller_buf); const auto asyncMethodList_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -85859,7 +87530,7 @@ class Deserializer : public DeserializerBase { src_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for src_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_buf has to be chosen through deserialisation."); } value.src = static_cast(src_buf); const Ark_Int8 controller_buf_selector = valueDeserializer.readInt8(); @@ -85874,7 +87545,7 @@ class Deserializer : public DeserializerBase { controller_buf.value1 = static_cast(valueDeserializer.readWebviewController()); } else { - throw "One of the branches for controller_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for controller_buf has to be chosen through deserialisation."); } value.controller = static_cast(controller_buf); const auto renderMode_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -85903,6 +87574,12 @@ 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 = {}; @@ -85953,7 +87630,7 @@ class Deserializer : public DeserializerBase { src_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for src_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_buf_ has to be chosen through deserialisation."); } src_buf.value = static_cast(src_buf_); } @@ -85979,7 +87656,7 @@ class Deserializer : public DeserializerBase { currentProgressRate_buf_.value2 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for currentProgressRate_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for currentProgressRate_buf_ has to be chosen through deserialisation."); } currentProgressRate_buf.value = static_cast(currentProgressRate_buf_); } @@ -86005,7 +87682,7 @@ class Deserializer : public DeserializerBase { previewUri_buf_.value2 = valueDeserializer.readResource(); } else { - throw "One of the branches for previewUri_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for previewUri_buf_ has to be chosen through deserialisation."); } previewUri_buf.value = static_cast(previewUri_buf_); } @@ -86049,7 +87726,7 @@ class Deserializer : public DeserializerBase { pointRadius_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for pointRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for pointRadius_buf_ has to be chosen through deserialisation."); } pointRadius_buf.value = static_cast(pointRadius_buf_); } @@ -86079,7 +87756,7 @@ class Deserializer : public DeserializerBase { unselectedColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for unselectedColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation."); } unselectedColor_buf.value = static_cast(unselectedColor_buf_); } @@ -86109,7 +87786,7 @@ class Deserializer : public DeserializerBase { pointColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for pointColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for pointColor_buf_ has to be chosen through deserialisation."); } pointColor_buf.value = static_cast(pointColor_buf_); } @@ -86131,7 +87808,7 @@ class Deserializer : public DeserializerBase { trackBorderRadius_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for trackBorderRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for trackBorderRadius_buf_ has to be chosen through deserialisation."); } trackBorderRadius_buf.value = static_cast(trackBorderRadius_buf_); } @@ -86153,6 +87830,12 @@ class Deserializer : public DeserializerBase { value.isOn = isOn_buf; return value; } + Ark_TimePickerDialog readTimePickerDialog() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_TimePickerResult readTimePickerResult() { Ark_TimePickerResult value = {}; @@ -86237,7 +87920,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = value_buf_u; } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const Ark_Int8 index_buf_selector = valueDeserializer.readInt8(); @@ -86259,11 +87942,17 @@ class Deserializer : public DeserializerBase { index_buf.value1 = index_buf_u; } else { - throw "One of the branches for index_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for index_buf has to be chosen through deserialisation."); } value.index = static_cast(index_buf); return value; } + Ark_TextPickerDialog readTextPickerDialog() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_TextCascadePickerRangeContent readTextCascadePickerRangeContent() { Ark_TextCascadePickerRangeContent value = {}; @@ -86280,7 +87969,7 @@ class Deserializer : public DeserializerBase { text_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for text_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for text_buf has to be chosen through deserialisation."); } value.text = static_cast(text_buf); const auto children_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -86316,7 +88005,7 @@ class Deserializer : public DeserializerBase { icon_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf has to be chosen through deserialisation."); } value.icon = static_cast(icon_buf); const auto text_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -86336,7 +88025,7 @@ class Deserializer : public DeserializerBase { text_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for text_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for text_buf_ has to be chosen through deserialisation."); } text_buf.value = static_cast(text_buf_); } @@ -86406,7 +88095,7 @@ class Deserializer : public DeserializerBase { range_buf.value4 = range_buf_u; } else { - throw "One of the branches for range_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for range_buf has to be chosen through deserialisation."); } value.range = static_cast(range_buf); const auto value_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -86433,7 +88122,7 @@ class Deserializer : public DeserializerBase { value_buf_.value1 = value_buf__u; } else { - throw "One of the branches for value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf_ has to be chosen through deserialisation."); } value_buf.value = static_cast(value_buf_); } @@ -86462,7 +88151,7 @@ class Deserializer : public DeserializerBase { selected_buf_.value1 = selected_buf__u; } else { - throw "One of the branches for selected_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selected_buf_ has to be chosen through deserialisation."); } selected_buf.value = static_cast(selected_buf_); } @@ -86490,7 +88179,7 @@ class Deserializer : public DeserializerBase { onIconSrc_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for onIconSrc_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for onIconSrc_buf_ has to be chosen through deserialisation."); } onIconSrc_buf.value = static_cast(onIconSrc_buf_); } @@ -86512,7 +88201,7 @@ class Deserializer : public DeserializerBase { offIconSrc_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offIconSrc_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offIconSrc_buf_ has to be chosen through deserialisation."); } offIconSrc_buf.value = static_cast(offIconSrc_buf_); } @@ -86540,7 +88229,7 @@ class Deserializer : public DeserializerBase { placeholder_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for placeholder_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for placeholder_buf_ has to be chosen through deserialisation."); } placeholder_buf.value = static_cast(placeholder_buf_); } @@ -86562,7 +88251,7 @@ class Deserializer : public DeserializerBase { text_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for text_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for text_buf_ has to be chosen through deserialisation."); } text_buf.value = static_cast(text_buf_); } @@ -86577,6 +88266,30 @@ class Deserializer : public DeserializerBase { value.controller = controller_buf; return value; } + Ark_LayoutManager readLayoutManager() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_StyledStringController readStyledStringController() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextEditControllerEx readTextEditControllerEx() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TextBaseController readTextBaseController() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_TextClockOptions readTextClockOptions() { Ark_TextClockOptions value = {}; @@ -86620,7 +88333,7 @@ class Deserializer : public DeserializerBase { placeholder_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for placeholder_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for placeholder_buf_ has to be chosen through deserialisation."); } placeholder_buf.value = static_cast(placeholder_buf_); } @@ -86642,7 +88355,7 @@ class Deserializer : public DeserializerBase { text_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for text_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for text_buf_ has to be chosen through deserialisation."); } text_buf.value = static_cast(text_buf_); } @@ -86675,7 +88388,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_BarGridColumnOptions readBarGridColumnOptions() { @@ -86762,11 +88475,47 @@ class Deserializer : public DeserializerBase { value.controller = controller_buf; return value; } + Ark_ReplaceSymbolEffect readReplaceSymbolEffect() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_BounceSymbolEffect readBounceSymbolEffect() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_DisappearSymbolEffect readDisappearSymbolEffect() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_AppearSymbolEffect readAppearSymbolEffect() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_HierarchicalSymbolEffect readHierarchicalSymbolEffect() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ScaleSymbolEffect readScaleSymbolEffect() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_SwiperContentTransitionProxy readSwiperContentTransitionProxy() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SwiperContentAnimatedTransition readSwiperContentAnimatedTransition() { @@ -86796,13 +88545,13 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_SwiperController readSwiperController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_StackOptions readStackOptions() { @@ -86862,39 +88611,17 @@ class Deserializer : public DeserializerBase { image_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for image_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for image_buf_ has to be chosen through deserialisation."); } image_buf.value = static_cast(image_buf_); } value.image = image_buf; const auto shape_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Type_SliderBlockStyle_shape shape_buf = {}; + Opt_String shape_buf = {}; shape_buf.tag = shape_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; if ((INTEROP_RUNTIME_UNDEFINED) != (shape_buf_runtimeType)) { - const Ark_Int8 shape_buf__selector = valueDeserializer.readInt8(); - Ark_Type_SliderBlockStyle_shape shape_buf_ = {}; - shape_buf_.selector = shape_buf__selector; - if (shape_buf__selector == 0) { - shape_buf_.selector = 0; - shape_buf_.value0 = valueDeserializer.readCircleAttribute(); - } - else if (shape_buf__selector == 1) { - shape_buf_.selector = 1; - shape_buf_.value1 = valueDeserializer.readEllipseAttribute(); - } - else if (shape_buf__selector == 2) { - shape_buf_.selector = 2; - shape_buf_.value2 = valueDeserializer.readPathAttribute(); - } - else if (shape_buf__selector == 3) { - shape_buf_.selector = 3; - shape_buf_.value3 = valueDeserializer.readRectAttribute(); - } - else { - throw "One of the branches for shape_buf_ has to be chosen through deserialisation."; - } - shape_buf.value = static_cast(shape_buf_); + shape_buf.value = static_cast(valueDeserializer.readString()); } value.shape = shape_buf; return value; @@ -86982,7 +88709,7 @@ class Deserializer : public DeserializerBase { x_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for x_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for x_buf_ has to be chosen through deserialisation."); } x_buf.value = static_cast(x_buf_); } @@ -87004,7 +88731,7 @@ class Deserializer : public DeserializerBase { y_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for y_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for y_buf_ has to be chosen through deserialisation."); } y_buf.value = static_cast(y_buf_); } @@ -87026,7 +88753,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -87048,7 +88775,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -87071,7 +88798,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -87091,7 +88818,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -87153,7 +88880,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -87213,7 +88940,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -87249,7 +88976,7 @@ class Deserializer : public DeserializerBase { placeholder_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for placeholder_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for placeholder_buf_ has to be chosen through deserialisation."); } placeholder_buf.value = static_cast(placeholder_buf_); } @@ -87346,7 +89073,7 @@ class Deserializer : public DeserializerBase { snapPagination_buf_.value1 = snapPagination_buf__u; } else { - throw "One of the branches for snapPagination_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for snapPagination_buf_ has to be chosen through deserialisation."); } snapPagination_buf.value = static_cast(snapPagination_buf_); } @@ -87427,7 +89154,7 @@ class Deserializer : public DeserializerBase { space_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for space_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for space_buf_ has to be chosen through deserialisation."); } space_buf.value = static_cast(space_buf_); } @@ -87457,7 +89184,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_CopyEvent readCopyEvent() { @@ -87522,7 +89249,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_TextDataDetectorConfig readTextDataDetectorConfig() { @@ -87569,7 +89296,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -87622,7 +89349,7 @@ class Deserializer : public DeserializerBase { richEditorDeleteSpans_buf_buf.value1 = valueDeserializer.readRichEditorImageSpanResult(); } else { - throw "One of the branches for richEditorDeleteSpans_buf_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for richEditorDeleteSpans_buf_buf has to be chosen through deserialisation."); } richEditorDeleteSpans_buf.array[richEditorDeleteSpans_buf_i] = static_cast(richEditorDeleteSpans_buf_buf); } @@ -87670,7 +89397,7 @@ class Deserializer : public DeserializerBase { spans_buf_buf.value1 = valueDeserializer.readRichEditorImageSpanResult(); } else { - throw "One of the branches for spans_buf_buf has to be chosen through deserialisation."; + 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); } @@ -87693,11 +89420,11 @@ class Deserializer : public DeserializerBase { value.previewText = previewText_buf; return value; } - Ark_GestureEvent readGestureEvent() + Ark_RichEditorBaseController readRichEditorBaseController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_LocalizedBarrierStyle readLocalizedBarrierStyle() { @@ -87762,7 +89489,7 @@ class Deserializer : public DeserializerBase { offset_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for offset_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offset_buf_ has to be chosen through deserialisation."); } offset_buf.value = static_cast(offset_buf_); } @@ -87784,7 +89511,7 @@ class Deserializer : public DeserializerBase { friction_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for friction_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for friction_buf_ has to be chosen through deserialisation."); } friction_buf.value = static_cast(friction_buf_); } @@ -87806,7 +89533,7 @@ class Deserializer : public DeserializerBase { promptText_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for promptText_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for promptText_buf_ has to be chosen through deserialisation."); } promptText_buf.value = static_cast(promptText_buf_); } @@ -87889,7 +89616,7 @@ class Deserializer : public DeserializerBase { checkedBackgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for checkedBackgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for checkedBackgroundColor_buf_ has to be chosen through deserialisation."); } checkedBackgroundColor_buf.value = static_cast(checkedBackgroundColor_buf_); } @@ -87919,7 +89646,7 @@ class Deserializer : public DeserializerBase { uncheckedBorderColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for uncheckedBorderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for uncheckedBorderColor_buf_ has to be chosen through deserialisation."); } uncheckedBorderColor_buf.value = static_cast(uncheckedBorderColor_buf_); } @@ -87949,7 +89676,7 @@ class Deserializer : public DeserializerBase { indicatorColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for indicatorColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for indicatorColor_buf_ has to be chosen through deserialisation."); } indicatorColor_buf.value = static_cast(indicatorColor_buf_); } @@ -88032,7 +89759,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -88054,7 +89781,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -88090,7 +89817,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -88112,7 +89839,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -88139,7 +89866,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_PathOptions readPathOptions() { @@ -88162,7 +89889,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -88184,7 +89911,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -88234,6 +89961,12 @@ class Deserializer : public DeserializerBase { Ark_NodeController value = {}; return value; } + Ark_NavigationTransitionProxy readNavigationTransitionProxy() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_RouteInfo readRouteInfo() { Ark_RouteInfo value = {}; @@ -88265,7 +89998,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -88285,7 +90018,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -88331,7 +90064,7 @@ class Deserializer : public DeserializerBase { activeIcon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for activeIcon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for activeIcon_buf_ has to be chosen through deserialisation."); } activeIcon_buf.value = static_cast(activeIcon_buf_); } @@ -88362,7 +90095,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -88382,7 +90115,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -88417,7 +90150,7 @@ class Deserializer : public DeserializerBase { { Ark_PopInfo value = {}; Deserializer& valueDeserializer = *this; - value.info = valueDeserializer.readNavPathInfo(); + value.info = static_cast(valueDeserializer.readNavPathInfo()); value.result = static_cast(valueDeserializer.readCustomObject("Object")); return value; } @@ -88447,7 +90180,7 @@ class Deserializer : public DeserializerBase { header_buf__u.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for header_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for header_buf__u has to be chosen through deserialisation."); } header_buf_.value0 = static_cast(header_buf__u); } @@ -88456,7 +90189,7 @@ class Deserializer : public DeserializerBase { header_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for header_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for header_buf_ has to be chosen through deserialisation."); } header_buf.value = static_cast(header_buf_); } @@ -88483,7 +90216,7 @@ class Deserializer : public DeserializerBase { footer_buf__u.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for footer_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for footer_buf__u has to be chosen through deserialisation."); } footer_buf_.value0 = static_cast(footer_buf__u); } @@ -88492,7 +90225,7 @@ class Deserializer : public DeserializerBase { footer_buf_.value1 = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for footer_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for footer_buf_ has to be chosen through deserialisation."); } footer_buf.value = static_cast(footer_buf_); } @@ -88614,7 +90347,7 @@ class Deserializer : public DeserializerBase { space_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for space_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for space_buf_ has to be chosen through deserialisation."); } space_buf.value = static_cast(space_buf_); } @@ -88650,7 +90383,7 @@ class Deserializer : public DeserializerBase { start_buf_.value1 = valueDeserializer.readSwipeActionItem(); } else { - throw "One of the branches for start_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for start_buf_ has to be chosen through deserialisation."); } start_buf.value = static_cast(start_buf_); } @@ -88672,7 +90405,7 @@ class Deserializer : public DeserializerBase { end_buf_.value1 = valueDeserializer.readSwipeActionItem(); } else { - throw "One of the branches for end_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for end_buf_ has to be chosen through deserialisation."); } end_buf.value = static_cast(end_buf_); } @@ -88732,12 +90465,6 @@ class Deserializer : public DeserializerBase { value.itemIndexInGroup = itemIndexInGroup_buf; return value; } - Ark_ChildrenMainSize readChildrenMainSize() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } Ark_ChainAnimationOptions readChainAnimationOptions() { Ark_ChainAnimationOptions value = {}; @@ -88815,7 +90542,7 @@ class Deserializer : public DeserializerBase { space_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for space_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for space_buf_ has to be chosen through deserialisation."); } space_buf.value = static_cast(space_buf_); } @@ -88830,6 +90557,12 @@ class Deserializer : public DeserializerBase { value.scroller = scroller_buf; return value; } + Ark_ListScroller readListScroller() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_LineOptions readLineOptions() { Ark_LineOptions value = {}; @@ -88851,7 +90584,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -88873,7 +90606,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -88915,7 +90648,7 @@ class Deserializer : public DeserializerBase { src_buf.value2 = static_cast(valueDeserializer.readPixelMap()); } else { - throw "One of the branches for src_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_buf has to be chosen through deserialisation."); } value.src = static_cast(src_buf); const auto width_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -88935,7 +90668,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -88957,7 +90690,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -88979,7 +90712,7 @@ class Deserializer : public DeserializerBase { top_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for top_buf_ has to be chosen through deserialisation."); } top_buf.value = static_cast(top_buf_); } @@ -89001,7 +90734,7 @@ class Deserializer : public DeserializerBase { left_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for left_buf_ has to be chosen through deserialisation."); } left_buf.value = static_cast(left_buf_); } @@ -89020,7 +90753,7 @@ class Deserializer : public DeserializerBase { { Ark_ResolutionQuality value = {}; Deserializer& valueDeserializer = *this; - value.__ResolutionQualityStub = static_cast(valueDeserializer.readString()); + value._ResolutionQualityStub = static_cast(valueDeserializer.readString()); return value; } Ark_ImageError readImageError() @@ -89061,7 +90794,7 @@ class Deserializer : public DeserializerBase { gutter_buf_.value1 = valueDeserializer.readGutterOption(); } else { - throw "One of the branches for gutter_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for gutter_buf_ has to be chosen through deserialisation."); } gutter_buf.value = static_cast(gutter_buf_); } @@ -89083,7 +90816,7 @@ class Deserializer : public DeserializerBase { columns_buf_.value1 = valueDeserializer.readGridRowColumnOption(); } else { - throw "One of the branches for columns_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for columns_buf_ has to be chosen through deserialisation."); } columns_buf.value = static_cast(columns_buf_); } @@ -89127,7 +90860,7 @@ class Deserializer : public DeserializerBase { columns_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for columns_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for columns_buf_ has to be chosen through deserialisation."); } columns_buf.value = static_cast(columns_buf_); } @@ -89157,7 +90890,7 @@ class Deserializer : public DeserializerBase { gutter_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for gutter_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for gutter_buf_ has to be chosen through deserialisation."); } gutter_buf.value = static_cast(gutter_buf_); } @@ -89179,7 +90912,7 @@ class Deserializer : public DeserializerBase { margin_buf_.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for margin_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for margin_buf_ has to be chosen through deserialisation."); } margin_buf.value = static_cast(margin_buf_); } @@ -89207,7 +90940,7 @@ class Deserializer : public DeserializerBase { span_buf_.value1 = valueDeserializer.readGridColColumnOption(); } else { - throw "One of the branches for span_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for span_buf_ has to be chosen through deserialisation."); } span_buf.value = static_cast(span_buf_); } @@ -89229,7 +90962,7 @@ class Deserializer : public DeserializerBase { offset_buf_.value1 = valueDeserializer.readGridColColumnOption(); } else { - throw "One of the branches for offset_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offset_buf_ has to be chosen through deserialisation."); } offset_buf.value = static_cast(offset_buf_); } @@ -89251,7 +90984,7 @@ class Deserializer : public DeserializerBase { order_buf_.value1 = valueDeserializer.readGridColColumnOption(); } else { - throw "One of the branches for order_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for order_buf_ has to be chosen through deserialisation."); } order_buf.value = static_cast(order_buf_); } @@ -89329,6 +91062,72 @@ class Deserializer : public DeserializerBase { value.onGetRectByIndex = onGetRectByIndex_buf; return value; } + Ark_PanRecognizer readPanRecognizer() + { + 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_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; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_SwipeGestureEvent readSwipeGestureEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_RotationGestureEvent readRotationGestureEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_PinchGestureEvent readPinchGestureEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_PanGestureEvent readPanGestureEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_LongPressGestureEvent readLongPressGestureEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_TapGestureEvent readTapGestureEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_GaugeIndicatorOptions readGaugeIndicatorOptions() { Ark_GaugeIndicatorOptions value = {}; @@ -89350,7 +91149,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -89386,7 +91185,7 @@ class Deserializer : public DeserializerBase { radius_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for radius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); } radius_buf.value = static_cast(radius_buf_); } @@ -89408,7 +91207,7 @@ class Deserializer : public DeserializerBase { offsetX_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offsetX_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offsetX_buf_ has to be chosen through deserialisation."); } offsetX_buf.value = static_cast(offsetX_buf_); } @@ -89430,7 +91229,7 @@ class Deserializer : public DeserializerBase { offsetY_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offsetY_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offsetY_buf_ has to be chosen through deserialisation."); } offsetY_buf.value = static_cast(offsetY_buf_); } @@ -89531,7 +91330,7 @@ class Deserializer : public DeserializerBase { id_buf.value1 = static_cast(valueDeserializer.readString()); } else { - throw "One of the branches for id_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for id_buf has to be chosen through deserialisation."); } value.id = static_cast(id_buf); value.name = static_cast(valueDeserializer.readString()); @@ -89708,7 +91507,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -89730,13 +91529,19 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } value.height = height_buf; return value; } + Ark_DatePickerDialog readDatePickerDialog() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_DatePickerResult readDatePickerResult() { Ark_DatePickerResult value = {}; @@ -89818,7 +91623,7 @@ class Deserializer : public DeserializerBase { radius_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for radius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); } radius_buf.value = static_cast(radius_buf_); } @@ -89840,7 +91645,7 @@ class Deserializer : public DeserializerBase { offsetX_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offsetX_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offsetX_buf_ has to be chosen through deserialisation."); } offsetX_buf.value = static_cast(offsetX_buf_); } @@ -89862,23 +91667,23 @@ class Deserializer : public DeserializerBase { offsetY_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for offsetY_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offsetY_buf_ has to be chosen through deserialisation."); } offsetY_buf.value = static_cast(offsetY_buf_); } value.offsetY = offsetY_buf; const auto colors_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Array_Union_ResourceColor_LinearGradient_data_panel colors_buf = {}; + Opt_Array_Union_ResourceColor_LinearGradient colors_buf = {}; colors_buf.tag = colors_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; if ((INTEROP_RUNTIME_UNDEFINED) != (colors_buf_runtimeType)) { const Ark_Int32 colors_buf__length = valueDeserializer.readInt32(); - Array_Union_ResourceColor_LinearGradient_data_panel colors_buf_ = {}; + Array_Union_ResourceColor_LinearGradient colors_buf_ = {}; valueDeserializer.resizeArray::type, std::decay::type>(&colors_buf_, colors_buf__length); for (int colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { const Ark_Int8 colors_buf__buf_selector = valueDeserializer.readInt8(); - Ark_Union_ResourceColor_LinearGradient_data_panel colors_buf__buf = {}; + Ark_Union_ResourceColor_LinearGradient colors_buf__buf = {}; colors_buf__buf.selector = colors_buf__buf_selector; if (colors_buf__buf_selector == 0) { colors_buf__buf.selector = 0; @@ -89902,18 +91707,18 @@ class Deserializer : public DeserializerBase { colors_buf__buf_u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for colors_buf__buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for colors_buf__buf_u has to be chosen through deserialisation."); } colors_buf__buf.value0 = static_cast(colors_buf__buf_u); } else if (colors_buf__buf_selector == 1) { colors_buf__buf.selector = 1; - colors_buf__buf.value1 = valueDeserializer.readLinearGradient_data_panel(); + colors_buf__buf.value1 = static_cast(valueDeserializer.readLinearGradient()); } else { - throw "One of the branches for colors_buf__buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for colors_buf__buf has to be chosen through deserialisation."); } - colors_buf_.array[colors_buf__i] = static_cast(colors_buf__buf); + colors_buf_.array[colors_buf__i] = static_cast(colors_buf__buf); } colors_buf.value = colors_buf_; } @@ -89950,6 +91755,36 @@ class Deserializer : public DeserializerBase { value.type = type_buf; return value; } + Ark_ColorStop readColorStop() + { + Ark_ColorStop value = {}; + Deserializer& valueDeserializer = *this; + const Ark_Int8 color_buf_selector = valueDeserializer.readInt8(); + Ark_ResourceColor color_buf = {}; + color_buf.selector = color_buf_selector; + if (color_buf_selector == 0) { + color_buf.selector = 0; + color_buf.value0 = static_cast(valueDeserializer.readInt32()); + } + else if (color_buf_selector == 1) { + color_buf.selector = 1; + color_buf.value1 = static_cast(valueDeserializer.readNumber()); + } + else if (color_buf_selector == 2) { + color_buf.selector = 2; + color_buf.value2 = static_cast(valueDeserializer.readString()); + } + else if (color_buf_selector == 3) { + color_buf.selector = 3; + color_buf.value3 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for color_buf has to be chosen through deserialisation."); + } + value.color = static_cast(color_buf); + value.offset = valueDeserializer.readLength(); + return value; + } Ark_CustomDialogControllerOptions readCustomDialogControllerOptions() { Ark_CustomDialogControllerOptions value = {}; @@ -90031,7 +91866,7 @@ class Deserializer : public DeserializerBase { maskColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for maskColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for maskColor_buf_ has to be chosen through deserialisation."); } maskColor_buf.value = static_cast(maskColor_buf_); } @@ -90093,7 +91928,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -90148,7 +91983,7 @@ class Deserializer : public DeserializerBase { cornerRadius_buf_.value1 = cornerRadius_buf__u; } else { - throw "One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation."); } cornerRadius_buf.value = static_cast(cornerRadius_buf_); } @@ -90235,7 +92070,7 @@ class Deserializer : public DeserializerBase { borderWidth_buf_.value1 = borderWidth_buf__u; } else { - throw "One of the branches for borderWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderWidth_buf_ has to be chosen through deserialisation."); } borderWidth_buf.value = static_cast(borderWidth_buf_); } @@ -90270,7 +92105,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u has to be chosen through deserialisation."); } borderColor_buf_.value0 = static_cast(borderColor_buf__u); } @@ -90302,7 +92137,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_top_buf.value = static_cast(borderColor_buf__u_top_buf_); } @@ -90332,7 +92167,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_right_buf.value = static_cast(borderColor_buf__u_right_buf_); } @@ -90362,7 +92197,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_bottom_buf.value = static_cast(borderColor_buf__u_bottom_buf_); } @@ -90392,7 +92227,7 @@ class Deserializer : public DeserializerBase { borderColor_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation."); } borderColor_buf__u_left_buf.value = static_cast(borderColor_buf__u_left_buf_); } @@ -90400,7 +92235,7 @@ class Deserializer : public DeserializerBase { borderColor_buf_.value1 = borderColor_buf__u; } else { - throw "One of the branches for borderColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderColor_buf_ has to be chosen through deserialisation."); } borderColor_buf.value = static_cast(borderColor_buf_); } @@ -90455,7 +92290,7 @@ class Deserializer : public DeserializerBase { borderStyle_buf_.value1 = borderStyle_buf__u; } else { - throw "One of the branches for borderStyle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for borderStyle_buf_ has to be chosen through deserialisation."); } borderStyle_buf.value = static_cast(borderStyle_buf_); } @@ -90477,7 +92312,7 @@ class Deserializer : public DeserializerBase { shadow_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for shadow_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for shadow_buf_ has to be chosen through deserialisation."); } shadow_buf.value = static_cast(shadow_buf_); } @@ -90516,6 +92351,18 @@ class Deserializer : public DeserializerBase { value.hoverModeArea = hoverModeArea_buf; return value; } + Ark_CustomDialogController readCustomDialogController() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ContextMenu readContextMenu() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_SceneOptions readSceneOptions() { Ark_SceneOptions value = {}; @@ -90542,7 +92389,7 @@ class Deserializer : public DeserializerBase { scene_buf__u.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for scene_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for scene_buf__u has to be chosen through deserialisation."); } scene_buf_.value0 = static_cast(scene_buf__u); } @@ -90551,7 +92398,7 @@ class Deserializer : public DeserializerBase { scene_buf_.value1 = valueDeserializer.readScene(); } else { - throw "One of the branches for scene_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for scene_buf_ has to be chosen through deserialisation."); } scene_buf.value = static_cast(scene_buf_); } @@ -90566,6 +92413,18 @@ class Deserializer : public DeserializerBase { value.modelType = modelType_buf; return value; } + Ark_UICommonEvent readUICommonEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_ChildrenMainSize readChildrenMainSize() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_OffsetResult readOffsetResult() { Ark_OffsetResult value = {}; @@ -90574,6 +92433,24 @@ class Deserializer : public DeserializerBase { value.yOffset = static_cast(valueDeserializer.readNumber()); return value; } + Ark_TextContentControllerBase readTextContentControllerBase() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_View readView() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_Measurable readMeasurable() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_SpringBackAction readSpringBackAction() { Ark_SpringBackAction value = {}; @@ -90620,7 +92497,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -90640,7 +92517,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -90676,7 +92553,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_FingerInfo readFingerInfo() { @@ -90695,7 +92572,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_GestureInfo readGestureInfo() { @@ -90725,7 +92602,7 @@ class Deserializer : public DeserializerBase { { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; + return static_cast(ptr); } Ark_PixelStretchEffectOptions readPixelStretchEffectOptions() { @@ -90823,15 +92700,9 @@ class Deserializer : public DeserializerBase { { Ark_UniformDataType value = {}; Deserializer& valueDeserializer = *this; - value.__UniformDataTypeStub = static_cast(valueDeserializer.readString()); + value._UniformDataTypeStub = static_cast(valueDeserializer.readString()); return value; } - Ark_DragEvent readDragEvent() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } Ark_LocalizedAlignRuleOptions readLocalizedAlignRuleOptions() { Ark_LocalizedAlignRuleOptions value = {}; @@ -91012,30 +92883,6 @@ class Deserializer : public DeserializerBase { value.strokeWidth = strokeWidth_buf; return value; } - Ark_KeyEvent readKeyEvent() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } - Ark_MouseEvent readMouseEvent() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } - Ark_AccessibilityHoverEvent readAccessibilityHoverEvent() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } - Ark_HoverEvent readHoverEvent() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } Ark_OutlineOptions readOutlineOptions() { Ark_OutlineOptions value = {}; @@ -91090,7 +92937,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -91131,7 +92978,7 @@ class Deserializer : public DeserializerBase { color_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation."); } color_buf__u_top_buf.value = static_cast(color_buf__u_top_buf_); } @@ -91161,7 +93008,7 @@ class Deserializer : public DeserializerBase { color_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation."); } color_buf__u_right_buf.value = static_cast(color_buf__u_right_buf_); } @@ -91191,7 +93038,7 @@ class Deserializer : public DeserializerBase { color_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation."); } color_buf__u_bottom_buf.value = static_cast(color_buf__u_bottom_buf_); } @@ -91221,7 +93068,7 @@ class Deserializer : public DeserializerBase { color_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation."); } color_buf__u_left_buf.value = static_cast(color_buf__u_left_buf_); } @@ -91250,7 +93097,7 @@ class Deserializer : public DeserializerBase { color_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u has to be chosen through deserialisation."); } color_buf_.value1 = static_cast(color_buf__u); } @@ -91259,7 +93106,7 @@ class Deserializer : public DeserializerBase { color_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -91314,7 +93161,7 @@ class Deserializer : public DeserializerBase { radius_buf_.value1 = valueDeserializer.readLength(); } else { - throw "One of the branches for radius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); } radius_buf.value = static_cast(radius_buf_); } @@ -91369,7 +93216,7 @@ class Deserializer : public DeserializerBase { style_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for style_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for style_buf_ has to be chosen through deserialisation."); } style_buf.value = static_cast(style_buf_); } @@ -91434,7 +93281,7 @@ class Deserializer : public DeserializerBase { slice_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for slice_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for slice_buf_ has to be chosen through deserialisation."); } slice_buf.value = static_cast(slice_buf_); } @@ -91468,7 +93315,7 @@ class Deserializer : public DeserializerBase { source_buf_.value2 = valueDeserializer.readLinearGradient_common(); } else { - throw "One of the branches for source_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for source_buf_ has to be chosen through deserialisation."); } source_buf.value = static_cast(source_buf_); } @@ -91527,7 +93374,7 @@ class Deserializer : public DeserializerBase { width_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -91586,7 +93433,7 @@ class Deserializer : public DeserializerBase { outset_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for outset_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for outset_buf_ has to be chosen through deserialisation."); } outset_buf.value = static_cast(outset_buf_); } @@ -91659,7 +93506,7 @@ class Deserializer : public DeserializerBase { width_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -91700,7 +93547,7 @@ class Deserializer : public DeserializerBase { color_buf__u_top_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation."); } color_buf__u_top_buf.value = static_cast(color_buf__u_top_buf_); } @@ -91730,7 +93577,7 @@ class Deserializer : public DeserializerBase { color_buf__u_right_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation."); } color_buf__u_right_buf.value = static_cast(color_buf__u_right_buf_); } @@ -91760,7 +93607,7 @@ class Deserializer : public DeserializerBase { color_buf__u_bottom_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation."); } color_buf__u_bottom_buf.value = static_cast(color_buf__u_bottom_buf_); } @@ -91790,7 +93637,7 @@ class Deserializer : public DeserializerBase { color_buf__u_left_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation."); } color_buf__u_left_buf.value = static_cast(color_buf__u_left_buf_); } @@ -91819,7 +93666,7 @@ class Deserializer : public DeserializerBase { color_buf__u.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf__u has to be chosen through deserialisation."); } color_buf_.value1 = static_cast(color_buf__u); } @@ -91828,7 +93675,7 @@ class Deserializer : public DeserializerBase { color_buf_.value2 = valueDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -91887,7 +93734,7 @@ class Deserializer : public DeserializerBase { radius_buf_.value2 = valueDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for radius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for radius_buf_ has to be chosen through deserialisation."); } radius_buf.value = static_cast(radius_buf_); } @@ -91942,7 +93789,7 @@ class Deserializer : public DeserializerBase { style_buf_.value1 = static_cast(valueDeserializer.readInt32()); } else { - throw "One of the branches for style_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for style_buf_ has to be chosen through deserialisation."); } style_buf.value = static_cast(style_buf_); } @@ -92001,7 +93848,7 @@ class Deserializer : public DeserializerBase { dashGap_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for dashGap_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dashGap_buf_ has to be chosen through deserialisation."); } dashGap_buf.value = static_cast(dashGap_buf_); } @@ -92060,7 +93907,7 @@ class Deserializer : public DeserializerBase { dashWidth_buf_.value2 = valueDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for dashWidth_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dashWidth_buf_ has to be chosen through deserialisation."); } dashWidth_buf.value = static_cast(dashWidth_buf_); } @@ -92071,14 +93918,14 @@ class Deserializer : public DeserializerBase { { Ark_Filter value = {}; Deserializer& valueDeserializer = *this; - value.__FilterStub = static_cast(valueDeserializer.readString()); + value._FilterStub = static_cast(valueDeserializer.readString()); return value; } Ark_VisualEffect readVisualEffect() { Ark_VisualEffect value = {}; Deserializer& valueDeserializer = *this; - value.__VisualEffectStub = static_cast(valueDeserializer.readString()); + value._VisualEffectStub = static_cast(valueDeserializer.readString()); return value; } Ark_ForegroundEffectOptions readForegroundEffectOptions() @@ -92189,7 +94036,7 @@ class Deserializer : public DeserializerBase { color_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for color_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_buf_ has to be chosen through deserialisation."); } color_buf.value = static_cast(color_buf_); } @@ -92243,7 +94090,7 @@ class Deserializer : public DeserializerBase { inactiveColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for inactiveColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for inactiveColor_buf_ has to be chosen through deserialisation."); } inactiveColor_buf.value = static_cast(inactiveColor_buf_); } @@ -92339,6 +94186,24 @@ class Deserializer : public DeserializerBase { value.id = static_cast(valueDeserializer.readString()); return value; } + Ark_KeyEvent readKeyEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_DragEvent readDragEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_PixelMapMock readPixelMapMock() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_TouchObject readTouchObject() { Ark_TouchObject value = {}; @@ -92355,6 +94220,30 @@ class Deserializer : public DeserializerBase { value.y = static_cast(valueDeserializer.readNumber()); return value; } + Ark_AccessibilityHoverEvent readAccessibilityHoverEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_MouseEvent readMouseEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_HoverEvent readHoverEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_BaseEvent readBaseEvent() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_PointLightStyle readPointLightStyle() { Ark_PointLightStyle value = {}; @@ -92406,7 +94295,7 @@ class Deserializer : public DeserializerBase { space_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for space_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for space_buf_ has to be chosen through deserialisation."); } space_buf.value = static_cast(space_buf_); } @@ -92434,7 +94323,7 @@ class Deserializer : public DeserializerBase { width_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for width_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for width_buf_ has to be chosen through deserialisation."); } width_buf.value = static_cast(width_buf_); } @@ -92456,7 +94345,7 @@ class Deserializer : public DeserializerBase { height_buf_.value1 = static_cast(valueDeserializer.readNumber()); } else { - throw "One of the branches for height_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for height_buf_ has to be chosen through deserialisation."); } height_buf.value = static_cast(height_buf_); } @@ -92521,7 +94410,7 @@ class Deserializer : public DeserializerBase { strokeColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for strokeColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for strokeColor_buf_ has to be chosen through deserialisation."); } strokeColor_buf.value = static_cast(strokeColor_buf_); } @@ -92574,27 +94463,37 @@ class Deserializer : public DeserializerBase { value.indicatorBuilder = indicatorBuilder_buf; return value; } + Ark_CanvasRenderer readCanvasRenderer() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_RenderingContextSettings readRenderingContextSettings() { - Ark_RenderingContextSettings value = {}; Deserializer& valueDeserializer = *this; - const auto antialias_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean antialias_buf = {}; - antialias_buf.tag = antialias_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (antialias_buf_runtimeType)) - { - antialias_buf.value = valueDeserializer.readBoolean(); - } - value.antialias = antialias_buf; - return value; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); } Ark_LengthMetricsUnit readLengthMetricsUnit() { Ark_LengthMetricsUnit value = {}; Deserializer& valueDeserializer = *this; - value.__LengthMetricsUnitStub = static_cast(valueDeserializer.readString()); + value._LengthMetricsUnitStub = static_cast(valueDeserializer.readString()); return value; } + Ark_CanvasPath readCanvasPath() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_CalendarPickerDialog readCalendarPickerDialog() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_CalendarOptions readCalendarOptions() { Ark_CalendarOptions value = {}; @@ -92616,7 +94515,7 @@ class Deserializer : public DeserializerBase { hintRadius_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for hintRadius_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for hintRadius_buf_ has to be chosen through deserialisation."); } hintRadius_buf.value = static_cast(hintRadius_buf_); } @@ -92680,7 +94579,7 @@ class Deserializer : public DeserializerBase { workDayMarkColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for workDayMarkColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for workDayMarkColor_buf_ has to be chosen through deserialisation."); } workDayMarkColor_buf.value = static_cast(workDayMarkColor_buf_); } @@ -92710,7 +94609,7 @@ class Deserializer : public DeserializerBase { offDayMarkColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for offDayMarkColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for offDayMarkColor_buf_ has to be chosen through deserialisation."); } offDayMarkColor_buf.value = static_cast(offDayMarkColor_buf_); } @@ -92786,7 +94685,7 @@ class Deserializer : public DeserializerBase { weekColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for weekColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for weekColor_buf_ has to be chosen through deserialisation."); } weekColor_buf.value = static_cast(weekColor_buf_); } @@ -92816,7 +94715,7 @@ class Deserializer : public DeserializerBase { weekendDayColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for weekendDayColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for weekendDayColor_buf_ has to be chosen through deserialisation."); } weekendDayColor_buf.value = static_cast(weekendDayColor_buf_); } @@ -92846,7 +94745,7 @@ class Deserializer : public DeserializerBase { weekendLunarColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for weekendLunarColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for weekendLunarColor_buf_ has to be chosen through deserialisation."); } weekendLunarColor_buf.value = static_cast(weekendLunarColor_buf_); } @@ -92914,7 +94813,7 @@ class Deserializer : public DeserializerBase { focusedDayColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for focusedDayColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for focusedDayColor_buf_ has to be chosen through deserialisation."); } focusedDayColor_buf.value = static_cast(focusedDayColor_buf_); } @@ -92944,7 +94843,7 @@ class Deserializer : public DeserializerBase { focusedLunarColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for focusedLunarColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for focusedLunarColor_buf_ has to be chosen through deserialisation."); } focusedLunarColor_buf.value = static_cast(focusedLunarColor_buf_); } @@ -92974,7 +94873,7 @@ class Deserializer : public DeserializerBase { focusedAreaBackgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for focusedAreaBackgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for focusedAreaBackgroundColor_buf_ has to be chosen through deserialisation."); } focusedAreaBackgroundColor_buf.value = static_cast(focusedAreaBackgroundColor_buf_); } @@ -93018,7 +94917,7 @@ class Deserializer : public DeserializerBase { nonCurrentMonthDayColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for nonCurrentMonthDayColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for nonCurrentMonthDayColor_buf_ has to be chosen through deserialisation."); } nonCurrentMonthDayColor_buf.value = static_cast(nonCurrentMonthDayColor_buf_); } @@ -93048,7 +94947,7 @@ class Deserializer : public DeserializerBase { nonCurrentMonthLunarColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for nonCurrentMonthLunarColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for nonCurrentMonthLunarColor_buf_ has to be chosen through deserialisation."); } nonCurrentMonthLunarColor_buf.value = static_cast(nonCurrentMonthLunarColor_buf_); } @@ -93078,7 +94977,7 @@ class Deserializer : public DeserializerBase { nonCurrentMonthWorkDayMarkColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for nonCurrentMonthWorkDayMarkColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for nonCurrentMonthWorkDayMarkColor_buf_ has to be chosen through deserialisation."); } nonCurrentMonthWorkDayMarkColor_buf.value = static_cast(nonCurrentMonthWorkDayMarkColor_buf_); } @@ -93108,7 +95007,7 @@ class Deserializer : public DeserializerBase { nonCurrentMonthOffDayMarkColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for nonCurrentMonthOffDayMarkColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for nonCurrentMonthOffDayMarkColor_buf_ has to be chosen through deserialisation."); } nonCurrentMonthOffDayMarkColor_buf.value = static_cast(nonCurrentMonthOffDayMarkColor_buf_); } @@ -93144,7 +95043,7 @@ class Deserializer : public DeserializerBase { dayColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for dayColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dayColor_buf_ has to be chosen through deserialisation."); } dayColor_buf.value = static_cast(dayColor_buf_); } @@ -93174,7 +95073,7 @@ class Deserializer : public DeserializerBase { lunarColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for lunarColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for lunarColor_buf_ has to be chosen through deserialisation."); } lunarColor_buf.value = static_cast(lunarColor_buf_); } @@ -93204,7 +95103,7 @@ class Deserializer : public DeserializerBase { markLunarColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for markLunarColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for markLunarColor_buf_ has to be chosen through deserialisation."); } markLunarColor_buf.value = static_cast(markLunarColor_buf_); } @@ -93455,7 +95354,7 @@ class Deserializer : public DeserializerBase { position_buf_.value1 = valueDeserializer.readPosition(); } else { - throw "One of the branches for position_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for position_buf_ has to be chosen through deserialisation."); } position_buf.value = static_cast(position_buf_); } @@ -93485,7 +95384,7 @@ class Deserializer : public DeserializerBase { position_buf_.value1 = valueDeserializer.readPosition(); } else { - throw "One of the branches for position_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for position_buf_ has to be chosen through deserialisation."); } position_buf.value = static_cast(position_buf_); } @@ -93502,6 +95401,30 @@ class Deserializer : public DeserializerBase { value.maxCount = maxCount_buf; return value; } + Ark_ScrollMotion readScrollMotion() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_FrictionMotion readFrictionMotion() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_SpringMotion readSpringMotion() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_SpringProp readSpringProp() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_AlphabetIndexerOptions readAlphabetIndexerOptions() { Ark_AlphabetIndexerOptions value = {}; @@ -93557,7 +95480,7 @@ class Deserializer : public DeserializerBase { value_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } value.value = static_cast(value_buf); const auto fontColor_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -93585,7 +95508,7 @@ class Deserializer : public DeserializerBase { fontColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for fontColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fontColor_buf_ has to be chosen through deserialisation."); } fontColor_buf.value = static_cast(fontColor_buf_); } @@ -93615,7 +95538,7 @@ class Deserializer : public DeserializerBase { backgroundColor_buf_.value3 = valueDeserializer.readResource(); } else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."); } backgroundColor_buf.value = static_cast(backgroundColor_buf_); } @@ -93631,6 +95554,12 @@ class Deserializer : public DeserializerBase { value.primary = primary_buf; return value; } + Ark_AlertDialog readAlertDialog() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_DismissDialogAction readDismissDialogAction() { Ark_DismissDialogAction value = {}; @@ -93655,7 +95584,7 @@ class Deserializer : public DeserializerBase { title_buf.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for title_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for title_buf has to be chosen through deserialisation."); } value.title = static_cast(title_buf); const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); @@ -93675,7 +95604,7 @@ class Deserializer : public DeserializerBase { icon_buf_.value1 = valueDeserializer.readResource(); } else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); } icon_buf.value = static_cast(icon_buf_); } @@ -93683,6 +95612,36 @@ class Deserializer : public DeserializerBase { value.action = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_VoidCallback)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_VoidCallback))))}; return value; } + Ark_ActionSheet readActionSheet() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_EventEmulator readEventEmulator() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_NavExtender readNavExtender() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_GlobalScope_ohos_arkui_performanceMonitor readGlobalScope_ohos_arkui_performanceMonitor() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_GlobalScope_ohos_arkui_componentSnapshot readGlobalScope_ohos_arkui_componentSnapshot() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_WebHeader readWebHeader() { Ark_WebHeader value = {}; @@ -93691,5 +95650,17 @@ class Deserializer : public DeserializerBase { value.headerValue = static_cast(valueDeserializer.readString()); return value; } + Ark_LazyForEachOps readLazyForEachOps() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_AnimationExtender readAnimationExtender() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } }; diff --git a/arkoala/framework/native/src/generated/all_events.cc b/arkoala/framework/native/src/generated/all_events.cc index 6a2c74afc..8d2200ac5 100644 --- a/arkoala/framework/native/src/generated/all_events.cc +++ b/arkoala/framework/native/src/generated/all_events.cc @@ -25,7 +25,7 @@ namespace Generated { KindAlphabetIndexer_onSelect = 3, KindAlphabetIndexer_onRequestPopupData = 4, KindAlphabetIndexer_onPopupSelect = 5, - KindAlphabetIndexer___onChangeEvent_selected = 6, + KindAlphabetIndexer__onChangeEvent_selected = 6, KindAnimator_onStart = 7, KindAnimator_onPause = 8, KindAnimator_onRepeat = 9, @@ -37,9 +37,9 @@ namespace Generated { KindCalendarPicker_onChange = 15, KindCanvas_onReady = 16, KindCheckbox_onChange = 17, - KindCheckbox___onChangeEvent_select = 18, + KindCheckbox__onChangeEvent_select = 18, KindCheckboxGroup_onChange = 19, - KindCheckboxGroup___onChangeEvent_selectAll = 20, + KindCheckboxGroup__onChangeEvent_selectAll = 20, KindCommonMethod_onChildTouchTest = 21, KindCommonMethod_onClick0 = 22, KindCommonMethod_onClick1 = 23, @@ -78,299 +78,301 @@ namespace Generated { KindCommonMethod_bindSheet = 56, KindCommonMethod_onVisibleAreaChange = 57, KindScrollableCommonMethod_onScroll = 58, - KindScrollableCommonMethod_onReachStart = 59, - KindScrollableCommonMethod_onReachEnd = 60, - KindScrollableCommonMethod_onScrollStart = 61, - KindScrollableCommonMethod_onScrollStop = 62, - KindCounter_onInc = 63, - KindCounter_onDec = 64, - KindDatePicker_onChange = 65, - KindDatePicker_onDateChange = 66, - KindDatePicker___onChangeEvent_selected = 67, - KindEmbeddedComponent_onTerminated = 68, - KindFolderStack_onFolderStateChange = 69, - KindFolderStack_onHoverStatusChange = 70, - KindFormComponent_onAcquired = 71, - KindFormComponent_onError = 72, - KindFormComponent_onRouter = 73, - KindFormComponent_onUninstall = 74, - KindFormComponent_onLoad = 75, - KindGauge_description = 76, - KindGrid_onScrollBarUpdate = 77, - KindGrid_onScrollIndex = 78, - KindGrid_onItemDragStart = 79, - KindGrid_onItemDragEnter = 80, - KindGrid_onItemDragMove = 81, - KindGrid_onItemDragLeave = 82, - KindGrid_onItemDrop = 83, - KindGrid_onScroll = 84, - KindGrid_onReachStart = 85, - KindGrid_onReachEnd = 86, - KindGrid_onScrollStart = 87, - KindGrid_onScrollStop = 88, - KindGrid_onScrollFrameBegin = 89, - KindGridItem_onSelect = 90, - KindGridItem___onChangeEvent_selected = 91, - KindGridRow_onBreakpointChange = 92, - KindImage_onComplete = 93, - KindImage_onError = 94, - KindImage_onFinish = 95, - KindImageAnimator_onStart = 96, - KindImageAnimator_onPause = 97, - KindImageAnimator_onRepeat = 98, - KindImageAnimator_onCancel = 99, - KindImageAnimator_onFinish = 100, - KindImageSpan_onComplete = 101, - KindImageSpan_onError = 102, - KindList_onScroll = 103, - KindList_onScrollIndex = 104, - KindList_onScrollVisibleContentChange = 105, - KindList_onReachStart = 106, - KindList_onReachEnd = 107, - KindList_onScrollStart = 108, - KindList_onScrollStop = 109, - KindList_onItemDelete = 110, - KindList_onItemMove = 111, - KindList_onItemDragStart = 112, - KindList_onItemDragEnter = 113, - KindList_onItemDragMove = 114, - KindList_onItemDragLeave = 115, - KindList_onItemDrop = 116, - KindList_onScrollFrameBegin = 117, - KindListItem_onSelect = 118, - KindListItem___onChangeEvent_selected = 119, - KindLocationButton_onClick = 120, - KindMarquee_onStart = 121, - KindMarquee_onBounce = 122, - KindMarquee_onFinish = 123, - KindMenuItem_onChange = 124, - KindMenuItem___onChangeEvent_selected = 125, - KindNavDestination_onShown = 126, - KindNavDestination_onHidden = 127, - KindNavDestination_onBackPressed = 128, - KindNavDestination_onReady = 129, - KindNavDestination_onWillAppear = 130, - KindNavDestination_onWillDisappear = 131, - KindNavDestination_onWillShow = 132, - KindNavDestination_onWillHide = 133, - KindNavRouter_onStateChange = 134, - KindPanel_onChange = 135, - KindPanel_onHeightChange = 136, - KindPanel___onChangeEvent_mode = 137, - KindPasteButton_onClick = 138, - KindPatternLock_onPatternComplete = 139, - KindPatternLock_onDotConnect = 140, - KindPluginComponent_onComplete = 141, - KindPluginComponent_onError = 142, - KindRadio_onChange = 143, - KindRadio___onChangeEvent_checked = 144, - KindRating_onChange = 145, - KindRating___onChangeEvent_rating = 146, - KindRefresh_onStateChange = 147, - KindRefresh_onRefreshing = 148, - KindRefresh_onOffsetChange = 149, - KindRefresh___onChangeEvent_refreshing = 150, - KindRichEditor_onReady = 151, - KindRichEditor_onSelect = 152, - KindRichEditor_onSelectionChange = 153, - KindRichEditor_aboutToIMEInput = 154, - KindRichEditor_onIMEInputComplete = 155, - KindRichEditor_onDidIMEInput = 156, - KindRichEditor_aboutToDelete = 157, - KindRichEditor_onDeleteComplete = 158, - KindRichEditor_onPaste = 159, - KindRichEditor_onEditingChange = 160, - KindRichEditor_onSubmit = 161, - KindRichEditor_onWillChange = 162, - KindRichEditor_onDidChange = 163, - KindRichEditor_onCut = 164, - KindRichEditor_onCopy = 165, - KindRichEditor_bindSelectionMenu = 166, - KindRichEditor_customKeyboard = 167, - KindRichText_onStart = 168, - KindRichText_onComplete = 169, - KindSaveButton_onClick = 170, - KindScroll_onScroll = 171, - KindScroll_onScrollEdge = 172, - KindScroll_onScrollStart = 173, - KindScroll_onScrollEnd = 174, - KindScroll_onScrollStop = 175, - KindScroll_onScrollFrameBegin = 176, - KindSearch_onEditChange = 177, - KindSearch_onSubmit0 = 178, - KindSearch_onSubmit1 = 179, - KindSearch_onChange = 180, - KindSearch_onTextSelectionChange = 181, - KindSearch_onContentScroll = 182, - KindSearch_onCopy = 183, - KindSearch_onCut = 184, - KindSearch_onPaste = 185, - KindSearch_onWillInsert = 186, - KindSearch_onDidInsert = 187, - KindSearch_onWillDelete = 188, - KindSearch_onDidDelete = 189, - KindSearch_customKeyboard = 190, - KindSearch___onChangeEvent_value = 191, - KindSelect_onSelect = 192, - KindSelect___onChangeEvent_selected = 193, - KindSelect___onChangeEvent_value = 194, - KindSlider_onChange = 195, - KindSlider___onChangeEvent_value = 196, - KindStepper_onFinish = 197, - KindStepper_onSkip = 198, - KindStepper_onChange = 199, - KindStepper_onNext = 200, - KindStepper_onPrevious = 201, - KindStepper___onChangeEvent_index = 202, - KindSwiper_onChange = 203, - KindSwiper_onAnimationStart = 204, - KindSwiper_onAnimationEnd = 205, - KindSwiper_onGestureSwipe = 206, - KindSwiper_onContentDidScroll = 207, - KindSwiper___onChangeEvent_index = 208, - KindIndicatorComponent_onChange = 209, - KindTabs_onChange = 210, - KindTabs_onTabBarClick = 211, - KindTabs_onAnimationStart = 212, - KindTabs_onAnimationEnd = 213, - KindTabs_onGestureSwipe = 214, - KindTabs_customContentTransition = 215, - KindTabs_onContentWillChange = 216, - KindTabs___onChangeEvent_index = 217, - KindTabContent_onWillShow = 218, - KindTabContent_onWillHide = 219, - KindText_onCopy = 220, - KindText_onTextSelectionChange = 221, - KindText_bindSelectionMenu = 222, - KindTextArea_onSubmit0 = 223, - KindTextArea_onSubmit1 = 224, - KindTextArea_onChange = 225, - KindTextArea_onTextSelectionChange = 226, - KindTextArea_onContentScroll = 227, - KindTextArea_onEditChange = 228, - KindTextArea_onCopy = 229, - KindTextArea_onCut = 230, - KindTextArea_onPaste = 231, - KindTextArea_onWillInsert = 232, - KindTextArea_onDidInsert = 233, - KindTextArea_onWillDelete = 234, - KindTextArea_onDidDelete = 235, - KindTextArea_customKeyboard = 236, - KindTextArea___onChangeEvent_text = 237, - KindTextClock_onDateChange = 238, - KindTextInput_onEditChanged = 239, - KindTextInput_onEditChange = 240, - KindTextInput_onSubmit = 241, - KindTextInput_onChange = 242, - KindTextInput_onTextSelectionChange = 243, - KindTextInput_onContentScroll = 244, - KindTextInput_onCopy = 245, - KindTextInput_onCut = 246, - KindTextInput_onPaste = 247, - KindTextInput_showUnit = 248, - KindTextInput_onSecurityStateChange = 249, - KindTextInput_onWillInsert = 250, - KindTextInput_onDidInsert = 251, - KindTextInput_onWillDelete = 252, - KindTextInput_onDidDelete = 253, - KindTextInput_customKeyboard = 254, - KindTextInput___onChangeEvent_text = 255, - KindTextPicker_onAccept = 256, - KindTextPicker_onCancel = 257, - KindTextPicker_onChange = 258, - KindTextPicker___onChangeEvent_selected = 259, - KindTextPicker___onChangeEvent_value = 260, - KindTextTimer_onTimer = 261, - KindTimePicker_onChange = 262, - KindTimePicker___onChangeEvent_selected = 263, - KindToggle_onChange = 264, - KindToggle___onChangeEvent_isOn = 265, - KindVideo_onStart = 266, - KindVideo_onPause = 267, - KindVideo_onFinish = 268, - KindVideo_onFullscreenChange = 269, - KindVideo_onPrepared = 270, - KindVideo_onSeeking = 271, - KindVideo_onSeeked = 272, - KindVideo_onUpdate = 273, - KindVideo_onError = 274, - KindVideo_onStop = 275, - KindWeb_onPageEnd = 276, - KindWeb_onPageBegin = 277, - KindWeb_onProgressChange = 278, - KindWeb_onTitleReceive = 279, - KindWeb_onGeolocationHide = 280, - KindWeb_onGeolocationShow = 281, - KindWeb_onRequestSelected = 282, - KindWeb_onAlert = 283, - KindWeb_onBeforeUnload = 284, - KindWeb_onConfirm = 285, - KindWeb_onPrompt = 286, - KindWeb_onConsole = 287, - KindWeb_onErrorReceive = 288, - KindWeb_onHttpErrorReceive = 289, - KindWeb_onDownloadStart = 290, - KindWeb_onRefreshAccessedHistory = 291, - KindWeb_onUrlLoadIntercept = 292, - KindWeb_onSslErrorReceive = 293, - KindWeb_onRenderExited0 = 294, - KindWeb_onRenderExited1 = 295, - KindWeb_onShowFileSelector = 296, - KindWeb_onFileSelectorShow = 297, - KindWeb_onResourceLoad = 298, - KindWeb_onFullScreenExit = 299, - KindWeb_onFullScreenEnter = 300, - KindWeb_onScaleChange = 301, - KindWeb_onHttpAuthRequest = 302, - KindWeb_onInterceptRequest = 303, - KindWeb_onPermissionRequest = 304, - KindWeb_onScreenCaptureRequest = 305, - KindWeb_onContextMenuShow = 306, - KindWeb_onContextMenuHide = 307, - KindWeb_onSearchResultReceive = 308, - KindWeb_onScroll = 309, - KindWeb_onSslErrorEventReceive = 310, - KindWeb_onSslErrorEvent = 311, - KindWeb_onClientAuthenticationRequest = 312, - KindWeb_onWindowNew = 313, - KindWeb_onWindowExit = 314, - KindWeb_onInterceptKeyEvent = 315, - KindWeb_onTouchIconUrlReceived = 316, - KindWeb_onFaviconReceived = 317, - KindWeb_onPageVisible = 318, - KindWeb_onDataResubmitted = 319, - KindWeb_onAudioStateChanged = 320, - KindWeb_onFirstContentfulPaint = 321, - KindWeb_onFirstMeaningfulPaint = 322, - KindWeb_onLargestContentfulPaint = 323, - KindWeb_onLoadIntercept = 324, - KindWeb_onControllerAttached = 325, - KindWeb_onOverScroll = 326, - KindWeb_onSafeBrowsingCheckResult = 327, - KindWeb_onNavigationEntryCommitted = 328, - KindWeb_onIntelligentTrackingPreventionResult = 329, - KindWeb_onNativeEmbedLifecycleChange = 330, - KindWeb_onNativeEmbedVisibilityChange = 331, - KindWeb_onNativeEmbedGestureEvent = 332, - KindWeb_onOverrideUrlLoading = 333, - KindWeb_onRenderProcessNotResponding = 334, - KindWeb_onRenderProcessResponding = 335, - KindWeb_onViewportFitChanged = 336, - KindWeb_onInterceptKeyboardAttach = 337, - KindWeb_onAdsBlocked = 338, - KindWeb_bindSelectionMenu = 339, - KindXComponent_onLoad = 340, - KindXComponent_onDestroy = 341, - KindSideBarContainer_onChange = 342, - KindSideBarContainer___onChangeEvent_showSideBar = 343, - KindWaterFlow_onReachStart = 344, - KindWaterFlow_onReachEnd = 345, - KindWaterFlow_onScrollFrameBegin = 346, - KindWaterFlow_onScrollIndex = 347, - KindUIExtensionComponent_onRemoteReady = 348, - KindUIExtensionComponent_onResult = 349, - KindUIExtensionComponent_onRelease = 350, - KindUIExtensionComponent_onTerminated = 351, + KindScrollableCommonMethod_onDidScroll = 59, + KindScrollableCommonMethod_onReachStart = 60, + KindScrollableCommonMethod_onReachEnd = 61, + KindScrollableCommonMethod_onScrollStart = 62, + KindScrollableCommonMethod_onScrollStop = 63, + KindCounter_onInc = 64, + KindCounter_onDec = 65, + KindDatePicker_onChange = 66, + KindDatePicker_onDateChange = 67, + KindDatePicker__onChangeEvent_selected = 68, + KindEmbeddedComponent_onTerminated = 69, + KindFolderStack_onFolderStateChange = 70, + KindFolderStack_onHoverStatusChange = 71, + KindFormComponent_onAcquired = 72, + KindFormComponent_onError = 73, + KindFormComponent_onRouter = 74, + KindFormComponent_onUninstall = 75, + KindFormComponent_onLoad = 76, + KindGauge_description = 77, + KindGrid_onScrollBarUpdate = 78, + KindGrid_onScrollIndex = 79, + KindGrid_onItemDragStart = 80, + KindGrid_onItemDragEnter = 81, + KindGrid_onItemDragMove = 82, + KindGrid_onItemDragLeave = 83, + KindGrid_onItemDrop = 84, + KindGrid_onScroll = 85, + KindGrid_onReachStart = 86, + KindGrid_onReachEnd = 87, + KindGrid_onScrollStart = 88, + KindGrid_onScrollStop = 89, + KindGrid_onScrollFrameBegin = 90, + KindGridItem_onSelect = 91, + KindGridItem__onChangeEvent_selected = 92, + KindGridRow_onBreakpointChange = 93, + KindImage_onComplete = 94, + KindImage_onError = 95, + KindImage_onFinish = 96, + KindImageAnimator_onStart = 97, + KindImageAnimator_onPause = 98, + KindImageAnimator_onRepeat = 99, + KindImageAnimator_onCancel = 100, + KindImageAnimator_onFinish = 101, + KindImageSpan_onComplete = 102, + KindImageSpan_onError = 103, + KindList_onScroll = 104, + KindList_onScrollIndex = 105, + KindList_onScrollVisibleContentChange = 106, + KindList_onReachStart = 107, + KindList_onReachEnd = 108, + KindList_onScrollStart = 109, + KindList_onScrollStop = 110, + KindList_onItemDelete = 111, + KindList_onItemMove = 112, + KindList_onItemDragStart = 113, + KindList_onItemDragEnter = 114, + KindList_onItemDragMove = 115, + KindList_onItemDragLeave = 116, + KindList_onItemDrop = 117, + KindList_onScrollFrameBegin = 118, + KindListItem_onSelect = 119, + KindListItem__onChangeEvent_selected = 120, + KindLocationButton_onClick = 121, + KindMarquee_onStart = 122, + KindMarquee_onBounce = 123, + KindMarquee_onFinish = 124, + KindMenuItem_onChange = 125, + KindMenuItem__onChangeEvent_selected = 126, + KindNavDestination_onShown = 127, + KindNavDestination_onHidden = 128, + KindNavDestination_onBackPressed = 129, + KindNavDestination_onReady = 130, + KindNavDestination_onWillAppear = 131, + KindNavDestination_onWillDisappear = 132, + KindNavDestination_onWillShow = 133, + KindNavDestination_onWillHide = 134, + KindNavRouter_onStateChange = 135, + KindPanel_onChange = 136, + KindPanel_onHeightChange = 137, + KindPanel__onChangeEvent_mode = 138, + KindPasteButton_onClick = 139, + KindPatternLock_onPatternComplete = 140, + KindPatternLock_onDotConnect = 141, + KindPluginComponent_onComplete = 142, + KindPluginComponent_onError = 143, + KindRadio_onChange = 144, + KindRadio__onChangeEvent_checked = 145, + KindRating_onChange = 146, + KindRating__onChangeEvent_rating = 147, + KindRefresh_onStateChange = 148, + KindRefresh_onRefreshing = 149, + KindRefresh_onOffsetChange = 150, + KindRefresh__onChangeEvent_refreshing = 151, + KindRichEditor_onReady = 152, + KindRichEditor_onSelect = 153, + KindRichEditor_onSelectionChange = 154, + KindRichEditor_aboutToIMEInput = 155, + KindRichEditor_onIMEInputComplete = 156, + KindRichEditor_onDidIMEInput = 157, + KindRichEditor_aboutToDelete = 158, + KindRichEditor_onDeleteComplete = 159, + KindRichEditor_onPaste = 160, + KindRichEditor_onEditingChange = 161, + KindRichEditor_onSubmit = 162, + KindRichEditor_onWillChange = 163, + KindRichEditor_onDidChange = 164, + KindRichEditor_onCut = 165, + KindRichEditor_onCopy = 166, + KindRichEditor_bindSelectionMenu = 167, + KindRichEditor_customKeyboard = 168, + KindRichText_onStart = 169, + KindRichText_onComplete = 170, + KindSaveButton_onClick = 171, + KindScroll_onScroll = 172, + KindScroll_onDidScroll = 173, + KindScroll_onScrollEdge = 174, + KindScroll_onScrollStart = 175, + KindScroll_onScrollEnd = 176, + KindScroll_onScrollStop = 177, + KindScroll_onScrollFrameBegin = 178, + KindSearch_onEditChange = 179, + KindSearch_onSubmit0 = 180, + KindSearch_onSubmit1 = 181, + KindSearch_onChange = 182, + KindSearch_onTextSelectionChange = 183, + KindSearch_onContentScroll = 184, + KindSearch_onCopy = 185, + KindSearch_onCut = 186, + KindSearch_onPaste = 187, + KindSearch_onWillInsert = 188, + KindSearch_onDidInsert = 189, + KindSearch_onWillDelete = 190, + KindSearch_onDidDelete = 191, + KindSearch_customKeyboard = 192, + KindSearch__onChangeEvent_value = 193, + KindSelect_onSelect = 194, + KindSelect__onChangeEvent_selected = 195, + KindSelect__onChangeEvent_value = 196, + KindSlider_onChange = 197, + KindSlider__onChangeEvent_value = 198, + KindStepper_onFinish = 199, + KindStepper_onSkip = 200, + KindStepper_onChange = 201, + KindStepper_onNext = 202, + KindStepper_onPrevious = 203, + KindStepper__onChangeEvent_index = 204, + KindSwiper_onChange = 205, + KindSwiper_onAnimationStart = 206, + KindSwiper_onAnimationEnd = 207, + KindSwiper_onGestureSwipe = 208, + KindSwiper_onContentDidScroll = 209, + KindSwiper__onChangeEvent_index = 210, + KindIndicatorComponent_onChange = 211, + KindTabs_onChange = 212, + KindTabs_onTabBarClick = 213, + KindTabs_onAnimationStart = 214, + KindTabs_onAnimationEnd = 215, + KindTabs_onGestureSwipe = 216, + KindTabs_customContentTransition = 217, + KindTabs_onContentWillChange = 218, + KindTabs__onChangeEvent_index = 219, + KindTabContent_onWillShow = 220, + KindTabContent_onWillHide = 221, + KindText_onCopy = 222, + KindText_onTextSelectionChange = 223, + KindText_bindSelectionMenu = 224, + KindTextArea_onSubmit0 = 225, + KindTextArea_onSubmit1 = 226, + KindTextArea_onChange = 227, + KindTextArea_onTextSelectionChange = 228, + KindTextArea_onContentScroll = 229, + KindTextArea_onEditChange = 230, + KindTextArea_onCopy = 231, + KindTextArea_onCut = 232, + KindTextArea_onPaste = 233, + KindTextArea_onWillInsert = 234, + KindTextArea_onDidInsert = 235, + KindTextArea_onWillDelete = 236, + KindTextArea_onDidDelete = 237, + KindTextArea_customKeyboard = 238, + KindTextArea__onChangeEvent_text = 239, + KindTextClock_onDateChange = 240, + KindTextInput_onEditChanged = 241, + KindTextInput_onEditChange = 242, + KindTextInput_onSubmit = 243, + KindTextInput_onChange = 244, + KindTextInput_onTextSelectionChange = 245, + KindTextInput_onContentScroll = 246, + KindTextInput_onCopy = 247, + KindTextInput_onCut = 248, + KindTextInput_onPaste = 249, + KindTextInput_showUnit = 250, + KindTextInput_onSecurityStateChange = 251, + KindTextInput_onWillInsert = 252, + KindTextInput_onDidInsert = 253, + KindTextInput_onWillDelete = 254, + KindTextInput_onDidDelete = 255, + KindTextInput_customKeyboard = 256, + KindTextInput__onChangeEvent_text = 257, + KindTextPicker_onAccept = 258, + KindTextPicker_onCancel = 259, + KindTextPicker_onChange = 260, + KindTextPicker__onChangeEvent_selected = 261, + KindTextPicker__onChangeEvent_value = 262, + KindTextTimer_onTimer = 263, + KindTimePicker_onChange = 264, + KindTimePicker__onChangeEvent_selected = 265, + KindToggle_onChange = 266, + KindToggle__onChangeEvent_isOn = 267, + KindVideo_onStart = 268, + KindVideo_onPause = 269, + KindVideo_onFinish = 270, + KindVideo_onFullscreenChange = 271, + KindVideo_onPrepared = 272, + KindVideo_onSeeking = 273, + KindVideo_onSeeked = 274, + KindVideo_onUpdate = 275, + KindVideo_onError = 276, + KindVideo_onStop = 277, + KindWeb_onPageEnd = 278, + KindWeb_onPageBegin = 279, + KindWeb_onProgressChange = 280, + KindWeb_onTitleReceive = 281, + KindWeb_onGeolocationHide = 282, + KindWeb_onGeolocationShow = 283, + KindWeb_onRequestSelected = 284, + KindWeb_onAlert = 285, + KindWeb_onBeforeUnload = 286, + KindWeb_onConfirm = 287, + KindWeb_onPrompt = 288, + KindWeb_onConsole = 289, + KindWeb_onErrorReceive = 290, + KindWeb_onHttpErrorReceive = 291, + KindWeb_onDownloadStart = 292, + KindWeb_onRefreshAccessedHistory = 293, + KindWeb_onUrlLoadIntercept = 294, + KindWeb_onSslErrorReceive = 295, + KindWeb_onRenderExited0 = 296, + KindWeb_onRenderExited1 = 297, + KindWeb_onShowFileSelector = 298, + KindWeb_onFileSelectorShow = 299, + KindWeb_onResourceLoad = 300, + KindWeb_onFullScreenExit = 301, + KindWeb_onFullScreenEnter = 302, + KindWeb_onScaleChange = 303, + KindWeb_onHttpAuthRequest = 304, + KindWeb_onInterceptRequest = 305, + KindWeb_onPermissionRequest = 306, + KindWeb_onScreenCaptureRequest = 307, + KindWeb_onContextMenuShow = 308, + KindWeb_onContextMenuHide = 309, + KindWeb_onSearchResultReceive = 310, + KindWeb_onScroll = 311, + KindWeb_onSslErrorEventReceive = 312, + KindWeb_onSslErrorEvent = 313, + KindWeb_onClientAuthenticationRequest = 314, + KindWeb_onWindowNew = 315, + KindWeb_onWindowExit = 316, + KindWeb_onInterceptKeyEvent = 317, + KindWeb_onTouchIconUrlReceived = 318, + KindWeb_onFaviconReceived = 319, + KindWeb_onPageVisible = 320, + KindWeb_onDataResubmitted = 321, + KindWeb_onAudioStateChanged = 322, + KindWeb_onFirstContentfulPaint = 323, + KindWeb_onFirstMeaningfulPaint = 324, + KindWeb_onLargestContentfulPaint = 325, + KindWeb_onLoadIntercept = 326, + KindWeb_onControllerAttached = 327, + KindWeb_onOverScroll = 328, + KindWeb_onSafeBrowsingCheckResult = 329, + KindWeb_onNavigationEntryCommitted = 330, + KindWeb_onIntelligentTrackingPreventionResult = 331, + KindWeb_onNativeEmbedLifecycleChange = 332, + KindWeb_onNativeEmbedVisibilityChange = 333, + KindWeb_onNativeEmbedGestureEvent = 334, + KindWeb_onOverrideUrlLoading = 335, + KindWeb_onRenderProcessNotResponding = 336, + KindWeb_onRenderProcessResponding = 337, + KindWeb_onViewportFitChanged = 338, + KindWeb_onInterceptKeyboardAttach = 339, + KindWeb_onAdsBlocked = 340, + KindWeb_bindSelectionMenu = 341, + KindXComponent_onLoad = 342, + KindXComponent_onDestroy = 343, + KindSideBarContainer_onChange = 344, + KindSideBarContainer__onChangeEvent_showSideBar = 345, + KindWaterFlow_onReachStart = 346, + KindWaterFlow_onReachEnd = 347, + KindWaterFlow_onScrollFrameBegin = 348, + KindWaterFlow_onScrollIndex = 349, + KindUIExtensionComponent_onRemoteReady = 350, + KindUIExtensionComponent_onResult = 351, + KindUIExtensionComponent_onRelease = 352, + KindUIExtensionComponent_onTerminated = 353, }; namespace AbilityComponent { @@ -432,12 +434,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Number index) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Number index) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindAlphabetIndexer___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindAlphabetIndexer__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); @@ -550,12 +552,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(value); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_selectImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCheckbox___onChangeEvent_select); + _eventBufferSerializer.writeInt32(KindCheckbox__onChangeEvent_select); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -572,12 +574,12 @@ namespace Generated { _eventBufferSerializer.writeCheckboxGroupResult(value); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectAllImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_selectAllImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindCheckboxGroup___onChangeEvent_selectAll); + _eventBufferSerializer.writeInt32(KindCheckboxGroup__onChangeEvent_selectAll); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -1028,6 +1030,20 @@ namespace Generated { _eventBufferSerializer.writeNumber(last); sendEvent(&_eventBuffer); } + void onDidScrollImpl(Ark_Int32 nodeId, + const Ark_Number xOffset, + const Ark_Number yOffset, + const Ark_ScrollState scrollState) + { + EventBuffer _eventBuffer; + Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); + _eventBufferSerializer.writeInt32(KindScrollableCommonMethod_onDidScroll); + _eventBufferSerializer.writeInt32(nodeId); + _eventBufferSerializer.writeNumber(xOffset); + _eventBufferSerializer.writeNumber(yOffset); + _eventBufferSerializer.writeInt32(static_cast(scrollState)); + sendEvent(&_eventBuffer); + } void onReachStartImpl(Ark_Int32 nodeId) { EventBuffer _eventBuffer; @@ -1100,12 +1116,12 @@ namespace Generated { _eventBufferSerializer.writeInt64(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Date parameter) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Date parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindDatePicker___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindDatePicker__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeInt64(parameter); sendEvent(&_eventBuffer); @@ -1365,12 +1381,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindGridItem___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindGridItem__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -1686,12 +1702,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindListItem___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindListItem__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -1748,12 +1764,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindMenuItem___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindMenuItem__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -1864,12 +1880,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); } - void __onChangeEvent_modeImpl(Ark_Int32 nodeId, - const Ark_PanelMode mode) + void _onChangeEvent_modeImpl(Ark_Int32 nodeId, + const Ark_PanelMode mode) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindPanel___onChangeEvent_mode); + _eventBufferSerializer.writeInt32(KindPanel__onChangeEvent_mode); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeInt32(static_cast(mode)); sendEvent(&_eventBuffer); @@ -1946,12 +1962,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_checkedImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_checkedImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRadio___onChangeEvent_checked); + _eventBufferSerializer.writeInt32(KindRadio__onChangeEvent_checked); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -1968,12 +1984,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); } - void __onChangeEvent_ratingImpl(Ark_Int32 nodeId, - const Ark_Number index) + void _onChangeEvent_ratingImpl(Ark_Int32 nodeId, + const Ark_Number index) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRating___onChangeEvent_rating); + _eventBufferSerializer.writeInt32(KindRating__onChangeEvent_rating); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); @@ -2008,12 +2024,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); } - void __onChangeEvent_refreshingImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_refreshingImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindRefresh___onChangeEvent_refreshing); + _eventBufferSerializer.writeInt32(KindRefresh__onChangeEvent_refreshing); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -2238,6 +2254,20 @@ namespace Generated { _eventBufferSerializer.writeNumber(last); sendEvent(&_eventBuffer); } + void onDidScrollImpl(Ark_Int32 nodeId, + const Ark_Number xOffset, + const Ark_Number yOffset, + const Ark_ScrollState scrollState) + { + EventBuffer _eventBuffer; + Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); + _eventBufferSerializer.writeInt32(KindScroll_onDidScroll); + _eventBufferSerializer.writeInt32(nodeId); + _eventBufferSerializer.writeNumber(xOffset); + _eventBufferSerializer.writeNumber(yOffset); + _eventBufferSerializer.writeInt32(static_cast(scrollState)); + sendEvent(&_eventBuffer); + } void onScrollEdgeImpl(Ark_Int32 nodeId, const Ark_Edge side) { @@ -2446,12 +2476,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); sendEvent(&_eventBuffer); } - void __onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_String breakpoints) + void _onChangeEvent_valueImpl(Ark_Int32 nodeId, + const Ark_String breakpoints) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSearch___onChangeEvent_value); + _eventBufferSerializer.writeInt32(KindSearch__onChangeEvent_value); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeString(breakpoints); sendEvent(&_eventBuffer); @@ -2470,12 +2500,12 @@ namespace Generated { _eventBufferSerializer.writeString(value); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Union_Number_Resource selected) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Union_Number_Resource selected) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSelect___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindSelect__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; @@ -2491,12 +2521,12 @@ namespace Generated { } sendEvent(&_eventBuffer); } - void __onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_ResourceStr value) + void _onChangeEvent_valueImpl(Ark_Int32 nodeId, + const Ark_ResourceStr value) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSelect___onChangeEvent_value); + _eventBufferSerializer.writeInt32(KindSelect__onChangeEvent_value); _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; @@ -2526,12 +2556,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(static_cast(mode)); sendEvent(&_eventBuffer); } - void __onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_Number index) + void _onChangeEvent_valueImpl(Ark_Int32 nodeId, + const Ark_Number index) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSlider___onChangeEvent_value); + _eventBufferSerializer.writeInt32(KindSlider__onChangeEvent_value); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); @@ -2590,12 +2620,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(last); sendEvent(&_eventBuffer); } - void __onChangeEvent_indexImpl(Ark_Int32 nodeId, - const Ark_Number index) + void _onChangeEvent_indexImpl(Ark_Int32 nodeId, + const Ark_Number index) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindStepper___onChangeEvent_index); + _eventBufferSerializer.writeInt32(KindStepper__onChangeEvent_index); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); @@ -2666,12 +2696,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(mainAxisLength); sendEvent(&_eventBuffer); } - void __onChangeEvent_indexImpl(Ark_Int32 nodeId, - const Ark_Number index) + void _onChangeEvent_indexImpl(Ark_Int32 nodeId, + const Ark_Number index) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSwiper___onChangeEvent_index); + _eventBufferSerializer.writeInt32(KindSwiper__onChangeEvent_index); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); @@ -2772,12 +2802,12 @@ namespace Generated { _eventBufferSerializer.writeNumber(comingIndex); sendEvent(&_eventBuffer); } - void __onChangeEvent_indexImpl(Ark_Int32 nodeId, - const Ark_Number index) + void _onChangeEvent_indexImpl(Ark_Int32 nodeId, + const Ark_Number index) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTabs___onChangeEvent_index); + _eventBufferSerializer.writeInt32(KindTabs__onChangeEvent_index); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeNumber(index); sendEvent(&_eventBuffer); @@ -2994,12 +3024,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); sendEvent(&_eventBuffer); } - void __onChangeEvent_textImpl(Ark_Int32 nodeId, - const Ark_ResourceStr value) + void _onChangeEvent_textImpl(Ark_Int32 nodeId, + const Ark_ResourceStr value) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextArea___onChangeEvent_text); + _eventBufferSerializer.writeInt32(KindTextArea__onChangeEvent_text); _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; @@ -3201,12 +3231,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); sendEvent(&_eventBuffer); } - void __onChangeEvent_textImpl(Ark_Int32 nodeId, - const Ark_ResourceStr value) + void _onChangeEvent_textImpl(Ark_Int32 nodeId, + const Ark_ResourceStr value) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextInput___onChangeEvent_text); + _eventBufferSerializer.writeInt32(KindTextInput__onChangeEvent_text); _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; @@ -3286,12 +3316,12 @@ namespace Generated { } sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Union_Number_Array_Number selected) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Union_Number_Array_Number selected) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindTextPicker__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; @@ -3311,12 +3341,12 @@ namespace Generated { } sendEvent(&_eventBuffer); } - void __onChangeEvent_valueImpl(Ark_Int32 nodeId, - const Ark_Union_String_Array_String value) + void _onChangeEvent_valueImpl(Ark_Int32 nodeId, + const Ark_Union_String_Array_String value) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTextPicker___onChangeEvent_value); + _eventBufferSerializer.writeInt32(KindTextPicker__onChangeEvent_value); _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; @@ -3362,12 +3392,12 @@ namespace Generated { _eventBufferSerializer.writeTimePickerResult(value); sendEvent(&_eventBuffer); } - void __onChangeEvent_selectedImpl(Ark_Int32 nodeId, - const Ark_Date parameter) + void _onChangeEvent_selectedImpl(Ark_Int32 nodeId, + const Ark_Date parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindTimePicker___onChangeEvent_selected); + _eventBufferSerializer.writeInt32(KindTimePicker__onChangeEvent_selected); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeInt64(parameter); sendEvent(&_eventBuffer); @@ -3384,12 +3414,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_isOnImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_isOnImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindToggle___onChangeEvent_isOn); + _eventBufferSerializer.writeInt32(KindToggle__onChangeEvent_isOn); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -4193,12 +4223,12 @@ namespace Generated { _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); } - void __onChangeEvent_showSideBarImpl(Ark_Int32 nodeId, - const Ark_Boolean parameter) + void _onChangeEvent_showSideBarImpl(Ark_Int32 nodeId, + const Ark_Boolean parameter) { EventBuffer _eventBuffer; Serializer _eventBufferSerializer(_eventBuffer.buffer, sizeof(_eventBuffer.buffer)); - _eventBufferSerializer.writeInt32(KindSideBarContainer___onChangeEvent_showSideBar); + _eventBufferSerializer.writeInt32(KindSideBarContainer__onChangeEvent_showSideBar); _eventBufferSerializer.writeInt32(nodeId); _eventBufferSerializer.writeBoolean(parameter); sendEvent(&_eventBuffer); @@ -4313,7 +4343,7 @@ namespace Generated { AlphabetIndexer::onSelectImpl, AlphabetIndexer::onRequestPopupDataImpl, AlphabetIndexer::onPopupSelectImpl, - AlphabetIndexer::__onChangeEvent_selectedImpl, + AlphabetIndexer::_onChangeEvent_selectedImpl, }; return &GENERATED_ArkUIAlphabetIndexerEventsReceiverImpl; @@ -4360,7 +4390,7 @@ namespace Generated { { static const GENERATED_ArkUICheckboxEventsReceiver GENERATED_ArkUICheckboxEventsReceiverImpl { Checkbox::onChangeImpl, - Checkbox::__onChangeEvent_selectImpl, + Checkbox::_onChangeEvent_selectImpl, }; return &GENERATED_ArkUICheckboxEventsReceiverImpl; @@ -4369,7 +4399,7 @@ namespace Generated { { static const GENERATED_ArkUICheckboxGroupEventsReceiver GENERATED_ArkUICheckboxGroupEventsReceiverImpl { CheckboxGroup::onChangeImpl, - CheckboxGroup::__onChangeEvent_selectAllImpl, + CheckboxGroup::_onChangeEvent_selectAllImpl, }; return &GENERATED_ArkUICheckboxGroupEventsReceiverImpl; @@ -4422,6 +4452,7 @@ namespace Generated { { static const GENERATED_ArkUIScrollableCommonMethodEventsReceiver GENERATED_ArkUIScrollableCommonMethodEventsReceiverImpl { ScrollableCommonMethod::onScrollImpl, + ScrollableCommonMethod::onDidScrollImpl, ScrollableCommonMethod::onReachStartImpl, ScrollableCommonMethod::onReachEndImpl, ScrollableCommonMethod::onScrollStartImpl, @@ -4444,7 +4475,7 @@ namespace Generated { static const GENERATED_ArkUIDatePickerEventsReceiver GENERATED_ArkUIDatePickerEventsReceiverImpl { DatePicker::onChangeImpl, DatePicker::onDateChangeImpl, - DatePicker::__onChangeEvent_selectedImpl, + DatePicker::_onChangeEvent_selectedImpl, }; return &GENERATED_ArkUIDatePickerEventsReceiverImpl; @@ -4510,7 +4541,7 @@ namespace Generated { { static const GENERATED_ArkUIGridItemEventsReceiver GENERATED_ArkUIGridItemEventsReceiverImpl { GridItem::onSelectImpl, - GridItem::__onChangeEvent_selectedImpl, + GridItem::_onChangeEvent_selectedImpl, }; return &GENERATED_ArkUIGridItemEventsReceiverImpl; @@ -4580,7 +4611,7 @@ namespace Generated { { static const GENERATED_ArkUIListItemEventsReceiver GENERATED_ArkUIListItemEventsReceiverImpl { ListItem::onSelectImpl, - ListItem::__onChangeEvent_selectedImpl, + ListItem::_onChangeEvent_selectedImpl, }; return &GENERATED_ArkUIListItemEventsReceiverImpl; @@ -4607,7 +4638,7 @@ namespace Generated { { static const GENERATED_ArkUIMenuItemEventsReceiver GENERATED_ArkUIMenuItemEventsReceiverImpl { MenuItem::onChangeImpl, - MenuItem::__onChangeEvent_selectedImpl, + MenuItem::_onChangeEvent_selectedImpl, }; return &GENERATED_ArkUIMenuItemEventsReceiverImpl; @@ -4640,7 +4671,7 @@ namespace Generated { static const GENERATED_ArkUIPanelEventsReceiver GENERATED_ArkUIPanelEventsReceiverImpl { Panel::onChangeImpl, Panel::onHeightChangeImpl, - Panel::__onChangeEvent_modeImpl, + Panel::_onChangeEvent_modeImpl, }; return &GENERATED_ArkUIPanelEventsReceiverImpl; @@ -4675,7 +4706,7 @@ namespace Generated { { static const GENERATED_ArkUIRadioEventsReceiver GENERATED_ArkUIRadioEventsReceiverImpl { Radio::onChangeImpl, - Radio::__onChangeEvent_checkedImpl, + Radio::_onChangeEvent_checkedImpl, }; return &GENERATED_ArkUIRadioEventsReceiverImpl; @@ -4684,7 +4715,7 @@ namespace Generated { { static const GENERATED_ArkUIRatingEventsReceiver GENERATED_ArkUIRatingEventsReceiverImpl { Rating::onChangeImpl, - Rating::__onChangeEvent_ratingImpl, + Rating::_onChangeEvent_ratingImpl, }; return &GENERATED_ArkUIRatingEventsReceiverImpl; @@ -4695,7 +4726,7 @@ namespace Generated { Refresh::onStateChangeImpl, Refresh::onRefreshingImpl, Refresh::onOffsetChangeImpl, - Refresh::__onChangeEvent_refreshingImpl, + Refresh::_onChangeEvent_refreshingImpl, }; return &GENERATED_ArkUIRefreshEventsReceiverImpl; @@ -4745,6 +4776,7 @@ namespace Generated { { static const GENERATED_ArkUIScrollEventsReceiver GENERATED_ArkUIScrollEventsReceiverImpl { Scroll::onScrollImpl, + Scroll::onDidScrollImpl, Scroll::onScrollEdgeImpl, Scroll::onScrollStartImpl, Scroll::onScrollEndImpl, @@ -4771,7 +4803,7 @@ namespace Generated { Search::onWillDeleteImpl, Search::onDidDeleteImpl, Search::customKeyboardImpl, - Search::__onChangeEvent_valueImpl, + Search::_onChangeEvent_valueImpl, }; return &GENERATED_ArkUISearchEventsReceiverImpl; @@ -4780,8 +4812,8 @@ namespace Generated { { static const GENERATED_ArkUISelectEventsReceiver GENERATED_ArkUISelectEventsReceiverImpl { Select::onSelectImpl, - Select::__onChangeEvent_selectedImpl, - Select::__onChangeEvent_valueImpl, + Select::_onChangeEvent_selectedImpl, + Select::_onChangeEvent_valueImpl, }; return &GENERATED_ArkUISelectEventsReceiverImpl; @@ -4790,7 +4822,7 @@ namespace Generated { { static const GENERATED_ArkUISliderEventsReceiver GENERATED_ArkUISliderEventsReceiverImpl { Slider::onChangeImpl, - Slider::__onChangeEvent_valueImpl, + Slider::_onChangeEvent_valueImpl, }; return &GENERATED_ArkUISliderEventsReceiverImpl; @@ -4803,7 +4835,7 @@ namespace Generated { Stepper::onChangeImpl, Stepper::onNextImpl, Stepper::onPreviousImpl, - Stepper::__onChangeEvent_indexImpl, + Stepper::_onChangeEvent_indexImpl, }; return &GENERATED_ArkUIStepperEventsReceiverImpl; @@ -4816,7 +4848,7 @@ namespace Generated { Swiper::onAnimationEndImpl, Swiper::onGestureSwipeImpl, Swiper::onContentDidScrollImpl, - Swiper::__onChangeEvent_indexImpl, + Swiper::_onChangeEvent_indexImpl, }; return &GENERATED_ArkUISwiperEventsReceiverImpl; @@ -4839,7 +4871,7 @@ namespace Generated { Tabs::onGestureSwipeImpl, Tabs::customContentTransitionImpl, Tabs::onContentWillChangeImpl, - Tabs::__onChangeEvent_indexImpl, + Tabs::_onChangeEvent_indexImpl, }; return &GENERATED_ArkUITabsEventsReceiverImpl; @@ -4880,7 +4912,7 @@ namespace Generated { TextArea::onWillDeleteImpl, TextArea::onDidDeleteImpl, TextArea::customKeyboardImpl, - TextArea::__onChangeEvent_textImpl, + TextArea::_onChangeEvent_textImpl, }; return &GENERATED_ArkUITextAreaEventsReceiverImpl; @@ -4912,7 +4944,7 @@ namespace Generated { TextInput::onWillDeleteImpl, TextInput::onDidDeleteImpl, TextInput::customKeyboardImpl, - TextInput::__onChangeEvent_textImpl, + TextInput::_onChangeEvent_textImpl, }; return &GENERATED_ArkUITextInputEventsReceiverImpl; @@ -4923,8 +4955,8 @@ namespace Generated { TextPicker::onAcceptImpl, TextPicker::onCancelImpl, TextPicker::onChangeImpl, - TextPicker::__onChangeEvent_selectedImpl, - TextPicker::__onChangeEvent_valueImpl, + TextPicker::_onChangeEvent_selectedImpl, + TextPicker::_onChangeEvent_valueImpl, }; return &GENERATED_ArkUITextPickerEventsReceiverImpl; @@ -4941,7 +4973,7 @@ namespace Generated { { static const GENERATED_ArkUITimePickerEventsReceiver GENERATED_ArkUITimePickerEventsReceiverImpl { TimePicker::onChangeImpl, - TimePicker::__onChangeEvent_selectedImpl, + TimePicker::_onChangeEvent_selectedImpl, }; return &GENERATED_ArkUITimePickerEventsReceiverImpl; @@ -4950,7 +4982,7 @@ namespace Generated { { static const GENERATED_ArkUIToggleEventsReceiver GENERATED_ArkUIToggleEventsReceiverImpl { Toggle::onChangeImpl, - Toggle::__onChangeEvent_isOnImpl, + Toggle::_onChangeEvent_isOnImpl, }; return &GENERATED_ArkUIToggleEventsReceiverImpl; @@ -5056,7 +5088,7 @@ namespace Generated { { static const GENERATED_ArkUISideBarContainerEventsReceiver GENERATED_ArkUISideBarContainerEventsReceiverImpl { SideBarContainer::onChangeImpl, - SideBarContainer::__onChangeEvent_showSideBarImpl, + SideBarContainer::_onChangeEvent_showSideBarImpl, }; return &GENERATED_ArkUISideBarContainerEventsReceiverImpl; diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index c1b765ce9..2d0a02d76 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -160,7 +160,7 @@ typedef struct InteropBuffer { // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 117 +#define GENERATED_ARKUI_FULL_API_VERSION 118 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 @@ -242,46 +242,27 @@ typedef struct _Ark_Canvas* Ark_CanvasHandle; typedef struct Array_String Array_String; typedef struct Opt_Array_String Opt_Array_String; -typedef struct Ark_BorderRadiuses Ark_BorderRadiuses; -typedef struct Opt_BorderRadiuses Opt_BorderRadiuses; typedef struct Ark_Resource Ark_Resource; typedef struct Opt_Resource Opt_Resource; +typedef struct ICurvePeer ICurvePeer; +typedef struct ICurvePeer* Ark_ICurve; +typedef struct Opt_ICurve Opt_ICurve; +typedef struct Ark_BorderRadiuses Ark_BorderRadiuses; +typedef struct Opt_BorderRadiuses Opt_BorderRadiuses; +typedef struct Ark_Padding Ark_Padding; +typedef struct Opt_Padding Opt_Padding; typedef struct Ark_Tuple_Dimension_Dimension Ark_Tuple_Dimension_Dimension; typedef struct Opt_Tuple_Dimension_Dimension Opt_Tuple_Dimension_Dimension; -typedef Ark_Materialized Ark_PixelMap; +typedef struct PixelMapPeer PixelMapPeer; +typedef struct PixelMapPeer* Ark_PixelMap; typedef struct Opt_PixelMap Opt_PixelMap; -typedef Ark_Materialized Ark_LengthMetrics; -typedef struct Opt_LengthMetrics Opt_LengthMetrics; -typedef struct Ark_Padding Ark_Padding; -typedef struct Opt_Padding Opt_Padding; -typedef struct Ark_Union_Dimension_BorderRadiuses Ark_Union_Dimension_BorderRadiuses; -typedef struct Opt_Union_Dimension_BorderRadiuses Opt_Union_Dimension_BorderRadiuses; -typedef struct Ark_ResourceColor Ark_ResourceColor; -typedef struct Opt_ResourceColor Opt_ResourceColor; -typedef struct Ark_LeadingMarginPlaceholder Ark_LeadingMarginPlaceholder; -typedef struct Opt_LeadingMarginPlaceholder Opt_LeadingMarginPlaceholder; -typedef struct Ark_Union_LengthMetrics_BorderRadiuses Ark_Union_LengthMetrics_BorderRadiuses; -typedef struct Opt_Union_LengthMetrics_BorderRadiuses Opt_Union_LengthMetrics_BorderRadiuses; -typedef struct Ark_Union_LengthMetrics_Padding Ark_Union_LengthMetrics_Padding; -typedef struct Opt_Union_LengthMetrics_Padding Opt_Union_LengthMetrics_Padding; -typedef struct Ark_Union_LengthMetrics_Margin Ark_Union_LengthMetrics_Margin; -typedef struct Opt_Union_LengthMetrics_Margin Opt_Union_LengthMetrics_Margin; -typedef Ark_Materialized Ark_ICurve; -typedef struct Opt_ICurve Opt_ICurve; typedef struct Ark_Union_Number_Resource Ark_Union_Number_Resource; typedef struct Opt_Union_Number_Resource Opt_Union_Number_Resource; typedef struct Ark_Union_Color_String_Resource_ColoringStrategy Ark_Union_Color_String_Resource_ColoringStrategy; typedef struct Opt_Union_Color_String_Resource_ColoringStrategy Opt_Union_Color_String_Resource_ColoringStrategy; -typedef struct Ark_TextBackgroundStyle Ark_TextBackgroundStyle; -typedef struct Opt_TextBackgroundStyle Opt_TextBackgroundStyle; -typedef struct Ark_Union_Number_LeadingMarginPlaceholder Ark_Union_Number_LeadingMarginPlaceholder; -typedef struct Opt_Union_Number_LeadingMarginPlaceholder Opt_Union_Number_LeadingMarginPlaceholder; -typedef struct Ark_ImageAttachmentLayoutStyle Ark_ImageAttachmentLayoutStyle; -typedef struct Opt_ImageAttachmentLayoutStyle Opt_ImageAttachmentLayoutStyle; -typedef struct Ark_SizeOptions Ark_SizeOptions; -typedef struct Opt_SizeOptions Opt_SizeOptions; -typedef struct Array_ShadowOptions Array_ShadowOptions; -typedef struct Opt_Array_ShadowOptions Opt_Array_ShadowOptions; +typedef struct LengthMetricsPeer LengthMetricsPeer; +typedef struct LengthMetricsPeer* Ark_LengthMetrics; +typedef struct Opt_LengthMetrics Opt_LengthMetrics; typedef struct Ark_Position Ark_Position; typedef struct Opt_Position Opt_Position; typedef struct Ark_Union_String_Resource Ark_Union_String_Resource; @@ -294,38 +275,26 @@ typedef struct Ark_SymbolGlyphModifier Ark_SymbolGlyphModifier; typedef struct Opt_SymbolGlyphModifier Opt_SymbolGlyphModifier; typedef struct Ark_Union_Curve_ICurve Ark_Union_Curve_ICurve; typedef struct Opt_Union_Curve_ICurve Opt_Union_Curve_ICurve; +typedef struct Ark_Union_Dimension_BorderRadiuses Ark_Union_Dimension_BorderRadiuses; +typedef struct Opt_Union_Dimension_BorderRadiuses Opt_Union_Dimension_BorderRadiuses; typedef struct Ark_Union_Dimension_Margin Ark_Union_Dimension_Margin; typedef struct Opt_Union_Dimension_Margin Opt_Union_Dimension_Margin; +typedef struct Ark_LeadingMarginPlaceholder Ark_LeadingMarginPlaceholder; +typedef struct Opt_LeadingMarginPlaceholder Opt_LeadingMarginPlaceholder; +typedef struct Ark_ResourceColor Ark_ResourceColor; +typedef struct Opt_ResourceColor Opt_ResourceColor; +typedef struct Array_ShadowOptions Array_ShadowOptions; +typedef struct Opt_Array_ShadowOptions Opt_Array_ShadowOptions; typedef struct Ark_ShadowOptions Ark_ShadowOptions; typedef struct Opt_ShadowOptions Opt_ShadowOptions; typedef struct Ark_GridRowSizeOption Ark_GridRowSizeOption; typedef struct Opt_GridRowSizeOption Opt_GridRowSizeOption; -typedef struct Ark_BackgroundColorStyle Ark_BackgroundColorStyle; -typedef struct Opt_BackgroundColorStyle Opt_BackgroundColorStyle; -typedef struct Ark_UserDataSpan Ark_UserDataSpan; -typedef struct Opt_UserDataSpan Opt_UserDataSpan; -typedef Ark_Materialized Ark_CustomSpan; -typedef struct Opt_CustomSpan Opt_CustomSpan; -typedef struct Ark_UrlStyle Ark_UrlStyle; -typedef struct Opt_UrlStyle Opt_UrlStyle; -typedef struct Ark_LineHeightStyle Ark_LineHeightStyle; -typedef struct Opt_LineHeightStyle Opt_LineHeightStyle; -typedef struct Ark_ParagraphStyle Ark_ParagraphStyle; -typedef struct Opt_ParagraphStyle Opt_ParagraphStyle; -typedef struct Ark_ImageAttachment Ark_ImageAttachment; -typedef struct Opt_ImageAttachment Opt_ImageAttachment; -typedef struct Ark_GestureStyle Ark_GestureStyle; -typedef struct Opt_GestureStyle Opt_GestureStyle; -typedef struct Ark_TextShadowStyle Ark_TextShadowStyle; -typedef struct Opt_TextShadowStyle Opt_TextShadowStyle; -typedef struct Ark_LetterSpacingStyle Ark_LetterSpacingStyle; -typedef struct Opt_LetterSpacingStyle Opt_LetterSpacingStyle; -typedef struct Ark_BaselineOffsetStyle Ark_BaselineOffsetStyle; -typedef struct Opt_BaselineOffsetStyle Opt_BaselineOffsetStyle; -typedef struct Ark_DecorationStyle Ark_DecorationStyle; -typedef struct Opt_DecorationStyle Opt_DecorationStyle; -typedef struct Ark_TextStyle_styled_string Ark_TextStyle_styled_string; -typedef struct Opt_TextStyle_styled_string Opt_TextStyle_styled_string; +typedef struct Ark_Union_LengthMetrics_BorderRadiuses Ark_Union_LengthMetrics_BorderRadiuses; +typedef struct Opt_Union_LengthMetrics_BorderRadiuses Opt_Union_LengthMetrics_BorderRadiuses; +typedef struct Ark_Union_LengthMetrics_Padding Ark_Union_LengthMetrics_Padding; +typedef struct Opt_Union_LengthMetrics_Padding Opt_Union_LengthMetrics_Padding; +typedef struct Ark_Union_LengthMetrics_Margin Ark_Union_LengthMetrics_Margin; +typedef struct Opt_Union_LengthMetrics_Margin Opt_Union_LengthMetrics_Margin; typedef struct Ark_Area Ark_Area; typedef struct Opt_Area Opt_Area; typedef struct Ark_Font Ark_Font; @@ -392,8 +361,6 @@ typedef struct CustomNodeBuilder CustomNodeBuilder; typedef struct Opt_CustomNodeBuilder Opt_CustomNodeBuilder; typedef struct Ark_Union_Length_GridRowSizeOption Ark_Union_Length_GridRowSizeOption; typedef struct Opt_Union_Length_GridRowSizeOption Opt_Union_Length_GridRowSizeOption; -typedef struct Array_Tuple_ResourceColor_Number Array_Tuple_ResourceColor_Number; -typedef struct Opt_Array_Tuple_ResourceColor_Number Opt_Array_Tuple_ResourceColor_Number; typedef struct Ark_EdgeStyles Ark_EdgeStyles; typedef struct Opt_EdgeStyles Opt_EdgeStyles; typedef struct Ark_LocalizedEdgeColors Ark_LocalizedEdgeColors; @@ -408,7 +375,8 @@ typedef struct Ark_SheetTitleOptions Ark_SheetTitleOptions; typedef struct Opt_SheetTitleOptions Opt_SheetTitleOptions; typedef struct Ark_Union_SheetSize_Length Ark_Union_SheetSize_Length; typedef struct Opt_Union_SheetSize_Length Opt_Union_SheetSize_Length; -typedef Ark_Materialized Ark_TransitionEffect; +typedef struct TransitionEffectPeer TransitionEffectPeer; +typedef struct TransitionEffectPeer* Ark_TransitionEffect; typedef struct Opt_TransitionEffect Opt_TransitionEffect; typedef struct Ark_LocalizedBorderRadiuses Ark_LocalizedBorderRadiuses; typedef struct Opt_LocalizedBorderRadiuses Opt_LocalizedBorderRadiuses; @@ -418,9 +386,13 @@ typedef struct Ark_Literal_ResourceColor_color Ark_Literal_ResourceColor_color; typedef struct Opt_Literal_ResourceColor_color Opt_Literal_ResourceColor_color; typedef struct Array_DragPreviewMode Array_DragPreviewMode; typedef struct Opt_Array_DragPreviewMode Opt_Array_DragPreviewMode; -typedef Ark_Materialized Ark_CanvasPattern; +typedef struct Array_Tuple_ResourceColor_Number Array_Tuple_ResourceColor_Number; +typedef struct Opt_Array_Tuple_ResourceColor_Number Opt_Array_Tuple_ResourceColor_Number; +typedef struct CanvasPatternPeer CanvasPatternPeer; +typedef struct CanvasPatternPeer* Ark_CanvasPattern; typedef struct Opt_CanvasPattern Opt_CanvasPattern; -typedef Ark_Materialized Ark_CanvasGradient; +typedef struct CanvasGradientPeer CanvasGradientPeer; +typedef struct CanvasGradientPeer* Ark_CanvasGradient; typedef struct Opt_CanvasGradient Opt_CanvasGradient; typedef struct VoidCallback VoidCallback; typedef struct Opt_VoidCallback Opt_VoidCallback; @@ -434,13 +406,18 @@ typedef struct Ark_ColorMetrics Ark_ColorMetrics; typedef struct Opt_ColorMetrics Opt_ColorMetrics; typedef struct Ark_StyledStringValue Ark_StyledStringValue; typedef struct Opt_StyledStringValue Opt_StyledStringValue; +typedef struct Ark_ImageAttachmentLayoutStyle Ark_ImageAttachmentLayoutStyle; +typedef struct Opt_ImageAttachmentLayoutStyle Opt_ImageAttachmentLayoutStyle; +typedef struct Ark_SizeOptions Ark_SizeOptions; +typedef struct Opt_SizeOptions Opt_SizeOptions; typedef struct Ark_Union_Margin_Dimension Ark_Union_Margin_Dimension; typedef struct Opt_Union_Margin_Dimension Opt_Union_Margin_Dimension; typedef struct GetItemMainSizeByIndex GetItemMainSizeByIndex; typedef struct Opt_GetItemMainSizeByIndex Opt_GetItemMainSizeByIndex; typedef struct Ark_Union_String_PixelMap_Resource Ark_Union_String_PixelMap_Resource; typedef struct Opt_Union_String_PixelMap_Resource Opt_Union_String_PixelMap_Resource; -typedef Ark_Materialized Ark_ImageAnalyzerController; +typedef struct ImageAnalyzerControllerPeer ImageAnalyzerControllerPeer; +typedef struct ImageAnalyzerControllerPeer* Ark_ImageAnalyzerController; typedef struct Opt_ImageAnalyzerController Opt_ImageAnalyzerController; typedef struct Array_ImageAnalyzerType Array_ImageAnalyzerType; typedef struct Opt_Array_ImageAnalyzerType Opt_Array_ImageAnalyzerType; @@ -450,11 +427,14 @@ typedef struct Ark_EventTarget Ark_EventTarget; typedef struct Opt_EventTarget Opt_EventTarget; typedef struct Map_String_String Map_String_String; typedef struct Opt_Map_String_String Opt_Map_String_String; -typedef Ark_Materialized Ark_WebResourceRequest; +typedef struct WebResourceRequestPeer WebResourceRequestPeer; +typedef struct WebResourceRequestPeer* Ark_WebResourceRequest; typedef struct Opt_WebResourceRequest Opt_WebResourceRequest; -typedef Ark_Materialized Ark_WebviewController; +typedef struct WebviewControllerPeer WebviewControllerPeer; +typedef struct WebviewControllerPeer* Ark_WebviewController; typedef struct Opt_WebviewController Opt_WebviewController; -typedef Ark_Materialized Ark_WebController; +typedef struct WebControllerPeer WebControllerPeer; +typedef struct WebControllerPeer* Ark_WebController; typedef struct Opt_WebController Opt_WebController; typedef struct Array_Header Array_Header; typedef struct Opt_Array_Header Opt_Array_Header; @@ -482,7 +462,8 @@ typedef struct Ark_Union_String_Array_String Ark_Union_String_Array_String; typedef struct Opt_Union_String_Array_String Opt_Union_String_Array_String; typedef struct Ark_Type_TextPickerOptions_range Ark_Type_TextPickerOptions_range; typedef struct Opt_Type_TextPickerOptions_range Opt_Type_TextPickerOptions_range; -typedef Ark_Materialized Ark_TextMenuItemId; +typedef struct TextMenuItemIdPeer TextMenuItemIdPeer; +typedef struct TextMenuItemIdPeer* Ark_TextMenuItemId; typedef struct Opt_TextMenuItemId Opt_TextMenuItemId; typedef struct MenuOnAppearCallback MenuOnAppearCallback; typedef struct Opt_MenuOnAppearCallback Opt_MenuOnAppearCallback; @@ -508,14 +489,6 @@ typedef struct Callback_TabContentTransitionProxy_Void Callback_TabContentTransi typedef struct Opt_Callback_TabContentTransitionProxy_Void Opt_Callback_TabContentTransitionProxy_Void; typedef struct Ark_VP Ark_VP; typedef struct Opt_VP Opt_VP; -typedef struct Ark_RectAttribute Ark_RectAttribute; -typedef struct Opt_RectAttribute Opt_RectAttribute; -typedef struct Ark_PathAttribute Ark_PathAttribute; -typedef struct Opt_PathAttribute Opt_PathAttribute; -typedef struct Ark_EllipseAttribute Ark_EllipseAttribute; -typedef struct Opt_EllipseAttribute Opt_EllipseAttribute; -typedef struct Ark_CircleAttribute Ark_CircleAttribute; -typedef struct Opt_CircleAttribute Opt_CircleAttribute; typedef struct Ark_IconOptions Ark_IconOptions; typedef struct Opt_IconOptions Opt_IconOptions; typedef struct Array_Length Array_Length; @@ -546,9 +519,11 @@ typedef struct Ark_Union_Number_String_Array_Union_Number_String Ark_Union_Numbe typedef struct Opt_Union_Number_String_Array_Union_Number_String Opt_Union_Number_String_Array_Union_Number_String; typedef struct Ark_Union_String_Number_Resource Ark_Union_String_Number_Resource; typedef struct Opt_Union_String_Number_Resource Opt_Union_String_Number_Resource; -typedef Ark_Materialized Ark_NavPathStack; +typedef struct NavPathStackPeer NavPathStackPeer; +typedef struct NavPathStackPeer* Ark_NavPathStack; typedef struct Opt_NavPathStack Opt_NavPathStack; -typedef struct Ark_NavPathInfo Ark_NavPathInfo; +typedef struct NavPathInfoPeer NavPathInfoPeer; +typedef struct NavPathInfoPeer* Ark_NavPathInfo; typedef struct Opt_NavPathInfo Opt_NavPathInfo; typedef struct InterceptionModeCallback InterceptionModeCallback; typedef struct Opt_InterceptionModeCallback Opt_InterceptionModeCallback; @@ -566,8 +541,9 @@ typedef struct Ark_GutterOption Ark_GutterOption; typedef struct Opt_GutterOption Opt_GutterOption; typedef struct Ark_GridColColumnOption Ark_GridColColumnOption; typedef struct Opt_GridColColumnOption Opt_GridColColumnOption; -typedef struct Ark_LinearGradient_common Ark_LinearGradient_common; -typedef struct Opt_LinearGradient_common Opt_LinearGradient_common; +typedef struct LinearGradientPeer LinearGradientPeer; +typedef struct LinearGradientPeer* Ark_LinearGradient; +typedef struct Opt_LinearGradient Opt_LinearGradient; typedef struct Callback_Date_Void Callback_Date_Void; typedef struct Opt_Callback_Date_Void Opt_Callback_Date_Void; typedef struct Callback_DatePickerResult_Void Callback_DatePickerResult_Void; @@ -664,11 +640,15 @@ typedef struct Ark_OutlineRadiuses Ark_OutlineRadiuses; typedef struct Opt_OutlineRadiuses Opt_OutlineRadiuses; typedef struct Ark_EdgeOutlineWidths Ark_EdgeOutlineWidths; typedef struct Opt_EdgeOutlineWidths Opt_EdgeOutlineWidths; -typedef Ark_Materialized Ark_DrawingCanvas; +typedef struct Ark_LinearGradient_common Ark_LinearGradient_common; +typedef struct Opt_LinearGradient_common Opt_LinearGradient_common; +typedef struct DrawingCanvasPeer DrawingCanvasPeer; +typedef struct DrawingCanvasPeer* Ark_DrawingCanvas; typedef struct Opt_DrawingCanvas Opt_DrawingCanvas; typedef struct Ark_Size Ark_Size; typedef struct Opt_Size Opt_Size; -typedef Ark_Materialized Ark_FrameNode; +typedef struct FrameNodePeer FrameNodePeer; +typedef struct FrameNodePeer* Ark_FrameNode; typedef struct Opt_FrameNode Opt_FrameNode; typedef struct Ark_Union_String_Number_CanvasGradient_CanvasPattern Ark_Union_String_Number_CanvasGradient_CanvasPattern; typedef struct Opt_Union_String_Number_CanvasGradient_CanvasPattern Opt_Union_String_Number_CanvasGradient_CanvasPattern; @@ -700,12 +680,11 @@ typedef struct Ark_RestrictedWorker Ark_RestrictedWorker; typedef struct Opt_RestrictedWorker Opt_RestrictedWorker; typedef struct Ark_Want Ark_Want; typedef struct Opt_Want Opt_Want; -typedef Ark_Materialized Ark_StyledString; +typedef struct StyledStringPeer StyledStringPeer; +typedef struct StyledStringPeer* Ark_StyledString; typedef struct Opt_StyledString Opt_StyledString; typedef struct Ark_NavigationAnimatedTransition Ark_NavigationAnimatedTransition; typedef struct Opt_NavigationAnimatedTransition Opt_NavigationAnimatedTransition; -typedef struct Ark_NavContentInfo Ark_NavContentInfo; -typedef struct Opt_NavContentInfo Opt_NavContentInfo; typedef struct OnLinearIndicatorChangeCallback OnLinearIndicatorChangeCallback; typedef struct Opt_OnLinearIndicatorChangeCallback Opt_OnLinearIndicatorChangeCallback; typedef struct Ark_LinearIndicatorStyle Ark_LinearIndicatorStyle; @@ -720,13 +699,27 @@ typedef struct Ark_CustomSpanMeasureInfo Ark_CustomSpanMeasureInfo; typedef struct Opt_CustomSpanMeasureInfo Opt_CustomSpanMeasureInfo; typedef struct Ark_SpanStyle Ark_SpanStyle; typedef struct Opt_SpanStyle Opt_SpanStyle; +typedef struct Ark_Union_LengthMetrics_LeadingMarginPlaceholder Ark_Union_LengthMetrics_LeadingMarginPlaceholder; +typedef struct Opt_Union_LengthMetrics_LeadingMarginPlaceholder Opt_Union_LengthMetrics_LeadingMarginPlaceholder; +typedef struct Ark_Union_Number_LeadingMarginPlaceholder Ark_Union_Number_LeadingMarginPlaceholder; +typedef struct Opt_Union_Number_LeadingMarginPlaceholder Opt_Union_Number_LeadingMarginPlaceholder; +typedef struct Ark_TextBackgroundStyle Ark_TextBackgroundStyle; +typedef struct Opt_TextBackgroundStyle Opt_TextBackgroundStyle; +typedef struct CustomSpanPeer CustomSpanPeer; +typedef struct CustomSpanPeer* Ark_CustomSpan; +typedef struct Opt_CustomSpan Opt_CustomSpan; +typedef struct ImageAttachmentPeer ImageAttachmentPeer; +typedef struct ImageAttachmentPeer* Ark_ImageAttachment; +typedef struct Opt_ImageAttachment Opt_ImageAttachment; 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 Ark_Materialized Ark_WaterFlowSections; +typedef struct WaterFlowSectionsPeer WaterFlowSectionsPeer; +typedef struct WaterFlowSectionsPeer* Ark_WaterFlowSections; typedef struct Opt_WaterFlowSections Opt_WaterFlowSections; -typedef Ark_Materialized Ark_Scroller; +typedef struct ScrollerPeer ScrollerPeer; +typedef struct ScrollerPeer* Ark_Scroller; typedef struct Opt_Scroller Opt_Scroller; typedef struct Ark_SectionOptions Ark_SectionOptions; typedef struct Opt_SectionOptions Opt_SectionOptions; @@ -738,7 +731,8 @@ typedef struct Ark_ButtonIconOptions Ark_ButtonIconOptions; typedef struct Opt_ButtonIconOptions Opt_ButtonIconOptions; typedef struct Ark_ImageAIOptions Ark_ImageAIOptions; typedef struct Opt_ImageAIOptions Opt_ImageAIOptions; -typedef Ark_Materialized Ark_XComponentController; +typedef struct XComponentControllerPeer XComponentControllerPeer; +typedef struct XComponentControllerPeer* Ark_XComponentController; typedef struct Opt_XComponentController Opt_XComponentController; typedef struct Ark_ImageAnalyzerConfig Ark_ImageAnalyzerConfig; typedef struct Opt_ImageAnalyzerConfig Opt_ImageAnalyzerConfig; @@ -750,13 +744,16 @@ typedef struct Ark_Literal_Number_surfaceHeight_surfaceWidth Ark_Literal_Number_ typedef struct Opt_Literal_Number_surfaceHeight_surfaceWidth Opt_Literal_Number_surfaceHeight_surfaceWidth; typedef struct Ark_SelectionMenuOptionsExt Ark_SelectionMenuOptionsExt; typedef struct Opt_SelectionMenuOptionsExt Opt_SelectionMenuOptionsExt; -typedef Ark_Materialized Ark_WebKeyboardController; +typedef struct WebKeyboardControllerPeer WebKeyboardControllerPeer; +typedef struct WebKeyboardControllerPeer* Ark_WebKeyboardController; typedef struct Opt_WebKeyboardController Opt_WebKeyboardController; typedef struct Callback_Literal_String_plainText_Void Callback_Literal_String_plainText_Void; typedef struct Opt_Callback_Literal_String_plainText_Void Opt_Callback_Literal_String_plainText_Void; -typedef Ark_Materialized Ark_EventResult; +typedef struct EventResultPeer EventResultPeer; +typedef struct EventResultPeer* Ark_EventResult; typedef struct Opt_EventResult Opt_EventResult; -typedef Ark_Materialized Ark_TouchEvent; +typedef struct TouchEventPeer TouchEventPeer; +typedef struct TouchEventPeer* Ark_TouchEvent; typedef struct Opt_TouchEvent Opt_TouchEvent; typedef struct Ark_NativeEmbedInfo Ark_NativeEmbedInfo; typedef struct Opt_NativeEmbedInfo Opt_NativeEmbedInfo; @@ -764,43 +761,60 @@ typedef struct Ark_NestedScrollOptionsExt Ark_NestedScrollOptionsExt; typedef struct Opt_NestedScrollOptionsExt Opt_NestedScrollOptionsExt; typedef struct Ark_NestedScrollOptions Ark_NestedScrollOptions; typedef struct Opt_NestedScrollOptions Opt_NestedScrollOptions; -typedef Ark_Materialized Ark_DataResubmissionHandler; +typedef struct DataResubmissionHandlerPeer DataResubmissionHandlerPeer; +typedef struct DataResubmissionHandlerPeer* Ark_DataResubmissionHandler; typedef struct Opt_DataResubmissionHandler Opt_DataResubmissionHandler; -typedef Ark_Materialized Ark_ControllerHandler; +typedef struct ControllerHandlerPeer ControllerHandlerPeer; +typedef struct ControllerHandlerPeer* Ark_ControllerHandler; typedef struct Opt_ControllerHandler Opt_ControllerHandler; -typedef Ark_Materialized Ark_ClientAuthenticationHandler; +typedef struct ClientAuthenticationHandlerPeer ClientAuthenticationHandlerPeer; +typedef struct ClientAuthenticationHandlerPeer* Ark_ClientAuthenticationHandler; typedef struct Opt_ClientAuthenticationHandler Opt_ClientAuthenticationHandler; -typedef Ark_Materialized Ark_SslErrorHandler; +typedef struct SslErrorHandlerPeer SslErrorHandlerPeer; +typedef struct SslErrorHandlerPeer* Ark_SslErrorHandler; typedef struct Opt_SslErrorHandler Opt_SslErrorHandler; typedef struct Array_Buffer Array_Buffer; typedef struct Opt_Array_Buffer Opt_Array_Buffer; -typedef Ark_Materialized Ark_WebContextMenuResult; +typedef struct WebContextMenuResultPeer WebContextMenuResultPeer; +typedef struct WebContextMenuResultPeer* Ark_WebContextMenuResult; typedef struct Opt_WebContextMenuResult Opt_WebContextMenuResult; -typedef Ark_Materialized Ark_WebContextMenuParam; +typedef struct WebContextMenuParamPeer WebContextMenuParamPeer; +typedef struct WebContextMenuParamPeer* Ark_WebContextMenuParam; typedef struct Opt_WebContextMenuParam Opt_WebContextMenuParam; -typedef Ark_Materialized Ark_ScreenCaptureHandler; +typedef struct ScreenCaptureHandlerPeer ScreenCaptureHandlerPeer; +typedef struct ScreenCaptureHandlerPeer* Ark_ScreenCaptureHandler; typedef struct Opt_ScreenCaptureHandler Opt_ScreenCaptureHandler; -typedef Ark_Materialized Ark_PermissionRequest; +typedef struct PermissionRequestPeer PermissionRequestPeer; +typedef struct PermissionRequestPeer* Ark_PermissionRequest; typedef struct Opt_PermissionRequest Opt_PermissionRequest; -typedef Ark_Materialized Ark_HttpAuthHandler; +typedef struct HttpAuthHandlerPeer HttpAuthHandlerPeer; +typedef struct HttpAuthHandlerPeer* Ark_HttpAuthHandler; typedef struct Opt_HttpAuthHandler Opt_HttpAuthHandler; -typedef Ark_Materialized Ark_FullScreenExitHandler; +typedef struct FullScreenExitHandlerPeer FullScreenExitHandlerPeer; +typedef struct FullScreenExitHandlerPeer* Ark_FullScreenExitHandler; typedef struct Opt_FullScreenExitHandler Opt_FullScreenExitHandler; -typedef Ark_Materialized Ark_FileSelectorParam; +typedef struct FileSelectorParamPeer FileSelectorParamPeer; +typedef struct FileSelectorParamPeer* Ark_FileSelectorParam; typedef struct Opt_FileSelectorParam Opt_FileSelectorParam; -typedef Ark_Materialized Ark_FileSelectorResult; +typedef struct FileSelectorResultPeer FileSelectorResultPeer; +typedef struct FileSelectorResultPeer* Ark_FileSelectorResult; typedef struct Opt_FileSelectorResult Opt_FileSelectorResult; typedef struct Ark_Union_String_WebResourceRequest Ark_Union_String_WebResourceRequest; typedef struct Opt_Union_String_WebResourceRequest Opt_Union_String_WebResourceRequest; -typedef Ark_Materialized Ark_WebResourceResponse; +typedef struct WebResourceResponsePeer WebResourceResponsePeer; +typedef struct WebResourceResponsePeer* Ark_WebResourceResponse; typedef struct Opt_WebResourceResponse Opt_WebResourceResponse; -typedef Ark_Materialized Ark_WebResourceError; +typedef struct WebResourceErrorPeer WebResourceErrorPeer; +typedef struct WebResourceErrorPeer* Ark_WebResourceError; typedef struct Opt_WebResourceError Opt_WebResourceError; -typedef Ark_Materialized Ark_ConsoleMessage; +typedef struct ConsoleMessagePeer ConsoleMessagePeer; +typedef struct ConsoleMessagePeer* Ark_ConsoleMessage; typedef struct Opt_ConsoleMessage Opt_ConsoleMessage; -typedef Ark_Materialized Ark_JsResult; +typedef struct JsResultPeer JsResultPeer; +typedef struct JsResultPeer* Ark_JsResult; typedef struct Opt_JsResult Opt_JsResult; -typedef Ark_Materialized Ark_JsGeolocation; +typedef struct JsGeolocationPeer JsGeolocationPeer; +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; @@ -814,13 +828,15 @@ typedef struct Ark_Literal_String_script_Callback_String_Void_callback_ Ark_Lite typedef struct Opt_Literal_String_script_Callback_String_Void_callback_ Opt_Literal_String_script_Callback_String_Void_callback_; typedef struct Ark_ScreenCaptureConfig Ark_ScreenCaptureConfig; typedef struct Opt_ScreenCaptureConfig Opt_ScreenCaptureConfig; -typedef Ark_Materialized Ark_VideoController; +typedef struct VideoControllerPeer VideoControllerPeer; +typedef struct VideoControllerPeer* Ark_VideoController; typedef struct Opt_VideoController Opt_VideoController; typedef struct Ark_Union_Number_String_PlaybackSpeed Ark_Union_Number_String_PlaybackSpeed; typedef struct Opt_Union_Number_String_PlaybackSpeed Opt_Union_Number_String_PlaybackSpeed; typedef struct Ark_TimePickerDialogOptions Ark_TimePickerDialogOptions; typedef struct Opt_TimePickerDialogOptions Opt_TimePickerDialogOptions; -typedef Ark_Materialized Ark_TextTimerController; +typedef struct TextTimerControllerPeer TextTimerControllerPeer; +typedef struct TextTimerControllerPeer* Ark_TextTimerController; typedef struct Opt_TextTimerController Opt_TextTimerController; typedef struct Ark_TextPickerDialogOptions Ark_TextPickerDialogOptions; typedef struct Opt_TextPickerDialogOptions Opt_TextPickerDialogOptions; @@ -838,7 +854,8 @@ typedef struct Ark_KeyboardOptions Ark_KeyboardOptions; typedef struct Opt_KeyboardOptions Opt_KeyboardOptions; typedef struct Ark_UnderlineColor Ark_UnderlineColor; typedef struct Opt_UnderlineColor Opt_UnderlineColor; -typedef Ark_Materialized Ark_TextInputController; +typedef struct TextInputControllerPeer TextInputControllerPeer; +typedef struct TextInputControllerPeer* Ark_TextInputController; typedef struct Opt_TextInputController Opt_TextInputController; typedef struct Ark_SelectionOptions Ark_SelectionOptions; typedef struct Opt_SelectionOptions Opt_SelectionOptions; @@ -846,15 +863,18 @@ 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 Ark_Materialized Ark_TextClockController; +typedef struct TextClockControllerPeer TextClockControllerPeer; +typedef struct TextClockControllerPeer* Ark_TextClockController; typedef struct Opt_TextClockController Opt_TextClockController; -typedef Ark_Materialized Ark_TextAreaController; +typedef struct TextAreaControllerPeer TextAreaControllerPeer; +typedef struct TextAreaControllerPeer* Ark_TextAreaController; typedef struct Opt_TextAreaController Opt_TextAreaController; typedef struct Ark_SelectionMenuOptions Ark_SelectionMenuOptions; typedef struct Opt_SelectionMenuOptions Opt_SelectionMenuOptions; typedef struct Ark_FontSettingOptions Ark_FontSettingOptions; typedef struct Opt_FontSettingOptions Opt_FontSettingOptions; -typedef Ark_Materialized Ark_TextController; +typedef struct TextControllerPeer TextControllerPeer; +typedef struct TextControllerPeer* Ark_TextController; typedef struct Opt_TextController Opt_TextController; typedef struct Ark_BottomTabBarStyle Ark_BottomTabBarStyle; typedef struct Opt_BottomTabBarStyle Opt_BottomTabBarStyle; @@ -868,7 +888,8 @@ typedef struct Ark_ScrollableBarModeOptions Ark_ScrollableBarModeOptions; typedef struct Opt_ScrollableBarModeOptions Opt_ScrollableBarModeOptions; typedef struct Ark_TabContentAnimatedTransition Ark_TabContentAnimatedTransition; typedef struct Opt_TabContentAnimatedTransition Opt_TabContentAnimatedTransition; -typedef Ark_Materialized Ark_TabsController; +typedef struct TabsControllerPeer TabsControllerPeer; +typedef struct TabsControllerPeer* Ark_TabsController; typedef struct Opt_TabsController Opt_TabsController; typedef struct Ark_SymbolEffect Ark_SymbolEffect; typedef struct Opt_SymbolEffect Opt_SymbolEffect; @@ -882,8 +903,6 @@ 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_Type_SliderBlockStyle_shape Ark_Type_SliderBlockStyle_shape; -typedef struct Opt_Type_SliderBlockStyle_shape Opt_Type_SliderBlockStyle_shape; 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_LocalizedEdges Ark_LocalizedEdges; @@ -896,14 +915,13 @@ typedef struct Ark_CancelButtonSymbolOptions Ark_CancelButtonSymbolOptions; typedef struct Opt_CancelButtonSymbolOptions Opt_CancelButtonSymbolOptions; typedef struct Ark_CancelButtonOptions Ark_CancelButtonOptions; typedef struct Opt_CancelButtonOptions Opt_CancelButtonOptions; -typedef Ark_Materialized Ark_SearchController; +typedef struct SearchControllerPeer SearchControllerPeer; +typedef struct SearchControllerPeer* Ark_SearchController; typedef struct Opt_SearchController Opt_SearchController; 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 ScrollOnScrollCallback ScrollOnScrollCallback; -typedef struct Opt_ScrollOnScrollCallback Opt_ScrollOnScrollCallback; typedef struct ScrollOnWillScrollCallback ScrollOnWillScrollCallback; typedef struct Opt_ScrollOnWillScrollCallback Opt_ScrollOnWillScrollCallback; typedef struct Ark_ScrollToIndexOptions Ark_ScrollToIndexOptions; @@ -918,9 +936,11 @@ typedef struct Ark_ScrollOptions Ark_ScrollOptions; typedef struct Opt_ScrollOptions Opt_ScrollOptions; typedef struct Ark_Union_String_Number Ark_Union_String_Number; typedef struct Opt_Union_String_Number Opt_Union_String_Number; -typedef Ark_Materialized Ark_RichEditorStyledStringController; +typedef struct RichEditorStyledStringControllerPeer RichEditorStyledStringControllerPeer; +typedef struct RichEditorStyledStringControllerPeer* Ark_RichEditorStyledStringController; typedef struct Opt_RichEditorStyledStringController Opt_RichEditorStyledStringController; -typedef Ark_Materialized Ark_RichEditorController; +typedef struct RichEditorControllerPeer RichEditorControllerPeer; +typedef struct RichEditorControllerPeer* Ark_RichEditorController; typedef struct Opt_RichEditorController Opt_RichEditorController; typedef struct Ark_PlaceholderStyle Ark_PlaceholderStyle; typedef struct Opt_PlaceholderStyle Opt_PlaceholderStyle; @@ -954,8 +974,6 @@ typedef struct Ark_RichEditorBuilderSpanOptions Ark_RichEditorBuilderSpanOptions typedef struct Opt_RichEditorBuilderSpanOptions Opt_RichEditorBuilderSpanOptions; typedef struct Ark_RichEditorImageSpanOptions Ark_RichEditorImageSpanOptions; typedef struct Opt_RichEditorImageSpanOptions Opt_RichEditorImageSpanOptions; -typedef struct Array_FingerInfo Array_FingerInfo; -typedef struct Opt_Array_FingerInfo Opt_Array_FingerInfo; typedef struct Ark_RichEditorTextSpanOptions Ark_RichEditorTextSpanOptions; typedef struct Opt_RichEditorTextSpanOptions Opt_RichEditorTextSpanOptions; typedef struct Ark_GuideLinePosition Ark_GuideLinePosition; @@ -978,7 +996,10 @@ typedef struct Ark_CircleStyleOptions Ark_CircleStyleOptions; typedef struct Opt_CircleStyleOptions Opt_CircleStyleOptions; typedef struct Callback_PanelMode_Void Callback_PanelMode_Void; typedef struct Opt_Callback_PanelMode_Void Opt_Callback_PanelMode_Void; -typedef Ark_Materialized Ark_NavDestinationContext; +typedef struct Ark_NavContentInfo Ark_NavContentInfo; +typedef struct Opt_NavContentInfo Opt_NavContentInfo; +typedef struct NavDestinationContextPeer NavDestinationContextPeer; +typedef struct NavDestinationContextPeer* Ark_NavDestinationContext; typedef struct Opt_NavDestinationContext Opt_NavDestinationContext; typedef struct Ark_NavigationInterception Ark_NavigationInterception; typedef struct Opt_NavigationInterception Opt_NavigationInterception; @@ -1008,7 +1029,8 @@ typedef struct Ark_ASTCResource Ark_ASTCResource; typedef struct Opt_ASTCResource Opt_ASTCResource; typedef struct Ark_DrawableDescriptor Ark_DrawableDescriptor; typedef struct Opt_DrawableDescriptor Opt_DrawableDescriptor; -typedef Ark_Materialized Ark_Matrix2D; +typedef struct Matrix2DPeer Matrix2DPeer; +typedef struct Matrix2DPeer* Ark_Matrix2D; typedef struct Opt_Matrix2D Opt_Matrix2D; typedef struct Ark_ListDividerOptions Ark_ListDividerOptions; typedef struct Opt_ListDividerOptions Opt_ListDividerOptions; @@ -1020,7 +1042,8 @@ typedef struct Ark_CloseSwipeActionOptions Ark_CloseSwipeActionOptions; typedef struct Opt_CloseSwipeActionOptions Opt_CloseSwipeActionOptions; typedef struct Ark_DrawingColorFilter Ark_DrawingColorFilter; typedef struct Opt_DrawingColorFilter Opt_DrawingColorFilter; -typedef struct Ark_ColorFilter Ark_ColorFilter; +typedef struct ColorFilterPeer ColorFilterPeer; +typedef struct ColorFilterPeer* Ark_ColorFilter; typedef struct Opt_ColorFilter Opt_ColorFilter; typedef struct Ark_Union_String_Resource_PixelMap Ark_Union_String_Resource_PixelMap; typedef struct Opt_Union_String_Resource_PixelMap Opt_Union_String_Resource_PixelMap; @@ -1036,20 +1059,20 @@ typedef struct Callback_Number_Tuple_Number_Number_Number_Number Callback_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 Ark_Union_ResourceColor_LinearGradient_common Ark_Union_ResourceColor_LinearGradient_common; -typedef struct Opt_Union_ResourceColor_LinearGradient_common Opt_Union_ResourceColor_LinearGradient_common; -typedef struct Array_Tuple_Union_ResourceColor_LinearGradient_common_Number Array_Tuple_Union_ResourceColor_LinearGradient_common_Number; -typedef struct Opt_Array_Tuple_Union_ResourceColor_LinearGradient_common_Number Opt_Array_Tuple_Union_ResourceColor_LinearGradient_common_Number; +typedef struct Array_FingerInfo Array_FingerInfo; +typedef struct Opt_Array_FingerInfo Opt_Array_FingerInfo; +typedef struct Ark_Union_ResourceColor_LinearGradient Ark_Union_ResourceColor_LinearGradient; +typedef struct Opt_Union_ResourceColor_LinearGradient Opt_Union_ResourceColor_LinearGradient; +typedef struct Array_Tuple_Union_ResourceColor_LinearGradient_Number Array_Tuple_Union_ResourceColor_LinearGradient_Number; +typedef struct Opt_Array_Tuple_Union_ResourceColor_LinearGradient_Number Opt_Array_Tuple_Union_ResourceColor_LinearGradient_Number; typedef struct Ark_WindowStatusType Ark_WindowStatusType; typedef struct Opt_WindowStatusType Opt_WindowStatusType; typedef struct Ark_FlexSpaceOptions Ark_FlexSpaceOptions; typedef struct Opt_FlexSpaceOptions Opt_FlexSpaceOptions; typedef struct Ark_DatePickerDialogOptions Ark_DatePickerDialogOptions; typedef struct Opt_DatePickerDialogOptions Opt_DatePickerDialogOptions; -typedef struct Ark_LinearGradient_data_panel Ark_LinearGradient_data_panel; -typedef struct Opt_LinearGradient_data_panel Opt_LinearGradient_data_panel; -typedef struct Array_Union_ResourceColor_LinearGradient_data_panel Array_Union_ResourceColor_LinearGradient_data_panel; -typedef struct Opt_Array_Union_ResourceColor_LinearGradient_data_panel Opt_Array_Union_ResourceColor_LinearGradient_data_panel; +typedef struct Array_Union_ResourceColor_LinearGradient Array_Union_ResourceColor_LinearGradient; +typedef struct Opt_Array_Union_ResourceColor_LinearGradient Opt_Array_Union_ResourceColor_LinearGradient; typedef struct Ark_Union_ResourceColor_EdgeColors Ark_Union_ResourceColor_EdgeColors; typedef struct Opt_Union_ResourceColor_EdgeColors Opt_Union_ResourceColor_EdgeColors; typedef struct Ark_Union_Dimension_EdgeWidths Ark_Union_Dimension_EdgeWidths; @@ -1128,7 +1151,8 @@ typedef struct Ark_EllipseShape Ark_EllipseShape; typedef struct Opt_EllipseShape Opt_EllipseShape; typedef struct Ark_CircleShape Ark_CircleShape; typedef struct Opt_CircleShape Opt_CircleShape; -typedef Ark_Materialized Ark_ProgressMask; +typedef struct ProgressMaskPeer ProgressMaskPeer; +typedef struct ProgressMaskPeer* Ark_ProgressMask; typedef struct Opt_ProgressMask Opt_ProgressMask; typedef struct Ark_Tuple_Length_Length Ark_Tuple_Length_Length; typedef struct Opt_Tuple_Length_Length Opt_Tuple_Length_Length; @@ -1156,8 +1180,6 @@ typedef struct Ark_MotionBlurAnchor Ark_MotionBlurAnchor; typedef struct Opt_MotionBlurAnchor Opt_MotionBlurAnchor; typedef struct Ark_TransitionOptions Ark_TransitionOptions; typedef struct Opt_TransitionOptions Opt_TransitionOptions; -typedef struct Ark_IntentionCode Ark_IntentionCode; -typedef struct Opt_IntentionCode Opt_IntentionCode; typedef struct Ark_Union_EdgeOutlineStyles_OutlineStyle Ark_Union_EdgeOutlineStyles_OutlineStyle; typedef struct Opt_Union_EdgeOutlineStyles_OutlineStyle Opt_Union_EdgeOutlineStyles_OutlineStyle; typedef struct Ark_Union_OutlineRadiuses_Dimension Ark_Union_OutlineRadiuses_Dimension; @@ -1184,9 +1206,13 @@ 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 Ark_Materialized Ark_DrawModifier; +typedef struct DrawModifierPeer DrawModifierPeer; +typedef struct DrawModifierPeer* Ark_DrawModifier; typedef struct Opt_DrawModifier Opt_DrawModifier; -typedef Ark_Materialized Ark_UnifiedData; +typedef struct Ark_IntentionCode Ark_IntentionCode; +typedef struct Opt_IntentionCode Opt_IntentionCode; +typedef struct UnifiedDataPeer UnifiedDataPeer; +typedef struct UnifiedDataPeer* Ark_UnifiedData; typedef struct Opt_UnifiedData Opt_UnifiedData; typedef struct Ark_Literal_TransitionEffect_appear_disappear Ark_Literal_TransitionEffect_appear_disappear; typedef struct Opt_Literal_TransitionEffect_appear_disappear Opt_Literal_TransitionEffect_appear_disappear; @@ -1194,19 +1220,25 @@ typedef struct Ark_ColumnSplitDividerStyle Ark_ColumnSplitDividerStyle; typedef struct Opt_ColumnSplitDividerStyle Opt_ColumnSplitDividerStyle; typedef struct Ark_LightSource Ark_LightSource; typedef struct Opt_LightSource Opt_LightSource; -typedef Ark_Materialized Ark_DrawingRenderingContext; +typedef struct DrawingRenderingContextPeer DrawingRenderingContextPeer; +typedef struct DrawingRenderingContextPeer* Ark_DrawingRenderingContext; typedef struct Opt_DrawingRenderingContext Opt_DrawingRenderingContext; -typedef Ark_Materialized Ark_CanvasRenderingContext2D; +typedef struct CanvasRenderingContext2DPeer CanvasRenderingContext2DPeer; +typedef struct CanvasRenderingContext2DPeer* Ark_CanvasRenderingContext2D; typedef struct Opt_CanvasRenderingContext2D Opt_CanvasRenderingContext2D; -typedef Ark_Materialized Ark_ImageBitmap; +typedef struct ImageBitmapPeer ImageBitmapPeer; +typedef struct ImageBitmapPeer* Ark_ImageBitmap; typedef struct Opt_ImageBitmap Opt_ImageBitmap; -typedef struct Ark_ImageData Ark_ImageData; +typedef struct ImageDataPeer ImageDataPeer; +typedef struct ImageDataPeer* Ark_ImageData; typedef struct Opt_ImageData Opt_ImageData; -typedef Ark_Materialized Ark_Path2D; +typedef struct Path2DPeer Path2DPeer; +typedef struct Path2DPeer* Ark_Path2D; typedef struct Opt_Path2D Opt_Path2D; typedef struct Ark_CalendarDialogOptions Ark_CalendarDialogOptions; typedef struct Opt_CalendarDialogOptions Opt_CalendarDialogOptions; -typedef Ark_Materialized Ark_CalendarController; +typedef struct CalendarControllerPeer CalendarControllerPeer; +typedef struct CalendarControllerPeer* Ark_CalendarController; typedef struct Opt_CalendarController Opt_CalendarController; typedef struct Ark_MonthData Ark_MonthData; typedef struct Opt_MonthData Opt_MonthData; @@ -1216,12 +1248,6 @@ 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_ScrollMotion Ark_ScrollMotion; -typedef struct Opt_ScrollMotion Opt_ScrollMotion; -typedef struct Ark_FrictionMotion Ark_FrictionMotion; -typedef struct Opt_FrictionMotion Opt_FrictionMotion; -typedef struct Ark_SpringMotion Ark_SpringMotion; -typedef struct Opt_SpringMotion Opt_SpringMotion; typedef struct Ark_AlertDialogParamWithOptions Ark_AlertDialogParamWithOptions; typedef struct Opt_AlertDialogParamWithOptions Opt_AlertDialogParamWithOptions; typedef struct Ark_AlertDialogParamWithButtons Ark_AlertDialogParamWithButtons; @@ -1230,7 +1256,8 @@ typedef struct Ark_AlertDialogParamWithConfirm Ark_AlertDialogParamWithConfirm; typedef struct Opt_AlertDialogParamWithConfirm Opt_AlertDialogParamWithConfirm; typedef struct Ark_ActionSheetOptions Ark_ActionSheetOptions; typedef struct Opt_ActionSheetOptions Opt_ActionSheetOptions; -typedef Ark_Materialized Ark_ClickEvent; +typedef struct ClickEventPeer ClickEventPeer; +typedef struct ClickEventPeer* Ark_ClickEvent; typedef struct Opt_ClickEvent Opt_ClickEvent; typedef struct NavExtender_OnUpdateStack NavExtender_OnUpdateStack; typedef struct Opt_NavExtender_OnUpdateStack Opt_NavExtender_OnUpdateStack; @@ -1290,8 +1317,6 @@ typedef struct Callback_OnScrollFrameBeginHandlerResult_Void Callback_OnScrollFr typedef struct Opt_Callback_OnScrollFrameBeginHandlerResult_Void Opt_Callback_OnScrollFrameBeginHandlerResult_Void; typedef struct Callback_OffsetResult_Void Callback_OffsetResult_Void; typedef struct Opt_Callback_OffsetResult_Void Opt_Callback_OffsetResult_Void; -typedef Ark_Materialized Ark_NavigationTransitionProxy; -typedef struct Opt_NavigationTransitionProxy Opt_NavigationTransitionProxy; typedef struct Callback_NavigationTitleMode_Void Callback_NavigationTitleMode_Void; typedef struct Opt_Callback_NavigationTitleMode_Void Opt_Callback_NavigationTitleMode_Void; typedef struct Callback_NavigationMode_Void Callback_NavigationMode_Void; @@ -1316,8 +1341,53 @@ 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 Ark_Materialized Ark_LinearIndicatorController; +typedef struct GlobalScope_inspectorPeer GlobalScope_inspectorPeer; +typedef struct GlobalScope_inspectorPeer* Ark_GlobalScope_inspector; +typedef struct Opt_GlobalScope_inspector Opt_GlobalScope_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; +typedef struct LineHeightStylePeer LineHeightStylePeer; +typedef struct LineHeightStylePeer* Ark_LineHeightStyle; +typedef struct Opt_LineHeightStyle Opt_LineHeightStyle; +typedef struct Ark_ParagraphStyleInterface Ark_ParagraphStyleInterface; +typedef struct Opt_ParagraphStyleInterface Opt_ParagraphStyleInterface; +typedef struct ParagraphStylePeer ParagraphStylePeer; +typedef struct ParagraphStylePeer* Ark_ParagraphStyle; +typedef struct Opt_ParagraphStyle Opt_ParagraphStyle; +typedef struct Ark_GestureStyleInterface Ark_GestureStyleInterface; +typedef struct Opt_GestureStyleInterface Opt_GestureStyleInterface; +typedef struct GestureStylePeer GestureStylePeer; +typedef struct GestureStylePeer* Ark_GestureStyle; +typedef struct Opt_GestureStyle Opt_GestureStyle; +typedef struct BackgroundColorStylePeer BackgroundColorStylePeer; +typedef struct BackgroundColorStylePeer* Ark_BackgroundColorStyle; +typedef struct Opt_BackgroundColorStyle Opt_BackgroundColorStyle; +typedef struct TextShadowStylePeer TextShadowStylePeer; +typedef struct TextShadowStylePeer* Ark_TextShadowStyle; +typedef struct Opt_TextShadowStyle Opt_TextShadowStyle; +typedef struct LetterSpacingStylePeer LetterSpacingStylePeer; +typedef struct LetterSpacingStylePeer* Ark_LetterSpacingStyle; +typedef struct Opt_LetterSpacingStyle Opt_LetterSpacingStyle; +typedef struct BaselineOffsetStylePeer BaselineOffsetStylePeer; +typedef struct BaselineOffsetStylePeer* Ark_BaselineOffsetStyle; +typedef struct Opt_BaselineOffsetStyle Opt_BaselineOffsetStyle; +typedef struct DecorationStylePeer DecorationStylePeer; +typedef struct DecorationStylePeer* Ark_DecorationStyle; +typedef struct Opt_DecorationStyle Opt_DecorationStyle; +typedef struct Ark_TextStyleInterface Ark_TextStyleInterface; +typedef struct Opt_TextStyleInterface Opt_TextStyleInterface; +typedef struct TextStyle_styled_stringPeer TextStyle_styled_stringPeer; +typedef struct TextStyle_styled_stringPeer* Ark_TextStyle_styled_string; +typedef struct Opt_TextStyle_styled_string Opt_TextStyle_styled_string; typedef struct Ark_StyleOptions Ark_StyleOptions; typedef struct Opt_StyleOptions Opt_StyleOptions; typedef struct Array_StyleOptions Array_StyleOptions; @@ -1332,7 +1402,8 @@ typedef struct Ark_ReceiveCallback Ark_ReceiveCallback; typedef struct Opt_ReceiveCallback Opt_ReceiveCallback; typedef struct Ark_UIExtensionOptions Ark_UIExtensionOptions; typedef struct Opt_UIExtensionOptions Opt_UIExtensionOptions; -typedef Ark_Materialized Ark_UIExtensionProxy; +typedef struct UIExtensionProxyPeer UIExtensionProxyPeer; +typedef struct UIExtensionProxyPeer* Ark_UIExtensionProxy; typedef struct Opt_UIExtensionProxy Opt_UIExtensionProxy; typedef struct Ark_WaterFlowOptions Ark_WaterFlowOptions; typedef struct Opt_WaterFlowOptions Opt_WaterFlowOptions; @@ -1588,6 +1659,9 @@ 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; @@ -1610,6 +1684,9 @@ typedef struct Ark_SwitchStyle Ark_SwitchStyle; typedef struct Opt_SwitchStyle Opt_SwitchStyle; typedef struct Ark_ToggleOptions Ark_ToggleOptions; typedef struct Opt_ToggleOptions Opt_ToggleOptions; +typedef struct TimePickerDialogPeer TimePickerDialogPeer; +typedef struct TimePickerDialogPeer* Ark_TimePickerDialog; +typedef struct Opt_TimePickerDialog Opt_TimePickerDialog; typedef struct Ark_TimePickerResult Ark_TimePickerResult; typedef struct Opt_TimePickerResult Opt_TimePickerResult; typedef struct Ark_TimePickerOptions Ark_TimePickerOptions; @@ -1618,6 +1695,9 @@ typedef struct Ark_TextTimerOptions Ark_TextTimerOptions; typedef struct Opt_TextTimerOptions Opt_TextTimerOptions; typedef struct Ark_TextPickerResult Ark_TextPickerResult; typedef struct Opt_TextPickerResult Opt_TextPickerResult; +typedef struct TextPickerDialogPeer TextPickerDialogPeer; +typedef struct TextPickerDialogPeer* Ark_TextPickerDialog; +typedef struct Opt_TextPickerDialog Opt_TextPickerDialog; typedef struct Type_TextPickerAttribute_onChange_callback Type_TextPickerAttribute_onChange_callback; typedef struct Opt_Type_TextPickerAttribute_onChange_callback Opt_Type_TextPickerAttribute_onChange_callback; typedef struct Callback_String_Number_Void Callback_String_Number_Void; @@ -1640,6 +1720,18 @@ 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 StyledStringControllerPeer StyledStringControllerPeer; +typedef struct StyledStringControllerPeer* Ark_StyledStringController; +typedef struct Opt_StyledStringController Opt_StyledStringController; +typedef struct TextEditControllerExPeer TextEditControllerExPeer; +typedef struct TextEditControllerExPeer* Ark_TextEditControllerEx; +typedef struct Opt_TextEditControllerEx Opt_TextEditControllerEx; +typedef struct TextBaseControllerPeer TextBaseControllerPeer; +typedef struct TextBaseControllerPeer* Ark_TextBaseController; +typedef struct Opt_TextBaseController Opt_TextBaseController; typedef struct Ark_TextClockOptions Ark_TextClockOptions; typedef struct Opt_TextClockOptions Opt_TextClockOptions; typedef struct Callback_String_PasteEvent_Void Callback_String_PasteEvent_Void; @@ -1660,7 +1752,8 @@ typedef struct Ark_Union_String_Resource_CustomBuilder_TabBarOptions Ark_Union_S typedef struct Opt_Union_String_Resource_CustomBuilder_TabBarOptions Opt_Union_String_Resource_CustomBuilder_TabBarOptions; typedef struct OnTabsContentWillChangeCallback OnTabsContentWillChangeCallback; typedef struct Opt_OnTabsContentWillChangeCallback Opt_OnTabsContentWillChangeCallback; -typedef Ark_Materialized Ark_TabContentTransitionProxy; +typedef struct TabContentTransitionProxyPeer TabContentTransitionProxyPeer; +typedef struct TabContentTransitionProxyPeer* Ark_TabContentTransitionProxy; typedef struct Opt_TabContentTransitionProxy Opt_TabContentTransitionProxy; typedef struct TabsCustomContentTransitionCallback TabsCustomContentTransitionCallback; typedef struct Opt_TabsCustomContentTransitionCallback Opt_TabsCustomContentTransitionCallback; @@ -1676,6 +1769,24 @@ typedef struct OnTabsAnimationStartCallback OnTabsAnimationStartCallback; typedef struct Opt_OnTabsAnimationStartCallback Opt_OnTabsAnimationStartCallback; typedef struct Ark_TabsOptions Ark_TabsOptions; typedef struct Opt_TabsOptions Opt_TabsOptions; +typedef struct ReplaceSymbolEffectPeer ReplaceSymbolEffectPeer; +typedef struct ReplaceSymbolEffectPeer* Ark_ReplaceSymbolEffect; +typedef struct Opt_ReplaceSymbolEffect Opt_ReplaceSymbolEffect; +typedef struct BounceSymbolEffectPeer BounceSymbolEffectPeer; +typedef struct BounceSymbolEffectPeer* Ark_BounceSymbolEffect; +typedef struct Opt_BounceSymbolEffect Opt_BounceSymbolEffect; +typedef struct DisappearSymbolEffectPeer DisappearSymbolEffectPeer; +typedef struct DisappearSymbolEffectPeer* Ark_DisappearSymbolEffect; +typedef struct Opt_DisappearSymbolEffect Opt_DisappearSymbolEffect; +typedef struct AppearSymbolEffectPeer AppearSymbolEffectPeer; +typedef struct AppearSymbolEffectPeer* Ark_AppearSymbolEffect; +typedef struct Opt_AppearSymbolEffect Opt_AppearSymbolEffect; +typedef struct HierarchicalSymbolEffectPeer HierarchicalSymbolEffectPeer; +typedef struct HierarchicalSymbolEffectPeer* Ark_HierarchicalSymbolEffect; +typedef struct Opt_HierarchicalSymbolEffect Opt_HierarchicalSymbolEffect; +typedef struct ScaleSymbolEffectPeer ScaleSymbolEffectPeer; +typedef struct ScaleSymbolEffectPeer* Ark_ScaleSymbolEffect; +typedef struct Opt_ScaleSymbolEffect Opt_ScaleSymbolEffect; typedef struct Ark_Union_DotIndicator_DigitIndicator Ark_Union_DotIndicator_DigitIndicator; typedef struct Opt_Union_DotIndicator_DigitIndicator Opt_Union_DotIndicator_DigitIndicator; typedef struct Ark_Union_Number_String_SwiperAutoFill Ark_Union_Number_String_SwiperAutoFill; @@ -1684,7 +1795,8 @@ typedef struct Ark_Union_ArrowStyle_Boolean Ark_Union_ArrowStyle_Boolean; typedef struct Opt_Union_ArrowStyle_Boolean Opt_Union_ArrowStyle_Boolean; typedef struct ContentDidScrollCallback ContentDidScrollCallback; typedef struct Opt_ContentDidScrollCallback Opt_ContentDidScrollCallback; -typedef Ark_Materialized Ark_SwiperContentTransitionProxy; +typedef struct SwiperContentTransitionProxyPeer SwiperContentTransitionProxyPeer; +typedef struct SwiperContentTransitionProxyPeer* Ark_SwiperContentTransitionProxy; typedef struct Opt_SwiperContentTransitionProxy Opt_SwiperContentTransitionProxy; typedef struct Ark_SwiperContentAnimatedTransition Ark_SwiperContentAnimatedTransition; typedef struct Opt_SwiperContentAnimatedTransition Opt_SwiperContentAnimatedTransition; @@ -1696,11 +1808,13 @@ typedef struct Ark_SwiperAnimationEvent Ark_SwiperAnimationEvent; typedef struct Opt_SwiperAnimationEvent Opt_SwiperAnimationEvent; typedef struct OnSwiperAnimationStartCallback OnSwiperAnimationStartCallback; typedef struct Opt_OnSwiperAnimationStartCallback Opt_OnSwiperAnimationStartCallback; -typedef Ark_Materialized Ark_IndicatorComponentController; +typedef struct IndicatorComponentControllerPeer IndicatorComponentControllerPeer; +typedef struct IndicatorComponentControllerPeer* Ark_IndicatorComponentController; typedef struct Opt_IndicatorComponentController Opt_IndicatorComponentController; typedef struct Ark_Union_DotIndicator_DigitIndicator_Boolean Ark_Union_DotIndicator_DigitIndicator_Boolean; typedef struct Opt_Union_DotIndicator_DigitIndicator_Boolean Opt_Union_DotIndicator_DigitIndicator_Boolean; -typedef Ark_Materialized Ark_SwiperController; +typedef struct SwiperControllerPeer SwiperControllerPeer; +typedef struct SwiperControllerPeer* Ark_SwiperController; typedef struct Opt_SwiperController Opt_SwiperController; typedef struct Ark_Literal_Number_index Ark_Literal_Number_index; typedef struct Opt_Literal_Number_index Opt_Literal_Number_index; @@ -1788,7 +1902,8 @@ typedef struct Ark_RichEditorOptions Ark_RichEditorOptions; typedef struct Opt_RichEditorOptions Opt_RichEditorOptions; typedef struct Ark_Union_ResponseType_RichEditorResponseType Ark_Union_ResponseType_RichEditorResponseType; typedef struct Opt_Union_ResponseType_RichEditorResponseType Opt_Union_ResponseType_RichEditorResponseType; -typedef Ark_Materialized Ark_EditMenuOptions; +typedef struct EditMenuOptionsPeer EditMenuOptionsPeer; +typedef struct EditMenuOptionsPeer* Ark_EditMenuOptions; typedef struct Opt_EditMenuOptions Opt_EditMenuOptions; typedef struct Ark_CopyEvent Ark_CopyEvent; typedef struct Opt_CopyEvent Opt_CopyEvent; @@ -1802,7 +1917,8 @@ typedef struct Ark_RichEditorChangeValue Ark_RichEditorChangeValue; typedef struct Opt_RichEditorChangeValue Opt_RichEditorChangeValue; typedef struct Callback_RichEditorChangeValue_Boolean Callback_RichEditorChangeValue_Boolean; typedef struct Opt_Callback_RichEditorChangeValue_Boolean Opt_Callback_RichEditorChangeValue_Boolean; -typedef Ark_Materialized Ark_SubmitEvent; +typedef struct SubmitEventPeer SubmitEventPeer; +typedef struct SubmitEventPeer* Ark_SubmitEvent; typedef struct Opt_SubmitEvent Opt_SubmitEvent; typedef struct SubmitCallback SubmitCallback; typedef struct Opt_SubmitCallback Opt_SubmitCallback; @@ -1838,8 +1954,9 @@ typedef struct Ark_Type_RichEditorController_updateSpanStyle_value Ark_Type_Rich typedef struct Opt_Type_RichEditorController_updateSpanStyle_value Opt_Type_RichEditorController_updateSpanStyle_value; typedef struct Ark_Union_PixelMap_ResourceStr Ark_Union_PixelMap_ResourceStr; typedef struct Opt_Union_PixelMap_ResourceStr Opt_Union_PixelMap_ResourceStr; -typedef Ark_Materialized Ark_GestureEvent; -typedef struct Opt_GestureEvent Opt_GestureEvent; +typedef struct RichEditorBaseControllerPeer RichEditorBaseControllerPeer; +typedef struct RichEditorBaseControllerPeer* Ark_RichEditorBaseController; +typedef struct Opt_RichEditorBaseController Opt_RichEditorBaseController; typedef struct Ark_LocalizedBarrierStyle Ark_LocalizedBarrierStyle; typedef struct Opt_LocalizedBarrierStyle Opt_LocalizedBarrierStyle; typedef struct Array_LocalizedBarrierStyle Array_LocalizedBarrierStyle; @@ -1886,7 +2003,8 @@ typedef struct Ark_PluginComponentOptions Ark_PluginComponentOptions; typedef struct Opt_PluginComponentOptions Opt_PluginComponentOptions; typedef struct Callback_Array_Number_Void Callback_Array_Number_Void; typedef struct Opt_Callback_Array_Number_Void Opt_Callback_Array_Number_Void; -typedef Ark_Materialized Ark_PatternLockController; +typedef struct PatternLockControllerPeer PatternLockControllerPeer; +typedef struct PatternLockControllerPeer* Ark_PatternLockController; typedef struct Opt_PatternLockController Opt_PatternLockController; typedef struct Ark_PathOptions Ark_PathOptions; typedef struct Opt_PathOptions Opt_PathOptions; @@ -1902,6 +2020,9 @@ typedef struct Ark_NodeController Ark_NodeController; typedef struct Opt_NodeController Opt_NodeController; typedef struct Ark_Literal_String_target_NavigationType_type Ark_Literal_String_target_NavigationType_type; typedef struct Opt_Literal_String_target_NavigationType_type Opt_Literal_String_target_NavigationType_type; +typedef struct NavigationTransitionProxyPeer NavigationTransitionProxyPeer; +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 Ark_RouteInfo Ark_RouteInfo; @@ -1962,12 +2083,13 @@ typedef struct OnScrollVisibleContentChangeCallback OnScrollVisibleContentChange typedef struct Opt_OnScrollVisibleContentChangeCallback Opt_OnScrollVisibleContentChangeCallback; typedef struct Callback_Number_Number_Number_Void Callback_Number_Number_Number_Void; typedef struct Opt_Callback_Number_Number_Number_Void Opt_Callback_Number_Number_Number_Void; -typedef Ark_Materialized Ark_ChildrenMainSize; -typedef struct Opt_ChildrenMainSize Opt_ChildrenMainSize; typedef struct Ark_ChainAnimationOptions Ark_ChainAnimationOptions; typedef struct Opt_ChainAnimationOptions Opt_ChainAnimationOptions; typedef struct Ark_ListOptions Ark_ListOptions; typedef struct Opt_ListOptions Opt_ListOptions; +typedef struct ListScrollerPeer ListScrollerPeer; +typedef struct ListScrollerPeer* Ark_ListScroller; +typedef struct Opt_ListScroller Opt_ListScroller; typedef struct Ark_LineOptions Ark_LineOptions; typedef struct Opt_LineOptions Opt_LineOptions; typedef struct Ark_ImageLoadResult Ark_ImageLoadResult; @@ -2032,14 +2154,47 @@ typedef struct Ark_Tuple_Number_Number_Number_Number Ark_Tuple_Number_Number_Num typedef struct Opt_Tuple_Number_Number_Number_Number Opt_Tuple_Number_Number_Number_Number; typedef struct Ark_GridLayoutOptions Ark_GridLayoutOptions; 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; +typedef struct SwipeGestureEventPeer SwipeGestureEventPeer; +typedef struct SwipeGestureEventPeer* Ark_SwipeGestureEvent; +typedef struct Opt_SwipeGestureEvent Opt_SwipeGestureEvent; +typedef struct RotationGestureEventPeer RotationGestureEventPeer; +typedef struct RotationGestureEventPeer* Ark_RotationGestureEvent; +typedef struct Opt_RotationGestureEvent Opt_RotationGestureEvent; +typedef struct PinchGestureEventPeer PinchGestureEventPeer; +typedef struct PinchGestureEventPeer* Ark_PinchGestureEvent; +typedef struct Opt_PinchGestureEvent Opt_PinchGestureEvent; +typedef struct PanGestureEventPeer PanGestureEventPeer; +typedef struct PanGestureEventPeer* Ark_PanGestureEvent; +typedef struct Opt_PanGestureEvent Opt_PanGestureEvent; +typedef struct LongPressGestureEventPeer LongPressGestureEventPeer; +typedef struct LongPressGestureEventPeer* Ark_LongPressGestureEvent; +typedef struct Opt_LongPressGestureEvent Opt_LongPressGestureEvent; +typedef struct TapGestureEventPeer TapGestureEventPeer; +typedef struct TapGestureEventPeer* Ark_TapGestureEvent; +typedef struct Opt_TapGestureEvent Opt_TapGestureEvent; typedef struct Ark_GaugeIndicatorOptions Ark_GaugeIndicatorOptions; typedef struct Opt_GaugeIndicatorOptions Opt_GaugeIndicatorOptions; typedef struct Ark_GaugeShadowOptions Ark_GaugeShadowOptions; typedef struct Opt_GaugeShadowOptions Opt_GaugeShadowOptions; -typedef struct Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number; -typedef struct Opt_Tuple_Union_ResourceColor_LinearGradient_common_Number Opt_Tuple_Union_ResourceColor_LinearGradient_common_Number; +typedef struct Ark_Tuple_Union_ResourceColor_LinearGradient_Number Ark_Tuple_Union_ResourceColor_LinearGradient_Number; +typedef struct Opt_Tuple_Union_ResourceColor_LinearGradient_Number Opt_Tuple_Union_ResourceColor_LinearGradient_Number; typedef struct Ark_Type_GaugeAttribute_colors_colors Ark_Type_GaugeAttribute_colors_colors; typedef struct Opt_Type_GaugeAttribute_colors_colors Opt_Type_GaugeAttribute_colors_colors; typedef struct Ark_GaugeOptions Ark_GaugeOptions; @@ -2076,28 +2231,62 @@ typedef struct Callback_TerminationInfo_Void Callback_TerminationInfo_Void; typedef struct Opt_Callback_TerminationInfo_Void Opt_Callback_TerminationInfo_Void; typedef struct Ark_EllipseOptions Ark_EllipseOptions; typedef struct Opt_EllipseOptions Opt_EllipseOptions; +typedef struct DatePickerDialogPeer DatePickerDialogPeer; +typedef struct DatePickerDialogPeer* Ark_DatePickerDialog; +typedef struct Opt_DatePickerDialog Opt_DatePickerDialog; typedef struct Ark_DatePickerResult Ark_DatePickerResult; typedef struct Opt_DatePickerResult Opt_DatePickerResult; typedef struct Ark_DatePickerOptions Ark_DatePickerOptions; typedef struct Opt_DatePickerOptions Opt_DatePickerOptions; -typedef struct Ark_Union_ResourceColor_LinearGradient_data_panel Ark_Union_ResourceColor_LinearGradient_data_panel; -typedef struct Opt_Union_ResourceColor_LinearGradient_data_panel Opt_Union_ResourceColor_LinearGradient_data_panel; typedef struct Ark_DataPanelShadowOptions Ark_DataPanelShadowOptions; typedef struct Opt_DataPanelShadowOptions Opt_DataPanelShadowOptions; typedef struct Ark_DataPanelOptions Ark_DataPanelOptions; typedef struct Opt_DataPanelOptions Opt_DataPanelOptions; +typedef struct Ark_ColorStop Ark_ColorStop; +typedef struct Opt_ColorStop Opt_ColorStop; +typedef struct Array_ColorStop Array_ColorStop; +typedef struct Opt_Array_ColorStop Opt_Array_ColorStop; typedef struct Ark_CustomDialogControllerOptions Ark_CustomDialogControllerOptions; typedef struct Opt_CustomDialogControllerOptions Opt_CustomDialogControllerOptions; +typedef struct CustomDialogControllerPeer CustomDialogControllerPeer; +typedef struct CustomDialogControllerPeer* Ark_CustomDialogController; +typedef struct Opt_CustomDialogController Opt_CustomDialogController; +typedef struct ContextMenuPeer ContextMenuPeer; +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 UICommonEventPeer UICommonEventPeer; +typedef struct UICommonEventPeer* Ark_UICommonEvent; +typedef struct Opt_UICommonEvent Opt_UICommonEvent; +typedef struct ChildrenMainSizePeer ChildrenMainSizePeer; +typedef struct ChildrenMainSizePeer* Ark_ChildrenMainSize; +typedef struct Opt_ChildrenMainSize Opt_ChildrenMainSize; +typedef struct DynamicNodePeer DynamicNodePeer; +typedef struct DynamicNodePeer* Ark_DynamicNode; +typedef struct Opt_DynamicNode Opt_DynamicNode; typedef struct Ark_Union_ContentClipMode_RectShape Ark_Union_ContentClipMode_RectShape; 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; +typedef struct TextContentControllerBasePeer* Ark_TextContentControllerBase; +typedef struct Opt_TextContentControllerBase Opt_TextContentControllerBase; +typedef struct ViewPeer ViewPeer; +typedef struct ViewPeer* Ark_View; +typedef struct Opt_View Opt_View; +typedef struct MeasurablePeer MeasurablePeer; +typedef struct MeasurablePeer* Ark_Measurable; +typedef struct Opt_Measurable Opt_Measurable; typedef struct Array_ModifierKey Array_ModifierKey; typedef struct Opt_Array_ModifierKey Opt_Array_ModifierKey; typedef struct Ark_Union_String_FunctionKey Ark_Union_String_FunctionKey; @@ -2136,11 +2325,13 @@ typedef struct Array_GestureRecognizer Array_GestureRecognizer; typedef struct Opt_Array_GestureRecognizer Opt_Array_GestureRecognizer; typedef struct ShouldBuiltInRecognizerParallelWithCallback ShouldBuiltInRecognizerParallelWithCallback; typedef struct Opt_ShouldBuiltInRecognizerParallelWithCallback Opt_ShouldBuiltInRecognizerParallelWithCallback; -typedef Ark_Materialized Ark_GestureRecognizer; +typedef struct GestureRecognizerPeer GestureRecognizerPeer; +typedef struct GestureRecognizerPeer* Ark_GestureRecognizer; typedef struct Opt_GestureRecognizer Opt_GestureRecognizer; typedef struct Ark_FingerInfo Ark_FingerInfo; typedef struct Opt_FingerInfo Opt_FingerInfo; -typedef Ark_Materialized Ark_BaseGestureEvent; +typedef struct BaseGestureEventPeer BaseGestureEventPeer; +typedef struct BaseGestureEventPeer* Ark_BaseGestureEvent; typedef struct Opt_BaseGestureEvent Opt_BaseGestureEvent; typedef struct Ark_GestureInfo Ark_GestureInfo; typedef struct Opt_GestureInfo Opt_GestureInfo; @@ -2148,7 +2339,8 @@ typedef struct Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult Callback typedef struct Opt_Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult Opt_Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult; typedef struct Ark_BackgroundBrightnessOptions Ark_BackgroundBrightnessOptions; typedef struct Opt_BackgroundBrightnessOptions Opt_BackgroundBrightnessOptions; -typedef Ark_Materialized Ark_GestureModifier; +typedef struct GestureModifierPeer GestureModifierPeer; +typedef struct GestureModifierPeer* Ark_GestureModifier; typedef struct Opt_GestureModifier Opt_GestureModifier; typedef struct Array_ObscuredReasons Array_ObscuredReasons; typedef struct Opt_Array_ObscuredReasons Opt_Array_ObscuredReasons; @@ -2158,10 +2350,6 @@ typedef struct Ark_StateStyles Ark_StateStyles; typedef struct Opt_StateStyles Opt_StateStyles; typedef struct Ark_Union_CircleShape_EllipseShape_PathShape_RectShape Ark_Union_CircleShape_EllipseShape_PathShape_RectShape; typedef struct Opt_Union_CircleShape_EllipseShape_PathShape_RectShape Opt_Union_CircleShape_EllipseShape_PathShape_RectShape; -typedef struct Ark_Type_CommonMethod_mask_value Ark_Type_CommonMethod_mask_value; -typedef struct Opt_Type_CommonMethod_mask_value Opt_Type_CommonMethod_mask_value; -typedef struct Ark_Type_CommonMethod_clip_value Ark_Type_CommonMethod_clip_value; -typedef struct Opt_Type_CommonMethod_clip_value Opt_Type_CommonMethod_clip_value; typedef struct Ark_Type_CommonMethod_radialGradient_value Ark_Type_CommonMethod_radialGradient_value; typedef struct Opt_Type_CommonMethod_radialGradient_value Opt_Type_CommonMethod_radialGradient_value; typedef struct Ark_Type_CommonMethod_sweepGradient_value Ark_Type_CommonMethod_sweepGradient_value; @@ -2180,8 +2368,6 @@ typedef struct Callback_DragEvent_String_Void Callback_DragEvent_String_Void; typedef struct Opt_Callback_DragEvent_String_Void Opt_Callback_DragEvent_String_Void; typedef struct Ark_Union_CustomBuilder_DragItemInfo Ark_Union_CustomBuilder_DragItemInfo; typedef struct Opt_Union_CustomBuilder_DragItemInfo Opt_Union_CustomBuilder_DragItemInfo; -typedef Ark_Materialized Ark_DragEvent; -typedef struct Opt_DragEvent Opt_DragEvent; typedef struct Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo; typedef struct Opt_Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo Opt_Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo; typedef struct Ark_LocalizedAlignRuleOptions Ark_LocalizedAlignRuleOptions; @@ -2206,16 +2392,8 @@ typedef struct Ark_FocusBoxStyle Ark_FocusBoxStyle; typedef struct Opt_FocusBoxStyle Opt_FocusBoxStyle; typedef struct Callback_KeyEvent_Boolean Callback_KeyEvent_Boolean; typedef struct Opt_Callback_KeyEvent_Boolean Opt_Callback_KeyEvent_Boolean; -typedef Ark_Materialized Ark_KeyEvent; -typedef struct Opt_KeyEvent Opt_KeyEvent; -typedef Ark_Materialized Ark_MouseEvent; -typedef struct Opt_MouseEvent Opt_MouseEvent; -typedef Ark_Materialized Ark_AccessibilityHoverEvent; -typedef struct Opt_AccessibilityHoverEvent Opt_AccessibilityHoverEvent; typedef struct AccessibilityCallback AccessibilityCallback; typedef struct Opt_AccessibilityCallback Opt_AccessibilityCallback; -typedef Ark_Materialized Ark_HoverEvent; -typedef struct Opt_HoverEvent Opt_HoverEvent; typedef struct Callback_Boolean_HoverEvent_Void Callback_Boolean_HoverEvent_Void; typedef struct Opt_Callback_Boolean_HoverEvent_Void Opt_Callback_Boolean_HoverEvent_Void; typedef struct Ark_Union_ResourceColor_ColoringStrategy Ark_Union_ResourceColor_ColoringStrategy; @@ -2268,8 +2446,29 @@ typedef struct Callback_Array_TouchTestInfo_TouchResult Callback_Array_TouchTest typedef struct Opt_Callback_Array_TouchTestInfo_TouchResult Opt_Callback_Array_TouchTestInfo_TouchResult; typedef struct Ark_Union_Array_Rectangle_Rectangle Ark_Union_Array_Rectangle_Rectangle; typedef struct Opt_Union_Array_Rectangle_Rectangle Opt_Union_Array_Rectangle_Rectangle; +typedef struct KeyEventPeer KeyEventPeer; +typedef struct KeyEventPeer* Ark_KeyEvent; +typedef struct Opt_KeyEvent Opt_KeyEvent; +typedef struct DragEventPeer DragEventPeer; +typedef struct DragEventPeer* Ark_DragEvent; +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 AccessibilityHoverEventPeer AccessibilityHoverEventPeer; +typedef struct AccessibilityHoverEventPeer* Ark_AccessibilityHoverEvent; +typedef struct Opt_AccessibilityHoverEvent Opt_AccessibilityHoverEvent; +typedef struct MouseEventPeer MouseEventPeer; +typedef struct MouseEventPeer* Ark_MouseEvent; +typedef struct Opt_MouseEvent Opt_MouseEvent; +typedef struct HoverEventPeer HoverEventPeer; +typedef struct HoverEventPeer* Ark_HoverEvent; +typedef struct Opt_HoverEvent Opt_HoverEvent; +typedef struct BaseEventPeer BaseEventPeer; +typedef struct BaseEventPeer* Ark_BaseEvent; +typedef struct Opt_BaseEvent Opt_BaseEvent; typedef struct Ark_TransitionEffects Ark_TransitionEffects; typedef struct Opt_TransitionEffects Opt_TransitionEffects; typedef struct Ark_PointLightStyle Ark_PointLightStyle; @@ -2292,12 +2491,22 @@ 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 Ark_RenderingContextSettings Ark_RenderingContextSettings; -typedef struct Opt_RenderingContextSettings Opt_RenderingContextSettings; 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; +typedef struct CanvasPathPeer* Ark_CanvasPath; +typedef struct Opt_CanvasPath Opt_CanvasPath; +typedef struct CalendarPickerDialogPeer CalendarPickerDialogPeer; +typedef struct CalendarPickerDialogPeer* Ark_CalendarPickerDialog; +typedef struct Opt_CalendarPickerDialog Opt_CalendarPickerDialog; typedef struct Ark_CalendarOptions Ark_CalendarOptions; typedef struct Opt_CalendarOptions Opt_CalendarOptions; typedef struct Ark_CalendarRequestedData Ark_CalendarRequestedData; @@ -2328,8 +2537,18 @@ typedef struct Ark_BadgeParamWithString Ark_BadgeParamWithString; typedef struct Opt_BadgeParamWithString Opt_BadgeParamWithString; typedef struct Ark_BadgeParamWithNumber Ark_BadgeParamWithNumber; typedef struct Opt_BadgeParamWithNumber Opt_BadgeParamWithNumber; -typedef struct Ark_Union_SpringMotion_FrictionMotion_ScrollMotion Ark_Union_SpringMotion_FrictionMotion_ScrollMotion; -typedef struct Opt_Union_SpringMotion_FrictionMotion_ScrollMotion Opt_Union_SpringMotion_FrictionMotion_ScrollMotion; +typedef struct ScrollMotionPeer ScrollMotionPeer; +typedef struct ScrollMotionPeer* Ark_ScrollMotion; +typedef struct Opt_ScrollMotion Opt_ScrollMotion; +typedef struct FrictionMotionPeer FrictionMotionPeer; +typedef struct FrictionMotionPeer* Ark_FrictionMotion; +typedef struct Opt_FrictionMotion Opt_FrictionMotion; +typedef struct SpringMotionPeer SpringMotionPeer; +typedef struct SpringMotionPeer* Ark_SpringMotion; +typedef struct Opt_SpringMotion Opt_SpringMotion; +typedef struct SpringPropPeer SpringPropPeer; +typedef struct SpringPropPeer* Ark_SpringProp; +typedef struct Opt_SpringProp Opt_SpringProp; typedef struct OnAlphabetIndexerPopupSelectCallback OnAlphabetIndexerPopupSelectCallback; typedef struct Opt_OnAlphabetIndexerPopupSelectCallback Opt_OnAlphabetIndexerPopupSelectCallback; typedef struct OnAlphabetIndexerRequestPopupDataCallback OnAlphabetIndexerRequestPopupDataCallback; @@ -2342,27 +2561,49 @@ typedef struct Ark_AlertDialogButtonOptions Ark_AlertDialogButtonOptions; typedef struct Opt_AlertDialogButtonOptions Opt_AlertDialogButtonOptions; typedef struct Ark_Type_AlertDialog_show_value Ark_Type_AlertDialog_show_value; typedef struct Opt_Type_AlertDialog_show_value Opt_Type_AlertDialog_show_value; +typedef struct AlertDialogPeer AlertDialogPeer; +typedef struct AlertDialogPeer* Ark_AlertDialog; +typedef struct Opt_AlertDialog Opt_AlertDialog; typedef struct Ark_DismissDialogAction Ark_DismissDialogAction; typedef struct Opt_DismissDialogAction Opt_DismissDialogAction; typedef struct Ark_SheetInfo Ark_SheetInfo; typedef struct Opt_SheetInfo Opt_SheetInfo; +typedef struct ActionSheetPeer ActionSheetPeer; +typedef struct ActionSheetPeer* Ark_ActionSheet; +typedef struct Opt_ActionSheet Opt_ActionSheet; typedef struct Ark_Literal_Want_want Ark_Literal_Want_want; typedef struct Opt_Literal_Want_want Opt_Literal_Want_want; +typedef struct EventEmulatorPeer EventEmulatorPeer; +typedef struct EventEmulatorPeer* Ark_EventEmulator; +typedef struct Opt_EventEmulator Opt_EventEmulator; +typedef struct NavExtenderPeer NavExtenderPeer; +typedef struct NavExtenderPeer* Ark_NavExtender; +typedef struct Opt_NavExtender Opt_NavExtender; +typedef struct GlobalScope_ohos_arkui_performanceMonitorPeer GlobalScope_ohos_arkui_performanceMonitorPeer; +typedef struct GlobalScope_ohos_arkui_performanceMonitorPeer* Ark_GlobalScope_ohos_arkui_performanceMonitor; +typedef struct Opt_GlobalScope_ohos_arkui_performanceMonitor Opt_GlobalScope_ohos_arkui_performanceMonitor; +typedef struct GlobalScope_ohos_arkui_componentSnapshotPeer GlobalScope_ohos_arkui_componentSnapshotPeer; +typedef struct GlobalScope_ohos_arkui_componentSnapshotPeer* Ark_GlobalScope_ohos_arkui_componentSnapshot; +typedef struct Opt_GlobalScope_ohos_arkui_componentSnapshot Opt_GlobalScope_ohos_arkui_componentSnapshot; 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 enum Ark_LengthUnit { - ARK_LENGTH_UNIT_PX = 0, - ARK_LENGTH_UNIT_VP = 1, - ARK_LENGTH_UNIT_FP = 2, - ARK_LENGTH_UNIT_PERCENT = 3, - ARK_LENGTH_UNIT_LPX = 4, -} Ark_LengthUnit; -typedef struct Opt_LengthUnit { +typedef struct LazyForEachOpsPeer LazyForEachOpsPeer; +typedef struct LazyForEachOpsPeer* Ark_LazyForEachOps; +typedef struct Opt_LazyForEachOps Opt_LazyForEachOps; +typedef struct AnimationExtenderPeer AnimationExtenderPeer; +typedef struct AnimationExtenderPeer* Ark_AnimationExtender; +typedef struct Opt_AnimationExtender Opt_AnimationExtender; +typedef enum Ark_ColoringStrategy { + ARK_COLORING_STRATEGY_INVERT, + ARK_COLORING_STRATEGY_AVERAGE, + ARK_COLORING_STRATEGY_PRIMARY, +} Ark_ColoringStrategy; +typedef struct Opt_ColoringStrategy { Ark_Tag tag; - Ark_LengthUnit value; -} Opt_LengthUnit; + Ark_ColoringStrategy value; +} Opt_ColoringStrategy; typedef enum Ark_Color { ARK_COLOR_WHITE = 0, ARK_COLOR_BLACK = 1, @@ -2381,15 +2622,17 @@ typedef struct Opt_Color { Ark_Tag tag; Ark_Color value; } Opt_Color; -typedef enum Ark_ColoringStrategy { - ARK_COLORING_STRATEGY_INVERT, - ARK_COLORING_STRATEGY_AVERAGE, - ARK_COLORING_STRATEGY_PRIMARY, -} Ark_ColoringStrategy; -typedef struct Opt_ColoringStrategy { +typedef enum Ark_LengthUnit { + ARK_LENGTH_UNIT_PX = 0, + ARK_LENGTH_UNIT_VP = 1, + ARK_LENGTH_UNIT_FP = 2, + ARK_LENGTH_UNIT_PERCENT = 3, + ARK_LENGTH_UNIT_LPX = 4, +} Ark_LengthUnit; +typedef struct Opt_LengthUnit { Ark_Tag tag; - Ark_ColoringStrategy value; -} Opt_ColoringStrategy; + Ark_LengthUnit value; +} Opt_LengthUnit; typedef enum Ark_FontWeight { ARK_FONT_WEIGHT_LIGHTER = 0, ARK_FONT_WEIGHT_NORMAL = 1, @@ -2429,66 +2672,14 @@ typedef struct Opt_ShadowType { Ark_Tag tag; Ark_ShadowType value; } Opt_ShadowType; -typedef enum Ark_WordBreak { - ARK_WORD_BREAK_NORMAL = 0, - ARK_WORD_BREAK_BREAK_ALL = 1, - ARK_WORD_BREAK_BREAK_WORD = 2, -} Ark_WordBreak; -typedef struct Opt_WordBreak { - Ark_Tag tag; - Ark_WordBreak value; -} Opt_WordBreak; -typedef enum Ark_TextOverflow { - ARK_TEXT_OVERFLOW_NONE = 0, - ARK_TEXT_OVERFLOW_CLIP = 1, - ARK_TEXT_OVERFLOW_ELLIPSIS = 2, - ARK_TEXT_OVERFLOW_MARQUEE = 3, -} Ark_TextOverflow; -typedef struct Opt_TextOverflow { - Ark_Tag tag; - Ark_TextOverflow value; -} Opt_TextOverflow; -typedef enum Ark_TextAlign { - ARK_TEXT_ALIGN_CENTER = 0, - ARK_TEXT_ALIGN_START = 1, - ARK_TEXT_ALIGN_END = 2, - ARK_TEXT_ALIGN_JUSTIFY = 3, -} Ark_TextAlign; -typedef struct Opt_TextAlign { - Ark_Tag tag; - Ark_TextAlign value; -} Opt_TextAlign; -typedef enum Ark_ImageFit { - ARK_IMAGE_FIT_CONTAIN = 0, - ARK_IMAGE_FIT_COVER = 1, - ARK_IMAGE_FIT_AUTO = 2, - ARK_IMAGE_FIT_FILL = 3, - ARK_IMAGE_FIT_SCALE_DOWN = 4, - ARK_IMAGE_FIT_NONE = 5, - ARK_IMAGE_FIT_TOP_START = 7, - ARK_IMAGE_FIT_TOP = 8, - ARK_IMAGE_FIT_TOP_END = 9, - ARK_IMAGE_FIT_START = 10, - ARK_IMAGE_FIT_CENTER = 11, - ARK_IMAGE_FIT_END = 12, - ARK_IMAGE_FIT_BOTTOM_START = 13, - ARK_IMAGE_FIT_BOTTOM = 14, - ARK_IMAGE_FIT_BOTTOM_END = 15, -} Ark_ImageFit; -typedef struct Opt_ImageFit { - Ark_Tag tag; - Ark_ImageFit value; -} Opt_ImageFit; -typedef enum Ark_ImageSpanAlignment { - ARK_IMAGE_SPAN_ALIGNMENT_BASELINE = 0, - ARK_IMAGE_SPAN_ALIGNMENT_BOTTOM = 1, - ARK_IMAGE_SPAN_ALIGNMENT_CENTER = 2, - ARK_IMAGE_SPAN_ALIGNMENT_TOP = 3, -} Ark_ImageSpanAlignment; -typedef struct Opt_ImageSpanAlignment { +typedef enum Ark_FontStyle { + ARK_FONT_STYLE_NORMAL = 0, + ARK_FONT_STYLE_ITALIC = 1, +} Ark_FontStyle; +typedef struct Opt_FontStyle { Ark_Tag tag; - Ark_ImageSpanAlignment value; -} Opt_ImageSpanAlignment; + Ark_FontStyle value; +} Opt_FontStyle; typedef enum Ark_TextDecorationStyle { ARK_TEXT_DECORATION_STYLE_SOLID = 0, ARK_TEXT_DECORATION_STYLE_DOUBLE = 1, @@ -2510,14 +2701,6 @@ typedef struct Opt_TextDecorationType { Ark_Tag tag; Ark_TextDecorationType value; } Opt_TextDecorationType; -typedef enum Ark_FontStyle { - ARK_FONT_STYLE_NORMAL = 0, - ARK_FONT_STYLE_ITALIC = 1, -} Ark_FontStyle; -typedef struct Opt_FontStyle { - Ark_Tag tag; - Ark_FontStyle value; -} Opt_FontStyle; typedef enum Ark_BorderStyle { ARK_BORDER_STYLE_DOTTED = 0, ARK_BORDER_STYLE_DASHED = 1, @@ -2584,6 +2767,47 @@ typedef struct Opt_TextHeightAdaptivePolicy { Ark_Tag tag; Ark_TextHeightAdaptivePolicy value; } Opt_TextHeightAdaptivePolicy; +typedef enum Ark_TextOverflow { + ARK_TEXT_OVERFLOW_NONE = 0, + ARK_TEXT_OVERFLOW_CLIP = 1, + ARK_TEXT_OVERFLOW_ELLIPSIS = 2, + ARK_TEXT_OVERFLOW_MARQUEE = 3, +} Ark_TextOverflow; +typedef struct Opt_TextOverflow { + Ark_Tag tag; + Ark_TextOverflow value; +} Opt_TextOverflow; +typedef enum Ark_ImageFit { + ARK_IMAGE_FIT_CONTAIN = 0, + ARK_IMAGE_FIT_COVER = 1, + ARK_IMAGE_FIT_AUTO = 2, + ARK_IMAGE_FIT_FILL = 3, + ARK_IMAGE_FIT_SCALE_DOWN = 4, + ARK_IMAGE_FIT_NONE = 5, + ARK_IMAGE_FIT_TOP_START = 7, + ARK_IMAGE_FIT_TOP = 8, + ARK_IMAGE_FIT_TOP_END = 9, + ARK_IMAGE_FIT_START = 10, + ARK_IMAGE_FIT_CENTER = 11, + ARK_IMAGE_FIT_END = 12, + ARK_IMAGE_FIT_BOTTOM_START = 13, + ARK_IMAGE_FIT_BOTTOM = 14, + ARK_IMAGE_FIT_BOTTOM_END = 15, +} Ark_ImageFit; +typedef struct Opt_ImageFit { + Ark_Tag tag; + Ark_ImageFit value; +} Opt_ImageFit; +typedef enum Ark_ImageSpanAlignment { + ARK_IMAGE_SPAN_ALIGNMENT_BASELINE = 0, + ARK_IMAGE_SPAN_ALIGNMENT_BOTTOM = 1, + ARK_IMAGE_SPAN_ALIGNMENT_CENTER = 2, + ARK_IMAGE_SPAN_ALIGNMENT_TOP = 3, +} Ark_ImageSpanAlignment; +typedef struct Opt_ImageSpanAlignment { + Ark_Tag tag; + Ark_ImageSpanAlignment value; +} Opt_ImageSpanAlignment; typedef enum Ark_LineBreakStrategy { ARK_LINE_BREAK_STRATEGY_GREEDY = 0, ARK_LINE_BREAK_STRATEGY_HIGH_QUALITY = 1, @@ -2593,6 +2817,25 @@ typedef struct Opt_LineBreakStrategy { Ark_Tag tag; Ark_LineBreakStrategy value; } Opt_LineBreakStrategy; +typedef enum Ark_WordBreak { + ARK_WORD_BREAK_NORMAL = 0, + ARK_WORD_BREAK_BREAK_ALL = 1, + ARK_WORD_BREAK_BREAK_WORD = 2, +} Ark_WordBreak; +typedef struct Opt_WordBreak { + Ark_Tag tag; + Ark_WordBreak value; +} Opt_WordBreak; +typedef enum Ark_TextAlign { + ARK_TEXT_ALIGN_CENTER = 0, + ARK_TEXT_ALIGN_START = 1, + ARK_TEXT_ALIGN_END = 2, + ARK_TEXT_ALIGN_JUSTIFY = 3, +} Ark_TextAlign; +typedef struct Opt_TextAlign { + Ark_Tag tag; + Ark_TextAlign value; +} Opt_TextAlign; typedef enum Ark_SymbolRenderingStrategy { ARK_SYMBOL_RENDERING_STRATEGY_SINGLE = 0, ARK_SYMBOL_RENDERING_STRATEGY_MULTIPLE_COLOR = 1, @@ -2619,21 +2862,6 @@ typedef struct Opt_TitleHeight { Ark_Tag tag; Ark_TitleHeight value; } Opt_TitleHeight; -typedef enum Ark_GradientDirection { - ARK_GRADIENT_DIRECTION_LEFT = 0, - ARK_GRADIENT_DIRECTION_TOP = 1, - ARK_GRADIENT_DIRECTION_RIGHT = 2, - ARK_GRADIENT_DIRECTION_BOTTOM = 3, - ARK_GRADIENT_DIRECTION_LEFT_TOP = 4, - ARK_GRADIENT_DIRECTION_LEFT_BOTTOM = 5, - ARK_GRADIENT_DIRECTION_RIGHT_TOP = 6, - ARK_GRADIENT_DIRECTION_RIGHT_BOTTOM = 7, - ARK_GRADIENT_DIRECTION_NONE = 8, -} Ark_GradientDirection; -typedef struct Opt_GradientDirection { - Ark_Tag tag; - Ark_GradientDirection value; -} Opt_GradientDirection; typedef enum Ark_MenuPreviewMode { ARK_MENU_PREVIEW_MODE_NONE = 0, ARK_MENU_PREVIEW_MODE_IMAGE = 1, @@ -2661,6 +2889,21 @@ typedef struct Opt_OutlineStyle { Ark_Tag tag; Ark_OutlineStyle value; } Opt_OutlineStyle; +typedef enum Ark_GradientDirection { + ARK_GRADIENT_DIRECTION_LEFT = 0, + ARK_GRADIENT_DIRECTION_TOP = 1, + ARK_GRADIENT_DIRECTION_RIGHT = 2, + ARK_GRADIENT_DIRECTION_BOTTOM = 3, + ARK_GRADIENT_DIRECTION_LEFT_TOP = 4, + ARK_GRADIENT_DIRECTION_LEFT_BOTTOM = 5, + ARK_GRADIENT_DIRECTION_RIGHT_TOP = 6, + ARK_GRADIENT_DIRECTION_RIGHT_BOTTOM = 7, + ARK_GRADIENT_DIRECTION_NONE = 8, +} Ark_GradientDirection; +typedef struct Opt_GradientDirection { + Ark_Tag tag; + Ark_GradientDirection value; +} Opt_GradientDirection; typedef enum Ark_DialogButtonStyle { ARK_DIALOG_BUTTON_STYLE_DEFAULT = 0, ARK_DIALOG_BUTTON_STYLE_HIGHLIGHT = 1, @@ -2669,14 +2912,6 @@ typedef struct Opt_DialogButtonStyle { Ark_Tag tag; Ark_DialogButtonStyle value; } Opt_DialogButtonStyle; -typedef enum Ark_NavDestinationMode { - ARK_NAV_DESTINATION_MODE_STANDARD = 0, - ARK_NAV_DESTINATION_MODE_DIALOG = 1, -} Ark_NavDestinationMode; -typedef struct Opt_NavDestinationMode { - Ark_Tag tag; - Ark_NavDestinationMode value; -} Opt_NavDestinationMode; typedef enum Ark_StyledStringKey { ARK_STYLED_STRING_KEY_FONT = 0, ARK_STYLED_STRING_KEY_DECORATION = 1, @@ -2909,6 +3144,14 @@ typedef struct Opt_ProgressStatus { Ark_Tag tag; Ark_ProgressStatus value; } Opt_ProgressStatus; +typedef enum Ark_NavDestinationMode { + ARK_NAV_DESTINATION_MODE_STANDARD = 0, + ARK_NAV_DESTINATION_MODE_DIALOG = 1, +} Ark_NavDestinationMode; +typedef struct Opt_NavDestinationMode { + Ark_Tag tag; + Ark_NavDestinationMode value; +} Opt_NavDestinationMode; typedef enum Ark_LaunchMode { ARK_LAUNCH_MODE_STANDARD = 0, ARK_LAUNCH_MODE_MOVE_TO_TOP_SINGLETON = 1, @@ -3307,6 +3550,30 @@ typedef struct Opt_BarPosition { Ark_Tag tag; Ark_BarPosition value; } Opt_BarPosition; +typedef enum Ark_EffectScope { + ARK_EFFECT_SCOPE_LAYER = 0, + ARK_EFFECT_SCOPE_WHOLE = 1, +} Ark_EffectScope; +typedef struct Opt_EffectScope { + Ark_Tag tag; + Ark_EffectScope value; +} Opt_EffectScope; +typedef enum Ark_EffectDirection { + ARK_EFFECT_DIRECTION_DOWN = 0, + ARK_EFFECT_DIRECTION_UP = 1, +} Ark_EffectDirection; +typedef struct Opt_EffectDirection { + Ark_Tag tag; + Ark_EffectDirection value; +} Opt_EffectDirection; +typedef enum Ark_EffectFillStyle { + ARK_EFFECT_FILL_STYLE_CUMULATIVE = 0, + ARK_EFFECT_FILL_STYLE_ITERATIVE = 1, +} Ark_EffectFillStyle; +typedef struct Opt_EffectFillStyle { + Ark_Tag tag; + Ark_EffectFillStyle value; +} Opt_EffectFillStyle; typedef enum Ark_SliderBlockType { ARK_SLIDER_BLOCK_TYPE_DEFAULT = 0, ARK_SLIDER_BLOCK_TYPE_IMAGE = 1, @@ -4003,69 +4270,13 @@ typedef struct Opt_GestureControl_GestureType { Ark_Tag tag; Ark_GestureControl_GestureType value; } Opt_GestureControl_GestureType; -typedef enum Ark_DragBehavior { - ARK_DRAG_BEHAVIOR_COPY = 0, - ARK_DRAG_BEHAVIOR_MOVE = 1, -} Ark_DragBehavior; -typedef struct Opt_DragBehavior { - Ark_Tag tag; - Ark_DragBehavior value; -} Opt_DragBehavior; -typedef enum Ark_KeySource { - ARK_KEY_SOURCE_UNKNOWN = 0, - ARK_KEY_SOURCE_KEYBOARD = 1, -} Ark_KeySource; -typedef struct Opt_KeySource { - Ark_Tag tag; - Ark_KeySource value; -} Opt_KeySource; -typedef enum Ark_KeyType { - ARK_KEY_TYPE_DOWN = 0, - ARK_KEY_TYPE_UP = 1, -} Ark_KeyType; -typedef struct Opt_KeyType { - Ark_Tag tag; - Ark_KeyType value; -} Opt_KeyType; -typedef enum Ark_MouseAction { - ARK_MOUSE_ACTION_PRESS = 0, - ARK_MOUSE_ACTION_RELEASE = 1, - ARK_MOUSE_ACTION_MOVE = 2, - ARK_MOUSE_ACTION_HOVER = 3, -} Ark_MouseAction; -typedef struct Opt_MouseAction { - Ark_Tag tag; - Ark_MouseAction value; -} Opt_MouseAction; -typedef enum Ark_MouseButton { - ARK_MOUSE_BUTTON_LEFT = 0, - ARK_MOUSE_BUTTON_RIGHT = 1, - ARK_MOUSE_BUTTON_MIDDLE = 2, - ARK_MOUSE_BUTTON_BACK = 3, - ARK_MOUSE_BUTTON_FORWARD = 4, - ARK_MOUSE_BUTTON_NONE = 5, -} Ark_MouseButton; -typedef struct Opt_MouseButton { - Ark_Tag tag; - Ark_MouseButton value; -} Opt_MouseButton; -typedef enum Ark_AccessibilityHoverType { - ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_ENTER = 0, - ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_MOVE = 1, - ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_EXIT = 2, - ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_CANCEL = 3, -} Ark_AccessibilityHoverType; -typedef struct Opt_AccessibilityHoverType { - Ark_Tag tag; - Ark_AccessibilityHoverType value; -} Opt_AccessibilityHoverType; -typedef enum Ark_RepeatMode { - ARK_REPEAT_MODE_REPEAT = 0, - ARK_REPEAT_MODE_STRETCH = 1, - ARK_REPEAT_MODE_ROUND = 2, - ARK_REPEAT_MODE_SPACE = 3, -} Ark_RepeatMode; -typedef struct Opt_RepeatMode { +typedef enum Ark_RepeatMode { + ARK_REPEAT_MODE_REPEAT = 0, + ARK_REPEAT_MODE_STRETCH = 1, + ARK_REPEAT_MODE_ROUND = 2, + ARK_REPEAT_MODE_SPACE = 3, +} Ark_RepeatMode; +typedef struct Opt_RepeatMode { Ark_Tag tag; Ark_RepeatMode value; } Opt_RepeatMode; @@ -4097,6 +4308,22 @@ typedef struct Opt_TouchTestStrategy { Ark_Tag tag; Ark_TouchTestStrategy value; } Opt_TouchTestStrategy; +typedef enum Ark_KeySource { + ARK_KEY_SOURCE_UNKNOWN = 0, + ARK_KEY_SOURCE_KEYBOARD = 1, +} Ark_KeySource; +typedef struct Opt_KeySource { + Ark_Tag tag; + Ark_KeySource value; +} Opt_KeySource; +typedef enum Ark_KeyType { + ARK_KEY_TYPE_DOWN = 0, + ARK_KEY_TYPE_UP = 1, +} Ark_KeyType; +typedef struct Opt_KeyType { + Ark_Tag tag; + Ark_KeyType value; +} Opt_KeyType; typedef enum Ark_DragResult { ARK_DRAG_RESULT_DRAG_SUCCESSFUL = 0, ARK_DRAG_RESULT_DRAG_FAILED = 1, @@ -4108,6 +4335,46 @@ typedef struct Opt_DragResult { Ark_Tag tag; Ark_DragResult value; } Opt_DragResult; +typedef enum Ark_DragBehavior { + ARK_DRAG_BEHAVIOR_COPY = 0, + ARK_DRAG_BEHAVIOR_MOVE = 1, +} Ark_DragBehavior; +typedef struct Opt_DragBehavior { + Ark_Tag tag; + Ark_DragBehavior value; +} Opt_DragBehavior; +typedef enum Ark_AccessibilityHoverType { + ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_ENTER = 0, + ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_MOVE = 1, + ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_EXIT = 2, + ARK_ACCESSIBILITY_HOVER_TYPE_HOVER_CANCEL = 3, +} Ark_AccessibilityHoverType; +typedef struct Opt_AccessibilityHoverType { + Ark_Tag tag; + Ark_AccessibilityHoverType value; +} Opt_AccessibilityHoverType; +typedef enum Ark_MouseAction { + ARK_MOUSE_ACTION_PRESS = 0, + ARK_MOUSE_ACTION_RELEASE = 1, + ARK_MOUSE_ACTION_MOVE = 2, + ARK_MOUSE_ACTION_HOVER = 3, +} Ark_MouseAction; +typedef struct Opt_MouseAction { + Ark_Tag tag; + Ark_MouseAction value; +} Opt_MouseAction; +typedef enum Ark_MouseButton { + ARK_MOUSE_BUTTON_LEFT = 0, + ARK_MOUSE_BUTTON_RIGHT = 1, + ARK_MOUSE_BUTTON_MIDDLE = 2, + ARK_MOUSE_BUTTON_BACK = 3, + ARK_MOUSE_BUTTON_FORWARD = 4, + ARK_MOUSE_BUTTON_NONE = 5, +} Ark_MouseButton; +typedef struct Opt_MouseButton { + Ark_Tag tag; + Ark_MouseButton value; +} Opt_MouseButton; typedef enum Ark_TransitionEdge { ARK_TRANSITION_EDGE_TOP = 0, ARK_TRANSITION_EDGE_BOTTOM = 1, @@ -4416,30 +4683,6 @@ typedef struct Opt_TextAreaType { Ark_Tag tag; Ark_TextAreaType value; } Opt_TextAreaType; -typedef enum Ark_EffectFillStyle { - ARK_EFFECT_FILL_STYLE_CUMULATIVE = 0, - ARK_EFFECT_FILL_STYLE_ITERATIVE = 1, -} Ark_EffectFillStyle; -typedef struct Opt_EffectFillStyle { - Ark_Tag tag; - Ark_EffectFillStyle value; -} Opt_EffectFillStyle; -typedef enum Ark_EffectScope { - ARK_EFFECT_SCOPE_LAYER = 0, - ARK_EFFECT_SCOPE_WHOLE = 1, -} Ark_EffectScope; -typedef struct Opt_EffectScope { - Ark_Tag tag; - Ark_EffectScope value; -} Opt_EffectScope; -typedef enum Ark_EffectDirection { - ARK_EFFECT_DIRECTION_DOWN = 0, - ARK_EFFECT_DIRECTION_UP = 1, -} Ark_EffectDirection; -typedef struct Opt_EffectDirection { - Ark_Tag tag; - Ark_EffectDirection value; -} Opt_EffectDirection; typedef enum Ark_SwiperNestedScrollMode { ARK_SWIPER_NESTED_SCROLL_MODE_SELF_ONLY = 0, ARK_SWIPER_NESTED_SCROLL_MODE_SELF_FIRST = 1, @@ -5186,10 +5429,6 @@ typedef struct Opt_Int32 { Ark_Tag tag; Ark_Int32 value; } Opt_Int32; -typedef struct Opt_Length { - Ark_Tag tag; - Ark_Length value; -} Opt_Length; typedef struct Opt_Number { Ark_Tag tag; Ark_Number value; @@ -5206,16 +5445,10 @@ typedef struct Opt_String { Ark_Tag tag; Ark_String value; } Opt_String; -typedef struct Ark_BorderRadiuses { - Opt_Length topLeft; - Opt_Length topRight; - Opt_Length bottomLeft; - Opt_Length bottomRight; -} Ark_BorderRadiuses; -typedef struct Opt_BorderRadiuses { +typedef struct Opt_Length { Ark_Tag tag; - Ark_BorderRadiuses value; -} Opt_BorderRadiuses; + Ark_Length value; +} Opt_Length; typedef struct Ark_Resource { Ark_String bundleName; Ark_String moduleName; @@ -5227,22 +5460,20 @@ typedef struct Opt_Resource { Ark_Tag tag; Ark_Resource value; } Opt_Resource; -typedef struct Ark_Tuple_Dimension_Dimension { - Ark_Length value0; - Ark_Length value1; -} Ark_Tuple_Dimension_Dimension; -typedef struct Opt_Tuple_Dimension_Dimension { - Ark_Tag tag; - Ark_Tuple_Dimension_Dimension value; -} Opt_Tuple_Dimension_Dimension; -typedef struct Opt_PixelMap { +typedef struct Opt_ICurve { Ark_Tag tag; - Ark_PixelMap value; -} Opt_PixelMap; -typedef struct Opt_LengthMetrics { + Ark_ICurve value; +} Opt_ICurve; +typedef struct Ark_BorderRadiuses { + Opt_Length topLeft; + Opt_Length topRight; + Opt_Length bottomLeft; + Opt_Length bottomRight; +} Ark_BorderRadiuses; +typedef struct Opt_BorderRadiuses { Ark_Tag tag; - Ark_LengthMetrics value; -} Opt_LengthMetrics; + Ark_BorderRadiuses value; +} Opt_BorderRadiuses; typedef struct Ark_Padding { Opt_Length top; Opt_Length right; @@ -5253,75 +5484,18 @@ typedef struct Opt_Padding { Ark_Tag tag; Ark_Padding value; } Opt_Padding; -typedef struct Ark_Union_Dimension_BorderRadiuses { - Ark_Int32 selector; - union { - Ark_Length value0; - Ark_BorderRadiuses value1; - }; -} Ark_Union_Dimension_BorderRadiuses; -typedef struct Opt_Union_Dimension_BorderRadiuses { - Ark_Tag tag; - Ark_Union_Dimension_BorderRadiuses value; -} Opt_Union_Dimension_BorderRadiuses; -typedef struct Ark_ResourceColor { - Ark_Int32 selector; - union { - Ark_Color value0; - Ark_Number value1; - Ark_String value2; - Ark_Resource value3; - }; -} Ark_ResourceColor; -typedef struct Opt_ResourceColor { - Ark_Tag tag; - Ark_ResourceColor value; -} Opt_ResourceColor; -typedef struct Ark_LeadingMarginPlaceholder { - Ark_PixelMap pixelMap; - Ark_Tuple_Dimension_Dimension size; -} Ark_LeadingMarginPlaceholder; -typedef struct Opt_LeadingMarginPlaceholder { - Ark_Tag tag; - Ark_LeadingMarginPlaceholder value; -} Opt_LeadingMarginPlaceholder; -typedef struct Ark_Union_LengthMetrics_BorderRadiuses { - Ark_Int32 selector; - union { - Ark_LengthMetrics value0; - Ark_BorderRadiuses value1; - }; -} Ark_Union_LengthMetrics_BorderRadiuses; -typedef struct Opt_Union_LengthMetrics_BorderRadiuses { - Ark_Tag tag; - Ark_Union_LengthMetrics_BorderRadiuses value; -} Opt_Union_LengthMetrics_BorderRadiuses; -typedef struct Ark_Union_LengthMetrics_Padding { - Ark_Int32 selector; - union { - Ark_LengthMetrics value0; - Ark_Padding value1; - }; -} Ark_Union_LengthMetrics_Padding; -typedef struct Opt_Union_LengthMetrics_Padding { - Ark_Tag tag; - Ark_Union_LengthMetrics_Padding value; -} Opt_Union_LengthMetrics_Padding; -typedef struct Ark_Union_LengthMetrics_Margin { - Ark_Int32 selector; - union { - Ark_LengthMetrics value0; - Ark_Padding value1; - }; -} Ark_Union_LengthMetrics_Margin; -typedef struct Opt_Union_LengthMetrics_Margin { +typedef struct Ark_Tuple_Dimension_Dimension { + Ark_Length value0; + Ark_Length value1; +} Ark_Tuple_Dimension_Dimension; +typedef struct Opt_Tuple_Dimension_Dimension { Ark_Tag tag; - Ark_Union_LengthMetrics_Margin value; -} Opt_Union_LengthMetrics_Margin; -typedef struct Opt_ICurve { + Ark_Tuple_Dimension_Dimension value; +} Opt_Tuple_Dimension_Dimension; +typedef struct Opt_PixelMap { Ark_Tag tag; - Ark_ICurve value; -} Opt_ICurve; + Ark_PixelMap value; +} Opt_PixelMap; typedef struct Opt_Boolean { Ark_Tag tag; Ark_Boolean value; @@ -5350,50 +5524,10 @@ typedef struct Opt_Union_Color_String_Resource_ColoringStrategy { Ark_Tag tag; Ark_Union_Color_String_Resource_ColoringStrategy value; } Opt_Union_Color_String_Resource_ColoringStrategy; -typedef struct Ark_TextBackgroundStyle { - Opt_ResourceColor color; - Opt_Union_Dimension_BorderRadiuses radius; -} Ark_TextBackgroundStyle; -typedef struct Opt_TextBackgroundStyle { - Ark_Tag tag; - Ark_TextBackgroundStyle value; -} Opt_TextBackgroundStyle; -typedef struct Ark_Union_Number_LeadingMarginPlaceholder { - Ark_Int32 selector; - union { - Ark_Number value0; - Ark_LeadingMarginPlaceholder value1; - }; -} Ark_Union_Number_LeadingMarginPlaceholder; -typedef struct Opt_Union_Number_LeadingMarginPlaceholder { - Ark_Tag tag; - Ark_Union_Number_LeadingMarginPlaceholder value; -} Opt_Union_Number_LeadingMarginPlaceholder; -typedef struct Ark_ImageAttachmentLayoutStyle { - Opt_Union_LengthMetrics_Margin margin; - Opt_Union_LengthMetrics_Padding padding; - Opt_Union_LengthMetrics_BorderRadiuses borderRadius; -} Ark_ImageAttachmentLayoutStyle; -typedef struct Opt_ImageAttachmentLayoutStyle { - Ark_Tag tag; - Ark_ImageAttachmentLayoutStyle value; -} Opt_ImageAttachmentLayoutStyle; -typedef struct Ark_SizeOptions { - Opt_Length width; - Opt_Length height; -} Ark_SizeOptions; -typedef struct Opt_SizeOptions { - Ark_Tag tag; - Ark_SizeOptions value; -} Opt_SizeOptions; -typedef struct Array_ShadowOptions { - Ark_ShadowOptions* array; - Ark_Int32 length; -} Array_ShadowOptions; -typedef struct Opt_Array_ShadowOptions { - Ark_Tag tag; - Array_ShadowOptions value; -} Opt_Array_ShadowOptions; +typedef struct Opt_LengthMetrics { + Ark_Tag tag; + Ark_LengthMetrics value; +} Opt_LengthMetrics; typedef struct Ark_Position { Opt_Length x; Opt_Length y; @@ -5437,7 +5571,7 @@ typedef struct Opt_ResourceStr { Ark_ResourceStr value; } Opt_ResourceStr; typedef struct Ark_SymbolGlyphModifier { - Ark_String __SymbolGlyphModifierStub; + Ark_String _SymbolGlyphModifierStub; } Ark_SymbolGlyphModifier; typedef struct Opt_SymbolGlyphModifier { Ark_Tag tag; @@ -5454,6 +5588,17 @@ typedef struct Opt_Union_Curve_ICurve { Ark_Tag tag; Ark_Union_Curve_ICurve value; } Opt_Union_Curve_ICurve; +typedef struct Ark_Union_Dimension_BorderRadiuses { + Ark_Int32 selector; + union { + Ark_Length value0; + Ark_BorderRadiuses value1; + }; +} Ark_Union_Dimension_BorderRadiuses; +typedef struct Opt_Union_Dimension_BorderRadiuses { + Ark_Tag tag; + Ark_Union_Dimension_BorderRadiuses value; +} Opt_Union_Dimension_BorderRadiuses; typedef struct Ark_Union_Dimension_Margin { Ark_Int32 selector; union { @@ -5465,6 +5610,35 @@ typedef struct Opt_Union_Dimension_Margin { Ark_Tag tag; Ark_Union_Dimension_Margin value; } Opt_Union_Dimension_Margin; +typedef struct Ark_LeadingMarginPlaceholder { + Ark_PixelMap pixelMap; + Ark_Tuple_Dimension_Dimension size; +} Ark_LeadingMarginPlaceholder; +typedef struct Opt_LeadingMarginPlaceholder { + Ark_Tag tag; + Ark_LeadingMarginPlaceholder value; +} Opt_LeadingMarginPlaceholder; +typedef struct Ark_ResourceColor { + Ark_Int32 selector; + union { + Ark_Color value0; + Ark_Number value1; + Ark_String value2; + Ark_Resource value3; + }; +} Ark_ResourceColor; +typedef struct Opt_ResourceColor { + Ark_Tag tag; + Ark_ResourceColor value; +} Opt_ResourceColor; +typedef struct Array_ShadowOptions { + Ark_ShadowOptions* array; + Ark_Int32 length; +} Array_ShadowOptions; +typedef struct Opt_Array_ShadowOptions { + Ark_Tag tag; + Array_ShadowOptions value; +} Opt_Array_ShadowOptions; typedef struct Ark_ShadowOptions { Ark_Union_Number_Resource radius; Opt_ShadowType type; @@ -5489,109 +5663,39 @@ typedef struct Opt_GridRowSizeOption { Ark_Tag tag; Ark_GridRowSizeOption value; } Opt_GridRowSizeOption; -typedef struct Ark_BackgroundColorStyle { - Ark_TextBackgroundStyle textBackgroundStyle; -} Ark_BackgroundColorStyle; -typedef struct Opt_BackgroundColorStyle { - Ark_Tag tag; - Ark_BackgroundColorStyle value; -} Opt_BackgroundColorStyle; -typedef struct Ark_UserDataSpan { - void *handle; -} Ark_UserDataSpan; -typedef struct Opt_UserDataSpan { - Ark_Tag tag; - Ark_UserDataSpan value; -} Opt_UserDataSpan; -typedef struct Opt_CustomSpan { - Ark_Tag tag; - Ark_CustomSpan value; -} Opt_CustomSpan; -typedef struct Ark_UrlStyle { - Ark_String url; -} Ark_UrlStyle; -typedef struct Opt_UrlStyle { - Ark_Tag tag; - Ark_UrlStyle value; -} Opt_UrlStyle; -typedef struct Ark_LineHeightStyle { - Ark_Number lineHeight; -} Ark_LineHeightStyle; -typedef struct Opt_LineHeightStyle { - Ark_Tag tag; - Ark_LineHeightStyle value; -} Opt_LineHeightStyle; -typedef struct Ark_ParagraphStyle { - Opt_TextAlign textAlign; - Opt_Number textIndent; - Opt_Number maxLines; - Opt_TextOverflow overflow; - Opt_WordBreak wordBreak; - Opt_Union_Number_LeadingMarginPlaceholder leadingMargin; -} Ark_ParagraphStyle; -typedef struct Opt_ParagraphStyle { - Ark_Tag tag; - Ark_ParagraphStyle value; -} Opt_ParagraphStyle; -typedef struct Ark_ImageAttachment { - Ark_PixelMap value; - Opt_SizeOptions size; - Opt_ImageSpanAlignment verticalAlign; - Opt_ImageFit objectFit; - Opt_ImageAttachmentLayoutStyle layoutStyle; -} Ark_ImageAttachment; -typedef struct Opt_ImageAttachment { - Ark_Tag tag; - Ark_ImageAttachment value; -} Opt_ImageAttachment; -typedef struct Ark_GestureStyle { - void *handle; -} Ark_GestureStyle; -typedef struct Opt_GestureStyle { - Ark_Tag tag; - Ark_GestureStyle value; -} Opt_GestureStyle; -typedef struct Ark_TextShadowStyle { - Array_ShadowOptions textShadow; -} Ark_TextShadowStyle; -typedef struct Opt_TextShadowStyle { - Ark_Tag tag; - Ark_TextShadowStyle value; -} Opt_TextShadowStyle; -typedef struct Ark_LetterSpacingStyle { - Ark_Number letterSpacing; -} Ark_LetterSpacingStyle; -typedef struct Opt_LetterSpacingStyle { - Ark_Tag tag; - Ark_LetterSpacingStyle value; -} Opt_LetterSpacingStyle; -typedef struct Ark_BaselineOffsetStyle { - Ark_Number baselineOffset; -} Ark_BaselineOffsetStyle; -typedef struct Opt_BaselineOffsetStyle { +typedef struct Ark_Union_LengthMetrics_BorderRadiuses { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_BorderRadiuses value1; + }; +} Ark_Union_LengthMetrics_BorderRadiuses; +typedef struct Opt_Union_LengthMetrics_BorderRadiuses { Ark_Tag tag; - Ark_BaselineOffsetStyle value; -} Opt_BaselineOffsetStyle; -typedef struct Ark_DecorationStyle { - Ark_TextDecorationType type; - Opt_ResourceColor color; - Opt_TextDecorationStyle style; -} Ark_DecorationStyle; -typedef struct Opt_DecorationStyle { + Ark_Union_LengthMetrics_BorderRadiuses value; +} Opt_Union_LengthMetrics_BorderRadiuses; +typedef struct Ark_Union_LengthMetrics_Padding { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_Padding value1; + }; +} Ark_Union_LengthMetrics_Padding; +typedef struct Opt_Union_LengthMetrics_Padding { Ark_Tag tag; - Ark_DecorationStyle value; -} Opt_DecorationStyle; -typedef struct Ark_TextStyle_styled_string { - Opt_ResourceColor fontColor; - Opt_String fontFamily; - Opt_Number fontSize; - Opt_Number fontWeight; - Opt_FontStyle fontStyle; -} Ark_TextStyle_styled_string; -typedef struct Opt_TextStyle_styled_string { + Ark_Union_LengthMetrics_Padding value; +} Opt_Union_LengthMetrics_Padding; +typedef struct Ark_Union_LengthMetrics_Margin { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_Padding value1; + }; +} Ark_Union_LengthMetrics_Margin; +typedef struct Opt_Union_LengthMetrics_Margin { Ark_Tag tag; - Ark_TextStyle_styled_string value; -} Opt_TextStyle_styled_string; + Ark_Union_LengthMetrics_Margin value; +} Opt_Union_LengthMetrics_Margin; typedef struct Ark_Area { Ark_Length width; Ark_Length height; @@ -5704,7 +5808,7 @@ typedef struct Opt_Union_Padding_Dimension { Ark_Union_Padding_Dimension value; } Opt_Union_Padding_Dimension; typedef struct Ark_ComponentContent { - Ark_String __ComponentContentStub; + Ark_String _ComponentContentStub; } Ark_ComponentContent; typedef struct Opt_ComponentContent { Ark_Tag tag; @@ -5906,14 +6010,6 @@ typedef struct Opt_Union_Length_GridRowSizeOption { Ark_Tag tag; Ark_Union_Length_GridRowSizeOption value; } Opt_Union_Length_GridRowSizeOption; -typedef struct Array_Tuple_ResourceColor_Number { - Ark_Tuple_ResourceColor_Number* array; - Ark_Int32 length; -} Array_Tuple_ResourceColor_Number; -typedef struct Opt_Array_Tuple_ResourceColor_Number { - Ark_Tag tag; - Array_Tuple_ResourceColor_Number value; -} Opt_Array_Tuple_ResourceColor_Number; typedef struct Ark_EdgeStyles { Opt_BorderStyle top; Opt_BorderStyle right; @@ -6021,6 +6117,14 @@ typedef struct Opt_Array_DragPreviewMode { Ark_Tag tag; Array_DragPreviewMode value; } Opt_Array_DragPreviewMode; +typedef struct Array_Tuple_ResourceColor_Number { + Ark_Tuple_ResourceColor_Number* array; + Ark_Int32 length; +} Array_Tuple_ResourceColor_Number; +typedef struct Opt_Array_Tuple_ResourceColor_Number { + Ark_Tag tag; + Array_Tuple_ResourceColor_Number value; +} Opt_Array_Tuple_ResourceColor_Number; typedef struct Opt_CanvasPattern { Ark_Tag tag; Ark_CanvasPattern value; @@ -6066,34 +6170,36 @@ typedef struct Opt_Callback_Boolean_Void { Callback_Boolean_Void value; } Opt_Callback_Boolean_Void; typedef struct Ark_ColorMetrics { - Ark_String __ColorMetricsStub; + Ark_String _ColorMetricsStub; } Ark_ColorMetrics; typedef struct Opt_ColorMetrics { Ark_Tag tag; Ark_ColorMetrics value; } Opt_ColorMetrics; typedef struct Ark_StyledStringValue { - Ark_Int32 selector; - union { - Ark_TextStyle_styled_string value0; - Ark_DecorationStyle value1; - Ark_BaselineOffsetStyle value2; - Ark_LetterSpacingStyle value3; - Ark_TextShadowStyle value4; - Ark_GestureStyle value5; - Ark_ImageAttachment value6; - Ark_ParagraphStyle value7; - Ark_LineHeightStyle value8; - Ark_UrlStyle value9; - Ark_CustomSpan value10; - Ark_UserDataSpan value11; - Ark_BackgroundColorStyle value12; - }; + Ark_String stub; } Ark_StyledStringValue; typedef struct Opt_StyledStringValue { Ark_Tag tag; Ark_StyledStringValue value; } Opt_StyledStringValue; +typedef struct Ark_ImageAttachmentLayoutStyle { + Opt_Union_LengthMetrics_Margin margin; + Opt_Union_LengthMetrics_Padding padding; + Opt_Union_LengthMetrics_BorderRadiuses borderRadius; +} Ark_ImageAttachmentLayoutStyle; +typedef struct Opt_ImageAttachmentLayoutStyle { + Ark_Tag tag; + Ark_ImageAttachmentLayoutStyle value; +} Opt_ImageAttachmentLayoutStyle; +typedef struct Ark_SizeOptions { + Opt_Length width; + Opt_Length height; +} Ark_SizeOptions; +typedef struct Opt_SizeOptions { + Ark_Tag tag; + Ark_SizeOptions value; +} Opt_SizeOptions; typedef struct Ark_Union_Margin_Dimension { Ark_Int32 selector; union { @@ -6192,7 +6298,7 @@ typedef struct Opt_Callback_String_Void { Callback_String_Void value; } Opt_Callback_String_Void; typedef struct Ark_DateTimeOptions { - Ark_String __DateTimeOptionsStub; + Ark_String _DateTimeOptionsStub; } Ark_DateTimeOptions; typedef struct Opt_DateTimeOptions { Ark_Tag tag; @@ -6437,34 +6543,6 @@ typedef struct Opt_VP { Ark_Tag tag; Ark_VP value; } Opt_VP; -typedef struct Ark_RectAttribute { - void *handle; -} Ark_RectAttribute; -typedef struct Opt_RectAttribute { - Ark_Tag tag; - Ark_RectAttribute value; -} Opt_RectAttribute; -typedef struct Ark_PathAttribute { - void *handle; -} Ark_PathAttribute; -typedef struct Opt_PathAttribute { - Ark_Tag tag; - Ark_PathAttribute value; -} Opt_PathAttribute; -typedef struct Ark_EllipseAttribute { - void *handle; -} Ark_EllipseAttribute; -typedef struct Opt_EllipseAttribute { - Ark_Tag tag; - Ark_EllipseAttribute value; -} Opt_EllipseAttribute; -typedef struct Ark_CircleAttribute { - void *handle; -} Ark_CircleAttribute; -typedef struct Opt_CircleAttribute { - Ark_Tag tag; - Ark_CircleAttribute value; -} Opt_CircleAttribute; typedef struct Ark_IconOptions { Opt_Length size; Opt_ResourceColor color; @@ -6628,12 +6706,6 @@ typedef struct Opt_NavPathStack { Ark_Tag tag; Ark_NavPathStack value; } Opt_NavPathStack; -typedef struct Ark_NavPathInfo { - Ark_String name; - Opt_CustomObject param; - Opt_Callback_PopInfo_Void onPop; - Opt_Boolean isEntry; -} Ark_NavPathInfo; typedef struct Opt_NavPathInfo { Ark_Tag tag; Ark_NavPathInfo value; @@ -6718,16 +6790,10 @@ typedef struct Opt_GridColColumnOption { Ark_Tag tag; Ark_GridColColumnOption value; } Opt_GridColColumnOption; -typedef struct Ark_LinearGradient_common { - Opt_Union_Number_String angle; - Opt_GradientDirection direction; - Array_Tuple_ResourceColor_Number colors; - Opt_Boolean repeating; -} Ark_LinearGradient_common; -typedef struct Opt_LinearGradient_common { +typedef struct Opt_LinearGradient { Ark_Tag tag; - Ark_LinearGradient_common value; -} Opt_LinearGradient_common; + Ark_LinearGradient value; +} Opt_LinearGradient; typedef struct Callback_Date_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Date parameter); @@ -6777,14 +6843,14 @@ typedef struct Opt_Union_Curve_String_ICurve { Ark_Union_Curve_String_ICurve value; } Opt_Union_Curve_String_ICurve; typedef struct Ark_Scene { - Ark_String __SceneStub; + Ark_String _SceneStub; } Ark_Scene; typedef struct Opt_Scene { Ark_Tag tag; Ark_Scene value; } Opt_Scene; typedef struct Ark_UIContext { - Ark_String __UIContextStub; + Ark_String _UIContextStub; } Ark_UIContext; typedef struct Opt_UIContext { Ark_Tag tag; @@ -7022,7 +7088,7 @@ typedef struct Opt_Union_Boolean_Number { Ark_Union_Boolean_Number value; } Opt_Union_Boolean_Number; typedef struct Ark_ImageModifier { - Ark_String __ImageModifierStub; + Ark_String _ImageModifierStub; } Ark_ImageModifier; typedef struct Opt_ImageModifier { Ark_Tag tag; @@ -7178,6 +7244,16 @@ typedef struct Opt_EdgeOutlineWidths { Ark_Tag tag; Ark_EdgeOutlineWidths value; } Opt_EdgeOutlineWidths; +typedef struct Ark_LinearGradient_common { + Opt_Union_Number_String angle; + Opt_GradientDirection direction; + Array_Tuple_ResourceColor_Number colors; + Opt_Boolean repeating; +} Ark_LinearGradient_common; +typedef struct Opt_LinearGradient_common { + Ark_Tag tag; + Ark_LinearGradient_common value; +} Opt_LinearGradient_common; typedef struct Opt_DrawingCanvas { Ark_Tag tag; Ark_DrawingCanvas value; @@ -7313,15 +7389,19 @@ typedef struct Opt_Callback_Extender_OnProgress { Ark_Tag tag; Callback_Extender_OnProgress value; } Opt_Callback_Extender_OnProgress; +typedef struct Opt_Float32 { + Ark_Tag tag; + Ark_Float32 value; +} Opt_Float32; typedef struct Ark_CustomTheme { - Ark_String __CustomThemeStub; + Ark_String _CustomThemeStub; } Ark_CustomTheme; typedef struct Opt_CustomTheme { Ark_Tag tag; Ark_CustomTheme value; } Opt_CustomTheme; typedef struct Ark_RestrictedWorker { - Ark_String __RestrictedWorkerStub; + Ark_String _RestrictedWorkerStub; } Ark_RestrictedWorker; typedef struct Opt_RestrictedWorker { Ark_Tag tag; @@ -7357,17 +7437,6 @@ typedef struct Opt_NavigationAnimatedTransition { Ark_Tag tag; Ark_NavigationAnimatedTransition value; } Opt_NavigationAnimatedTransition; -typedef struct Ark_NavContentInfo { - Opt_String name; - Ark_Number index; - Opt_NavDestinationMode mode; - Opt_CustomObject param; - Opt_String navDestinationId; -} Ark_NavContentInfo; -typedef struct Opt_NavContentInfo { - Ark_Tag tag; - Ark_NavContentInfo value; -} Opt_NavContentInfo; typedef struct OnLinearIndicatorChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number index, const Ark_Number progress); @@ -7407,7 +7476,7 @@ typedef struct Opt_CustomSpanDrawInfo { Ark_CustomSpanDrawInfo value; } Opt_CustomSpanDrawInfo; typedef struct Ark_DrawContext { - Ark_String __DrawContextStub; + Ark_String _DrawContextStub; } Ark_DrawContext; typedef struct Opt_DrawContext { Ark_Tag tag; @@ -7430,6 +7499,44 @@ typedef struct Opt_SpanStyle { Ark_Tag tag; Ark_SpanStyle value; } Opt_SpanStyle; +typedef struct Ark_Union_LengthMetrics_LeadingMarginPlaceholder { + Ark_Int32 selector; + union { + Ark_LengthMetrics value0; + Ark_LeadingMarginPlaceholder value1; + }; +} Ark_Union_LengthMetrics_LeadingMarginPlaceholder; +typedef struct Opt_Union_LengthMetrics_LeadingMarginPlaceholder { + Ark_Tag tag; + Ark_Union_LengthMetrics_LeadingMarginPlaceholder value; +} Opt_Union_LengthMetrics_LeadingMarginPlaceholder; +typedef struct Ark_Union_Number_LeadingMarginPlaceholder { + Ark_Int32 selector; + union { + Ark_Number value0; + Ark_LeadingMarginPlaceholder value1; + }; +} Ark_Union_Number_LeadingMarginPlaceholder; +typedef struct Opt_Union_Number_LeadingMarginPlaceholder { + Ark_Tag tag; + Ark_Union_Number_LeadingMarginPlaceholder value; +} Opt_Union_Number_LeadingMarginPlaceholder; +typedef struct Ark_TextBackgroundStyle { + Opt_ResourceColor color; + Opt_Union_Dimension_BorderRadiuses radius; +} Ark_TextBackgroundStyle; +typedef struct Opt_TextBackgroundStyle { + Ark_Tag tag; + Ark_TextBackgroundStyle value; +} Opt_TextBackgroundStyle; +typedef struct Opt_CustomSpan { + Ark_Tag tag; + Ark_CustomSpan value; +} Opt_CustomSpan; +typedef struct Opt_ImageAttachment { + Ark_Tag tag; + Ark_ImageAttachment value; +} Opt_ImageAttachment; typedef struct Map_String_ComponentContent { Ark_Int32 size; Ark_String* keys; @@ -8087,21 +8194,8 @@ typedef struct Callback_SwiperContentTransitionProxy_Void { } Callback_SwiperContentTransitionProxy_Void; typedef struct Opt_Callback_SwiperContentTransitionProxy_Void { Ark_Tag tag; - Callback_SwiperContentTransitionProxy_Void value; -} Opt_Callback_SwiperContentTransitionProxy_Void; -typedef struct Ark_Type_SliderBlockStyle_shape { - Ark_Int32 selector; - union { - Ark_CircleAttribute value0; - Ark_EllipseAttribute value1; - Ark_PathAttribute value2; - Ark_RectAttribute value3; - }; -} Ark_Type_SliderBlockStyle_shape; -typedef struct Opt_Type_SliderBlockStyle_shape { - Ark_Tag tag; - Ark_Type_SliderBlockStyle_shape value; -} Opt_Type_SliderBlockStyle_shape; + Callback_SwiperContentTransitionProxy_Void value; +} Opt_Callback_SwiperContentTransitionProxy_Void; typedef struct Callback_Union_Number_Resource_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Union_Number_Resource selected); @@ -8178,15 +8272,6 @@ typedef struct Opt_Union_Dimension_Array_Dimension { Ark_Tag tag; Ark_Union_Dimension_Array_Dimension value; } Opt_Union_Dimension_Array_Dimension; -typedef struct ScrollOnScrollCallback { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_Number xOffset, const Ark_Number yOffset, Ark_ScrollState scrollState); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Number xOffset, const Ark_Number yOffset, Ark_ScrollState scrollState); -} ScrollOnScrollCallback; -typedef struct Opt_ScrollOnScrollCallback { - Ark_Tag tag; - ScrollOnScrollCallback value; -} Opt_ScrollOnScrollCallback; typedef struct ScrollOnWillScrollCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number xOffset, const Ark_Number yOffset, Ark_ScrollState scrollState, Ark_ScrollSource scrollSource, const Callback_OffsetResult_Void continuation); @@ -8395,14 +8480,6 @@ typedef struct Opt_RichEditorImageSpanOptions { Ark_Tag tag; Ark_RichEditorImageSpanOptions value; } Opt_RichEditorImageSpanOptions; -typedef struct Array_FingerInfo { - Ark_FingerInfo* array; - Ark_Int32 length; -} Array_FingerInfo; -typedef struct Opt_Array_FingerInfo { - Ark_Tag tag; - Array_FingerInfo value; -} Opt_Array_FingerInfo; typedef struct Ark_RichEditorTextSpanOptions { Opt_Number offset; Opt_RichEditorTextStyle style; @@ -8508,6 +8585,17 @@ typedef struct Opt_Callback_PanelMode_Void { Ark_Tag tag; Callback_PanelMode_Void value; } Opt_Callback_PanelMode_Void; +typedef struct Ark_NavContentInfo { + Opt_String name; + Ark_Number index; + Opt_NavDestinationMode mode; + Opt_CustomObject param; + Opt_String navDestinationId; +} Ark_NavContentInfo; +typedef struct Opt_NavContentInfo { + Ark_Tag tag; + Ark_NavContentInfo value; +} Opt_NavContentInfo; typedef struct Opt_NavDestinationContext { Ark_Tag tag; Ark_NavDestinationContext value; @@ -8577,7 +8665,7 @@ typedef struct Opt_NavDestinationCommonTitle { Ark_NavDestinationCommonTitle value; } Opt_NavDestinationCommonTitle; typedef struct Ark_SystemBarStyle { - Ark_String __SystemBarStyleStub; + Ark_String _SystemBarStyleStub; } Ark_SystemBarStyle; typedef struct Opt_SystemBarStyle { Ark_Tag tag; @@ -8634,7 +8722,7 @@ typedef struct Opt_ASTCResource { Ark_ASTCResource value; } Opt_ASTCResource; typedef struct Ark_DrawableDescriptor { - Ark_String __DrawableDescriptorStub; + Ark_String _DrawableDescriptorStub; } Ark_DrawableDescriptor; typedef struct Opt_DrawableDescriptor { Ark_Tag tag; @@ -8681,15 +8769,12 @@ typedef struct Opt_CloseSwipeActionOptions { Ark_CloseSwipeActionOptions value; } Opt_CloseSwipeActionOptions; typedef struct Ark_DrawingColorFilter { - Ark_String __DrawingColorFilterStub; + Ark_String _DrawingColorFilterStub; } Ark_DrawingColorFilter; typedef struct Opt_DrawingColorFilter { Ark_Tag tag; Ark_DrawingColorFilter value; } Opt_DrawingColorFilter; -typedef struct Ark_ColorFilter { - void *handle; -} Ark_ColorFilter; typedef struct Opt_ColorFilter { Ark_Tag tag; Ark_ColorFilter value; @@ -8765,27 +8850,35 @@ 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 Ark_Union_ResourceColor_LinearGradient_common { +typedef struct Array_FingerInfo { + Ark_FingerInfo* array; + Ark_Int32 length; +} Array_FingerInfo; +typedef struct Opt_Array_FingerInfo { + Ark_Tag tag; + Array_FingerInfo value; +} Opt_Array_FingerInfo; +typedef struct Ark_Union_ResourceColor_LinearGradient { Ark_Int32 selector; union { Ark_ResourceColor value0; - Ark_LinearGradient_common value1; + Ark_LinearGradient value1; }; -} Ark_Union_ResourceColor_LinearGradient_common; -typedef struct Opt_Union_ResourceColor_LinearGradient_common { +} Ark_Union_ResourceColor_LinearGradient; +typedef struct Opt_Union_ResourceColor_LinearGradient { Ark_Tag tag; - Ark_Union_ResourceColor_LinearGradient_common value; -} Opt_Union_ResourceColor_LinearGradient_common; -typedef struct Array_Tuple_Union_ResourceColor_LinearGradient_common_Number { - Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number* array; + Ark_Union_ResourceColor_LinearGradient value; +} Opt_Union_ResourceColor_LinearGradient; +typedef struct Array_Tuple_Union_ResourceColor_LinearGradient_Number { + Ark_Tuple_Union_ResourceColor_LinearGradient_Number* array; Ark_Int32 length; -} Array_Tuple_Union_ResourceColor_LinearGradient_common_Number; -typedef struct Opt_Array_Tuple_Union_ResourceColor_LinearGradient_common_Number { +} Array_Tuple_Union_ResourceColor_LinearGradient_Number; +typedef struct Opt_Array_Tuple_Union_ResourceColor_LinearGradient_Number { Ark_Tag tag; - Array_Tuple_Union_ResourceColor_LinearGradient_common_Number value; -} Opt_Array_Tuple_Union_ResourceColor_LinearGradient_common_Number; + Array_Tuple_Union_ResourceColor_LinearGradient_Number value; +} Opt_Array_Tuple_Union_ResourceColor_LinearGradient_Number; typedef struct Ark_WindowStatusType { - Ark_String __WindowStatusTypeStub; + Ark_String _WindowStatusTypeStub; } Ark_WindowStatusType; typedef struct Opt_WindowStatusType { Ark_Tag tag; @@ -8836,21 +8929,14 @@ typedef struct Opt_DatePickerDialogOptions { Ark_Tag tag; Ark_DatePickerDialogOptions value; } Opt_DatePickerDialogOptions; -typedef struct Ark_LinearGradient_data_panel { - void *handle; -} Ark_LinearGradient_data_panel; -typedef struct Opt_LinearGradient_data_panel { - Ark_Tag tag; - Ark_LinearGradient_data_panel value; -} Opt_LinearGradient_data_panel; -typedef struct Array_Union_ResourceColor_LinearGradient_data_panel { - Ark_Union_ResourceColor_LinearGradient_data_panel* array; +typedef struct Array_Union_ResourceColor_LinearGradient { + Ark_Union_ResourceColor_LinearGradient* array; Ark_Int32 length; -} Array_Union_ResourceColor_LinearGradient_data_panel; -typedef struct Opt_Array_Union_ResourceColor_LinearGradient_data_panel { +} Array_Union_ResourceColor_LinearGradient; +typedef struct Opt_Array_Union_ResourceColor_LinearGradient { Ark_Tag tag; - Array_Union_ResourceColor_LinearGradient_data_panel value; -} Opt_Array_Union_ResourceColor_LinearGradient_data_panel; + Array_Union_ResourceColor_LinearGradient value; +} Opt_Array_Union_ResourceColor_LinearGradient; typedef struct Ark_Union_ResourceColor_EdgeColors { Ark_Int32 selector; union { @@ -8985,7 +9071,7 @@ typedef struct Opt_FadingEdgeOptions { Ark_FadingEdgeOptions value; } Opt_FadingEdgeOptions; typedef struct Ark_RectShape { - Ark_String __RectShapeStub; + Ark_String _RectShapeStub; } Ark_RectShape; typedef struct Opt_RectShape { Ark_Tag tag; @@ -9192,7 +9278,7 @@ typedef struct Opt_GeometryTransitionOptions { Ark_GeometryTransitionOptions value; } Opt_GeometryTransitionOptions; typedef struct Ark_Blender { - Ark_String __BlenderStub; + Ark_String _BlenderStub; } Ark_Blender; typedef struct Opt_Blender { Ark_Tag tag; @@ -9286,21 +9372,21 @@ typedef struct Opt_Literal_Alignment_align { Ark_Literal_Alignment_align value; } Opt_Literal_Alignment_align; typedef struct Ark_PathShape { - Ark_String __PathShapeStub; + Ark_String _PathShapeStub; } Ark_PathShape; typedef struct Opt_PathShape { Ark_Tag tag; Ark_PathShape value; } Opt_PathShape; typedef struct Ark_EllipseShape { - Ark_String __EllipseShapeStub; + Ark_String _EllipseShapeStub; } Ark_EllipseShape; typedef struct Opt_EllipseShape { Ark_Tag tag; Ark_EllipseShape value; } Opt_EllipseShape; typedef struct Ark_CircleShape { - Ark_String __CircleShapeStub; + Ark_String _CircleShapeStub; } Ark_CircleShape; typedef struct Opt_CircleShape { Ark_Tag tag; @@ -9423,13 +9509,6 @@ typedef struct Opt_TransitionOptions { Ark_Tag tag; Ark_TransitionOptions value; } Opt_TransitionOptions; -typedef struct Ark_IntentionCode { - Ark_String __IntentionCodeStub; -} Ark_IntentionCode; -typedef struct Opt_IntentionCode { - Ark_Tag tag; - Ark_IntentionCode value; -} Opt_IntentionCode; typedef struct Ark_Union_EdgeOutlineStyles_OutlineStyle { Ark_Int32 selector; union { @@ -9547,7 +9626,7 @@ typedef struct Opt_Union_EdgeWidths_Length_LocalizedEdgeWidths { Ark_Union_EdgeWidths_Length_LocalizedEdgeWidths value; } Opt_Union_EdgeWidths_Length_LocalizedEdgeWidths; typedef struct Ark_DrawingLattice { - Ark_String __DrawingLatticeStub; + Ark_String _DrawingLatticeStub; } Ark_DrawingLattice; typedef struct Opt_DrawingLattice { Ark_Tag tag; @@ -9575,6 +9654,13 @@ typedef struct Opt_DrawModifier { Ark_Tag tag; Ark_DrawModifier value; } Opt_DrawModifier; +typedef struct Ark_IntentionCode { + Ark_String _IntentionCodeStub; +} Ark_IntentionCode; +typedef struct Opt_IntentionCode { + Ark_Tag tag; + Ark_IntentionCode value; +} Opt_IntentionCode; typedef struct Opt_UnifiedData { Ark_Tag tag; Ark_UnifiedData value; @@ -9622,11 +9708,6 @@ typedef struct Opt_ImageBitmap { Ark_Tag tag; Ark_ImageBitmap value; } Opt_ImageBitmap; -typedef struct Ark_ImageData { - Ark_Buffer data; - Ark_Number height; - Ark_Number width; -} Ark_ImageData; typedef struct Opt_ImageData { Ark_Tag tag; Ark_ImageData value; @@ -9703,27 +9784,6 @@ typedef struct Opt_Union_BadgePosition_Position { Ark_Tag tag; Ark_Union_BadgePosition_Position value; } Opt_Union_BadgePosition_Position; -typedef struct Ark_ScrollMotion { - void *handle; -} Ark_ScrollMotion; -typedef struct Opt_ScrollMotion { - Ark_Tag tag; - Ark_ScrollMotion value; -} Opt_ScrollMotion; -typedef struct Ark_FrictionMotion { - void *handle; -} Ark_FrictionMotion; -typedef struct Opt_FrictionMotion { - Ark_Tag tag; - Ark_FrictionMotion value; -} Opt_FrictionMotion; -typedef struct Ark_SpringMotion { - void *handle; -} Ark_SpringMotion; -typedef struct Opt_SpringMotion { - Ark_Tag tag; - Ark_SpringMotion value; -} Opt_SpringMotion; typedef struct Ark_AlertDialogParamWithOptions { Opt_ResourceStr title; Opt_ResourceStr subtitle; @@ -9894,10 +9954,10 @@ typedef struct Opt_Callback_RangeUpdate { } Opt_Callback_RangeUpdate; typedef struct Ark_DoubleAnimationParam { Ark_String propertyName; - Ark_Number startValue; - Ark_Number endValue; - Ark_Number duration; - Ark_Number delay; + Ark_Float32 startValue; + Ark_Float32 endValue; + Ark_Int32 duration; + Ark_Int32 delay; Ark_Union_Curve_String_ICurve curve; Opt_Callback_Extender_OnProgress onProgress; Opt_Callback_Extender_OnFinish onFinish; @@ -10118,10 +10178,6 @@ typedef struct Opt_Callback_OffsetResult_Void { Ark_Tag tag; Callback_OffsetResult_Void value; } Opt_Callback_OffsetResult_Void; -typedef struct Opt_NavigationTransitionProxy { - Ark_Tag tag; - Ark_NavigationTransitionProxy value; -} Opt_NavigationTransitionProxy; typedef struct Callback_NavigationTitleMode_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, Ark_NavigationTitleMode titleMode); @@ -10228,10 +10284,100 @@ 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_LinearIndicatorController { Ark_Tag tag; Ark_LinearIndicatorController value; } Opt_LinearIndicatorController; +typedef struct Ark_ImageAttachmentInterface { + Ark_PixelMap value; + Opt_SizeOptions size; + Opt_ImageSpanAlignment verticalAlign; + Opt_ImageFit objectFit; + Opt_ImageAttachmentLayoutStyle layoutStyle; +} Ark_ImageAttachmentInterface; +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; +} Opt_UrlStyle; +typedef struct Opt_LineHeightStyle { + Ark_Tag tag; + Ark_LineHeightStyle value; +} Opt_LineHeightStyle; +typedef struct Ark_ParagraphStyleInterface { + Opt_TextAlign textAlign; + Opt_LengthMetrics textIndent; + Opt_Number maxLines; + Opt_TextOverflow overflow; + Opt_WordBreak wordBreak; + Opt_Union_LengthMetrics_LeadingMarginPlaceholder leadingMargin; +} Ark_ParagraphStyleInterface; +typedef struct Opt_ParagraphStyleInterface { + Ark_Tag tag; + Ark_ParagraphStyleInterface value; +} Opt_ParagraphStyleInterface; +typedef struct Opt_ParagraphStyle { + Ark_Tag tag; + Ark_ParagraphStyle value; +} Opt_ParagraphStyle; +typedef struct Ark_GestureStyleInterface { + Opt_Callback_ClickEvent_Void onClick; + Opt_Callback_GestureEvent_Void onLongPress; +} Ark_GestureStyleInterface; +typedef struct Opt_GestureStyleInterface { + Ark_Tag tag; + Ark_GestureStyleInterface value; +} Opt_GestureStyleInterface; +typedef struct Opt_GestureStyle { + Ark_Tag tag; + Ark_GestureStyle value; +} Opt_GestureStyle; +typedef struct Opt_BackgroundColorStyle { + Ark_Tag tag; + Ark_BackgroundColorStyle value; +} Opt_BackgroundColorStyle; +typedef struct Opt_TextShadowStyle { + Ark_Tag tag; + Ark_TextShadowStyle value; +} Opt_TextShadowStyle; +typedef struct Opt_LetterSpacingStyle { + Ark_Tag tag; + Ark_LetterSpacingStyle value; +} Opt_LetterSpacingStyle; +typedef struct Opt_BaselineOffsetStyle { + Ark_Tag tag; + Ark_BaselineOffsetStyle value; +} Opt_BaselineOffsetStyle; +typedef struct Opt_DecorationStyle { + Ark_Tag tag; + Ark_DecorationStyle value; +} Opt_DecorationStyle; +typedef struct Ark_TextStyleInterface { + Opt_ResourceColor fontColor; + Opt_ResourceStr fontFamily; + Opt_LengthMetrics fontSize; + Opt_Union_Number_FontWeight_String fontWeight; + Opt_FontStyle fontStyle; +} Ark_TextStyleInterface; +typedef struct Opt_TextStyleInterface { + Ark_Tag tag; + Ark_TextStyleInterface value; +} Opt_TextStyleInterface; +typedef struct Opt_TextStyle_styled_string { + Ark_Tag tag; + Ark_TextStyle_styled_string value; +} Opt_TextStyle_styled_string; typedef struct Ark_StyleOptions { Opt_Number start; Opt_Number length; @@ -10280,7 +10426,7 @@ typedef struct Opt_Callback_Literal_Number_code_Want_want_Void { Callback_Literal_Number_code_Want_want_Void value; } Opt_Callback_Literal_Number_code_Want_want_Void; typedef struct Ark_ReceiveCallback { - Ark_String __ReceiveCallbackStub; + Ark_String _ReceiveCallbackStub; } Ark_ReceiveCallback; typedef struct Opt_ReceiveCallback { Ark_Tag tag; @@ -11411,6 +11557,10 @@ 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; @@ -11509,6 +11659,10 @@ typedef struct Opt_ToggleOptions { Ark_Tag tag; Ark_ToggleOptions value; } Opt_ToggleOptions; +typedef struct Opt_TimePickerDialog { + Ark_Tag tag; + Ark_TimePickerDialog value; +} Opt_TimePickerDialog; typedef struct Ark_TimePickerResult { Ark_Number hour; Ark_Number minute; @@ -11543,6 +11697,10 @@ typedef struct Opt_TextPickerResult { Ark_Tag tag; Ark_TextPickerResult value; } Opt_TextPickerResult; +typedef struct Opt_TextPickerDialog { + Ark_Tag tag; + Ark_TextPickerDialog value; +} Opt_TextPickerDialog; typedef struct Type_TextPickerAttribute_onChange_callback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Union_String_Array_String value, const Ark_Union_Number_Array_Number index); @@ -11642,6 +11800,22 @@ typedef struct Opt_Array_TextMenuItem { Ark_Tag tag; Array_TextMenuItem value; } Opt_Array_TextMenuItem; +typedef struct Opt_LayoutManager { + Ark_Tag tag; + Ark_LayoutManager value; +} Opt_LayoutManager; +typedef struct Opt_StyledStringController { + Ark_Tag tag; + Ark_StyledStringController value; +} Opt_StyledStringController; +typedef struct Opt_TextEditControllerEx { + Ark_Tag tag; + Ark_TextEditControllerEx value; +} Opt_TextEditControllerEx; +typedef struct Opt_TextBaseController { + Ark_Tag tag; + Ark_TextBaseController value; +} Opt_TextBaseController; typedef struct Ark_TextClockOptions { Opt_Number timeZoneOffset; Opt_TextClockController controller; @@ -11802,6 +11976,30 @@ typedef struct Opt_TabsOptions { Ark_Tag tag; Ark_TabsOptions value; } Opt_TabsOptions; +typedef struct Opt_ReplaceSymbolEffect { + Ark_Tag tag; + Ark_ReplaceSymbolEffect value; +} Opt_ReplaceSymbolEffect; +typedef struct Opt_BounceSymbolEffect { + Ark_Tag tag; + Ark_BounceSymbolEffect value; +} Opt_BounceSymbolEffect; +typedef struct Opt_DisappearSymbolEffect { + Ark_Tag tag; + Ark_DisappearSymbolEffect value; +} Opt_DisappearSymbolEffect; +typedef struct Opt_AppearSymbolEffect { + Ark_Tag tag; + Ark_AppearSymbolEffect value; +} Opt_AppearSymbolEffect; +typedef struct Opt_HierarchicalSymbolEffect { + Ark_Tag tag; + Ark_HierarchicalSymbolEffect value; +} Opt_HierarchicalSymbolEffect; +typedef struct Opt_ScaleSymbolEffect { + Ark_Tag tag; + Ark_ScaleSymbolEffect value; +} Opt_ScaleSymbolEffect; typedef struct Ark_Union_DotIndicator_DigitIndicator { Ark_Int32 selector; union { @@ -11938,7 +12136,7 @@ typedef struct Opt_SlideRange { typedef struct Ark_SliderBlockStyle { Ark_SliderBlockType type; Opt_ResourceStr image; - Opt_Type_SliderBlockStyle_shape shape; + Opt_String shape; } Ark_SliderBlockStyle; typedef struct Opt_SliderBlockStyle { Ark_Tag tag; @@ -12519,10 +12717,10 @@ typedef struct Opt_Union_PixelMap_ResourceStr { Ark_Tag tag; Ark_Union_PixelMap_ResourceStr value; } Opt_Union_PixelMap_ResourceStr; -typedef struct Opt_GestureEvent { +typedef struct Opt_RichEditorBaseController { Ark_Tag tag; - Ark_GestureEvent value; -} Opt_GestureEvent; + Ark_RichEditorBaseController value; +} Opt_RichEditorBaseController; typedef struct Ark_LocalizedBarrierStyle { Ark_String id; Ark_LocalizedBarrierDirection localizedDirection; @@ -12797,6 +12995,10 @@ typedef struct Opt_Literal_String_target_NavigationType_type { Ark_Tag tag; Ark_Literal_String_target_NavigationType_type value; } Opt_Literal_String_target_NavigationType_type; +typedef struct Opt_NavigationTransitionProxy { + Ark_Tag tag; + Ark_NavigationTransitionProxy value; +} Opt_NavigationTransitionProxy; typedef struct Ark_Union_NavDestinationContext_NavBar { Ark_Int32 selector; union { @@ -13099,10 +13301,6 @@ typedef struct Opt_Callback_Number_Number_Number_Void { Ark_Tag tag; Callback_Number_Number_Number_Void value; } Opt_Callback_Number_Number_Number_Void; -typedef struct Opt_ChildrenMainSize { - Ark_Tag tag; - Ark_ChildrenMainSize value; -} Opt_ChildrenMainSize; typedef struct Ark_ChainAnimationOptions { Ark_Length minSpace; Ark_Length maxSpace; @@ -13125,6 +13323,10 @@ typedef struct Opt_ListOptions { Ark_Tag tag; Ark_ListOptions value; } Opt_ListOptions; +typedef struct Opt_ListScroller { + Ark_Tag tag; + Ark_ListScroller value; +} Opt_ListScroller; typedef struct Ark_LineOptions { Opt_Union_String_Number width; Opt_Union_String_Number height; @@ -13200,7 +13402,7 @@ typedef struct Opt_Array_ImageFrameInfo { Array_ImageFrameInfo value; } Opt_Array_ImageFrameInfo; typedef struct Ark_ResolutionQuality { - Ark_String __ResolutionQualityStub; + Ark_String _ResolutionQualityStub; } Ark_ResolutionQuality; typedef struct Opt_ResolutionQuality { Ark_Tag tag; @@ -13436,6 +13638,18 @@ typedef struct Opt_GridLayoutOptions { Ark_Tag tag; Ark_GridLayoutOptions value; } Opt_GridLayoutOptions; +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; +} Opt_ScrollableTargetInfo; typedef struct Ark_Literal_Number_distance_fingers_PanDirection_direction { Opt_Number fingers; Opt_PanDirection direction; @@ -13445,6 +13659,38 @@ 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; +} Opt_GestureEvent; +typedef struct Opt_SwipeGestureEvent { + Ark_Tag tag; + Ark_SwipeGestureEvent value; +} Opt_SwipeGestureEvent; +typedef struct Opt_RotationGestureEvent { + Ark_Tag tag; + Ark_RotationGestureEvent value; +} Opt_RotationGestureEvent; +typedef struct Opt_PinchGestureEvent { + Ark_Tag tag; + Ark_PinchGestureEvent value; +} Opt_PinchGestureEvent; +typedef struct Opt_PanGestureEvent { + Ark_Tag tag; + Ark_PanGestureEvent value; +} Opt_PanGestureEvent; +typedef struct Opt_LongPressGestureEvent { + Ark_Tag tag; + Ark_LongPressGestureEvent value; +} Opt_LongPressGestureEvent; +typedef struct Opt_TapGestureEvent { + Ark_Tag tag; + Ark_TapGestureEvent value; +} Opt_TapGestureEvent; typedef struct Ark_GaugeIndicatorOptions { Opt_ResourceStr icon; Opt_Length space; @@ -13462,20 +13708,20 @@ typedef struct Opt_GaugeShadowOptions { Ark_Tag tag; Ark_GaugeShadowOptions value; } Opt_GaugeShadowOptions; -typedef struct Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number { - Ark_Union_ResourceColor_LinearGradient_common value0; +typedef struct Ark_Tuple_Union_ResourceColor_LinearGradient_Number { + Ark_Union_ResourceColor_LinearGradient value0; Ark_Number value1; -} Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number; -typedef struct Opt_Tuple_Union_ResourceColor_LinearGradient_common_Number { +} Ark_Tuple_Union_ResourceColor_LinearGradient_Number; +typedef struct Opt_Tuple_Union_ResourceColor_LinearGradient_Number { Ark_Tag tag; - Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number value; -} Opt_Tuple_Union_ResourceColor_LinearGradient_common_Number; + Ark_Tuple_Union_ResourceColor_LinearGradient_Number value; +} Opt_Tuple_Union_ResourceColor_LinearGradient_Number; typedef struct Ark_Type_GaugeAttribute_colors_colors { Ark_Int32 selector; union { Ark_ResourceColor value0; - Ark_LinearGradient_common value1; - Array_Tuple_Union_ResourceColor_LinearGradient_common_Number value2; + Ark_LinearGradient value1; + Array_Tuple_Union_ResourceColor_LinearGradient_Number value2; }; } Ark_Type_GaugeAttribute_colors_colors; typedef struct Opt_Type_GaugeAttribute_colors_colors { @@ -13641,6 +13887,10 @@ typedef struct Opt_EllipseOptions { Ark_Tag tag; Ark_EllipseOptions value; } Opt_EllipseOptions; +typedef struct Opt_DatePickerDialog { + Ark_Tag tag; + Ark_DatePickerDialog value; +} Opt_DatePickerDialog; typedef struct Ark_DatePickerResult { Opt_Number year; Opt_Number month; @@ -13659,22 +13909,11 @@ typedef struct Opt_DatePickerOptions { Ark_Tag tag; Ark_DatePickerOptions value; } Opt_DatePickerOptions; -typedef struct Ark_Union_ResourceColor_LinearGradient_data_panel { - Ark_Int32 selector; - union { - Ark_ResourceColor value0; - Ark_LinearGradient_data_panel value1; - }; -} Ark_Union_ResourceColor_LinearGradient_data_panel; -typedef struct Opt_Union_ResourceColor_LinearGradient_data_panel { - Ark_Tag tag; - Ark_Union_ResourceColor_LinearGradient_data_panel value; -} Opt_Union_ResourceColor_LinearGradient_data_panel; typedef struct Ark_DataPanelShadowOptions { Opt_Union_Number_Resource radius; Opt_Union_Number_Resource offsetX; Opt_Union_Number_Resource offsetY; - Opt_Array_Union_ResourceColor_LinearGradient_data_panel colors; + Opt_Array_Union_ResourceColor_LinearGradient colors; } Ark_DataPanelShadowOptions; typedef struct Opt_DataPanelShadowOptions { Ark_Tag tag; @@ -13689,6 +13928,22 @@ typedef struct Opt_DataPanelOptions { Ark_Tag tag; Ark_DataPanelOptions value; } Opt_DataPanelOptions; +typedef struct Ark_ColorStop { + Ark_ResourceColor color; + Ark_Length offset; +} Ark_ColorStop; +typedef struct Opt_ColorStop { + Ark_Tag tag; + Ark_ColorStop value; +} Opt_ColorStop; +typedef struct Array_ColorStop { + Ark_ColorStop* array; + Ark_Int32 length; +} Array_ColorStop; +typedef struct Opt_Array_ColorStop { + Ark_Tag tag; + Array_ColorStop value; +} Opt_Array_ColorStop; typedef struct Ark_CustomDialogControllerOptions { Ark_CustomObject builder; Opt_Callback_Void cancel; @@ -13721,6 +13976,14 @@ typedef struct Opt_CustomDialogControllerOptions { Ark_Tag tag; Ark_CustomDialogControllerOptions value; } Opt_CustomDialogControllerOptions; +typedef struct Opt_CustomDialogController { + Ark_Tag tag; + Ark_CustomDialogController value; +} Opt_CustomDialogController; +typedef struct Opt_ContextMenu { + Ark_Tag tag; + Ark_ContextMenu value; +} Opt_ContextMenu; typedef struct Ark_SceneOptions { Opt_Union_ResourceStr_Scene scene; Opt_ModelType modelType; @@ -13737,6 +14000,22 @@ typedef struct Opt_Array_CustomObject { Ark_Tag tag; Array_CustomObject value; } Opt_Array_CustomObject; +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; +} Opt_UICommonEvent; +typedef struct Opt_ChildrenMainSize { + Ark_Tag tag; + Ark_ChildrenMainSize value; +} Opt_ChildrenMainSize; +typedef struct Opt_DynamicNode { + Ark_Tag tag; + Ark_DynamicNode value; +} Opt_DynamicNode; typedef struct Ark_Union_ContentClipMode_RectShape { Ark_Int32 selector; union { @@ -13748,6 +14027,15 @@ typedef struct Opt_Union_ContentClipMode_RectShape { Ark_Tag tag; Ark_Union_ContentClipMode_RectShape value; } Opt_Union_ContentClipMode_RectShape; +typedef struct ScrollOnScrollCallback { + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_Number xOffset, const Ark_Number yOffset, Ark_ScrollState scrollState); + void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Number xOffset, const Ark_Number yOffset, Ark_ScrollState scrollState); +} ScrollOnScrollCallback; +typedef struct Opt_ScrollOnScrollCallback { + Ark_Tag tag; + ScrollOnScrollCallback value; +} Opt_ScrollOnScrollCallback; typedef struct Ark_OffsetResult { Ark_Number xOffset; Ark_Number yOffset; @@ -13765,6 +14053,18 @@ typedef struct Opt_Callback_Number_Number_Void { Ark_Tag tag; Callback_Number_Number_Void value; } Opt_Callback_Number_Number_Void; +typedef struct Opt_TextContentControllerBase { + Ark_Tag tag; + Ark_TextContentControllerBase value; +} Opt_TextContentControllerBase; +typedef struct Opt_View { + Ark_Tag tag; + Ark_View value; +} Opt_View; +typedef struct Opt_Measurable { + Ark_Tag tag; + Ark_Measurable value; +} Opt_Measurable; typedef struct Array_ModifierKey { Ark_ModifierKey* array; Ark_Int32 length; @@ -14029,34 +14329,6 @@ typedef struct Opt_Union_CircleShape_EllipseShape_PathShape_RectShape { Ark_Tag tag; Ark_Union_CircleShape_EllipseShape_PathShape_RectShape value; } Opt_Union_CircleShape_EllipseShape_PathShape_RectShape; -typedef struct Ark_Type_CommonMethod_mask_value { - Ark_Int32 selector; - union { - Ark_CircleAttribute value0; - Ark_EllipseAttribute value1; - Ark_PathAttribute value2; - Ark_RectAttribute value3; - Ark_ProgressMask value4; - }; -} Ark_Type_CommonMethod_mask_value; -typedef struct Opt_Type_CommonMethod_mask_value { - Ark_Tag tag; - Ark_Type_CommonMethod_mask_value value; -} Opt_Type_CommonMethod_mask_value; -typedef struct Ark_Type_CommonMethod_clip_value { - Ark_Int32 selector; - union { - Ark_Boolean value0; - Ark_CircleAttribute value1; - Ark_EllipseAttribute value2; - Ark_PathAttribute value3; - Ark_RectAttribute value4; - }; -} Ark_Type_CommonMethod_clip_value; -typedef struct Opt_Type_CommonMethod_clip_value { - Ark_Tag tag; - Ark_Type_CommonMethod_clip_value value; -} Opt_Type_CommonMethod_clip_value; typedef struct Ark_Type_CommonMethod_radialGradient_value { Ark_Tuple_Length_Length center; Ark_Union_Number_String radius; @@ -14111,7 +14383,7 @@ typedef struct Opt_Union_CustomBuilder_DragItemInfo_String { Ark_Union_CustomBuilder_DragItemInfo_String value; } Opt_Union_CustomBuilder_DragItemInfo_String; typedef struct Ark_UniformDataType { - Ark_String __UniformDataTypeStub; + Ark_String _UniformDataTypeStub; } Ark_UniformDataType; typedef struct Opt_UniformDataType { Ark_Tag tag; @@ -14145,10 +14417,6 @@ typedef struct Opt_Union_CustomBuilder_DragItemInfo { Ark_Tag tag; Ark_Union_CustomBuilder_DragItemInfo value; } Opt_Union_CustomBuilder_DragItemInfo; -typedef struct Opt_DragEvent { - Ark_Tag tag; - Ark_DragEvent value; -} Opt_DragEvent; typedef struct Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_DragEvent event, const Opt_String extraParams, const Callback_Union_CustomBuilder_DragItemInfo_Void continuation); @@ -14274,18 +14542,6 @@ typedef struct Opt_Callback_KeyEvent_Boolean { Ark_Tag tag; Callback_KeyEvent_Boolean value; } Opt_Callback_KeyEvent_Boolean; -typedef struct Opt_KeyEvent { - Ark_Tag tag; - Ark_KeyEvent value; -} Opt_KeyEvent; -typedef struct Opt_MouseEvent { - Ark_Tag tag; - Ark_MouseEvent value; -} Opt_MouseEvent; -typedef struct Opt_AccessibilityHoverEvent { - Ark_Tag tag; - Ark_AccessibilityHoverEvent value; -} Opt_AccessibilityHoverEvent; typedef struct AccessibilityCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Boolean isHover, const Ark_AccessibilityHoverEvent event); @@ -14295,10 +14551,6 @@ typedef struct Opt_AccessibilityCallback { Ark_Tag tag; AccessibilityCallback value; } Opt_AccessibilityCallback; -typedef struct Opt_HoverEvent { - Ark_Tag tag; - Ark_HoverEvent value; -} Opt_HoverEvent; typedef struct Callback_Boolean_HoverEvent_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Boolean isHover, const Ark_HoverEvent event); @@ -14395,14 +14647,14 @@ typedef struct Opt_BorderOptions { Ark_BorderOptions value; } Opt_BorderOptions; typedef struct Ark_Filter { - Ark_String __FilterStub; + Ark_String _FilterStub; } Ark_Filter; typedef struct Opt_Filter { Ark_Tag tag; Ark_Filter value; } Opt_Filter; typedef struct Ark_VisualEffect { - Ark_String __VisualEffectStub; + Ark_String _VisualEffectStub; } Ark_VisualEffect; typedef struct Opt_VisualEffect { Ark_Tag tag; @@ -14563,6 +14815,18 @@ typedef struct Opt_Union_Array_Rectangle_Rectangle { Ark_Tag tag; Ark_Union_Array_Rectangle_Rectangle value; } Opt_Union_Array_Rectangle_Rectangle; +typedef struct Opt_KeyEvent { + Ark_Tag tag; + Ark_KeyEvent value; +} Opt_KeyEvent; +typedef struct Opt_DragEvent { + Ark_Tag tag; + Ark_DragEvent value; +} Opt_DragEvent; +typedef struct Opt_PixelMapMock { + Ark_Tag tag; + Ark_PixelMapMock value; +} Opt_PixelMapMock; typedef struct Ark_TouchObject { Ark_TouchType type; Ark_Number id; @@ -14579,6 +14843,22 @@ typedef struct Opt_TouchObject { Ark_Tag tag; Ark_TouchObject value; } Opt_TouchObject; +typedef struct Opt_AccessibilityHoverEvent { + Ark_Tag tag; + Ark_AccessibilityHoverEvent value; +} Opt_AccessibilityHoverEvent; +typedef struct Opt_MouseEvent { + Ark_Tag tag; + Ark_MouseEvent value; +} Opt_MouseEvent; +typedef struct Opt_HoverEvent { + Ark_Tag tag; + Ark_HoverEvent value; +} Opt_HoverEvent; +typedef struct Opt_BaseEvent { + Ark_Tag tag; + Ark_BaseEvent value; +} Opt_BaseEvent; typedef struct Ark_TransitionEffects { Ark_Undefined identity; Ark_Number opacity; @@ -14679,13 +14959,6 @@ typedef struct Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext { Ark_Tag tag; Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext value; } Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext; -typedef struct Ark_RenderingContextSettings { - Opt_Boolean antialias; -} Ark_RenderingContextSettings; -typedef struct Opt_RenderingContextSettings { - Ark_Tag tag; - Ark_RenderingContextSettings value; -} Opt_RenderingContextSettings; typedef struct Ark_Union_ImageBitmap_PixelMap { Ark_Int32 selector; union { @@ -14697,13 +14970,29 @@ typedef struct Opt_Union_ImageBitmap_PixelMap { Ark_Tag tag; Ark_Union_ImageBitmap_PixelMap value; } Opt_Union_ImageBitmap_PixelMap; +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_String _LengthMetricsUnitStub; } Ark_LengthMetricsUnit; typedef struct Opt_LengthMetricsUnit { Ark_Tag tag; Ark_LengthMetricsUnit value; } Opt_LengthMetricsUnit; +typedef struct Opt_CanvasPath { + Ark_Tag tag; + Ark_CanvasPath value; +} Opt_CanvasPath; +typedef struct Opt_CalendarPickerDialog { + Ark_Tag tag; + Ark_CalendarPickerDialog value; +} Opt_CalendarPickerDialog; typedef struct Ark_CalendarOptions { Opt_Union_Number_Resource hintRadius; Opt_Date selected; @@ -14883,18 +15172,22 @@ typedef struct Opt_BadgeParamWithNumber { Ark_Tag tag; Ark_BadgeParamWithNumber value; } Opt_BadgeParamWithNumber; -typedef struct Ark_Union_SpringMotion_FrictionMotion_ScrollMotion { - Ark_Int32 selector; - union { - Ark_SpringMotion value0; - Ark_FrictionMotion value1; - Ark_ScrollMotion value2; - }; -} Ark_Union_SpringMotion_FrictionMotion_ScrollMotion; -typedef struct Opt_Union_SpringMotion_FrictionMotion_ScrollMotion { +typedef struct Opt_ScrollMotion { + Ark_Tag tag; + Ark_ScrollMotion value; +} Opt_ScrollMotion; +typedef struct Opt_FrictionMotion { + Ark_Tag tag; + Ark_FrictionMotion value; +} Opt_FrictionMotion; +typedef struct Opt_SpringMotion { + Ark_Tag tag; + Ark_SpringMotion value; +} Opt_SpringMotion; +typedef struct Opt_SpringProp { Ark_Tag tag; - Ark_Union_SpringMotion_FrictionMotion_ScrollMotion value; -} Opt_Union_SpringMotion_FrictionMotion_ScrollMotion; + Ark_SpringProp value; +} Opt_SpringProp; typedef struct OnAlphabetIndexerPopupSelectCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number index); @@ -14956,6 +15249,10 @@ typedef struct Opt_Type_AlertDialog_show_value { Ark_Tag tag; Ark_Type_AlertDialog_show_value value; } Opt_Type_AlertDialog_show_value; +typedef struct Opt_AlertDialog { + Ark_Tag tag; + Ark_AlertDialog value; +} Opt_AlertDialog; typedef struct Ark_DismissDialogAction { Callback_Void dismiss; Ark_DismissReason reason; @@ -14973,6 +15270,10 @@ typedef struct Opt_SheetInfo { Ark_Tag tag; Ark_SheetInfo value; } Opt_SheetInfo; +typedef struct Opt_ActionSheet { + Ark_Tag tag; + Ark_ActionSheet value; +} Opt_ActionSheet; typedef struct Ark_Literal_Want_want { Ark_Want want; } Ark_Literal_Want_want; @@ -14980,6 +15281,22 @@ typedef struct Opt_Literal_Want_want { Ark_Tag tag; Ark_Literal_Want_want value; } Opt_Literal_Want_want; +typedef struct Opt_EventEmulator { + Ark_Tag tag; + Ark_EventEmulator value; +} Opt_EventEmulator; +typedef struct Opt_NavExtender { + Ark_Tag tag; + Ark_NavExtender value; +} Opt_NavExtender; +typedef struct Opt_GlobalScope_ohos_arkui_performanceMonitor { + Ark_Tag tag; + Ark_GlobalScope_ohos_arkui_performanceMonitor value; +} Opt_GlobalScope_ohos_arkui_performanceMonitor; +typedef struct Opt_GlobalScope_ohos_arkui_componentSnapshot { + Ark_Tag tag; + Ark_GlobalScope_ohos_arkui_componentSnapshot value; +} Opt_GlobalScope_ohos_arkui_componentSnapshot; typedef struct Ark_WebHeader { Ark_String headerKey; Ark_String headerValue; @@ -14996,14 +15313,18 @@ typedef struct Opt_Array_WebHeader { Ark_Tag tag; Array_WebHeader value; } Opt_Array_WebHeader; -typedef struct Opt_Float32 { +typedef struct Opt_LazyForEachOps { Ark_Tag tag; - Ark_Float32 value; -} Opt_Float32; + Ark_LazyForEachOps value; +} Opt_LazyForEachOps; typedef struct Opt_NativePointer { Ark_Tag tag; Ark_NativePointer value; } Opt_NativePointer; +typedef struct Opt_AnimationExtender { + Ark_Tag tag; + Ark_AnimationExtender value; +} Opt_AnimationExtender; typedef Opt_Length Opt_Dimension; @@ -15088,8 +15409,8 @@ typedef struct GENERATED_ArkUIAlphabetIndexerModifier { void (*setAlignStyle)(Ark_NativePointer node, Ark_IndexerAlign value, const Opt_Length* offset); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Number_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Number_Void* callback); } GENERATED_ArkUIAlphabetIndexerModifier; typedef struct GENERATED_ArkUIAnimatorModifier { @@ -15112,7 +15433,7 @@ typedef struct GENERATED_ArkUIAnimatorModifier { void (*setPlayMode)(Ark_NativePointer node, Ark_PlayMode value); void (*setMotion)(Ark_NativePointer node, - const Ark_Union_SpringMotion_FrictionMotion_ScrollMotion* value); + Ark_SpringMotion value); void (*setOnStart)(Ark_NativePointer node, const Callback_Void* value); void (*setOnPause)(Ark_NativePointer node, @@ -15260,8 +15581,8 @@ typedef struct GENERATED_ArkUICheckboxModifier { const OnCheckboxChangeCallback* value); void (*setContentModifier)(Ark_NativePointer node, const Ark_CustomObject* value); - void (*set__onChangeEvent_select)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_select)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUICheckboxModifier; typedef struct GENERATED_ArkUICheckboxGroupModifier { @@ -15281,8 +15602,8 @@ typedef struct GENERATED_ArkUICheckboxGroupModifier { const OnCheckboxGroupChangeCallback* value); void (*setCheckboxShape)(Ark_NativePointer node, Ark_CheckBoxShape value); - void (*set__onChangeEvent_selectAll)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_selectAll)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUICheckboxGroupModifier; typedef struct GENERATED_ArkUICircleModifier { @@ -15438,7 +15759,7 @@ typedef struct GENERATED_ArkUICommonMethodModifier { void (*setTransition0)(Ark_NativePointer node, const Ark_Union_TransitionOptions_TransitionEffect* value); void (*setTransition1)(Ark_NativePointer node, - const Ark_TransitionEffect* effect, + Ark_TransitionEffect effect, const Opt_TransitionFinishCallback* onFinish); void (*setMotionBlur)(Ark_NativePointer node, const Ark_MotionBlurOptions* value); @@ -15558,15 +15879,15 @@ typedef struct GENERATED_ArkUICommonMethodModifier { void (*setShadow)(Ark_NativePointer node, const Ark_Union_ShadowOptions_ShadowStyle* value); void (*setClip0)(Ark_NativePointer node, - Ark_Boolean value); + const Opt_Boolean* value); void (*setClip1)(Ark_NativePointer node, - const Ark_Type_CommonMethod_clip_value* value); + const Opt_Boolean* value); void (*setClipShape)(Ark_NativePointer node, const Ark_Union_CircleShape_EllipseShape_PathShape_RectShape* value); void (*setMask0)(Ark_NativePointer node, - const Ark_ProgressMask* value); + const Opt_ProgressMask* value); void (*setMask1)(Ark_NativePointer node, - const Ark_Type_CommonMethod_mask_value* value); + const Opt_ProgressMask* value); void (*setMaskShape)(Ark_NativePointer node, const Ark_Union_CircleShape_EllipseShape_PathShape_RectShape* value); void (*setKey)(Ark_NativePointer node, @@ -15618,7 +15939,7 @@ typedef struct GENERATED_ArkUICommonMethodModifier { void (*setRenderFit)(Ark_NativePointer node, Ark_RenderFit value); void (*setGestureModifier)(Ark_NativePointer node, - const Ark_GestureModifier* value); + Ark_GestureModifier value); void (*setBackgroundBrightness)(Ark_NativePointer node, const Ark_BackgroundBrightnessOptions* value); void (*setOnGestureJudgeBegin)(Ark_NativePointer node, @@ -15793,7 +16114,7 @@ typedef struct GENERATED_ArkUIScrollableCommonMethodModifier { void (*setOnWillScroll)(Ark_NativePointer node, const Opt_ScrollOnWillScrollCallback* value); void (*setOnDidScroll)(Ark_NativePointer node, - const Opt_ScrollOnScrollCallback* value); + const ScrollOnScrollCallback* value); void (*setOnReachStart)(Ark_NativePointer node, const Callback_Void* value); void (*setOnReachEnd)(Ark_NativePointer node, @@ -15866,7 +16187,7 @@ typedef struct GENERATED_ArkUIDataPanelModifier { void (*setCloseEffect)(Ark_NativePointer node, Ark_Boolean value); void (*setValueColors)(Ark_NativePointer node, - const Array_Union_ResourceColor_LinearGradient_data_panel* value); + const Array_Union_ResourceColor_LinearGradient* value); void (*setTrackBackgroundColor)(Ark_NativePointer node, const Ark_ResourceColor* value); void (*setStrokeWidth)(Ark_NativePointer node, @@ -15894,8 +16215,8 @@ typedef struct GENERATED_ArkUIDatePickerModifier { const Callback_DatePickerResult_Void* value); void (*setOnDateChange)(Ark_NativePointer node, const Callback_Date_Void* value); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Date_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Date_Void* callback); } GENERATED_ArkUIDatePickerModifier; typedef struct GENERATED_ArkUIDividerModifier { @@ -16129,8 +16450,8 @@ typedef struct GENERATED_ArkUIGridItemModifier { Ark_Boolean value); void (*setOnSelect)(Ark_NativePointer node, const Callback_Boolean_Void* value); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUIGridItemModifier; typedef struct GENERATED_ArkUIGridColModifier { @@ -16284,7 +16605,7 @@ typedef struct GENERATED_ArkUIImageSpanModifier { void (*setOnError)(Ark_NativePointer node, const ImageErrorCallback* value); void (*setAlt)(Ark_NativePointer node, - const Ark_PixelMap* value); + Ark_PixelMap value); } GENERATED_ArkUIImageSpanModifier; typedef struct GENERATED_ArkUILineModifier { @@ -16339,7 +16660,7 @@ typedef struct GENERATED_ArkUIListModifier { void (*setFriction)(Ark_NativePointer node, const Ark_Union_Number_Resource* value); void (*setChildrenMainSize)(Ark_NativePointer node, - const Ark_ChildrenMainSize* value); + Ark_ChildrenMainSize value); void (*setMaintainVisibleContentPosition)(Ark_NativePointer node, Ark_Boolean value); void (*setOnScroll)(Ark_NativePointer node, @@ -16399,8 +16720,8 @@ typedef struct GENERATED_ArkUIListItemModifier { const Ark_SwipeActionOptions* value); void (*setOnSelect)(Ark_NativePointer node, const Callback_Boolean_Void* value); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUIListItemModifier; typedef struct GENERATED_ArkUIListItemGroupModifier { @@ -16411,7 +16732,7 @@ typedef struct GENERATED_ArkUIListItemGroupModifier { void (*setDivider)(Ark_NativePointer node, const Opt_ListDividerOptions* value); void (*setChildrenMainSize)(Ark_NativePointer node, - const Ark_ChildrenMainSize* value); + Ark_ChildrenMainSize value); } GENERATED_ArkUIListItemGroupModifier; typedef struct GENERATED_ArkUILoadingProgressModifier { @@ -16507,8 +16828,8 @@ typedef struct GENERATED_ArkUIMenuItemModifier { const Ark_Font* value); void (*setLabelFontColor)(Ark_NativePointer node, const Ark_ResourceColor* value); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUIMenuItemModifier; typedef struct GENERATED_ArkUIMenuItemGroupModifier { @@ -16633,8 +16954,8 @@ typedef struct GENERATED_ArkUIPanelModifier { const Callback_Number_Number_PanelMode_Void* value); void (*setOnHeightChange)(Ark_NativePointer node, const Callback_Number_Void* value); - void (*set__onChangeEvent_mode)(Ark_NativePointer node, - const Callback_PanelMode_Void* callback); + void (*set_onChangeEvent_mode)(Ark_NativePointer node, + const Callback_PanelMode_Void* callback); } GENERATED_ArkUIPanelModifier; typedef struct GENERATED_ArkUIPasteButtonModifier { @@ -16724,7 +17045,7 @@ typedef struct GENERATED_ArkUIProgressModifier { void (*setValue)(Ark_NativePointer node, const Ark_Number* value); void (*setColor)(Ark_NativePointer node, - const Ark_Union_ResourceColor_LinearGradient_common* value); + const Ark_Union_ResourceColor_LinearGradient* value); void (*setStyle)(Ark_NativePointer node, const Ark_Union_LinearStyleOptions_RingStyleOptions_CapsuleStyleOptions_ProgressStyleOptions* value); void (*setPrivacySensitive)(Ark_NativePointer node, @@ -16759,8 +17080,8 @@ typedef struct GENERATED_ArkUIRadioModifier { const Opt_RadioStyle* value); void (*setContentModifier)(Ark_NativePointer node, const Ark_CustomObject* value); - void (*set__onChangeEvent_checked)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_checked)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUIRadioModifier; typedef struct GENERATED_ArkUIRatingModifier { @@ -16778,8 +17099,8 @@ typedef struct GENERATED_ArkUIRatingModifier { const Callback_Number_Void* value); void (*setContentModifier)(Ark_NativePointer node, const Ark_CustomObject* value); - void (*set__onChangeEvent_rating)(Ark_NativePointer node, - const Callback_Number_Void* callback); + void (*set_onChangeEvent_rating)(Ark_NativePointer node, + const Callback_Number_Void* callback); } GENERATED_ArkUIRatingModifier; typedef struct GENERATED_ArkUIRectModifier { @@ -16812,8 +17133,8 @@ typedef struct GENERATED_ArkUIRefreshModifier { const Callback_Number_Void* value); void (*setPullDownRatio)(Ark_NativePointer node, const Opt_Number* value); - void (*set__onChangeEvent_refreshing)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_refreshing)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUIRefreshModifier; typedef struct GENERATED_ArkUIRelativeContainerModifier { @@ -16880,7 +17201,7 @@ typedef struct GENERATED_ArkUIRichEditorModifier { void (*setOnCopy)(Ark_NativePointer node, const Callback_CopyEvent_Void* value); void (*setEditMenuOptions)(Ark_NativePointer node, - const Ark_EditMenuOptions* value); + Ark_EditMenuOptions value); void (*setEnableKeyboardOnFocus)(Ark_NativePointer node, Ark_Boolean value); void (*setEnableHapticFeedback)(Ark_NativePointer node, @@ -16970,7 +17291,7 @@ typedef struct GENERATED_ArkUIScrollModifier { void (*setOnWillScroll)(Ark_NativePointer node, const Opt_ScrollOnWillScrollCallback* value); void (*setOnDidScroll)(Ark_NativePointer node, - const Opt_ScrollOnScrollCallback* value); + const ScrollOnScrollCallback* value); void (*setOnScrollEdge)(Ark_NativePointer node, const OnScrollEdgeCallback* value); void (*setOnScrollStart)(Ark_NativePointer node, @@ -17089,7 +17410,7 @@ typedef struct GENERATED_ArkUISearchModifier { void (*setOnDidDelete)(Ark_NativePointer node, const Callback_DeleteValue_Void* value); void (*setEditMenuOptions)(Ark_NativePointer node, - const Ark_EditMenuOptions* value); + Ark_EditMenuOptions value); void (*setEnablePreviewText)(Ark_NativePointer node, Ark_Boolean value); void (*setEnableHapticFeedback)(Ark_NativePointer node, @@ -17103,8 +17424,8 @@ typedef struct GENERATED_ArkUISearchModifier { void (*setCustomKeyboard)(Ark_NativePointer node, const CustomNodeBuilder* value, const Opt_KeyboardOptions* options); - void (*set__onChangeEvent_value)(Ark_NativePointer node, - const Callback_String_Void* callback); + void (*set_onChangeEvent_value)(Ark_NativePointer node, + const Callback_String_Void* callback); } GENERATED_ArkUISearchModifier; typedef struct GENERATED_ArkUISecurityComponentMethodModifier { @@ -17206,17 +17527,17 @@ typedef struct GENERATED_ArkUISelectModifier { void (*setMenuAlign)(Ark_NativePointer node, Ark_MenuAlignType alignType, const Opt_Offset* offset); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Union_Number_Resource_Void* callback); - void (*set__onChangeEvent_value)(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Union_Number_Resource_Void* callback); + void (*set_onChangeEvent_value)(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback); } GENERATED_ArkUISelectModifier; typedef struct GENERATED_ArkUIShapeModifier { Ark_NativePointer (*construct)(Ark_Int32 id, Ark_Int32 flags); void (*setShapeOptions0)(Ark_NativePointer node, - const Ark_PixelMap* value); + Ark_PixelMap value); void (*setShapeOptions1)(Ark_NativePointer node); void (*setViewPort)(Ark_NativePointer node, const Ark_ViewportRect* value); @@ -17256,7 +17577,7 @@ typedef struct GENERATED_ArkUISliderModifier { void (*setBlockColor)(Ark_NativePointer node, const Ark_ResourceColor* value); void (*setTrackColor)(Ark_NativePointer node, - const Ark_Union_ResourceColor_LinearGradient_common* value); + const Ark_Union_ResourceColor_LinearGradient* value); void (*setSelectedColor)(Ark_NativePointer node, const Ark_ResourceColor* value); void (*setMinLabel)(Ark_NativePointer node, @@ -17296,8 +17617,8 @@ typedef struct GENERATED_ArkUISliderModifier { void (*setShowTips)(Ark_NativePointer node, Ark_Boolean value, const Opt_ResourceStr* content); - void (*set__onChangeEvent_value)(Ark_NativePointer node, - const Callback_Number_Void* callback); + void (*set_onChangeEvent_value)(Ark_NativePointer node, + const Callback_Number_Void* callback); } GENERATED_ArkUISliderModifier; typedef struct GENERATED_ArkUIBaseSpanModifier { @@ -17306,7 +17627,7 @@ typedef struct GENERATED_ArkUIBaseSpanModifier { void (*setTextBackgroundStyle)(Ark_NativePointer node, const Ark_TextBackgroundStyle* value); void (*setBaselineOffset)(Ark_NativePointer node, - const Ark_LengthMetrics* value); + Ark_LengthMetrics value); } GENERATED_ArkUIBaseSpanModifier; typedef struct GENERATED_ArkUISpanModifier { @@ -17364,8 +17685,8 @@ typedef struct GENERATED_ArkUIStepperModifier { const Callback_Number_Number_Void* value); void (*setOnPrevious)(Ark_NativePointer node, const Callback_Number_Number_Void* value); - void (*set__onChangeEvent_index)(Ark_NativePointer node, - const Callback_Number_Void* callback); + void (*set_onChangeEvent_index)(Ark_NativePointer node, + const Callback_Number_Void* callback); } GENERATED_ArkUIStepperModifier; typedef struct GENERATED_ArkUIStepperItemModifier { @@ -17394,7 +17715,7 @@ typedef struct GENERATED_ArkUISwiperModifier { void (*setIndicator0)(Ark_NativePointer node, const Ark_Union_DotIndicator_DigitIndicator_Boolean* value); void (*setIndicator1)(Ark_NativePointer node, - const Ark_IndicatorComponentController* value); + Ark_IndicatorComponentController value); void (*setLoop)(Ark_NativePointer node, Ark_Boolean value); void (*setDuration)(Ark_NativePointer node, @@ -17443,8 +17764,8 @@ typedef struct GENERATED_ArkUISwiperModifier { void (*setNextMargin)(Ark_NativePointer node, const Ark_Length* value, const Opt_Boolean* ignoreBlank); - void (*set__onChangeEvent_index)(Ark_NativePointer node, - const Callback_Number_Void* callback); + void (*set_onChangeEvent_index)(Ark_NativePointer node, + const Callback_Number_Void* callback); } GENERATED_ArkUISwiperModifier; typedef struct GENERATED_ArkUIIndicatorComponentModifier { @@ -17565,8 +17886,8 @@ typedef struct GENERATED_ArkUITabsModifier { const OnTabsContentWillChangeCallback* value); void (*setBarModeScrollable)(Ark_NativePointer node, const Ark_ScrollableBarModeOptions* options); - void (*set__onChangeEvent_index)(Ark_NativePointer node, - const Callback_Number_Void* callback); + void (*set_onChangeEvent_index)(Ark_NativePointer node, + const Callback_Number_Void* callback); } GENERATED_ArkUITabsModifier; typedef struct GENERATED_ArkUITabContentModifier { @@ -17614,7 +17935,7 @@ typedef struct GENERATED_ArkUITextModifier { const Ark_Union_Number_FontWeight_String* weight, const Opt_FontSettingOptions* options); void (*setLineSpacing)(Ark_NativePointer node, - const Ark_LengthMetrics* value); + Ark_LengthMetrics value); void (*setTextAlign)(Ark_NativePointer node, Ark_TextAlign value); void (*setLineHeight)(Ark_NativePointer node, @@ -17668,7 +17989,7 @@ typedef struct GENERATED_ArkUITextModifier { void (*setTextSelectable)(Ark_NativePointer node, Ark_TextSelectableMode value); void (*setEditMenuOptions)(Ark_NativePointer node, - const Ark_EditMenuOptions* value); + Ark_EditMenuOptions value); void (*setHalfLeading)(Ark_NativePointer node, Ark_Boolean value); void (*setEnableHapticFeedback)(Ark_NativePointer node, @@ -17763,7 +18084,7 @@ typedef struct GENERATED_ArkUITextAreaModifier { void (*setLetterSpacing)(Ark_NativePointer node, const Ark_Union_Number_String_Resource* value); void (*setLineSpacing)(Ark_NativePointer node, - const Ark_LengthMetrics* value); + Ark_LengthMetrics value); void (*setLineHeight)(Ark_NativePointer node, const Ark_Union_Number_String_Resource* value); void (*setType)(Ark_NativePointer node, @@ -17783,7 +18104,7 @@ typedef struct GENERATED_ArkUITextAreaModifier { void (*setOnDidDelete)(Ark_NativePointer node, const Callback_DeleteValue_Void* value); void (*setEditMenuOptions)(Ark_NativePointer node, - const Ark_EditMenuOptions* value); + Ark_EditMenuOptions value); void (*setEnablePreviewText)(Ark_NativePointer node, Ark_Boolean value); void (*setEnableHapticFeedback)(Ark_NativePointer node, @@ -17797,8 +18118,8 @@ typedef struct GENERATED_ArkUITextAreaModifier { void (*setCustomKeyboard)(Ark_NativePointer node, const CustomNodeBuilder* value, const Opt_KeyboardOptions* options); - void (*set__onChangeEvent_text)(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback); + void (*set_onChangeEvent_text)(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback); } GENERATED_ArkUITextAreaModifier; typedef struct GENERATED_ArkUITextClockModifier { @@ -17954,7 +18275,7 @@ typedef struct GENERATED_ArkUITextInputModifier { void (*setOnDidDelete)(Ark_NativePointer node, const Callback_DeleteValue_Void* value); void (*setEditMenuOptions)(Ark_NativePointer node, - const Ark_EditMenuOptions* value); + Ark_EditMenuOptions value); void (*setEnablePreviewText)(Ark_NativePointer node, Ark_Boolean value); void (*setEnableHapticFeedback)(Ark_NativePointer node, @@ -17968,8 +18289,8 @@ typedef struct GENERATED_ArkUITextInputModifier { void (*setShowCounter)(Ark_NativePointer node, Ark_Boolean value, const Opt_InputCounterOptions* options); - void (*set__onChangeEvent_text)(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback); + void (*set_onChangeEvent_text)(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback); } GENERATED_ArkUITextInputModifier; typedef struct GENERATED_ArkUITextPickerModifier { @@ -17999,10 +18320,10 @@ typedef struct GENERATED_ArkUITextPickerModifier { const Opt_DividerOptions* value); void (*setGradientHeight)(Ark_NativePointer node, const Ark_Length* value); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Union_Number_Array_Number_Void* callback); - void (*set__onChangeEvent_value)(Ark_NativePointer node, - const Callback_Union_String_Array_String_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Union_Number_Array_Number_Void* callback); + void (*set_onChangeEvent_value)(Ark_NativePointer node, + const Callback_Union_String_Array_String_Void* callback); } GENERATED_ArkUITextPickerModifier; typedef struct GENERATED_ArkUITextTimerModifier { @@ -18051,8 +18372,8 @@ typedef struct GENERATED_ArkUITimePickerModifier { const Callback_TimePickerResult_Void* value); void (*setEnableHapticFeedback)(Ark_NativePointer node, Ark_Boolean value); - void (*set__onChangeEvent_selected)(Ark_NativePointer node, - const Callback_Date_Void* callback); + void (*set_onChangeEvent_selected)(Ark_NativePointer node, + const Callback_Date_Void* callback); } GENERATED_ArkUITimePickerModifier; typedef struct GENERATED_ArkUIToggleModifier { @@ -18070,8 +18391,8 @@ typedef struct GENERATED_ArkUIToggleModifier { const Ark_ResourceColor* value); void (*setSwitchStyle)(Ark_NativePointer node, const Ark_SwitchStyle* value); - void (*set__onChangeEvent_isOn)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_isOn)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUIToggleModifier; typedef struct GENERATED_ArkUIVideoModifier { @@ -18355,7 +18676,7 @@ typedef struct GENERATED_ArkUIWebModifier { void (*setKeyboardAvoidMode)(Ark_NativePointer node, Ark_WebKeyboardAvoidMode value); void (*setEditMenuOptions)(Ark_NativePointer node, - const Ark_EditMenuOptions* value); + Ark_EditMenuOptions value); void (*setEnableHapticFeedback)(Ark_NativePointer node, Ark_Boolean value); void (*setRegisterNativeEmbedRule)(Ark_NativePointer node, @@ -18430,8 +18751,8 @@ typedef struct GENERATED_ArkUISideBarContainerModifier { const Opt_DividerStyle* value); void (*setMinContentWidth)(Ark_NativePointer node, const Ark_Length* value); - void (*set__onChangeEvent_showSideBar)(Ark_NativePointer node, - const Callback_Boolean_Void* callback); + void (*set_onChangeEvent_showSideBar)(Ark_NativePointer node, + const Callback_Boolean_Void* callback); } GENERATED_ArkUISideBarContainerModifier; typedef struct GENERATED_ArkUIRemoteWindowModifier { @@ -18515,37 +18836,35 @@ typedef struct GENERATED_ArkUILinearIndicatorModifier { // Accessors -typedef struct AnimationExtenderPeer AnimationExtenderPeer; typedef struct GENERATED_ArkUIAnimationExtenderAccessor { void (*destroyPeer)(AnimationExtenderPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_AnimationExtender (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*SetClipRect)(Ark_NativePointer peer, - const Ark_Number* left, - const Ark_Number* top, - const Ark_Number* right, - const Ark_Number* bottom); - void (*OpenImplicitAnimation)(Ark_NativePointer peer, - const Ark_AnimateParam* param); - void (*CloseImplicitAnimation)(Ark_NativePointer node); - void (*StartDoubleAnimation)(Ark_NativePointer peer, + void (*SetClipRect)(Ark_NativePointer node, + Ark_Float32 x, + Ark_Float32 y, + Ark_Float32 width, + Ark_Float32 height); + void (*OpenImplicitAnimation)(const Ark_AnimateParam* param); + void (*CloseImplicitAnimation)(); + void (*StartDoubleAnimation)(Ark_NativePointer node, const Ark_DoubleAnimationParam* param); + void (*AnimationTranslate)(Ark_NativePointer node, + const Ark_TranslateOptions* options); } GENERATED_ArkUIAnimationExtenderAccessor; -typedef struct UnifiedDataPeer UnifiedDataPeer; typedef struct GENERATED_ArkUIUnifiedDataAccessor { void (*destroyPeer)(UnifiedDataPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_UnifiedData (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*hasType)(UnifiedDataPeer* peer, const Ark_String* UnifiedData_type); void (*getTypes)(UnifiedDataPeer* peer); } GENERATED_ArkUIUnifiedDataAccessor; -typedef struct LazyForEachOpsPeer LazyForEachOpsPeer; typedef struct GENERATED_ArkUILazyForEachOpsAccessor { void (*destroyPeer)(LazyForEachOpsPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_LazyForEachOps (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*NeedMoreElements)(Ark_NativePointer node, Ark_NativePointer mark, @@ -18558,10 +18877,9 @@ typedef struct GENERATED_ArkUILazyForEachOpsAccessor { void (*Prepare)(Ark_NativePointer node); } GENERATED_ArkUILazyForEachOpsAccessor; -typedef struct DrawingCanvasPeer DrawingCanvasPeer; typedef struct GENERATED_ArkUIDrawingCanvasAccessor { void (*destroyPeer)(DrawingCanvasPeer* peer); - Ark_NativePointer (*ctor)(const Ark_PixelMap* pixelmap); + Ark_DrawingCanvas (*ctor)(Ark_PixelMap pixelmap); Ark_NativePointer (*getFinalizer)(); void (*drawRect)(DrawingCanvasPeer* peer, const Ark_Number* left, @@ -18570,13 +18888,12 @@ typedef struct GENERATED_ArkUIDrawingCanvasAccessor { const Ark_Number* bottom); } GENERATED_ArkUIDrawingCanvasAccessor; -typedef struct LengthMetricsPeer LengthMetricsPeer; typedef struct GENERATED_ArkUILengthMetricsAccessor { void (*destroyPeer)(LengthMetricsPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_LengthMetrics (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*px)(const Ark_Number* value); - Ark_NativePointer (*resource)(const Ark_Resource* value); + 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 unit); @@ -18585,10 +18902,9 @@ typedef struct GENERATED_ArkUILengthMetricsAccessor { const Ark_Number* value); } GENERATED_ArkUILengthMetricsAccessor; -typedef struct WebviewControllerPeer WebviewControllerPeer; typedef struct GENERATED_ArkUIWebviewControllerAccessor { void (*destroyPeer)(WebviewControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebviewController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*initializeWebEngine)(); void (*loadUrl)(WebviewControllerPeer* peer, @@ -18596,60 +18912,56 @@ typedef struct GENERATED_ArkUIWebviewControllerAccessor { const Opt_Array_WebHeader* headers); } GENERATED_ArkUIWebviewControllerAccessor; -typedef struct GlobalScope_ohos_arkui_componentSnapshotPeer GlobalScope_ohos_arkui_componentSnapshotPeer; typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor { void (*destroyPeer)(GlobalScope_ohos_arkui_componentSnapshotPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_GlobalScope_ohos_arkui_componentSnapshot (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*get)(const Ark_String* id, const AsyncCallback_image_PixelMap_Void* callback, const Opt_SnapshotOptions* options); } GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor; -typedef struct GlobalScope_ohos_arkui_performanceMonitorPeer GlobalScope_ohos_arkui_performanceMonitorPeer; typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor { void (*destroyPeer)(GlobalScope_ohos_arkui_performanceMonitorPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_GlobalScope_ohos_arkui_performanceMonitor (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*begin)(const Ark_String* scene, Ark_PerfMonitorActionType startInputType, const Opt_String* note); void (*end)(const Ark_String* scene); - void (*recordInputEventTime)(Ark_PerfMonitorActionType type, + void (*recordInputEventTime)(Ark_PerfMonitorActionType actionType, Ark_PerfMonitorSourceType sourceType, const Ark_Number* time); } GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor; -typedef struct FrameNodePeer FrameNodePeer; typedef struct GENERATED_ArkUIFrameNodeAccessor { void (*destroyPeer)(FrameNodePeer* peer); - Ark_NativePointer (*ctor)(const Ark_UIContext* uiContext); + Ark_FrameNode (*ctor)(const Ark_UIContext* uiContext); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*isModifiable)(FrameNodePeer* peer); void (*appendChild)(FrameNodePeer* peer, - const Ark_FrameNode* node); + Ark_FrameNode node); void (*insertChildAfter)(FrameNodePeer* peer, - const Ark_FrameNode* child, - const Ark_FrameNode* sibling); + Ark_FrameNode child, + Ark_FrameNode sibling); void (*removeChild)(FrameNodePeer* peer, - const Ark_FrameNode* node); + Ark_FrameNode node); void (*clearChildren)(FrameNodePeer* peer); - Ark_NativePointer (*getChild)(FrameNodePeer* peer, - const Ark_Number* index); - Ark_NativePointer (*getFirstChild)(FrameNodePeer* peer); - Ark_NativePointer (*getNextSibling)(FrameNodePeer* peer); - Ark_NativePointer (*getPreviousSibling)(FrameNodePeer* peer); - Ark_NativePointer (*getParent)(FrameNodePeer* peer); + Ark_FrameNode (*getChild)(FrameNodePeer* 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); } GENERATED_ArkUIFrameNodeAccessor; -typedef struct PixelMapPeer PixelMapPeer; typedef struct GENERATED_ArkUIPixelMapAccessor { void (*destroyPeer)(PixelMapPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PixelMap (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*readPixelsToBufferSync)(PixelMapPeer* peer, const Ark_Buffer* dst); @@ -18663,74 +18975,101 @@ typedef struct GENERATED_ArkUIPixelMapAccessor { Ark_Int32 isStrideAlignment); } GENERATED_ArkUIPixelMapAccessor; -typedef struct NavExtenderPeer NavExtenderPeer; typedef struct GENERATED_ArkUINavExtenderAccessor { void (*destroyPeer)(NavExtenderPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_NavExtender (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setUpdateStackCallback)(const Ark_NavPathStack* peer, + void (*setUpdateStackCallback)(Ark_NavPathStack peer, const NavExtender_OnUpdateStack* callback); } GENERATED_ArkUINavExtenderAccessor; -typedef struct EventEmulatorPeer EventEmulatorPeer; typedef struct GENERATED_ArkUIEventEmulatorAccessor { void (*destroyPeer)(EventEmulatorPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_EventEmulator (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*emitClickEvent)(Ark_NativePointer node, - const Ark_ClickEvent* event); + Ark_ClickEvent event); void (*emitTextInputEvent)(Ark_NativePointer node, const Ark_String* text); } GENERATED_ArkUIEventEmulatorAccessor; -typedef struct ActionSheetPeer ActionSheetPeer; typedef struct GENERATED_ArkUIActionSheetAccessor { void (*destroyPeer)(ActionSheetPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ActionSheet (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Ark_ActionSheetOptions* value); } GENERATED_ArkUIActionSheetAccessor; -typedef struct AlertDialogPeer AlertDialogPeer; typedef struct GENERATED_ArkUIAlertDialogAccessor { void (*destroyPeer)(AlertDialogPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_AlertDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Ark_Type_AlertDialog_show_value* value); } GENERATED_ArkUIAlertDialogAccessor; -typedef struct CalendarControllerPeer CalendarControllerPeer; +typedef struct GENERATED_ArkUISpringPropAccessor { + void (*destroyPeer)(SpringPropPeer* peer); + Ark_SpringProp (*ctor)(const Ark_Number* mass, + const Ark_Number* stiffness, + const Ark_Number* damping); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUISpringPropAccessor; + +typedef struct GENERATED_ArkUISpringMotionAccessor { + void (*destroyPeer)(SpringMotionPeer* peer); + Ark_SpringMotion (*ctor)(const Ark_Number* start, + const Ark_Number* end, + const Ark_Number* velocity, + Ark_SpringProp prop); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUISpringMotionAccessor; + +typedef struct GENERATED_ArkUIFrictionMotionAccessor { + void (*destroyPeer)(FrictionMotionPeer* peer); + Ark_FrictionMotion (*ctor)(const Ark_Number* friction, + const Ark_Number* position, + const Ark_Number* velocity); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUIFrictionMotionAccessor; + +typedef struct GENERATED_ArkUIScrollMotionAccessor { + void (*destroyPeer)(ScrollMotionPeer* peer); + Ark_ScrollMotion (*ctor)(const Ark_Number* position, + const Ark_Number* velocity, + const Ark_Number* min, + const Ark_Number* max, + Ark_SpringProp prop); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUIScrollMotionAccessor; + typedef struct GENERATED_ArkUICalendarControllerAccessor { void (*destroyPeer)(CalendarControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CalendarController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*backToToday)(CalendarControllerPeer* peer); void (*goTo)(CalendarControllerPeer* peer, const Ark_Literal_Number_day_month_year* value); } GENERATED_ArkUICalendarControllerAccessor; -typedef struct CalendarPickerDialogPeer CalendarPickerDialogPeer; typedef struct GENERATED_ArkUICalendarPickerDialogAccessor { void (*destroyPeer)(CalendarPickerDialogPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CalendarPickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_CalendarDialogOptions* options); } GENERATED_ArkUICalendarPickerDialogAccessor; -typedef struct CanvasGradientPeer CanvasGradientPeer; typedef struct GENERATED_ArkUICanvasGradientAccessor { void (*destroyPeer)(CanvasGradientPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CanvasGradient (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*addColorStop)(CanvasGradientPeer* peer, const Ark_Number* offset, const Ark_String* color); } GENERATED_ArkUICanvasGradientAccessor; -typedef struct CanvasPathPeer CanvasPathPeer; typedef struct GENERATED_ArkUICanvasPathAccessor { void (*destroyPeer)(CanvasPathPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CanvasPath (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*arc)(CanvasPathPeer* peer, const Ark_Number* x, @@ -18780,39 +19119,54 @@ typedef struct GENERATED_ArkUICanvasPathAccessor { const Ark_Number* h); } GENERATED_ArkUICanvasPathAccessor; -typedef struct Path2DPeer Path2DPeer; typedef struct GENERATED_ArkUIPath2DAccessor { void (*destroyPeer)(Path2DPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_Path2D (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*addPath)(Path2DPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_Matrix2D* transform); } GENERATED_ArkUIPath2DAccessor; -typedef struct CanvasPatternPeer CanvasPatternPeer; typedef struct GENERATED_ArkUICanvasPatternAccessor { void (*destroyPeer)(CanvasPatternPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CanvasPattern (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setTransform)(CanvasPatternPeer* peer, const Opt_Matrix2D* transform); } GENERATED_ArkUICanvasPatternAccessor; -typedef struct ImageBitmapPeer ImageBitmapPeer; typedef struct GENERATED_ArkUIImageBitmapAccessor { void (*destroyPeer)(ImageBitmapPeer* peer); - Ark_NativePointer (*ctor)(const Ark_String* src); + Ark_ImageBitmap (*ctor)(const Ark_String* src); Ark_NativePointer (*getFinalizer)(); void (*close)(ImageBitmapPeer* peer); Ark_Int32 (*getHeight)(ImageBitmapPeer* peer); Ark_Int32 (*getWidth)(ImageBitmapPeer* peer); } GENERATED_ArkUIImageBitmapAccessor; -typedef struct CanvasRendererPeer CanvasRendererPeer; +typedef struct GENERATED_ArkUIImageDataAccessor { + void (*destroyPeer)(ImageDataPeer* 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); +} GENERATED_ArkUIImageDataAccessor; + +typedef struct GENERATED_ArkUIRenderingContextSettingsAccessor { + void (*destroyPeer)(RenderingContextSettingsPeer* peer); + Ark_RenderingContextSettings (*ctor)(const Opt_Boolean* antialias); + Ark_NativePointer (*getFinalizer)(); + Ark_Boolean (*getAntialias)(RenderingContextSettingsPeer* peer); + void (*setAntialias)(RenderingContextSettingsPeer* peer, + Ark_Boolean antialias); +} GENERATED_ArkUIRenderingContextSettingsAccessor; + typedef struct GENERATED_ArkUICanvasRendererAccessor { void (*destroyPeer)(CanvasRendererPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CanvasRenderer (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*drawImage0)(CanvasRendererPeer* peer, const Ark_Union_ImageBitmap_PixelMap* image, @@ -18838,56 +19192,56 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { void (*clip0)(CanvasRendererPeer* peer, const Opt_String* fillRule); void (*clip1)(CanvasRendererPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_String* fillRule); void (*fill0)(CanvasRendererPeer* peer, const Opt_String* fillRule); void (*fill1)(CanvasRendererPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_String* fillRule); void (*stroke0)(CanvasRendererPeer* peer); void (*stroke1)(CanvasRendererPeer* peer, - const Ark_Path2D* path); - Ark_NativePointer (*createLinearGradient)(CanvasRendererPeer* peer, - const Ark_Number* x0, - const Ark_Number* y0, - const Ark_Number* x1, - const Ark_Number* y1); - Ark_NativePointer (*createPattern)(CanvasRendererPeer* peer, - const Ark_ImageBitmap* image, + Ark_Path2D path); + Ark_CanvasGradient (*createLinearGradient)(CanvasRendererPeer* peer, + const Ark_Number* x0, + const Ark_Number* y0, + const Ark_Number* x1, + const Ark_Number* y1); + Ark_CanvasPattern (*createPattern)(CanvasRendererPeer* peer, + Ark_ImageBitmap image, const Opt_String* repetition); - Ark_NativePointer (*createRadialGradient)(CanvasRendererPeer* 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_NativePointer (*createConicGradient)(CanvasRendererPeer* peer, - const Ark_Number* startAngle, - const Ark_Number* x, - const Ark_Number* y); - Ark_NativePointer (*createImageData0)(CanvasRendererPeer* peer, - const Ark_Number* sw, - const Ark_Number* sh); - Ark_NativePointer (*createImageData1)(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata); - Ark_NativePointer (*getImageData)(CanvasRendererPeer* peer, - const Ark_Number* sx, - const Ark_Number* sy, + Ark_CanvasGradient (*createRadialGradient)(CanvasRendererPeer* 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, + const Ark_Number* startAngle, + const Ark_Number* x, + const Ark_Number* y); + Ark_ImageData (*createImageData0)(CanvasRendererPeer* peer, const Ark_Number* sw, const Ark_Number* sh); - Ark_NativePointer (*getPixelMap)(CanvasRendererPeer* peer, - const Ark_Number* sx, - const Ark_Number* sy, - const Ark_Number* sw, - const Ark_Number* sh); + Ark_ImageData (*createImageData1)(CanvasRendererPeer* peer, + Ark_ImageData imagedata); + Ark_ImageData (*getImageData)(CanvasRendererPeer* peer, + const Ark_Number* sx, + const Ark_Number* sy, + const Ark_Number* sw, + const Ark_Number* sh); + Ark_PixelMap (*getPixelMap)(CanvasRendererPeer* peer, + const Ark_Number* sx, + const Ark_Number* sy, + const Ark_Number* sw, + const Ark_Number* sh); void (*putImageData0)(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata, + Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy); void (*putImageData1)(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata, + Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, const Ark_Union_Number_String* dirtyX, @@ -18926,7 +19280,7 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth); - Ark_NativePointer (*getTransform)(CanvasRendererPeer* peer); + Ark_Matrix2D (*getTransform)(CanvasRendererPeer* peer); void (*resetTransform)(CanvasRendererPeer* peer); void (*rotate)(CanvasRendererPeer* peer, const Ark_Number* angle); @@ -18955,7 +19309,7 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { void (*setPixelMap)(CanvasRendererPeer* peer, const Opt_PixelMap* value); void (*transferFromImageBitmap)(CanvasRendererPeer* peer, - const Ark_ImageBitmap* bitmap); + Ark_ImageBitmap bitmap); void (*saveLayer)(CanvasRendererPeer* peer); void (*restoreLayer)(CanvasRendererPeer* peer); void (*reset)(CanvasRendererPeer* peer); @@ -19019,10 +19373,9 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { const Ark_String* textBaseline); } GENERATED_ArkUICanvasRendererAccessor; -typedef struct CanvasRenderingContext2DPeer CanvasRenderingContext2DPeer; typedef struct GENERATED_ArkUICanvasRenderingContext2DAccessor { void (*destroyPeer)(CanvasRenderingContext2DPeer* peer); - Ark_NativePointer (*ctor)(const Opt_RenderingContextSettings* settings); + Ark_CanvasRenderingContext2D (*ctor)(const Opt_RenderingContextSettings* settings); Ark_NativePointer (*getFinalizer)(); void (*toDataURL)(CanvasRenderingContext2DPeer* peer, const Opt_String* type, @@ -19043,27 +19396,24 @@ typedef struct GENERATED_ArkUICanvasRenderingContext2DAccessor { Ark_Int32 (*getWidth)(CanvasRenderingContext2DPeer* peer); } GENERATED_ArkUICanvasRenderingContext2DAccessor; -typedef struct DrawingRenderingContextPeer DrawingRenderingContextPeer; typedef struct GENERATED_ArkUIDrawingRenderingContextAccessor { void (*destroyPeer)(DrawingRenderingContextPeer* peer); - Ark_NativePointer (*ctor)(const Opt_LengthMetricsUnit* unit); + Ark_DrawingRenderingContext (*ctor)(const Opt_LengthMetricsUnit* unit); Ark_NativePointer (*getFinalizer)(); void (*invalidate)(DrawingRenderingContextPeer* peer); } GENERATED_ArkUIDrawingRenderingContextAccessor; -typedef struct ICurvePeer ICurvePeer; typedef struct GENERATED_ArkUIICurveAccessor { void (*destroyPeer)(ICurvePeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ICurve (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*interpolate)(ICurvePeer* peer, const Ark_Number* fraction); } GENERATED_ArkUIICurveAccessor; -typedef struct DrawModifierPeer DrawModifierPeer; typedef struct GENERATED_ArkUIDrawModifierAccessor { void (*destroyPeer)(DrawModifierPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_DrawModifier (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*drawBehind)(DrawModifierPeer* peer, const Ark_DrawContext* drawContext); @@ -19074,29 +19424,27 @@ typedef struct GENERATED_ArkUIDrawModifierAccessor { void (*invalidate)(DrawModifierPeer* peer); } GENERATED_ArkUIDrawModifierAccessor; -typedef struct TransitionEffectPeer TransitionEffectPeer; typedef struct GENERATED_ArkUITransitionEffectAccessor { void (*destroyPeer)(TransitionEffectPeer* peer); - Ark_NativePointer (*ctor)(const Ark_String* type, - const Ark_TransitionEffects* effect); + Ark_TransitionEffect (*ctor)(const Ark_String* type, + const Ark_TransitionEffects* effect); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*translate)(const Ark_TranslateOptions* options); - Ark_NativePointer (*rotate)(const Ark_RotateOptions* options); - Ark_NativePointer (*scale)(const Ark_ScaleOptions* options); - Ark_NativePointer (*opacity)(const Ark_Number* alpha); - Ark_NativePointer (*move)(Ark_TransitionEdge edge); - Ark_NativePointer (*asymmetric)(const Ark_TransitionEffect* appear, - const Ark_TransitionEffect* disappear); - Ark_NativePointer (*animation)(TransitionEffectPeer* peer, - const Ark_AnimateParam* value); - Ark_NativePointer (*combine)(TransitionEffectPeer* peer, - const Ark_TransitionEffect* transitionEffect); + Ark_TransitionEffect (*translate)(const Ark_TranslateOptions* options); + Ark_TransitionEffect (*rotate)(const Ark_RotateOptions* options); + Ark_TransitionEffect (*scale)(const Ark_ScaleOptions* options); + Ark_TransitionEffect (*opacity)(const Ark_Number* alpha); + Ark_TransitionEffect (*move)(Ark_TransitionEdge edge); + Ark_TransitionEffect (*asymmetric)(Ark_TransitionEffect appear, + Ark_TransitionEffect disappear); + Ark_TransitionEffect (*animation)(TransitionEffectPeer* peer, + const Ark_AnimateParam* value); + Ark_TransitionEffect (*combine)(TransitionEffectPeer* peer, + Ark_TransitionEffect transitionEffect); } GENERATED_ArkUITransitionEffectAccessor; -typedef struct BaseEventPeer BaseEventPeer; typedef struct GENERATED_ArkUIBaseEventAccessor { void (*destroyPeer)(BaseEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_BaseEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*getModifierKeyState)(BaseEventPeer* peer, const Array_String* keys); @@ -19131,10 +19479,9 @@ typedef struct GENERATED_ArkUIBaseEventAccessor { const Ark_Number* deviceId); } GENERATED_ArkUIBaseEventAccessor; -typedef struct ClickEventPeer ClickEventPeer; typedef struct GENERATED_ArkUIClickEventAccessor { void (*destroyPeer)(ClickEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ClickEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getDisplayX)(ClickEventPeer* peer); void (*setDisplayX)(ClickEventPeer* peer, @@ -19160,23 +19507,23 @@ typedef struct GENERATED_ArkUIClickEventAccessor { Ark_Int32 (*getY)(ClickEventPeer* peer); void (*setY)(ClickEventPeer* peer, const Ark_Number* y); + Callback_Void (*getPreventDefault)(ClickEventPeer* peer); void (*setPreventDefault)(ClickEventPeer* peer, const Callback_Void* preventDefault); } GENERATED_ArkUIClickEventAccessor; -typedef struct HoverEventPeer HoverEventPeer; typedef struct GENERATED_ArkUIHoverEventAccessor { void (*destroyPeer)(HoverEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_HoverEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); + Callback_Void (*getStopPropagation)(HoverEventPeer* peer); void (*setStopPropagation)(HoverEventPeer* peer, const Callback_Void* stopPropagation); } GENERATED_ArkUIHoverEventAccessor; -typedef struct MouseEventPeer MouseEventPeer; typedef struct GENERATED_ArkUIMouseEventAccessor { void (*destroyPeer)(MouseEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_MouseEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getButton)(MouseEventPeer* peer); void (*setButton)(MouseEventPeer* peer, @@ -19208,14 +19555,14 @@ typedef struct GENERATED_ArkUIMouseEventAccessor { Ark_Int32 (*getY)(MouseEventPeer* peer); void (*setY)(MouseEventPeer* peer, const Ark_Number* y); + Callback_Void (*getStopPropagation)(MouseEventPeer* peer); void (*setStopPropagation)(MouseEventPeer* peer, const Callback_Void* stopPropagation); } GENERATED_ArkUIMouseEventAccessor; -typedef struct AccessibilityHoverEventPeer AccessibilityHoverEventPeer; typedef struct GENERATED_ArkUIAccessibilityHoverEventAccessor { void (*destroyPeer)(AccessibilityHoverEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_AccessibilityHoverEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getType)(AccessibilityHoverEventPeer* peer); void (*setType)(AccessibilityHoverEventPeer* peer, @@ -19240,10 +19587,9 @@ typedef struct GENERATED_ArkUIAccessibilityHoverEventAccessor { const Ark_Number* windowY); } GENERATED_ArkUIAccessibilityHoverEventAccessor; -typedef struct TouchEventPeer TouchEventPeer; typedef struct GENERATED_ArkUITouchEventAccessor { void (*destroyPeer)(TouchEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TouchEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getHistoricalPoints)(TouchEventPeer* peer); Ark_NativePointer (*getType)(TouchEventPeer* peer); @@ -19253,24 +19599,24 @@ typedef struct GENERATED_ArkUITouchEventAccessor { const Array_TouchObject* touches); void (*setChangedTouches)(TouchEventPeer* peer, const Array_TouchObject* changedTouches); + Callback_Void (*getStopPropagation)(TouchEventPeer* peer); void (*setStopPropagation)(TouchEventPeer* peer, const Callback_Void* stopPropagation); + Callback_Void (*getPreventDefault)(TouchEventPeer* peer); void (*setPreventDefault)(TouchEventPeer* peer, const Callback_Void* preventDefault); } GENERATED_ArkUITouchEventAccessor; -typedef struct PixelMapMockPeer PixelMapMockPeer; typedef struct GENERATED_ArkUIPixelMapMockAccessor { void (*destroyPeer)(PixelMapMockPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PixelMapMock (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*release)(PixelMapMockPeer* peer); } GENERATED_ArkUIPixelMapMockAccessor; -typedef struct DragEventPeer DragEventPeer; typedef struct GENERATED_ArkUIDragEventAccessor { void (*destroyPeer)(DragEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_DragEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getDisplayX)(DragEventPeer* peer); Ark_Int32 (*getDisplayY)(DragEventPeer* peer); @@ -19279,8 +19625,8 @@ typedef struct GENERATED_ArkUIDragEventAccessor { Ark_Int32 (*getX)(DragEventPeer* peer); Ark_Int32 (*getY)(DragEventPeer* peer); void (*setData)(DragEventPeer* peer, - const Ark_UnifiedData* unifiedData); - Ark_NativePointer (*getData)(DragEventPeer* peer); + Ark_UnifiedData unifiedData); + Ark_UnifiedData (*getData)(DragEventPeer* peer); Ark_NativePointer (*getSummary)(DragEventPeer* peer); void (*setResult)(DragEventPeer* peer, Ark_DragResult dragResult); @@ -19299,10 +19645,9 @@ typedef struct GENERATED_ArkUIDragEventAccessor { Ark_Boolean useCustomDropAnimation); } GENERATED_ArkUIDragEventAccessor; -typedef struct KeyEventPeer KeyEventPeer; typedef struct GENERATED_ArkUIKeyEventAccessor { void (*destroyPeer)(KeyEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_KeyEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*getModifierKeyState)(KeyEventPeer* peer, const Array_String* keys); @@ -19327,6 +19672,7 @@ typedef struct GENERATED_ArkUIKeyEventAccessor { Ark_Int32 (*getTimestamp)(KeyEventPeer* peer); void (*setTimestamp)(KeyEventPeer* peer, const Ark_Number* timestamp); + Callback_Void (*getStopPropagation)(KeyEventPeer* peer); void (*setStopPropagation)(KeyEventPeer* peer, const Callback_Void* stopPropagation); void (*setIntentionCode)(KeyEventPeer* peer, @@ -19336,12 +19682,11 @@ typedef struct GENERATED_ArkUIKeyEventAccessor { const Ark_Number* unicode); } GENERATED_ArkUIKeyEventAccessor; -typedef struct ProgressMaskPeer ProgressMaskPeer; typedef struct GENERATED_ArkUIProgressMaskAccessor { void (*destroyPeer)(ProgressMaskPeer* peer); - Ark_NativePointer (*ctor)(const Ark_Number* value, - const Ark_Number* total, - const Ark_ResourceColor* color); + Ark_ProgressMask (*ctor)(const Ark_Number* value, + const Ark_Number* total, + const Ark_ResourceColor* color); Ark_NativePointer (*getFinalizer)(); void (*updateProgress)(ProgressMaskPeer* peer, const Ark_Number* value); @@ -19351,10 +19696,9 @@ typedef struct GENERATED_ArkUIProgressMaskAccessor { Ark_Boolean value); } GENERATED_ArkUIProgressMaskAccessor; -typedef struct MeasurablePeer MeasurablePeer; typedef struct GENERATED_ArkUIMeasurableAccessor { void (*destroyPeer)(MeasurablePeer* peer); - Ark_NativePointer (*ctor)(); + Ark_Measurable (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*measure)(MeasurablePeer* peer, const Ark_ConstraintSizeOptions* constraint); @@ -19363,38 +19707,34 @@ typedef struct GENERATED_ArkUIMeasurableAccessor { Ark_NativePointer (*getBorderWidth)(MeasurablePeer* peer); } GENERATED_ArkUIMeasurableAccessor; -typedef struct ViewPeer ViewPeer; typedef struct GENERATED_ArkUIViewAccessor { void (*destroyPeer)(ViewPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_View (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*create)(ViewPeer* peer, const Ark_CustomObject* value); } GENERATED_ArkUIViewAccessor; -typedef struct TextContentControllerBasePeer TextContentControllerBasePeer; typedef struct GENERATED_ArkUITextContentControllerBaseAccessor { void (*destroyPeer)(TextContentControllerBasePeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextContentControllerBase (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getCaretOffset)(TextContentControllerBasePeer* peer); Ark_NativePointer (*getTextContentRect)(TextContentControllerBasePeer* peer); Ark_Int32 (*getTextContentLineCount)(TextContentControllerBasePeer* peer); } GENERATED_ArkUITextContentControllerBaseAccessor; -typedef struct DynamicNodePeer DynamicNodePeer; typedef struct GENERATED_ArkUIDynamicNodeAccessor { void (*destroyPeer)(DynamicNodePeer* peer); - Ark_NativePointer (*ctor)(); + Ark_DynamicNode (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*onMove)(DynamicNodePeer* peer, const Opt_OnMoveHandler* handler); } GENERATED_ArkUIDynamicNodeAccessor; -typedef struct ChildrenMainSizePeer ChildrenMainSizePeer; typedef struct GENERATED_ArkUIChildrenMainSizeAccessor { void (*destroyPeer)(ChildrenMainSizePeer* peer); - Ark_NativePointer (*ctor)(const Ark_Number* childDefaultSize); + Ark_ChildrenMainSize (*ctor)(const Ark_Number* childDefaultSize); Ark_NativePointer (*getFinalizer)(); void (*splice)(ChildrenMainSizePeer* peer, const Ark_Number* start, @@ -19408,10 +19748,9 @@ typedef struct GENERATED_ArkUIChildrenMainSizeAccessor { const Ark_Number* childDefaultSize); } GENERATED_ArkUIChildrenMainSizeAccessor; -typedef struct UICommonEventPeer UICommonEventPeer; typedef struct GENERATED_ArkUIUICommonEventAccessor { void (*destroyPeer)(UICommonEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_UICommonEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setOnClick)(UICommonEventPeer* peer, const Opt_Callback_ClickEvent_Void* callback_); @@ -19438,20 +19777,16 @@ typedef struct GENERATED_ArkUIUICommonEventAccessor { const Opt_VisibleAreaChangeCallback* event); } GENERATED_ArkUIUICommonEventAccessor; -typedef struct GestureModifierPeer GestureModifierPeer; typedef struct GENERATED_ArkUIGestureModifierAccessor { void (*destroyPeer)(GestureModifierPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_GestureModifier (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*applyGesture)(GestureModifierPeer* peer, const Ark_UIGestureEvent* event); } GENERATED_ArkUIGestureModifierAccessor; -typedef struct GlobalScope_commonPeer GlobalScope_commonPeer; typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { void (*destroyPeer)(GlobalScope_commonPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getContext)(const Opt_CustomObject* component); void (*postCardAction)(const Ark_CustomObject* component, const Ark_CustomObject* action); @@ -19473,61 +19808,60 @@ typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { void (*restoreDefault)(); } GENERATED_ArkUIGlobalScope_commonAccessor; -typedef struct ContextMenuPeer ContextMenuPeer; typedef struct GENERATED_ArkUIContextMenuAccessor { void (*destroyPeer)(ContextMenuPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ContextMenu (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*close)(); } GENERATED_ArkUIContextMenuAccessor; -typedef struct CustomDialogControllerPeer CustomDialogControllerPeer; typedef struct GENERATED_ArkUICustomDialogControllerAccessor { void (*destroyPeer)(CustomDialogControllerPeer* peer); - Ark_NativePointer (*ctor)(const Ark_CustomDialogControllerOptions* value); + Ark_CustomDialogController (*ctor)(const Ark_CustomDialogControllerOptions* value); Ark_NativePointer (*getFinalizer)(); void (*open)(CustomDialogControllerPeer* peer); void (*close)(CustomDialogControllerPeer* peer); } GENERATED_ArkUICustomDialogControllerAccessor; -typedef struct DatePickerDialogPeer DatePickerDialogPeer; +typedef struct GENERATED_ArkUILinearGradientAccessor { + void (*destroyPeer)(LinearGradientPeer* peer); + Ark_LinearGradient (*ctor)(const Array_ColorStop* colorStops); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUILinearGradientAccessor; + typedef struct GENERATED_ArkUIDatePickerDialogAccessor { void (*destroyPeer)(DatePickerDialogPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_DatePickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_DatePickerDialogOptions* options); } GENERATED_ArkUIDatePickerDialogAccessor; -typedef struct BaseGestureEventPeer BaseGestureEventPeer; typedef struct GENERATED_ArkUIBaseGestureEventAccessor { void (*destroyPeer)(BaseGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_BaseGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setFingerList)(BaseGestureEventPeer* peer, const Array_FingerInfo* fingerList); } GENERATED_ArkUIBaseGestureEventAccessor; -typedef struct TapGestureEventPeer TapGestureEventPeer; typedef struct GENERATED_ArkUITapGestureEventAccessor { void (*destroyPeer)(TapGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TapGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUITapGestureEventAccessor; -typedef struct LongPressGestureEventPeer LongPressGestureEventPeer; typedef struct GENERATED_ArkUILongPressGestureEventAccessor { void (*destroyPeer)(LongPressGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_LongPressGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*getRepeat)(LongPressGestureEventPeer* peer); void (*setRepeat)(LongPressGestureEventPeer* peer, Ark_Boolean repeat); } GENERATED_ArkUILongPressGestureEventAccessor; -typedef struct PanGestureEventPeer PanGestureEventPeer; typedef struct GENERATED_ArkUIPanGestureEventAccessor { void (*destroyPeer)(PanGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PanGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getOffsetX)(PanGestureEventPeer* peer); void (*setOffsetX)(PanGestureEventPeer* peer, @@ -19546,10 +19880,9 @@ typedef struct GENERATED_ArkUIPanGestureEventAccessor { const Ark_Number* velocity); } GENERATED_ArkUIPanGestureEventAccessor; -typedef struct PinchGestureEventPeer PinchGestureEventPeer; typedef struct GENERATED_ArkUIPinchGestureEventAccessor { void (*destroyPeer)(PinchGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PinchGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getScale)(PinchGestureEventPeer* peer); void (*setScale)(PinchGestureEventPeer* peer, @@ -19562,20 +19895,18 @@ typedef struct GENERATED_ArkUIPinchGestureEventAccessor { const Ark_Number* pinchCenterY); } GENERATED_ArkUIPinchGestureEventAccessor; -typedef struct RotationGestureEventPeer RotationGestureEventPeer; typedef struct GENERATED_ArkUIRotationGestureEventAccessor { void (*destroyPeer)(RotationGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_RotationGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getAngle)(RotationGestureEventPeer* peer); void (*setAngle)(RotationGestureEventPeer* peer, const Ark_Number* angle); } GENERATED_ArkUIRotationGestureEventAccessor; -typedef struct SwipeGestureEventPeer SwipeGestureEventPeer; typedef struct GENERATED_ArkUISwipeGestureEventAccessor { void (*destroyPeer)(SwipeGestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_SwipeGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getAngle)(SwipeGestureEventPeer* peer); void (*setAngle)(SwipeGestureEventPeer* peer, @@ -19585,10 +19916,9 @@ typedef struct GENERATED_ArkUISwipeGestureEventAccessor { const Ark_Number* speed); } GENERATED_ArkUISwipeGestureEventAccessor; -typedef struct GestureEventPeer GestureEventPeer; typedef struct GENERATED_ArkUIGestureEventAccessor { void (*destroyPeer)(GestureEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_GestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*getRepeat)(GestureEventPeer* peer); void (*setRepeat)(GestureEventPeer* peer, @@ -19627,10 +19957,9 @@ typedef struct GENERATED_ArkUIGestureEventAccessor { const Ark_Number* velocity); } GENERATED_ArkUIGestureEventAccessor; -typedef struct PanGestureOptionsPeer PanGestureOptionsPeer; typedef struct GENERATED_ArkUIPanGestureOptionsAccessor { void (*destroyPeer)(PanGestureOptionsPeer* peer); - Ark_NativePointer (*ctor)(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value); + Ark_PanGestureOptions (*ctor)(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value); Ark_NativePointer (*getFinalizer)(); void (*setDirection)(PanGestureOptionsPeer* peer, Ark_PanDirection value); @@ -19641,27 +19970,24 @@ typedef struct GENERATED_ArkUIPanGestureOptionsAccessor { Ark_NativePointer (*getDirection)(PanGestureOptionsPeer* peer); } GENERATED_ArkUIPanGestureOptionsAccessor; -typedef struct ScrollableTargetInfoPeer ScrollableTargetInfoPeer; typedef struct GENERATED_ArkUIScrollableTargetInfoAccessor { void (*destroyPeer)(ScrollableTargetInfoPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ScrollableTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*isBegin)(ScrollableTargetInfoPeer* peer); Ark_Boolean (*isEnd)(ScrollableTargetInfoPeer* peer); } GENERATED_ArkUIScrollableTargetInfoAccessor; -typedef struct EventTargetInfoPeer EventTargetInfoPeer; typedef struct GENERATED_ArkUIEventTargetInfoAccessor { void (*destroyPeer)(EventTargetInfoPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_EventTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getId)(EventTargetInfoPeer* peer); } GENERATED_ArkUIEventTargetInfoAccessor; -typedef struct GestureRecognizerPeer GestureRecognizerPeer; typedef struct GENERATED_ArkUIGestureRecognizerAccessor { void (*destroyPeer)(GestureRecognizerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_GestureRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getTag)(GestureRecognizerPeer* peer); Ark_NativePointer (*getType)(GestureRecognizerPeer* peer); @@ -19670,30 +19996,27 @@ typedef struct GENERATED_ArkUIGestureRecognizerAccessor { Ark_Boolean isEnabled); Ark_Boolean (*isEnabled)(GestureRecognizerPeer* peer); Ark_NativePointer (*getState)(GestureRecognizerPeer* peer); - Ark_NativePointer (*getEventTargetInfo)(GestureRecognizerPeer* peer); + Ark_EventTargetInfo (*getEventTargetInfo)(GestureRecognizerPeer* peer); Ark_Boolean (*isValid)(GestureRecognizerPeer* peer); } GENERATED_ArkUIGestureRecognizerAccessor; -typedef struct PanRecognizerPeer PanRecognizerPeer; typedef struct GENERATED_ArkUIPanRecognizerAccessor { void (*destroyPeer)(PanRecognizerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PanRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getPanGestureOptions)(PanRecognizerPeer* peer); + Ark_PanGestureOptions (*getPanGestureOptions)(PanRecognizerPeer* peer); } GENERATED_ArkUIPanRecognizerAccessor; -typedef struct ImageAnalyzerControllerPeer ImageAnalyzerControllerPeer; typedef struct GENERATED_ArkUIImageAnalyzerControllerAccessor { void (*destroyPeer)(ImageAnalyzerControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ImageAnalyzerController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getImageAnalyzerSupportTypes)(ImageAnalyzerControllerPeer* peer); } GENERATED_ArkUIImageAnalyzerControllerAccessor; -typedef struct ListScrollerPeer ListScrollerPeer; typedef struct GENERATED_ArkUIListScrollerAccessor { void (*destroyPeer)(ListScrollerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ListScroller (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getItemRectInGroup)(ListScrollerPeer* peer, const Ark_Number* index, @@ -19710,28 +20033,27 @@ typedef struct GENERATED_ArkUIListScrollerAccessor { const Ark_Number* y); } GENERATED_ArkUIListScrollerAccessor; -typedef struct Matrix2DPeer Matrix2DPeer; typedef struct GENERATED_ArkUIMatrix2DAccessor { void (*destroyPeer)(Matrix2DPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_Matrix2D (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*identity)(Matrix2DPeer* peer); - Ark_NativePointer (*invert)(Matrix2DPeer* peer); - Ark_NativePointer (*multiply)(Matrix2DPeer* peer, - const Opt_Matrix2D* other); - Ark_NativePointer (*rotate0)(Matrix2DPeer* peer, - const Opt_Number* rx, - const Opt_Number* ry); - Ark_NativePointer (*rotate1)(Matrix2DPeer* peer, - const Ark_Number* degree, - const Opt_Number* rx, - const Opt_Number* ry); - Ark_NativePointer (*translate)(Matrix2DPeer* peer, - const Opt_Number* tx, - const Opt_Number* ty); - Ark_NativePointer (*scale)(Matrix2DPeer* peer, - const Opt_Number* sx, - const Opt_Number* sy); + Ark_Matrix2D (*identity)(Matrix2DPeer* peer); + Ark_Matrix2D (*invert)(Matrix2DPeer* peer); + Ark_Matrix2D (*multiply)(Matrix2DPeer* peer, + const Opt_Matrix2D* other); + Ark_Matrix2D (*rotate0)(Matrix2DPeer* peer, + const Opt_Number* rx, + const Opt_Number* ry); + Ark_Matrix2D (*rotate1)(Matrix2DPeer* peer, + const Ark_Number* degree, + const Opt_Number* rx, + const Opt_Number* ry); + Ark_Matrix2D (*translate)(Matrix2DPeer* peer, + const Opt_Number* tx, + const Opt_Number* ty); + Ark_Matrix2D (*scale)(Matrix2DPeer* peer, + const Opt_Number* sx, + const Opt_Number* sy); Ark_Int32 (*getScaleX)(Matrix2DPeer* peer); void (*setScaleX)(Matrix2DPeer* peer, const Ark_Number* scaleX); @@ -19752,38 +20074,56 @@ typedef struct GENERATED_ArkUIMatrix2DAccessor { const Ark_Number* translateY); } GENERATED_ArkUIMatrix2DAccessor; -typedef struct NavDestinationContextPeer NavDestinationContextPeer; typedef struct GENERATED_ArkUINavDestinationContextAccessor { void (*destroyPeer)(NavDestinationContextPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_NavDestinationContext (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getConfigInRouteMap)(NavDestinationContextPeer* peer); void (*setPathInfo)(NavDestinationContextPeer* peer, - const Ark_NavPathInfo* pathInfo); + Ark_NavPathInfo pathInfo); void (*setPathStack)(NavDestinationContextPeer* peer, - const Ark_NavPathStack* pathStack); + Ark_NavPathStack pathStack); void (*getNavDestinationId)(NavDestinationContextPeer* peer); void (*setNavDestinationId)(NavDestinationContextPeer* peer, const Ark_String* navDestinationId); } GENERATED_ArkUINavDestinationContextAccessor; -typedef struct NavPathStackPeer NavPathStackPeer; +typedef struct GENERATED_ArkUINavPathInfoAccessor { + void (*destroyPeer)(NavPathInfoPeer* 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, + const Ark_String* name); + void (*setParam)(NavPathInfoPeer* peer, + const Ark_CustomObject* param); + Callback_PopInfo_Void (*getOnPop)(NavPathInfoPeer* peer); + void (*setOnPop)(NavPathInfoPeer* peer, + const Callback_PopInfo_Void* onPop); + Ark_Boolean (*getIsEntry)(NavPathInfoPeer* peer); + void (*setIsEntry)(NavPathInfoPeer* peer, + Ark_Boolean isEntry); +} GENERATED_ArkUINavPathInfoAccessor; + typedef struct GENERATED_ArkUINavPathStackAccessor { void (*destroyPeer)(NavPathStackPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_NavPathStack (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*pushPath0)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated); void (*pushPath1)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options); void (*pushDestination0)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); void (*pushDestination1)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); void (*pushPathByName0)(NavPathStackPeer* peer, @@ -19807,13 +20147,13 @@ typedef struct GENERATED_ArkUINavPathStackAccessor { const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); void (*replacePath0)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated); void (*replacePath1)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options); void (*replaceDestination)(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); void (*replacePathByName)(NavPathStackPeer* peer, @@ -19826,11 +20166,11 @@ typedef struct GENERATED_ArkUINavPathStackAccessor { const Ark_String* name); Ark_Boolean (*removeByNavDestinationId)(NavPathStackPeer* peer, const Ark_String* navDestinationId); - Ark_NativePointer (*pop0)(NavPathStackPeer* peer, - const Opt_Boolean* animated); - Ark_NativePointer (*pop1)(NavPathStackPeer* peer, - const Ark_CustomObject* result, - const Opt_Boolean* animated); + Ark_NavPathInfo (*pop0)(NavPathStackPeer* peer, + const Opt_Boolean* animated); + Ark_NavPathInfo (*pop1)(NavPathStackPeer* peer, + const Ark_CustomObject* result, + const Opt_Boolean* animated); Ark_Int32 (*popToName0)(NavPathStackPeer* peer, const Ark_String* name, const Opt_Boolean* animated); @@ -19860,7 +20200,7 @@ typedef struct GENERATED_ArkUINavPathStackAccessor { const Ark_String* name); void (*getIndexByName)(NavPathStackPeer* peer, const Ark_String* name); - Ark_NativePointer (*getParent)(NavPathStackPeer* peer); + Ark_NavPathStack (*getParent)(NavPathStackPeer* peer); Ark_Int32 (*size)(NavPathStackPeer* peer); void (*disableAnimation)(NavPathStackPeer* peer, Ark_Boolean value); @@ -19868,10 +20208,9 @@ typedef struct GENERATED_ArkUINavPathStackAccessor { const Ark_NavigationInterception* interception); } GENERATED_ArkUINavPathStackAccessor; -typedef struct NavigationTransitionProxyPeer NavigationTransitionProxyPeer; typedef struct GENERATED_ArkUINavigationTransitionProxyAccessor { void (*destroyPeer)(NavigationTransitionProxyPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_NavigationTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*finishTransition)(NavigationTransitionProxyPeer* peer); void (*cancelTransition)(NavigationTransitionProxyPeer* peer); @@ -19886,20 +20225,18 @@ typedef struct GENERATED_ArkUINavigationTransitionProxyAccessor { Ark_Boolean isInteractive); } GENERATED_ArkUINavigationTransitionProxyAccessor; -typedef struct PatternLockControllerPeer PatternLockControllerPeer; typedef struct GENERATED_ArkUIPatternLockControllerAccessor { void (*destroyPeer)(PatternLockControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PatternLockController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*reset)(PatternLockControllerPeer* peer); void (*setChallengeResult)(PatternLockControllerPeer* peer, Ark_PatternLockChallengeResult result); } GENERATED_ArkUIPatternLockControllerAccessor; -typedef struct RichEditorBaseControllerPeer RichEditorBaseControllerPeer; typedef struct GENERATED_ArkUIRichEditorBaseControllerAccessor { void (*destroyPeer)(RichEditorBaseControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_RichEditorBaseController (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getCaretOffset)(RichEditorBaseControllerPeer* peer); Ark_Boolean (*setCaretOffset)(RichEditorBaseControllerPeer* peer, @@ -19914,14 +20251,13 @@ typedef struct GENERATED_ArkUIRichEditorBaseControllerAccessor { const Opt_SelectionOptions* options); Ark_Boolean (*isEditing)(RichEditorBaseControllerPeer* peer); void (*stopEditing)(RichEditorBaseControllerPeer* peer); - Ark_NativePointer (*getLayoutManager)(RichEditorBaseControllerPeer* peer); + Ark_LayoutManager (*getLayoutManager)(RichEditorBaseControllerPeer* peer); Ark_NativePointer (*getPreviewText)(RichEditorBaseControllerPeer* peer); } GENERATED_ArkUIRichEditorBaseControllerAccessor; -typedef struct RichEditorControllerPeer RichEditorControllerPeer; typedef struct GENERATED_ArkUIRichEditorControllerAccessor { void (*destroyPeer)(RichEditorControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_RichEditorController (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*addTextSpan)(RichEditorControllerPeer* peer, const Ark_String* value, @@ -19947,28 +20283,26 @@ typedef struct GENERATED_ArkUIRichEditorControllerAccessor { const Opt_RichEditorRange* value); Ark_NativePointer (*getSelection)(RichEditorControllerPeer* peer); void (*fromStyledString)(RichEditorControllerPeer* peer, - const Ark_StyledString* value); - Ark_NativePointer (*toStyledString)(RichEditorControllerPeer* peer, - const Ark_RichEditorRange* value); + Ark_StyledString value); + Ark_StyledString (*toStyledString)(RichEditorControllerPeer* peer, + const Ark_RichEditorRange* value); } GENERATED_ArkUIRichEditorControllerAccessor; -typedef struct RichEditorStyledStringControllerPeer RichEditorStyledStringControllerPeer; typedef struct GENERATED_ArkUIRichEditorStyledStringControllerAccessor { void (*destroyPeer)(RichEditorStyledStringControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_RichEditorStyledStringController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setStyledString)(RichEditorStyledStringControllerPeer* peer, - const Ark_StyledString* styledString); - Ark_NativePointer (*getStyledString)(RichEditorStyledStringControllerPeer* peer); + Ark_StyledString styledString); + Ark_MutableStyledString (*getStyledString)(RichEditorStyledStringControllerPeer* peer); Ark_NativePointer (*getSelection)(RichEditorStyledStringControllerPeer* peer); void (*onContentChanged)(RichEditorStyledStringControllerPeer* peer, const Ark_StyledStringChangedListener* listener); } GENERATED_ArkUIRichEditorStyledStringControllerAccessor; -typedef struct ScrollerPeer ScrollerPeer; typedef struct GENERATED_ArkUIScrollerAccessor { void (*destroyPeer)(ScrollerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_Scroller (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*scrollTo)(ScrollerPeer* peer, const Ark_ScrollOptions* options); @@ -19998,10 +20332,9 @@ typedef struct GENERATED_ArkUIScrollerAccessor { const Ark_Number* y); } GENERATED_ArkUIScrollerAccessor; -typedef struct SearchControllerPeer SearchControllerPeer; typedef struct GENERATED_ArkUISearchControllerAccessor { void (*destroyPeer)(SearchControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_SearchController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*caretPosition)(SearchControllerPeer* peer, const Ark_Number* value); @@ -20012,10 +20345,9 @@ typedef struct GENERATED_ArkUISearchControllerAccessor { const Opt_SelectionOptions* options); } GENERATED_ArkUISearchControllerAccessor; -typedef struct SwiperControllerPeer SwiperControllerPeer; typedef struct GENERATED_ArkUISwiperControllerAccessor { void (*destroyPeer)(SwiperControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_SwiperController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*showNext)(SwiperControllerPeer* peer); void (*showPrevious)(SwiperControllerPeer* peer); @@ -20026,10 +20358,9 @@ typedef struct GENERATED_ArkUISwiperControllerAccessor { const Opt_VoidCallback* callback_); } GENERATED_ArkUISwiperControllerAccessor; -typedef struct SwiperContentTransitionProxyPeer SwiperContentTransitionProxyPeer; typedef struct GENERATED_ArkUISwiperContentTransitionProxyAccessor { void (*destroyPeer)(SwiperContentTransitionProxyPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_SwiperContentTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*finishTransition)(SwiperContentTransitionProxyPeer* peer); Ark_Int32 (*getSelectedIndex)(SwiperContentTransitionProxyPeer* peer); @@ -20046,10 +20377,9 @@ typedef struct GENERATED_ArkUISwiperContentTransitionProxyAccessor { const Ark_Number* mainAxisLength); } GENERATED_ArkUISwiperContentTransitionProxyAccessor; -typedef struct IndicatorComponentControllerPeer IndicatorComponentControllerPeer; typedef struct GENERATED_ArkUIIndicatorComponentControllerAccessor { void (*destroyPeer)(IndicatorComponentControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_IndicatorComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*showNext)(IndicatorComponentControllerPeer* peer); void (*showPrevious)(IndicatorComponentControllerPeer* peer); @@ -20058,10 +20388,71 @@ typedef struct GENERATED_ArkUIIndicatorComponentControllerAccessor { const Opt_Boolean* useAnimation); } GENERATED_ArkUIIndicatorComponentControllerAccessor; -typedef struct TabsControllerPeer TabsControllerPeer; +typedef struct GENERATED_ArkUIScaleSymbolEffectAccessor { + void (*destroyPeer)(ScaleSymbolEffectPeer* 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 scope); + Ark_NativePointer (*getDirection)(ScaleSymbolEffectPeer* peer); + void (*setDirection)(ScaleSymbolEffectPeer* peer, + Ark_EffectDirection direction); +} GENERATED_ArkUIScaleSymbolEffectAccessor; + +typedef struct GENERATED_ArkUIHierarchicalSymbolEffectAccessor { + void (*destroyPeer)(HierarchicalSymbolEffectPeer* peer); + Ark_HierarchicalSymbolEffect (*ctor)(const Opt_EffectFillStyle* fillStyle); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*getFillStyle)(HierarchicalSymbolEffectPeer* peer); + void (*setFillStyle)(HierarchicalSymbolEffectPeer* peer, + Ark_EffectFillStyle fillStyle); +} GENERATED_ArkUIHierarchicalSymbolEffectAccessor; + +typedef struct GENERATED_ArkUIAppearSymbolEffectAccessor { + void (*destroyPeer)(AppearSymbolEffectPeer* peer); + Ark_AppearSymbolEffect (*ctor)(const Opt_EffectScope* scope); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*getScope)(AppearSymbolEffectPeer* peer); + void (*setScope)(AppearSymbolEffectPeer* peer, + Ark_EffectScope scope); +} GENERATED_ArkUIAppearSymbolEffectAccessor; + +typedef struct GENERATED_ArkUIDisappearSymbolEffectAccessor { + void (*destroyPeer)(DisappearSymbolEffectPeer* peer); + Ark_DisappearSymbolEffect (*ctor)(const Opt_EffectScope* scope); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*getScope)(DisappearSymbolEffectPeer* peer); + void (*setScope)(DisappearSymbolEffectPeer* peer, + Ark_EffectScope scope); +} GENERATED_ArkUIDisappearSymbolEffectAccessor; + +typedef struct GENERATED_ArkUIBounceSymbolEffectAccessor { + void (*destroyPeer)(BounceSymbolEffectPeer* 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 scope); + Ark_NativePointer (*getDirection)(BounceSymbolEffectPeer* peer); + void (*setDirection)(BounceSymbolEffectPeer* peer, + Ark_EffectDirection direction); +} GENERATED_ArkUIBounceSymbolEffectAccessor; + +typedef struct GENERATED_ArkUIReplaceSymbolEffectAccessor { + void (*destroyPeer)(ReplaceSymbolEffectPeer* peer); + Ark_ReplaceSymbolEffect (*ctor)(const Opt_EffectScope* scope); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*getScope)(ReplaceSymbolEffectPeer* peer); + void (*setScope)(ReplaceSymbolEffectPeer* peer, + Ark_EffectScope scope); +} GENERATED_ArkUIReplaceSymbolEffectAccessor; + typedef struct GENERATED_ArkUITabsControllerAccessor { void (*destroyPeer)(TabsControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TabsController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*changeIndex)(TabsControllerPeer* peer, const Ark_Number* value); @@ -20074,10 +20465,9 @@ typedef struct GENERATED_ArkUITabsControllerAccessor { const Ark_Number* opacity); } GENERATED_ArkUITabsControllerAccessor; -typedef struct TabContentTransitionProxyPeer TabContentTransitionProxyPeer; typedef struct GENERATED_ArkUITabContentTransitionProxyAccessor { void (*destroyPeer)(TabContentTransitionProxyPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TabContentTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*finishTransition)(TabContentTransitionProxyPeer* peer); Ark_Int32 (*getFrom)(TabContentTransitionProxyPeer* peer); @@ -20088,21 +20478,19 @@ typedef struct GENERATED_ArkUITabContentTransitionProxyAccessor { const Ark_Number* to); } GENERATED_ArkUITabContentTransitionProxyAccessor; -typedef struct TextControllerPeer TextControllerPeer; typedef struct GENERATED_ArkUITextControllerAccessor { void (*destroyPeer)(TextControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*closeSelectionMenu)(TextControllerPeer* peer); void (*setStyledString)(TextControllerPeer* peer, - const Ark_StyledString* value); - Ark_NativePointer (*getLayoutManager)(TextControllerPeer* peer); + Ark_StyledString value); + Ark_LayoutManager (*getLayoutManager)(TextControllerPeer* peer); } GENERATED_ArkUITextControllerAccessor; -typedef struct TextAreaControllerPeer TextAreaControllerPeer; typedef struct GENERATED_ArkUITextAreaControllerAccessor { void (*destroyPeer)(TextAreaControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextAreaController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*caretPosition)(TextAreaControllerPeer* peer, const Ark_Number* value); @@ -20113,32 +20501,29 @@ typedef struct GENERATED_ArkUITextAreaControllerAccessor { void (*stopEditing)(TextAreaControllerPeer* peer); } GENERATED_ArkUITextAreaControllerAccessor; -typedef struct TextClockControllerPeer TextClockControllerPeer; typedef struct GENERATED_ArkUITextClockControllerAccessor { void (*destroyPeer)(TextClockControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextClockController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*start)(TextClockControllerPeer* peer); void (*stop)(TextClockControllerPeer* peer); } GENERATED_ArkUITextClockControllerAccessor; -typedef struct TextBaseControllerPeer TextBaseControllerPeer; typedef struct GENERATED_ArkUITextBaseControllerAccessor { void (*destroyPeer)(TextBaseControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextBaseController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setSelection)(TextBaseControllerPeer* peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); void (*closeSelectionMenu)(TextBaseControllerPeer* peer); - Ark_NativePointer (*getLayoutManager)(TextBaseControllerPeer* peer); + Ark_LayoutManager (*getLayoutManager)(TextBaseControllerPeer* peer); } GENERATED_ArkUITextBaseControllerAccessor; -typedef struct TextEditControllerExPeer TextEditControllerExPeer; typedef struct GENERATED_ArkUITextEditControllerExAccessor { void (*destroyPeer)(TextEditControllerExPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextEditControllerEx (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*isEditing)(TextEditControllerExPeer* peer); void (*stopEditing)(TextEditControllerExPeer* peer); @@ -20148,20 +20533,18 @@ typedef struct GENERATED_ArkUITextEditControllerExAccessor { Ark_NativePointer (*getPreviewText)(TextEditControllerExPeer* peer); } GENERATED_ArkUITextEditControllerExAccessor; -typedef struct StyledStringControllerPeer StyledStringControllerPeer; typedef struct GENERATED_ArkUIStyledStringControllerAccessor { void (*destroyPeer)(StyledStringControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_StyledStringController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setStyledString)(StyledStringControllerPeer* peer, - const Ark_StyledString* styledString); - Ark_NativePointer (*getStyledString)(StyledStringControllerPeer* peer); + Ark_StyledString styledString); + Ark_MutableStyledString (*getStyledString)(StyledStringControllerPeer* peer); } GENERATED_ArkUIStyledStringControllerAccessor; -typedef struct LayoutManagerPeer LayoutManagerPeer; typedef struct GENERATED_ArkUILayoutManagerAccessor { void (*destroyPeer)(LayoutManagerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_LayoutManager (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*getLineCount)(LayoutManagerPeer* peer); Ark_NativePointer (*getGlyphPositionAtCoordinate)(LayoutManagerPeer* peer, @@ -20175,20 +20558,18 @@ typedef struct GENERATED_ArkUILayoutManagerAccessor { Ark_RectHeightStyle heightStyle); } GENERATED_ArkUILayoutManagerAccessor; -typedef struct TextMenuItemIdPeer TextMenuItemIdPeer; typedef struct GENERATED_ArkUITextMenuItemIdAccessor { void (*destroyPeer)(TextMenuItemIdPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextMenuItemId (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*of)(const Ark_ResourceStr* id); + Ark_TextMenuItemId (*of)(const Ark_ResourceStr* id); Ark_Boolean (*equals)(TextMenuItemIdPeer* peer, - const Ark_TextMenuItemId* id); + Ark_TextMenuItemId id); } GENERATED_ArkUITextMenuItemIdAccessor; -typedef struct EditMenuOptionsPeer EditMenuOptionsPeer; typedef struct GENERATED_ArkUIEditMenuOptionsAccessor { void (*destroyPeer)(EditMenuOptionsPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_EditMenuOptions (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*onCreateMenu)(EditMenuOptionsPeer* peer, const Array_TextMenuItem* menuItems); @@ -20197,10 +20578,9 @@ typedef struct GENERATED_ArkUIEditMenuOptionsAccessor { const Ark_TextRange* range); } GENERATED_ArkUIEditMenuOptionsAccessor; -typedef struct SubmitEventPeer SubmitEventPeer; typedef struct GENERATED_ArkUISubmitEventAccessor { void (*destroyPeer)(SubmitEventPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_SubmitEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*keepEditableState)(SubmitEventPeer* peer); void (*getText)(SubmitEventPeer* peer); @@ -20208,10 +20588,9 @@ typedef struct GENERATED_ArkUISubmitEventAccessor { const Ark_String* text); } GENERATED_ArkUISubmitEventAccessor; -typedef struct TextInputControllerPeer TextInputControllerPeer; typedef struct GENERATED_ArkUITextInputControllerAccessor { void (*destroyPeer)(TextInputControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextInputController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*caretPosition)(TextInputControllerPeer* peer, const Ark_Number* value); @@ -20222,36 +20601,38 @@ typedef struct GENERATED_ArkUITextInputControllerAccessor { void (*stopEditing)(TextInputControllerPeer* peer); } GENERATED_ArkUITextInputControllerAccessor; -typedef struct TextPickerDialogPeer TextPickerDialogPeer; typedef struct GENERATED_ArkUITextPickerDialogAccessor { void (*destroyPeer)(TextPickerDialogPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextPickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_TextPickerDialogOptions* options); } GENERATED_ArkUITextPickerDialogAccessor; -typedef struct TextTimerControllerPeer TextTimerControllerPeer; typedef struct GENERATED_ArkUITextTimerControllerAccessor { void (*destroyPeer)(TextTimerControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TextTimerController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*start)(TextTimerControllerPeer* peer); void (*pause)(TextTimerControllerPeer* peer); void (*reset)(TextTimerControllerPeer* peer); } GENERATED_ArkUITextTimerControllerAccessor; -typedef struct TimePickerDialogPeer TimePickerDialogPeer; typedef struct GENERATED_ArkUITimePickerDialogAccessor { void (*destroyPeer)(TimePickerDialogPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_TimePickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_TimePickerDialogOptions* options); } GENERATED_ArkUITimePickerDialogAccessor; -typedef struct VideoControllerPeer VideoControllerPeer; +typedef struct GENERATED_ArkUIColorFilterAccessor { + void (*destroyPeer)(ColorFilterPeer* peer); + Ark_ColorFilter (*ctor)(const Array_Number* value); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUIColorFilterAccessor; + typedef struct GENERATED_ArkUIVideoControllerAccessor { void (*destroyPeer)(VideoControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_VideoController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*start)(VideoControllerPeer* peer); void (*pause)(VideoControllerPeer* peer); @@ -20267,10 +20648,9 @@ typedef struct GENERATED_ArkUIVideoControllerAccessor { void (*reset)(VideoControllerPeer* peer); } GENERATED_ArkUIVideoControllerAccessor; -typedef struct WebKeyboardControllerPeer WebKeyboardControllerPeer; typedef struct GENERATED_ArkUIWebKeyboardControllerAccessor { void (*destroyPeer)(WebKeyboardControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebKeyboardController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*insertText)(WebKeyboardControllerPeer* peer, const Ark_String* text); @@ -20283,18 +20663,16 @@ typedef struct GENERATED_ArkUIWebKeyboardControllerAccessor { void (*close)(WebKeyboardControllerPeer* peer); } GENERATED_ArkUIWebKeyboardControllerAccessor; -typedef struct FullScreenExitHandlerPeer FullScreenExitHandlerPeer; typedef struct GENERATED_ArkUIFullScreenExitHandlerAccessor { void (*destroyPeer)(FullScreenExitHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_FullScreenExitHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*exitFullScreen)(FullScreenExitHandlerPeer* peer); } GENERATED_ArkUIFullScreenExitHandlerAccessor; -typedef struct FileSelectorParamPeer FileSelectorParamPeer; typedef struct GENERATED_ArkUIFileSelectorParamAccessor { void (*destroyPeer)(FileSelectorParamPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_FileSelectorParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getTitle)(FileSelectorParamPeer* peer); Ark_NativePointer (*getMode)(FileSelectorParamPeer* peer); @@ -20302,10 +20680,9 @@ typedef struct GENERATED_ArkUIFileSelectorParamAccessor { Ark_Boolean (*isCapture)(FileSelectorParamPeer* peer); } GENERATED_ArkUIFileSelectorParamAccessor; -typedef struct JsResultPeer JsResultPeer; typedef struct GENERATED_ArkUIJsResultAccessor { void (*destroyPeer)(JsResultPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_JsResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*handleCancel)(JsResultPeer* peer); void (*handleConfirm)(JsResultPeer* peer); @@ -20313,19 +20690,17 @@ typedef struct GENERATED_ArkUIJsResultAccessor { const Ark_String* result); } GENERATED_ArkUIJsResultAccessor; -typedef struct FileSelectorResultPeer FileSelectorResultPeer; typedef struct GENERATED_ArkUIFileSelectorResultAccessor { void (*destroyPeer)(FileSelectorResultPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_FileSelectorResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*handleFileList)(FileSelectorResultPeer* peer, const Array_String* fileList); } GENERATED_ArkUIFileSelectorResultAccessor; -typedef struct HttpAuthHandlerPeer HttpAuthHandlerPeer; typedef struct GENERATED_ArkUIHttpAuthHandlerAccessor { void (*destroyPeer)(HttpAuthHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_HttpAuthHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*confirm)(HttpAuthHandlerPeer* peer, const Ark_String* userName, @@ -20334,19 +20709,17 @@ typedef struct GENERATED_ArkUIHttpAuthHandlerAccessor { Ark_Boolean (*isHttpAuthInfoSaved)(HttpAuthHandlerPeer* peer); } GENERATED_ArkUIHttpAuthHandlerAccessor; -typedef struct SslErrorHandlerPeer SslErrorHandlerPeer; typedef struct GENERATED_ArkUISslErrorHandlerAccessor { void (*destroyPeer)(SslErrorHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_SslErrorHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*handleConfirm)(SslErrorHandlerPeer* peer); void (*handleCancel)(SslErrorHandlerPeer* peer); } GENERATED_ArkUISslErrorHandlerAccessor; -typedef struct ClientAuthenticationHandlerPeer ClientAuthenticationHandlerPeer; typedef struct GENERATED_ArkUIClientAuthenticationHandlerAccessor { void (*destroyPeer)(ClientAuthenticationHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ClientAuthenticationHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*confirm0)(ClientAuthenticationHandlerPeer* peer, const Ark_String* priKeyFile, @@ -20357,10 +20730,9 @@ typedef struct GENERATED_ArkUIClientAuthenticationHandlerAccessor { void (*ignore)(ClientAuthenticationHandlerPeer* peer); } GENERATED_ArkUIClientAuthenticationHandlerAccessor; -typedef struct PermissionRequestPeer PermissionRequestPeer; typedef struct GENERATED_ArkUIPermissionRequestAccessor { void (*destroyPeer)(PermissionRequestPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_PermissionRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*deny)(PermissionRequestPeer* peer); void (*getOrigin)(PermissionRequestPeer* peer); @@ -20369,10 +20741,9 @@ typedef struct GENERATED_ArkUIPermissionRequestAccessor { const Array_String* resources); } GENERATED_ArkUIPermissionRequestAccessor; -typedef struct ScreenCaptureHandlerPeer ScreenCaptureHandlerPeer; typedef struct GENERATED_ArkUIScreenCaptureHandlerAccessor { void (*destroyPeer)(ScreenCaptureHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ScreenCaptureHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getOrigin)(ScreenCaptureHandlerPeer* peer); void (*grant)(ScreenCaptureHandlerPeer* peer, @@ -20380,28 +20751,25 @@ typedef struct GENERATED_ArkUIScreenCaptureHandlerAccessor { void (*deny)(ScreenCaptureHandlerPeer* peer); } GENERATED_ArkUIScreenCaptureHandlerAccessor; -typedef struct DataResubmissionHandlerPeer DataResubmissionHandlerPeer; typedef struct GENERATED_ArkUIDataResubmissionHandlerAccessor { void (*destroyPeer)(DataResubmissionHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_DataResubmissionHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*resend)(DataResubmissionHandlerPeer* peer); void (*cancel)(DataResubmissionHandlerPeer* peer); } GENERATED_ArkUIDataResubmissionHandlerAccessor; -typedef struct ControllerHandlerPeer ControllerHandlerPeer; typedef struct GENERATED_ArkUIControllerHandlerAccessor { void (*destroyPeer)(ControllerHandlerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_ControllerHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setWebController)(ControllerHandlerPeer* peer, - const Ark_WebviewController* controller); + Ark_WebviewController controller); } GENERATED_ArkUIControllerHandlerAccessor; -typedef struct WebContextMenuParamPeer WebContextMenuParamPeer; typedef struct GENERATED_ArkUIWebContextMenuParamAccessor { void (*destroyPeer)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebContextMenuParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*x)(WebContextMenuParamPeer* peer); Ark_Int32 (*y)(WebContextMenuParamPeer* peer); @@ -20419,10 +20787,9 @@ typedef struct GENERATED_ArkUIWebContextMenuParamAccessor { Ark_Int32 (*getPreviewHeight)(WebContextMenuParamPeer* peer); } GENERATED_ArkUIWebContextMenuParamAccessor; -typedef struct WebContextMenuResultPeer WebContextMenuResultPeer; typedef struct GENERATED_ArkUIWebContextMenuResultAccessor { void (*destroyPeer)(WebContextMenuResultPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebContextMenuResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*closeContextMenu)(WebContextMenuResultPeer* peer); void (*copyImage)(WebContextMenuResultPeer* peer); @@ -20432,13 +20799,12 @@ typedef struct GENERATED_ArkUIWebContextMenuResultAccessor { void (*selectAll)(WebContextMenuResultPeer* peer); } GENERATED_ArkUIWebContextMenuResultAccessor; -typedef struct ConsoleMessagePeer ConsoleMessagePeer; typedef struct GENERATED_ArkUIConsoleMessageAccessor { void (*destroyPeer)(ConsoleMessagePeer* peer); - Ark_NativePointer (*ctor)(const Ark_String* message, - const Ark_String* sourceId, - const Ark_Number* lineNumber, - Ark_MessageLevel messageLevel); + 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); @@ -20446,10 +20812,9 @@ typedef struct GENERATED_ArkUIConsoleMessageAccessor { Ark_NativePointer (*getMessageLevel)(ConsoleMessagePeer* peer); } GENERATED_ArkUIConsoleMessageAccessor; -typedef struct WebResourceRequestPeer WebResourceRequestPeer; typedef struct GENERATED_ArkUIWebResourceRequestAccessor { void (*destroyPeer)(WebResourceRequestPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebResourceRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getRequestHeader)(WebResourceRequestPeer* peer); void (*getRequestUrl)(WebResourceRequestPeer* peer); @@ -20459,10 +20824,9 @@ typedef struct GENERATED_ArkUIWebResourceRequestAccessor { void (*getRequestMethod)(WebResourceRequestPeer* peer); } GENERATED_ArkUIWebResourceRequestAccessor; -typedef struct WebResourceResponsePeer WebResourceResponsePeer; typedef struct GENERATED_ArkUIWebResourceResponseAccessor { void (*destroyPeer)(WebResourceResponsePeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebResourceResponse (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getResponseData)(WebResourceResponsePeer* peer); Ark_NativePointer (*getResponseDataEx)(WebResourceResponsePeer* peer); @@ -20488,19 +20852,17 @@ typedef struct GENERATED_ArkUIWebResourceResponseAccessor { Ark_Boolean (*getResponseIsReady)(WebResourceResponsePeer* peer); } GENERATED_ArkUIWebResourceResponseAccessor; -typedef struct WebResourceErrorPeer WebResourceErrorPeer; typedef struct GENERATED_ArkUIWebResourceErrorAccessor { void (*destroyPeer)(WebResourceErrorPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebResourceError (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getErrorInfo)(WebResourceErrorPeer* peer); Ark_Int32 (*getErrorCode)(WebResourceErrorPeer* peer); } GENERATED_ArkUIWebResourceErrorAccessor; -typedef struct JsGeolocationPeer JsGeolocationPeer; typedef struct GENERATED_ArkUIJsGeolocationAccessor { void (*destroyPeer)(JsGeolocationPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_JsGeolocation (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*invoke)(JsGeolocationPeer* peer, const Ark_String* origin, @@ -20508,28 +20870,25 @@ typedef struct GENERATED_ArkUIJsGeolocationAccessor { Ark_Boolean retain); } GENERATED_ArkUIJsGeolocationAccessor; -typedef struct WebCookiePeer WebCookiePeer; typedef struct GENERATED_ArkUIWebCookieAccessor { void (*destroyPeer)(WebCookiePeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebCookie (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setCookie)(WebCookiePeer* peer); void (*saveCookie)(WebCookiePeer* peer); } GENERATED_ArkUIWebCookieAccessor; -typedef struct EventResultPeer EventResultPeer; typedef struct GENERATED_ArkUIEventResultAccessor { void (*destroyPeer)(EventResultPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_EventResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setGestureEventResult)(EventResultPeer* peer, Ark_Boolean result); } GENERATED_ArkUIEventResultAccessor; -typedef struct WebControllerPeer WebControllerPeer; typedef struct GENERATED_ArkUIWebControllerAccessor { void (*destroyPeer)(WebControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WebController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*onInactive)(WebControllerPeer* peer); void (*onActive)(WebControllerPeer* peer); @@ -20556,13 +20915,12 @@ typedef struct GENERATED_ArkUIWebControllerAccessor { const Ark_Number* step); void (*backward)(WebControllerPeer* peer); void (*forward)(WebControllerPeer* peer); - Ark_NativePointer (*getCookieManager)(WebControllerPeer* peer); + Ark_WebCookie (*getCookieManager)(WebControllerPeer* peer); } GENERATED_ArkUIWebControllerAccessor; -typedef struct XComponentControllerPeer XComponentControllerPeer; typedef struct GENERATED_ArkUIXComponentControllerAccessor { void (*destroyPeer)(XComponentControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_XComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*getXComponentSurfaceId)(XComponentControllerPeer* peer); Ark_NativePointer (*getXComponentContext)(XComponentControllerPeer* peer); @@ -20587,10 +20945,9 @@ typedef struct GENERATED_ArkUIXComponentControllerAccessor { void (*stopImageAnalyzer)(XComponentControllerPeer* peer); } GENERATED_ArkUIXComponentControllerAccessor; -typedef struct WaterFlowSectionsPeer WaterFlowSectionsPeer; typedef struct GENERATED_ArkUIWaterFlowSectionsAccessor { void (*destroyPeer)(WaterFlowSectionsPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_WaterFlowSections (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_Boolean (*splice)(WaterFlowSectionsPeer* peer, const Ark_Number* start, @@ -20605,10 +20962,9 @@ typedef struct GENERATED_ArkUIWaterFlowSectionsAccessor { Ark_Int32 (*length)(WaterFlowSectionsPeer* peer); } GENERATED_ArkUIWaterFlowSectionsAccessor; -typedef struct UIExtensionProxyPeer UIExtensionProxyPeer; typedef struct GENERATED_ArkUIUIExtensionProxyAccessor { void (*destroyPeer)(UIExtensionProxyPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_UIExtensionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*send)(UIExtensionProxyPeer* peer, const Map_String_CustomObject* data); @@ -20624,11 +20980,10 @@ typedef struct GENERATED_ArkUIUIExtensionProxyAccessor { const Opt_Callback_UIExtensionProxy_Void* callback_); } GENERATED_ArkUIUIExtensionProxyAccessor; -typedef struct StyledStringPeer StyledStringPeer; typedef struct GENERATED_ArkUIStyledStringAccessor { void (*destroyPeer)(StyledStringPeer* peer); - Ark_NativePointer (*ctor)(const Ark_Union_String_ImageAttachment_CustomSpan* value, - const Opt_Array_StyleOptions* styles); + 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, @@ -20636,23 +20991,97 @@ typedef struct GENERATED_ArkUIStyledStringAccessor { const Ark_Number* length, const Opt_StyledStringKey* styledKey); Ark_Boolean (*equals)(StyledStringPeer* peer, - const Ark_StyledString* other); - Ark_NativePointer (*subStyledString)(StyledStringPeer* peer, - const Ark_Number* start, - const Opt_Number* length); + Ark_StyledString other); + Ark_StyledString (*subStyledString)(StyledStringPeer* 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)(const Ark_StyledString* styledString); - void (*marshalling)(const Ark_StyledString* styledString); + void (*toHtml)(Ark_StyledString styledString); + void (*marshalling)(Ark_StyledString styledString); void (*unmarshalling)(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); Ark_Int32 (*getLength)(StyledStringPeer* peer); } GENERATED_ArkUIStyledStringAccessor; -typedef struct MutableStyledStringPeer MutableStyledStringPeer; +typedef struct GENERATED_ArkUITextStyle_styled_stringAccessor { + void (*destroyPeer)(TextStyle_styled_stringPeer* 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); +} GENERATED_ArkUITextStyle_styled_stringAccessor; + +typedef struct GENERATED_ArkUIDecorationStyleAccessor { + void (*destroyPeer)(DecorationStylePeer* peer); + Ark_DecorationStyle (*ctor)(const Ark_DecorationStyleInterface* value); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*getType)(DecorationStylePeer* peer); + Ark_NativePointer (*getStyle)(DecorationStylePeer* peer); +} GENERATED_ArkUIDecorationStyleAccessor; + +typedef struct GENERATED_ArkUIBaselineOffsetStyleAccessor { + void (*destroyPeer)(BaselineOffsetStylePeer* peer); + Ark_BaselineOffsetStyle (*ctor)(Ark_LengthMetrics value); + Ark_NativePointer (*getFinalizer)(); + Ark_Int32 (*getBaselineOffset)(BaselineOffsetStylePeer* peer); +} GENERATED_ArkUIBaselineOffsetStyleAccessor; + +typedef struct GENERATED_ArkUILetterSpacingStyleAccessor { + void (*destroyPeer)(LetterSpacingStylePeer* peer); + Ark_LetterSpacingStyle (*ctor)(Ark_LengthMetrics value); + Ark_NativePointer (*getFinalizer)(); + Ark_Int32 (*getLetterSpacing)(LetterSpacingStylePeer* peer); +} GENERATED_ArkUILetterSpacingStyleAccessor; + +typedef struct GENERATED_ArkUITextShadowStyleAccessor { + void (*destroyPeer)(TextShadowStylePeer* peer); + Ark_TextShadowStyle (*ctor)(const Ark_Union_ShadowOptions_Array_ShadowOptions* value); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUITextShadowStyleAccessor; + +typedef struct GENERATED_ArkUIBackgroundColorStyleAccessor { + void (*destroyPeer)(BackgroundColorStylePeer* peer); + Ark_BackgroundColorStyle (*ctor)(const Ark_TextBackgroundStyle* textBackgroundStyle); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUIBackgroundColorStyleAccessor; + +typedef struct GENERATED_ArkUIGestureStyleAccessor { + void (*destroyPeer)(GestureStylePeer* peer); + Ark_GestureStyle (*ctor)(const Opt_GestureStyleInterface* value); + Ark_NativePointer (*getFinalizer)(); +} GENERATED_ArkUIGestureStyleAccessor; + +typedef struct GENERATED_ArkUIParagraphStyleAccessor { + void (*destroyPeer)(ParagraphStylePeer* 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); +} GENERATED_ArkUIParagraphStyleAccessor; + +typedef struct GENERATED_ArkUILineHeightStyleAccessor { + void (*destroyPeer)(LineHeightStylePeer* peer); + Ark_LineHeightStyle (*ctor)(Ark_LengthMetrics lineHeight); + Ark_NativePointer (*getFinalizer)(); + Ark_Int32 (*getLineHeight)(LineHeightStylePeer* peer); +} GENERATED_ArkUILineHeightStyleAccessor; + +typedef struct GENERATED_ArkUIUrlStyleAccessor { + void (*destroyPeer)(UrlStylePeer* peer); + Ark_UrlStyle (*ctor)(const Ark_String* url); + Ark_NativePointer (*getFinalizer)(); + void (*getUrl)(UrlStylePeer* peer); +} GENERATED_ArkUIUrlStyleAccessor; + typedef struct GENERATED_ArkUIMutableStyledStringAccessor { void (*destroyPeer)(MutableStyledStringPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_MutableStyledString (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*replaceString)(MutableStyledStringPeer* peer, const Ark_Number* start, @@ -20679,18 +21108,25 @@ typedef struct GENERATED_ArkUIMutableStyledStringAccessor { void (*replaceStyledString)(MutableStyledStringPeer* peer, const Ark_Number* start, const Ark_Number* length, - const Ark_StyledString* other); + Ark_StyledString other); void (*insertStyledString)(MutableStyledStringPeer* peer, const Ark_Number* start, - const Ark_StyledString* other); + Ark_StyledString other); void (*appendStyledString)(MutableStyledStringPeer* peer, - const Ark_StyledString* other); + Ark_StyledString other); } GENERATED_ArkUIMutableStyledStringAccessor; -typedef struct CustomSpanPeer CustomSpanPeer; +typedef struct GENERATED_ArkUIImageAttachmentAccessor { + void (*destroyPeer)(ImageAttachmentPeer* peer); + Ark_ImageAttachment (*ctor)(const Ark_ImageAttachmentInterface* value); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*getVerticalAlign)(ImageAttachmentPeer* peer); + Ark_NativePointer (*getObjectFit)(ImageAttachmentPeer* peer); +} GENERATED_ArkUIImageAttachmentAccessor; + typedef struct GENERATED_ArkUICustomSpanAccessor { void (*destroyPeer)(CustomSpanPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_CustomSpan (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*onMeasure)(CustomSpanPeer* peer, const Ark_CustomSpanMeasureInfo* measureInfo); @@ -20700,10 +21136,9 @@ typedef struct GENERATED_ArkUICustomSpanAccessor { void (*invalidate)(CustomSpanPeer* peer); } GENERATED_ArkUICustomSpanAccessor; -typedef struct LinearIndicatorControllerPeer LinearIndicatorControllerPeer; typedef struct GENERATED_ArkUILinearIndicatorControllerAccessor { void (*destroyPeer)(LinearIndicatorControllerPeer* peer); - Ark_NativePointer (*ctor)(); + Ark_LinearIndicatorController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setProgress)(LinearIndicatorControllerPeer* peer, const Ark_Number* index, @@ -20714,11 +21149,8 @@ typedef struct GENERATED_ArkUILinearIndicatorControllerAccessor { void (*stop)(LinearIndicatorControllerPeer* peer); } GENERATED_ArkUILinearIndicatorControllerAccessor; -typedef struct GlobalScope_inspectorPeer GlobalScope_inspectorPeer; typedef struct GENERATED_ArkUIGlobalScope_inspectorAccessor { void (*destroyPeer)(GlobalScope_inspectorPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*getInspectorNodes)(); Ark_NativePointer (*getInspectorNodeById)(const Ark_Number* id); void (*registerVsyncCallback)(const Callback_String_Void* callback_); @@ -20740,8 +21172,8 @@ typedef struct GENERATED_ArkUIAlphabetIndexerEventsReceiver { const Ark_Number index); void (*onPopupSelect)(Ark_Int32 nodeId, const Ark_Number index); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Number index); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Number index); } GENERATED_ArkUIAlphabetIndexerEventsReceiver; typedef struct GENERATED_ArkUIAnimatorEventsReceiver { @@ -20773,15 +21205,15 @@ typedef struct GENERATED_ArkUICanvasEventsReceiver { typedef struct GENERATED_ArkUICheckboxEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Boolean value); - void (*__onChangeEvent_select)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_select)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUICheckboxEventsReceiver; typedef struct GENERATED_ArkUICheckboxGroupEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_CheckboxGroupResult value); - void (*__onChangeEvent_selectAll)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_selectAll)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUICheckboxGroupEventsReceiver; typedef struct GENERATED_ArkUICommonMethodEventsReceiver { @@ -20869,6 +21301,10 @@ typedef struct GENERATED_ArkUIScrollableCommonMethodEventsReceiver { void (*onScroll)(Ark_Int32 nodeId, const Ark_Number first, const Ark_Number last); + void (*onDidScroll)(Ark_Int32 nodeId, + const Ark_Number xOffset, + const Ark_Number yOffset, + const Ark_ScrollState scrollState); void (*onReachStart)(Ark_Int32 nodeId); void (*onReachEnd)(Ark_Int32 nodeId); void (*onScrollStart)(Ark_Int32 nodeId); @@ -20885,8 +21321,8 @@ typedef struct GENERATED_ArkUIDatePickerEventsReceiver { const Ark_DatePickerResult value); void (*onDateChange)(Ark_Int32 nodeId, const Ark_Date parameter); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Date parameter); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Date parameter); } GENERATED_ArkUIDatePickerEventsReceiver; typedef struct GENERATED_ArkUIEmbeddedComponentEventsReceiver { @@ -20956,8 +21392,8 @@ typedef struct GENERATED_ArkUIGridEventsReceiver { typedef struct GENERATED_ArkUIGridItemEventsReceiver { void (*onSelect)(Ark_Int32 nodeId, const Ark_Boolean parameter); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUIGridItemEventsReceiver; typedef struct GENERATED_ArkUIGridRowEventsReceiver { @@ -21033,8 +21469,8 @@ typedef struct GENERATED_ArkUIListEventsReceiver { typedef struct GENERATED_ArkUIListItemEventsReceiver { void (*onSelect)(Ark_Int32 nodeId, const Ark_Boolean parameter); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUIListItemEventsReceiver; typedef struct GENERATED_ArkUILocationButtonEventsReceiver { @@ -21052,8 +21488,8 @@ typedef struct GENERATED_ArkUIMarqueeEventsReceiver { typedef struct GENERATED_ArkUIMenuItemEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Boolean parameter); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUIMenuItemEventsReceiver; typedef struct GENERATED_ArkUINavDestinationEventsReceiver { @@ -21080,8 +21516,8 @@ typedef struct GENERATED_ArkUIPanelEventsReceiver { const Ark_PanelMode mode); void (*onHeightChange)(Ark_Int32 nodeId, const Ark_Number index); - void (*__onChangeEvent_mode)(Ark_Int32 nodeId, - const Ark_PanelMode mode); + void (*_onChangeEvent_mode)(Ark_Int32 nodeId, + const Ark_PanelMode mode); } GENERATED_ArkUIPanelEventsReceiver; typedef struct GENERATED_ArkUIPasteButtonEventsReceiver { @@ -21106,15 +21542,15 @@ typedef struct GENERATED_ArkUIPluginComponentEventsReceiver { typedef struct GENERATED_ArkUIRadioEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Boolean parameter); - void (*__onChangeEvent_checked)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_checked)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUIRadioEventsReceiver; typedef struct GENERATED_ArkUIRatingEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Number index); - void (*__onChangeEvent_rating)(Ark_Int32 nodeId, - const Ark_Number index); + void (*_onChangeEvent_rating)(Ark_Int32 nodeId, + const Ark_Number index); } GENERATED_ArkUIRatingEventsReceiver; typedef struct GENERATED_ArkUIRefreshEventsReceiver { @@ -21123,8 +21559,8 @@ typedef struct GENERATED_ArkUIRefreshEventsReceiver { void (*onRefreshing)(Ark_Int32 nodeId); void (*onOffsetChange)(Ark_Int32 nodeId, const Ark_Number index); - void (*__onChangeEvent_refreshing)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_refreshing)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUIRefreshEventsReceiver; typedef struct GENERATED_ArkUIRichEditorEventsReceiver { @@ -21177,6 +21613,10 @@ typedef struct GENERATED_ArkUIScrollEventsReceiver { void (*onScroll)(Ark_Int32 nodeId, const Ark_Number first, const Ark_Number last); + void (*onDidScroll)(Ark_Int32 nodeId, + const Ark_Number xOffset, + const Ark_Number yOffset, + const Ark_ScrollState scrollState); void (*onScrollEdge)(Ark_Int32 nodeId, const Ark_Edge side); void (*onScrollStart)(Ark_Int32 nodeId); @@ -21220,26 +21660,26 @@ typedef struct GENERATED_ArkUISearchEventsReceiver { void (*onDidDelete)(Ark_Int32 nodeId, const Ark_DeleteValue parameter); void (*customKeyboard)(Ark_Int32 nodeId); - void (*__onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_String breakpoints); + void (*_onChangeEvent_value)(Ark_Int32 nodeId, + const Ark_String breakpoints); } GENERATED_ArkUISearchEventsReceiver; typedef struct GENERATED_ArkUISelectEventsReceiver { void (*onSelect)(Ark_Int32 nodeId, const Ark_Number index, const Ark_String value); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Union_Number_Resource selected); - void (*__onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_ResourceStr value); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Union_Number_Resource selected); + void (*_onChangeEvent_value)(Ark_Int32 nodeId, + const Ark_ResourceStr value); } GENERATED_ArkUISelectEventsReceiver; typedef struct GENERATED_ArkUISliderEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Number value, const Ark_SliderChangeMode mode); - void (*__onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_Number index); + void (*_onChangeEvent_value)(Ark_Int32 nodeId, + const Ark_Number index); } GENERATED_ArkUISliderEventsReceiver; typedef struct GENERATED_ArkUIStepperEventsReceiver { @@ -21254,8 +21694,8 @@ typedef struct GENERATED_ArkUIStepperEventsReceiver { void (*onPrevious)(Ark_Int32 nodeId, const Ark_Number first, const Ark_Number last); - void (*__onChangeEvent_index)(Ark_Int32 nodeId, - const Ark_Number index); + void (*_onChangeEvent_index)(Ark_Int32 nodeId, + const Ark_Number index); } GENERATED_ArkUIStepperEventsReceiver; typedef struct GENERATED_ArkUISwiperEventsReceiver { @@ -21276,8 +21716,8 @@ typedef struct GENERATED_ArkUISwiperEventsReceiver { const Ark_Number index, const Ark_Number position, const Ark_Number mainAxisLength); - void (*__onChangeEvent_index)(Ark_Int32 nodeId, - const Ark_Number index); + void (*_onChangeEvent_index)(Ark_Int32 nodeId, + const Ark_Number index); } GENERATED_ArkUISwiperEventsReceiver; typedef struct GENERATED_ArkUIIndicatorComponentEventsReceiver { @@ -21306,8 +21746,8 @@ typedef struct GENERATED_ArkUITabsEventsReceiver { void (*onContentWillChange)(Ark_Int32 nodeId, const Ark_Number currentIndex, const Ark_Number comingIndex); - void (*__onChangeEvent_index)(Ark_Int32 nodeId, - const Ark_Number index); + void (*_onChangeEvent_index)(Ark_Int32 nodeId, + const Ark_Number index); } GENERATED_ArkUITabsEventsReceiver; typedef struct GENERATED_ArkUITabContentEventsReceiver { @@ -21357,8 +21797,8 @@ typedef struct GENERATED_ArkUITextAreaEventsReceiver { void (*onDidDelete)(Ark_Int32 nodeId, const Ark_DeleteValue parameter); void (*customKeyboard)(Ark_Int32 nodeId); - void (*__onChangeEvent_text)(Ark_Int32 nodeId, - const Ark_ResourceStr value); + void (*_onChangeEvent_text)(Ark_Int32 nodeId, + const Ark_ResourceStr value); } GENERATED_ArkUITextAreaEventsReceiver; typedef struct GENERATED_ArkUITextClockEventsReceiver { @@ -21402,8 +21842,8 @@ typedef struct GENERATED_ArkUITextInputEventsReceiver { void (*onDidDelete)(Ark_Int32 nodeId, const Ark_DeleteValue parameter); void (*customKeyboard)(Ark_Int32 nodeId); - void (*__onChangeEvent_text)(Ark_Int32 nodeId, - const Ark_ResourceStr value); + void (*_onChangeEvent_text)(Ark_Int32 nodeId, + const Ark_ResourceStr value); } GENERATED_ArkUITextInputEventsReceiver; typedef struct GENERATED_ArkUITextPickerEventsReceiver { @@ -21414,10 +21854,10 @@ typedef struct GENERATED_ArkUITextPickerEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Union_String_Array_String value, const Ark_Union_Number_Array_Number index); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Union_Number_Array_Number selected); - void (*__onChangeEvent_value)(Ark_Int32 nodeId, - const Ark_Union_String_Array_String value); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Union_Number_Array_Number selected); + void (*_onChangeEvent_value)(Ark_Int32 nodeId, + const Ark_Union_String_Array_String value); } GENERATED_ArkUITextPickerEventsReceiver; typedef struct GENERATED_ArkUITextTimerEventsReceiver { @@ -21429,15 +21869,15 @@ typedef struct GENERATED_ArkUITextTimerEventsReceiver { typedef struct GENERATED_ArkUITimePickerEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_TimePickerResult value); - void (*__onChangeEvent_selected)(Ark_Int32 nodeId, - const Ark_Date parameter); + void (*_onChangeEvent_selected)(Ark_Int32 nodeId, + const Ark_Date parameter); } GENERATED_ArkUITimePickerEventsReceiver; typedef struct GENERATED_ArkUIToggleEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Boolean parameter); - void (*__onChangeEvent_isOn)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_isOn)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUIToggleEventsReceiver; typedef struct GENERATED_ArkUIVideoEventsReceiver { @@ -21590,8 +22030,8 @@ typedef struct GENERATED_ArkUIXComponentEventsReceiver { typedef struct GENERATED_ArkUISideBarContainerEventsReceiver { void (*onChange)(Ark_Int32 nodeId, const Ark_Boolean parameter); - void (*__onChangeEvent_showSideBar)(Ark_Int32 nodeId, - const Ark_Boolean parameter); + void (*_onChangeEvent_showSideBar)(Ark_Int32 nodeId, + const Ark_Boolean parameter); } GENERATED_ArkUISideBarContainerEventsReceiver; typedef struct GENERATED_ArkUIWaterFlowEventsReceiver { @@ -21757,6 +22197,10 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIEventEmulatorAccessor* (*getEventEmulatorAccessor)(); const GENERATED_ArkUIActionSheetAccessor* (*getActionSheetAccessor)(); const GENERATED_ArkUIAlertDialogAccessor* (*getAlertDialogAccessor)(); + const GENERATED_ArkUISpringPropAccessor* (*getSpringPropAccessor)(); + const GENERATED_ArkUISpringMotionAccessor* (*getSpringMotionAccessor)(); + const GENERATED_ArkUIFrictionMotionAccessor* (*getFrictionMotionAccessor)(); + const GENERATED_ArkUIScrollMotionAccessor* (*getScrollMotionAccessor)(); const GENERATED_ArkUICalendarControllerAccessor* (*getCalendarControllerAccessor)(); const GENERATED_ArkUICalendarPickerDialogAccessor* (*getCalendarPickerDialogAccessor)(); const GENERATED_ArkUICanvasGradientAccessor* (*getCanvasGradientAccessor)(); @@ -21764,6 +22208,8 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIPath2DAccessor* (*getPath2DAccessor)(); const GENERATED_ArkUICanvasPatternAccessor* (*getCanvasPatternAccessor)(); const GENERATED_ArkUIImageBitmapAccessor* (*getImageBitmapAccessor)(); + const GENERATED_ArkUIImageDataAccessor* (*getImageDataAccessor)(); + const GENERATED_ArkUIRenderingContextSettingsAccessor* (*getRenderingContextSettingsAccessor)(); const GENERATED_ArkUICanvasRendererAccessor* (*getCanvasRendererAccessor)(); const GENERATED_ArkUICanvasRenderingContext2DAccessor* (*getCanvasRenderingContext2DAccessor)(); const GENERATED_ArkUIDrawingRenderingContextAccessor* (*getDrawingRenderingContextAccessor)(); @@ -21790,6 +22236,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIGlobalScope_commonAccessor* (*getGlobalScope_commonAccessor)(); const GENERATED_ArkUIContextMenuAccessor* (*getContextMenuAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); + const GENERATED_ArkUILinearGradientAccessor* (*getLinearGradientAccessor)(); const GENERATED_ArkUIDatePickerDialogAccessor* (*getDatePickerDialogAccessor)(); const GENERATED_ArkUIBaseGestureEventAccessor* (*getBaseGestureEventAccessor)(); const GENERATED_ArkUITapGestureEventAccessor* (*getTapGestureEventAccessor)(); @@ -21808,6 +22255,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIListScrollerAccessor* (*getListScrollerAccessor)(); const GENERATED_ArkUIMatrix2DAccessor* (*getMatrix2DAccessor)(); const GENERATED_ArkUINavDestinationContextAccessor* (*getNavDestinationContextAccessor)(); + const GENERATED_ArkUINavPathInfoAccessor* (*getNavPathInfoAccessor)(); const GENERATED_ArkUINavPathStackAccessor* (*getNavPathStackAccessor)(); const GENERATED_ArkUINavigationTransitionProxyAccessor* (*getNavigationTransitionProxyAccessor)(); const GENERATED_ArkUIPatternLockControllerAccessor* (*getPatternLockControllerAccessor)(); @@ -21819,6 +22267,12 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUISwiperControllerAccessor* (*getSwiperControllerAccessor)(); const GENERATED_ArkUISwiperContentTransitionProxyAccessor* (*getSwiperContentTransitionProxyAccessor)(); const GENERATED_ArkUIIndicatorComponentControllerAccessor* (*getIndicatorComponentControllerAccessor)(); + const GENERATED_ArkUIScaleSymbolEffectAccessor* (*getScaleSymbolEffectAccessor)(); + const GENERATED_ArkUIHierarchicalSymbolEffectAccessor* (*getHierarchicalSymbolEffectAccessor)(); + const GENERATED_ArkUIAppearSymbolEffectAccessor* (*getAppearSymbolEffectAccessor)(); + const GENERATED_ArkUIDisappearSymbolEffectAccessor* (*getDisappearSymbolEffectAccessor)(); + const GENERATED_ArkUIBounceSymbolEffectAccessor* (*getBounceSymbolEffectAccessor)(); + const GENERATED_ArkUIReplaceSymbolEffectAccessor* (*getReplaceSymbolEffectAccessor)(); const GENERATED_ArkUITabsControllerAccessor* (*getTabsControllerAccessor)(); const GENERATED_ArkUITabContentTransitionProxyAccessor* (*getTabContentTransitionProxyAccessor)(); const GENERATED_ArkUITextControllerAccessor* (*getTextControllerAccessor)(); @@ -21835,6 +22289,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUITextPickerDialogAccessor* (*getTextPickerDialogAccessor)(); const GENERATED_ArkUITextTimerControllerAccessor* (*getTextTimerControllerAccessor)(); const GENERATED_ArkUITimePickerDialogAccessor* (*getTimePickerDialogAccessor)(); + const GENERATED_ArkUIColorFilterAccessor* (*getColorFilterAccessor)(); const GENERATED_ArkUIVideoControllerAccessor* (*getVideoControllerAccessor)(); const GENERATED_ArkUIWebKeyboardControllerAccessor* (*getWebKeyboardControllerAccessor)(); const GENERATED_ArkUIFullScreenExitHandlerAccessor* (*getFullScreenExitHandlerAccessor)(); @@ -21862,7 +22317,18 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIWaterFlowSectionsAccessor* (*getWaterFlowSectionsAccessor)(); const GENERATED_ArkUIUIExtensionProxyAccessor* (*getUIExtensionProxyAccessor)(); const GENERATED_ArkUIStyledStringAccessor* (*getStyledStringAccessor)(); + const GENERATED_ArkUITextStyle_styled_stringAccessor* (*getTextStyle_styled_stringAccessor)(); + const GENERATED_ArkUIDecorationStyleAccessor* (*getDecorationStyleAccessor)(); + const GENERATED_ArkUIBaselineOffsetStyleAccessor* (*getBaselineOffsetStyleAccessor)(); + const GENERATED_ArkUILetterSpacingStyleAccessor* (*getLetterSpacingStyleAccessor)(); + const GENERATED_ArkUITextShadowStyleAccessor* (*getTextShadowStyleAccessor)(); + const GENERATED_ArkUIBackgroundColorStyleAccessor* (*getBackgroundColorStyleAccessor)(); + const GENERATED_ArkUIGestureStyleAccessor* (*getGestureStyleAccessor)(); + const GENERATED_ArkUIParagraphStyleAccessor* (*getParagraphStyleAccessor)(); + const GENERATED_ArkUILineHeightStyleAccessor* (*getLineHeightStyleAccessor)(); + const GENERATED_ArkUIUrlStyleAccessor* (*getUrlStyleAccessor)(); const GENERATED_ArkUIMutableStyledStringAccessor* (*getMutableStyledStringAccessor)(); + const GENERATED_ArkUIImageAttachmentAccessor* (*getImageAttachmentAccessor)(); const GENERATED_ArkUICustomSpanAccessor* (*getCustomSpanAccessor)(); const GENERATED_ArkUILinearIndicatorControllerAccessor* (*getLinearIndicatorControllerAccessor)(); const GENERATED_ArkUIGlobalScope_inspectorAccessor* (*getGlobalScope_inspectorAccessor)(); diff --git a/arkoala/framework/native/src/generated/bridge_custom.cc b/arkoala/framework/native/src/generated/bridge_custom.cc index 149e14d19..ea077265d 100644 --- a/arkoala/framework/native/src/generated/bridge_custom.cc +++ b/arkoala/framework/native/src/generated/bridge_custom.cc @@ -468,9 +468,6 @@ KVMObjectHandle impl_LoadUserView(KVMContext vm, const KStringPtr& viewClass, co } else { className = "@koalaui.user.build.unmemoized.src.Page." + className; } - // if (className == "Page.ViewShoppingApp") className = "@koalaui.shopping.build.unmemoized.src.Page.ViewShoppingApp"; - // if (className == "Page.ViewTrivialApp") className = "@koalaui.user.build.unmemoized.src.Page.ViewTrivialApp"; - // if (className == "Page.ViewNavigationApp") className = "@koalaui.user.build.unmemoized.src.Page.ViewNavigationApp"; std::replace(className.begin(), className.end(), '.', '/'); ets_class viewClassClass = env->FindClass(className.c_str()); if (!viewClassClass) { diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index f7681234e..f259db682 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -118,7 +118,7 @@ void impl_AlphabetIndexerAttribute_color(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setColor(self, (const Ark_ResourceColor*)&value_value); @@ -147,7 +147,7 @@ void impl_AlphabetIndexerAttribute_selectedColor(Ark_NativePointer thisPtr, uint value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -176,7 +176,7 @@ void impl_AlphabetIndexerAttribute_popupColor(Ark_NativePointer thisPtr, uint8_t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setPopupColor(self, (const Ark_ResourceColor*)&value_value); @@ -205,7 +205,7 @@ void impl_AlphabetIndexerAttribute_selectedBackgroundColor(Ark_NativePointer thi value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setSelectedBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -234,7 +234,7 @@ void impl_AlphabetIndexerAttribute_popupBackground(Ark_NativePointer thisPtr, ui value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setPopupBackground(self, (const Ark_ResourceColor*)&value_value); @@ -263,7 +263,7 @@ void impl_AlphabetIndexerAttribute_popupSelectedColor(Ark_NativePointer thisPtr, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setPopupSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -292,7 +292,7 @@ void impl_AlphabetIndexerAttribute_popupUnselectedColor(Ark_NativePointer thisPt value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setPopupUnselectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -321,7 +321,7 @@ void impl_AlphabetIndexerAttribute_popupItemBackgroundColor(Ark_NativePointer th value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setPopupItemBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -368,7 +368,7 @@ void impl_AlphabetIndexerAttribute_itemSize(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = static_cast(thisDeserializer.readNumber()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Number value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setItemSize(self, (const Ark_Union_String_Number*)&value_value); @@ -457,7 +457,7 @@ void impl_AlphabetIndexerAttribute_popupTitleBackground(Ark_NativePointer thisPt value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getAlphabetIndexerModifier()->setPopupTitleBackground(self, (const Ark_ResourceColor*)&value_value); @@ -482,13 +482,13 @@ void impl_AlphabetIndexerAttribute_alignStyle(Ark_NativePointer thisPtr, Ark_Int GetNodeModifiers()->getAlphabetIndexerModifier()->setAlignStyle(self, static_cast(value), (const Opt_Length*)&offset_value); } KOALA_INTEROP_V4(AlphabetIndexerAttribute_alignStyle, Ark_NativePointer, Ark_Int32, uint8_t*, int32_t) -void impl_AlphabetIndexerAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_AlphabetIndexerAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))};; - GetNodeModifiers()->getAlphabetIndexerModifier()->set__onChangeEvent_selected(self, (const Callback_Number_Void*)&callback_value); + GetNodeModifiers()->getAlphabetIndexerModifier()->set_onChangeEvent_selected(self, (const Callback_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(AlphabetIndexerAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(AlphabetIndexerAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Animator_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getAnimatorModifier()->construct(id, flags); } @@ -536,26 +536,8 @@ KOALA_INTEROP_V2(AnimatorAttribute_playMode, Ark_NativePointer, Ark_Int32) void impl_AnimatorAttribute_motion(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Union_SpringMotion_FrictionMotion_ScrollMotion value_value_buf = {}; - value_value_buf.selector = value_value_buf_selector; - if (value_value_buf_selector == 0) { - value_value_buf.selector = 0; - value_value_buf.value0 = thisDeserializer.readSpringMotion(); - } - else if (value_value_buf_selector == 1) { - value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readFrictionMotion(); - } - else if (value_value_buf_selector == 2) { - value_value_buf.selector = 2; - value_value_buf.value2 = thisDeserializer.readScrollMotion(); - } - else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; - } - Ark_Union_SpringMotion_FrictionMotion_ScrollMotion value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getAnimatorModifier()->setMotion(self, (const Ark_Union_SpringMotion_FrictionMotion_ScrollMotion*)&value_value); + Ark_SpringMotion value_value = static_cast(thisDeserializer.readSpringMotion());; + GetNodeModifiers()->getAnimatorModifier()->setMotion(self, value_value); } KOALA_INTEROP_V3(AnimatorAttribute_motion, Ark_NativePointer, uint8_t*, int32_t) void impl_AnimatorAttribute_onStart(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -642,7 +624,7 @@ void impl_BlankInterface_setBlankOptions(Ark_NativePointer thisPtr, uint8_t* thi min_value_buf_.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for min_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for min_value_buf_ has to be chosen through deserialisation."); } min_value_buf.value = static_cast(min_value_buf_); } @@ -673,7 +655,7 @@ void impl_BlankAttribute_color(Ark_NativePointer thisPtr, uint8_t* thisArray, in value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getBlankModifier()->setColor(self, (const Ark_ResourceColor*)&value_value); @@ -710,7 +692,7 @@ void impl_ButtonInterface_setButtonOptions2(Ark_NativePointer thisPtr, uint8_t* label_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for label_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for label_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr label_value = static_cast(label_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -772,7 +754,7 @@ void impl_ButtonAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getButtonModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -802,7 +784,7 @@ void impl_ButtonAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getButtonModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -828,7 +810,7 @@ void impl_ButtonAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getButtonModifier()->setFontFamily(self, (const Ark_Union_String_Resource*)&value_value); @@ -1028,7 +1010,7 @@ void impl_CanvasInterface_setCanvasOptions0(Ark_NativePointer thisPtr, uint8_t* context_value_buf_.value1 = static_cast(thisDeserializer.readDrawingRenderingContext()); } else { - throw "One of the branches for context_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for context_value_buf_ has to be chosen through deserialisation."); } context_value_buf.value = static_cast(context_value_buf_); } @@ -1051,7 +1033,7 @@ void impl_CanvasInterface_setCanvasOptions1(Ark_NativePointer thisPtr, uint8_t* context_value_buf.value1 = static_cast(thisDeserializer.readDrawingRenderingContext()); } else { - throw "One of the branches for context_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for context_value_buf has to be chosen through deserialisation."); } Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext context_value = static_cast(context_value_buf);; Ark_ImageAIOptions imageAIOptions_value = thisDeserializer.readImageAIOptions();; @@ -1116,7 +1098,7 @@ void impl_CheckboxAttribute_selectedColor(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCheckboxModifier()->setSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -1150,7 +1132,7 @@ void impl_CheckboxAttribute_unselectedColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCheckboxModifier()->setUnselectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -1177,13 +1159,13 @@ void impl_CheckboxAttribute_contentModifier(Ark_NativePointer thisPtr, uint8_t* GetNodeModifiers()->getCheckboxModifier()->setContentModifier(self, (const Ark_CustomObject*)&value_value); } KOALA_INTEROP_V3(CheckboxAttribute_contentModifier, Ark_NativePointer, uint8_t*, int32_t) -void impl_CheckboxAttribute___onChangeEvent_select(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_CheckboxAttribute__onChangeEvent_select(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getCheckboxModifier()->set__onChangeEvent_select(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getCheckboxModifier()->set_onChangeEvent_select(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(CheckboxAttribute___onChangeEvent_select, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(CheckboxAttribute__onChangeEvent_select, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CheckboxGroup_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getCheckboxGroupModifier()->construct(id, flags); } @@ -1230,7 +1212,7 @@ void impl_CheckboxGroupAttribute_selectedColor(Ark_NativePointer thisPtr, uint8_ value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCheckboxGroupModifier()->setSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -1259,7 +1241,7 @@ void impl_CheckboxGroupAttribute_unselectedColor(Ark_NativePointer thisPtr, uint value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCheckboxGroupModifier()->setUnselectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -1284,13 +1266,13 @@ void impl_CheckboxGroupAttribute_checkboxShape(Ark_NativePointer thisPtr, Ark_In GetNodeModifiers()->getCheckboxGroupModifier()->setCheckboxShape(self, static_cast(value)); } KOALA_INTEROP_V2(CheckboxGroupAttribute_checkboxShape, Ark_NativePointer, Ark_Int32) -void impl_CheckboxGroupAttribute___onChangeEvent_selectAll(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_CheckboxGroupAttribute__onChangeEvent_selectAll(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getCheckboxGroupModifier()->set__onChangeEvent_selectAll(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getCheckboxGroupModifier()->set_onChangeEvent_selectAll(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(CheckboxGroupAttribute___onChangeEvent_selectAll, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(CheckboxGroupAttribute__onChangeEvent_selectAll, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Circle_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getCircleModifier()->construct(id, flags); } @@ -1436,7 +1418,7 @@ void impl_CommonMethod_responseRegion(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = thisDeserializer.readRectangle(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Array_Rectangle_Rectangle value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setResponseRegion(self, (const Ark_Union_Array_Rectangle_Rectangle*)&value_value); @@ -1464,7 +1446,7 @@ void impl_CommonMethod_mouseResponseRegion(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value1 = thisDeserializer.readRectangle(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Array_Rectangle_Rectangle value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setMouseResponseRegion(self, (const Ark_Union_Array_Rectangle_Rectangle*)&value_value); @@ -1516,7 +1498,7 @@ void impl_CommonMethod_layoutWeight(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setLayoutWeight(self, (const Ark_Union_Number_String*)&value_value); @@ -1581,7 +1563,7 @@ void impl_CommonMethod_padding(Ark_NativePointer thisPtr, uint8_t* thisArray, in value_value_buf.value2 = thisDeserializer.readLocalizedPadding(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Padding_Length_LocalizedPadding value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setPadding(self, (const Ark_Union_Padding_Length_LocalizedPadding*)&value_value); @@ -1639,7 +1621,7 @@ void impl_CommonMethod_safeAreaPadding(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = thisDeserializer.readLocalizedPadding(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Padding_LengthMetrics_LocalizedPadding value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setSafeAreaPadding(self, (const Ark_Union_Padding_LengthMetrics_LocalizedPadding*)&value_value); @@ -1697,7 +1679,7 @@ void impl_CommonMethod_margin(Ark_NativePointer thisPtr, uint8_t* thisArray, int value_value_buf.value2 = thisDeserializer.readLocalizedPadding(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Margin_Length_LocalizedMargin value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setMargin(self, (const Ark_Union_Margin_Length_LocalizedMargin*)&value_value); @@ -1726,7 +1708,7 @@ void impl_CommonMethod_backgroundColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -1754,7 +1736,7 @@ void impl_CommonMethod_backgroundImageSize(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_SizeOptions_ImageSize value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBackgroundImageSize(self, (const Ark_Union_SizeOptions_ImageSize*)&value_value); @@ -1775,7 +1757,7 @@ void impl_CommonMethod_backgroundImagePosition(Ark_NativePointer thisPtr, uint8_ value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Position_Alignment value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBackgroundImagePosition(self, (const Ark_Union_Position_Alignment*)&value_value); @@ -1845,7 +1827,7 @@ void impl_CommonMethod_opacity(Ark_NativePointer thisPtr, uint8_t* thisArray, in value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setOpacity(self, (const Ark_Union_Number_Resource*)&value_value); @@ -1906,7 +1888,7 @@ void impl_CommonMethod_borderStyle(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_BorderStyle_EdgeStyles value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBorderStyle(self, (const Ark_Union_BorderStyle_EdgeStyles*)&value_value); @@ -1964,7 +1946,7 @@ void impl_CommonMethod_borderWidth(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value2 = thisDeserializer.readLocalizedEdgeWidths(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Length_EdgeWidths_LocalizedEdgeWidths value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBorderWidth(self, (const Ark_Union_Length_EdgeWidths_LocalizedEdgeWidths*)&value_value); @@ -1998,7 +1980,7 @@ void impl_CommonMethod_borderColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } @@ -2030,7 +2012,7 @@ void impl_CommonMethod_borderColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_u_top_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_top_buf_ has to be chosen through deserialisation."); } value_value_buf_u_top_buf.value = static_cast(value_value_buf_u_top_buf_); } @@ -2060,7 +2042,7 @@ void impl_CommonMethod_borderColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_u_right_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_right_buf_ has to be chosen through deserialisation."); } value_value_buf_u_right_buf.value = static_cast(value_value_buf_u_right_buf_); } @@ -2090,7 +2072,7 @@ void impl_CommonMethod_borderColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_u_bottom_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_bottom_buf_ has to be chosen through deserialisation."); } value_value_buf_u_bottom_buf.value = static_cast(value_value_buf_u_bottom_buf_); } @@ -2120,7 +2102,7 @@ void impl_CommonMethod_borderColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_u_left_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_left_buf_ has to be chosen through deserialisation."); } value_value_buf_u_left_buf.value = static_cast(value_value_buf_u_left_buf_); } @@ -2132,7 +2114,7 @@ void impl_CommonMethod_borderColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value2 = thisDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ResourceColor_EdgeColors_LocalizedEdgeColors value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBorderColor(self, (const Ark_Union_ResourceColor_EdgeColors_LocalizedEdgeColors*)&value_value); @@ -2190,7 +2172,7 @@ void impl_CommonMethod_borderRadius(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value2 = thisDeserializer.readLocalizedBorderRadiuses(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Length_BorderRadiuses_LocalizedBorderRadiuses value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBorderRadius(self, (const Ark_Union_Length_BorderRadiuses_LocalizedBorderRadiuses*)&value_value); @@ -2258,7 +2240,7 @@ void impl_CommonMethod_outlineStyle(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_OutlineStyle_EdgeOutlineStyles value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setOutlineStyle(self, (const Ark_Union_OutlineStyle_EdgeOutlineStyles*)&value_value); @@ -2312,7 +2294,7 @@ void impl_CommonMethod_outlineWidth(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Dimension_EdgeOutlineWidths value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setOutlineWidth(self, (const Ark_Union_Dimension_EdgeOutlineWidths*)&value_value); @@ -2346,7 +2328,7 @@ void impl_CommonMethod_outlineColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } @@ -2378,7 +2360,7 @@ void impl_CommonMethod_outlineColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf_u_top_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_top_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_top_buf_ has to be chosen through deserialisation."); } value_value_buf_u_top_buf.value = static_cast(value_value_buf_u_top_buf_); } @@ -2408,7 +2390,7 @@ void impl_CommonMethod_outlineColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf_u_right_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_right_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_right_buf_ has to be chosen through deserialisation."); } value_value_buf_u_right_buf.value = static_cast(value_value_buf_u_right_buf_); } @@ -2438,7 +2420,7 @@ void impl_CommonMethod_outlineColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf_u_bottom_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_bottom_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_bottom_buf_ has to be chosen through deserialisation."); } value_value_buf_u_bottom_buf.value = static_cast(value_value_buf_u_bottom_buf_); } @@ -2468,7 +2450,7 @@ void impl_CommonMethod_outlineColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf_u_left_buf_.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_left_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_left_buf_ has to be chosen through deserialisation."); } value_value_buf_u_left_buf.value = static_cast(value_value_buf_u_left_buf_); } @@ -2480,7 +2462,7 @@ void impl_CommonMethod_outlineColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value2 = thisDeserializer.readLocalizedEdgeColors(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ResourceColor_EdgeColors_LocalizedEdgeColors value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setOutlineColor(self, (const Ark_Union_ResourceColor_EdgeColors_LocalizedEdgeColors*)&value_value); @@ -2534,7 +2516,7 @@ void impl_CommonMethod_outlineRadius(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Dimension_OutlineRadiuses value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setOutlineRadius(self, (const Ark_Union_Dimension_OutlineRadiuses*)&value_value); @@ -2568,7 +2550,7 @@ void impl_CommonMethod_foregroundColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } @@ -2577,7 +2559,7 @@ void impl_CommonMethod_foregroundColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ResourceColor_ColoringStrategy value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setForegroundColor(self, (const Ark_Union_ResourceColor_ColoringStrategy*)&value_value); @@ -2712,7 +2694,7 @@ void impl_CommonMethod_transition0(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = static_cast(thisDeserializer.readTransitionEffect()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_TransitionOptions_TransitionEffect value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setTransition0(self, (const Ark_Union_TransitionOptions_TransitionEffect*)&value_value); @@ -2730,7 +2712,7 @@ void impl_CommonMethod_transition1(Ark_NativePointer thisPtr, uint8_t* thisArray onFinish_value_buf.value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_TransitionFinishCallback)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_TransitionFinishCallback))))}; } Opt_TransitionFinishCallback onFinish_value = onFinish_value_buf;; - GetNodeModifiers()->getCommonMethodModifier()->setTransition1(self, (const Ark_TransitionEffect*)&effect_value, (const Opt_TransitionFinishCallback*)&onFinish_value); + GetNodeModifiers()->getCommonMethodModifier()->setTransition1(self, effect_value, (const Opt_TransitionFinishCallback*)&onFinish_value); } KOALA_INTEROP_V3(CommonMethod_transition1, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_motionBlur(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -2774,7 +2756,7 @@ void impl_CommonMethod_colorBlend(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Color_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setColorBlend(self, (const Ark_Union_Color_String_Resource*)&value_value); @@ -2805,7 +2787,7 @@ void impl_CommonMethod_invert(Ark_NativePointer thisPtr, uint8_t* thisArray, int value_value_buf.value1 = thisDeserializer.readInvertOptions(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_InvertOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setInvert(self, (const Ark_Union_Number_InvertOptions*)&value_value); @@ -2826,7 +2808,7 @@ void impl_CommonMethod_hueRotate(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setHueRotate(self, (const Ark_Union_Number_String*)&value_value); @@ -2960,7 +2942,7 @@ void impl_CommonMethod_flexBasis(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setFlexBasis(self, (const Ark_Union_Number_String*)&value_value); @@ -3010,7 +2992,7 @@ void impl_CommonMethod_position(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf.value2 = thisDeserializer.readLocalizedEdges(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Position_Edges_LocalizedEdges value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setPosition(self, (const Ark_Union_Position_Edges_LocalizedEdges*)&value_value); @@ -3031,7 +3013,7 @@ void impl_CommonMethod_markAnchor(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value1 = thisDeserializer.readLocalizedPosition(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Position_LocalizedPosition value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setMarkAnchor(self, (const Ark_Union_Position_LocalizedPosition*)&value_value); @@ -3056,7 +3038,7 @@ void impl_CommonMethod_offset(Ark_NativePointer thisPtr, uint8_t* thisArray, int value_value_buf.value2 = thisDeserializer.readLocalizedEdges(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Position_Edges_LocalizedEdges value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setOffset(self, (const Ark_Union_Position_Edges_LocalizedEdges*)&value_value); @@ -3091,7 +3073,7 @@ void impl_CommonMethod_useSizeType(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_xs_buf_.value1 = value_value_buf_xs_buf__u; } else { - throw "One of the branches for value_value_buf_xs_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_xs_buf_ has to be chosen through deserialisation."); } value_value_buf_xs_buf.value = static_cast(value_value_buf_xs_buf_); } @@ -3116,7 +3098,7 @@ void impl_CommonMethod_useSizeType(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_sm_buf_.value1 = value_value_buf_sm_buf__u; } else { - throw "One of the branches for value_value_buf_sm_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_sm_buf_ has to be chosen through deserialisation."); } value_value_buf_sm_buf.value = static_cast(value_value_buf_sm_buf_); } @@ -3141,7 +3123,7 @@ void impl_CommonMethod_useSizeType(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_md_buf_.value1 = value_value_buf_md_buf__u; } else { - throw "One of the branches for value_value_buf_md_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_md_buf_ has to be chosen through deserialisation."); } value_value_buf_md_buf.value = static_cast(value_value_buf_md_buf_); } @@ -3166,7 +3148,7 @@ void impl_CommonMethod_useSizeType(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf_lg_buf_.value1 = value_value_buf_lg_buf__u; } else { - throw "One of the branches for value_value_buf_lg_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_lg_buf_ has to be chosen through deserialisation."); } value_value_buf_lg_buf.value = static_cast(value_value_buf_lg_buf_); } @@ -3295,7 +3277,7 @@ void impl_CommonMethod_dragPreview(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_CustomBuilder_DragItemInfo_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setDragPreview(self, (const Ark_Union_CustomBuilder_DragItemInfo_String*)&value_value); @@ -3329,7 +3311,7 @@ void impl_CommonMethod_linearGradient(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf_angle_buf_.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf_angle_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_angle_buf_ has to be chosen through deserialisation."); } value_value_buf_angle_buf.value = static_cast(value_value_buf_angle_buf_); } @@ -3368,7 +3350,7 @@ void impl_CommonMethod_linearGradient(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf_colors_buf_buf_value0_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_colors_buf_buf_value0_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_colors_buf_buf_value0_buf has to be chosen through deserialisation."); } value_value_buf_colors_buf_buf.value0 = static_cast(value_value_buf_colors_buf_buf_value0_buf); value_value_buf_colors_buf_buf.value1 = static_cast(thisDeserializer.readNumber()); @@ -3412,7 +3394,7 @@ void impl_CommonMethod_sweepGradient(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf_start_buf_.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf_start_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_start_buf_ has to be chosen through deserialisation."); } value_value_buf_start_buf.value = static_cast(value_value_buf_start_buf_); } @@ -3434,7 +3416,7 @@ void impl_CommonMethod_sweepGradient(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf_end_buf_.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf_end_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_end_buf_ has to be chosen through deserialisation."); } value_value_buf_end_buf.value = static_cast(value_value_buf_end_buf_); } @@ -3456,7 +3438,7 @@ void impl_CommonMethod_sweepGradient(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf_rotation_buf_.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf_rotation_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_rotation_buf_ has to be chosen through deserialisation."); } value_value_buf_rotation_buf.value = static_cast(value_value_buf_rotation_buf_); } @@ -3487,7 +3469,7 @@ void impl_CommonMethod_sweepGradient(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf_colors_buf_buf_value0_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_colors_buf_buf_value0_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_colors_buf_buf_value0_buf has to be chosen through deserialisation."); } value_value_buf_colors_buf_buf.value0 = static_cast(value_value_buf_colors_buf_buf_value0_buf); value_value_buf_colors_buf_buf.value1 = static_cast(thisDeserializer.readNumber()); @@ -3526,7 +3508,7 @@ void impl_CommonMethod_radialGradient(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf_radius_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf_radius_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_radius_buf has to be chosen through deserialisation."); } value_value_buf.radius = static_cast(value_value_buf_radius_buf); const Ark_Int32 value_value_buf_colors_buf_length = thisDeserializer.readInt32(); @@ -3555,7 +3537,7 @@ void impl_CommonMethod_radialGradient(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf_colors_buf_buf_value0_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_colors_buf_buf_value0_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_colors_buf_buf_value0_buf has to be chosen through deserialisation."); } value_value_buf_colors_buf_buf.value0 = static_cast(value_value_buf_colors_buf_buf_value0_buf); value_value_buf_colors_buf_buf.value1 = static_cast(thisDeserializer.readNumber()); @@ -3596,48 +3578,38 @@ void impl_CommonMethod_shadow(Ark_NativePointer thisPtr, uint8_t* thisArray, int value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ShadowOptions_ShadowStyle value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setShadow(self, (const Ark_Union_ShadowOptions_ShadowStyle*)&value_value); } KOALA_INTEROP_V3(CommonMethod_shadow, Ark_NativePointer, uint8_t*, int32_t) -void impl_CommonMethod_clip0(Ark_NativePointer thisPtr, Ark_Boolean value) { +void impl_CommonMethod_clip0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); - GetNodeModifiers()->getCommonMethodModifier()->setClip0(self, value); + Deserializer thisDeserializer(thisArray, thisLength); + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Boolean value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = thisDeserializer.readBoolean(); + } + Opt_Boolean value_value = value_value_buf;; + GetNodeModifiers()->getCommonMethodModifier()->setClip0(self, (const Opt_Boolean*)&value_value); } -KOALA_INTEROP_V2(CommonMethod_clip0, Ark_NativePointer, Ark_Boolean) +KOALA_INTEROP_V3(CommonMethod_clip0, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_clip1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Type_CommonMethod_clip_value value_value_buf = {}; - value_value_buf.selector = value_value_buf_selector; - if (value_value_buf_selector == 0) { - value_value_buf.selector = 0; - value_value_buf.value0 = thisDeserializer.readBoolean(); - } - else if (value_value_buf_selector == 1) { - value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readCircleAttribute(); - } - else if (value_value_buf_selector == 2) { - value_value_buf.selector = 2; - value_value_buf.value2 = thisDeserializer.readEllipseAttribute(); - } - else if (value_value_buf_selector == 3) { - value_value_buf.selector = 3; - value_value_buf.value3 = thisDeserializer.readPathAttribute(); - } - else if (value_value_buf_selector == 4) { - value_value_buf.selector = 4; - value_value_buf.value4 = thisDeserializer.readRectAttribute(); - } - else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Boolean value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = thisDeserializer.readBoolean(); } - Ark_Type_CommonMethod_clip_value value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getCommonMethodModifier()->setClip1(self, (const Ark_Type_CommonMethod_clip_value*)&value_value); + Opt_Boolean value_value = value_value_buf;; + GetNodeModifiers()->getCommonMethodModifier()->setClip1(self, (const Opt_Boolean*)&value_value); } KOALA_INTEROP_V3(CommonMethod_clip1, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_clipShape(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -3663,7 +3635,7 @@ void impl_CommonMethod_clipShape(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readRectShape(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_CircleShape_EllipseShape_PathShape_RectShape value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setClipShape(self, (const Ark_Union_CircleShape_EllipseShape_PathShape_RectShape*)&value_value); @@ -3672,41 +3644,29 @@ KOALA_INTEROP_V3(CommonMethod_clipShape, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_mask0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - Ark_ProgressMask value_value = static_cast(thisDeserializer.readProgressMask());; - GetNodeModifiers()->getCommonMethodModifier()->setMask0(self, (const Ark_ProgressMask*)&value_value); + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_ProgressMask value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = static_cast(thisDeserializer.readProgressMask()); + } + Opt_ProgressMask value_value = value_value_buf;; + GetNodeModifiers()->getCommonMethodModifier()->setMask0(self, (const Opt_ProgressMask*)&value_value); } KOALA_INTEROP_V3(CommonMethod_mask0, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_mask1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Type_CommonMethod_mask_value value_value_buf = {}; - value_value_buf.selector = value_value_buf_selector; - if (value_value_buf_selector == 0) { - value_value_buf.selector = 0; - value_value_buf.value0 = thisDeserializer.readCircleAttribute(); - } - else if (value_value_buf_selector == 1) { - value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readEllipseAttribute(); - } - else if (value_value_buf_selector == 2) { - value_value_buf.selector = 2; - value_value_buf.value2 = thisDeserializer.readPathAttribute(); - } - else if (value_value_buf_selector == 3) { - value_value_buf.selector = 3; - value_value_buf.value3 = thisDeserializer.readRectAttribute(); - } - else if (value_value_buf_selector == 4) { - value_value_buf.selector = 4; - value_value_buf.value4 = static_cast(thisDeserializer.readProgressMask()); - } - else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_ProgressMask value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = static_cast(thisDeserializer.readProgressMask()); } - Ark_Type_CommonMethod_mask_value value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getCommonMethodModifier()->setMask1(self, (const Ark_Type_CommonMethod_mask_value*)&value_value); + Opt_ProgressMask value_value = value_value_buf;; + GetNodeModifiers()->getCommonMethodModifier()->setMask1(self, (const Opt_ProgressMask*)&value_value); } KOALA_INTEROP_V3(CommonMethod_mask1, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_maskShape(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -3732,7 +3692,7 @@ void impl_CommonMethod_maskShape(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readRectShape(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_CircleShape_EllipseShape_PathShape_RectShape value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setMaskShape(self, (const Ark_Union_CircleShape_EllipseShape_PathShape_RectShape*)&value_value); @@ -3887,7 +3847,7 @@ void impl_CommonMethod_gestureModifier(Ark_NativePointer thisPtr, uint8_t* thisA Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_GestureModifier value_value = static_cast(thisDeserializer.readGestureModifier());; - GetNodeModifiers()->getCommonMethodModifier()->setGestureModifier(self, (const Ark_GestureModifier*)&value_value); + GetNodeModifiers()->getCommonMethodModifier()->setGestureModifier(self, value_value); } KOALA_INTEROP_V3(CommonMethod_gestureModifier, Ark_NativePointer, uint8_t*, int32_t) void impl_CommonMethod_backgroundBrightness(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -4038,7 +3998,7 @@ void impl_CommonMethod_backgroundImage(Ark_NativePointer thisPtr, uint8_t* thisA src_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for src_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf_u has to be chosen through deserialisation."); } src_value_buf.value0 = static_cast(src_value_buf_u); } @@ -4047,7 +4007,7 @@ void impl_CommonMethod_backgroundImage(Ark_NativePointer thisPtr, uint8_t* thisA src_value_buf.value1 = static_cast(thisDeserializer.readPixelMap()); } else { - throw "One of the branches for src_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf has to be chosen through deserialisation."); } Ark_Union_ResourceStr_PixelMap src_value = static_cast(src_value_buf);; const auto repeat_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4174,7 +4134,7 @@ void impl_CommonMethod_gesture(Ark_NativePointer thisPtr, uint8_t* thisArray, in gesture_value_buf.value6 = thisDeserializer.readGestureGroupInterface(); } else { - throw "One of the branches for gesture_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for gesture_value_buf has to be chosen through deserialisation."); } Ark_GestureType gesture_value = static_cast(gesture_value_buf);; const auto mask_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4223,7 +4183,7 @@ void impl_CommonMethod_priorityGesture(Ark_NativePointer thisPtr, uint8_t* thisA gesture_value_buf.value6 = thisDeserializer.readGestureGroupInterface(); } else { - throw "One of the branches for gesture_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for gesture_value_buf has to be chosen through deserialisation."); } Ark_GestureType gesture_value = static_cast(gesture_value_buf);; const auto mask_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4272,7 +4232,7 @@ void impl_CommonMethod_parallelGesture(Ark_NativePointer thisPtr, uint8_t* thisA gesture_value_buf.value6 = thisDeserializer.readGestureGroupInterface(); } else { - throw "One of the branches for gesture_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for gesture_value_buf has to be chosen through deserialisation."); } Ark_GestureType gesture_value = static_cast(gesture_value_buf);; const auto mask_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4379,7 +4339,7 @@ void impl_CommonMethod_overlay(Ark_NativePointer thisPtr, uint8_t* thisArray, in value_value_buf.value2 = thisDeserializer.readComponentContent(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_CustomBuilder_ComponentContent value_value = static_cast(value_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4422,7 +4382,7 @@ void impl_CommonMethod_advancedBlendMode(Ark_NativePointer thisPtr, uint8_t* thi effect_value_buf.value1 = thisDeserializer.readBlender(); } else { - throw "One of the branches for effect_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for effect_value_buf has to be chosen through deserialisation."); } Ark_Union_BlendMode_Blender effect_value = static_cast(effect_value_buf);; const auto type_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4451,7 +4411,7 @@ void impl_CommonMethod_bindPopup(Ark_NativePointer thisPtr, Ark_Boolean show, ui popup_value_buf.value1 = thisDeserializer.readCustomPopupOptions(); } else { - throw "One of the branches for popup_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for popup_value_buf has to be chosen through deserialisation."); } Ark_Union_PopupOptions_CustomPopupOptions popup_value = static_cast(popup_value_buf);; GetNodeModifiers()->getCommonMethodModifier()->setBindPopup(self, show, (const Ark_Union_PopupOptions_CustomPopupOptions*)&popup_value); @@ -4479,7 +4439,7 @@ void impl_CommonMethod_bindMenu0(Ark_NativePointer thisPtr, uint8_t* thisArray, content_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for content_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_value_buf has to be chosen through deserialisation."); } Ark_Union_Array_MenuElement_CustomBuilder content_value = static_cast(content_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4515,7 +4475,7 @@ void impl_CommonMethod_bindMenu1(Ark_NativePointer thisPtr, Ark_Boolean isShow, content_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for content_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_value_buf has to be chosen through deserialisation."); } Ark_Union_Array_MenuElement_CustomBuilder content_value = static_cast(content_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -4658,7 +4618,7 @@ void impl_CommonMethod_keyboardShortcut(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_FunctionKey value_value = static_cast(value_value_buf);; const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); @@ -4707,7 +4667,7 @@ void impl_CommonShapeMethod_stroke(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonShapeMethodModifier()->setStroke(self, (const Ark_ResourceColor*)&value_value); @@ -4736,7 +4696,7 @@ void impl_CommonShapeMethod_fill(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonShapeMethodModifier()->setFill(self, (const Ark_ResourceColor*)&value_value); @@ -4757,7 +4717,7 @@ void impl_CommonShapeMethod_strokeDashOffset(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonShapeMethodModifier()->setStrokeDashOffset(self, (const Ark_Union_Number_String*)&value_value); @@ -4788,7 +4748,7 @@ void impl_CommonShapeMethod_strokeMiterLimit(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonShapeMethodModifier()->setStrokeMiterLimit(self, (const Ark_Union_Number_String*)&value_value); @@ -4813,7 +4773,7 @@ void impl_CommonShapeMethod_strokeOpacity(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonShapeMethodModifier()->setStrokeOpacity(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -4838,7 +4798,7 @@ void impl_CommonShapeMethod_fillOpacity(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getCommonShapeMethodModifier()->setFillOpacity(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -4905,7 +4865,7 @@ void impl_ScrollableCommonMethod_scrollBarColor(Ark_NativePointer thisPtr, uint8 value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Color_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollableCommonMethodModifier()->setScrollBarColor(self, (const Ark_Union_Color_Number_String*)&value_value); @@ -4926,7 +4886,7 @@ void impl_ScrollableCommonMethod_scrollBarWidth(Ark_NativePointer thisPtr, uint8 value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollableCommonMethodModifier()->setScrollBarWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -4959,7 +4919,7 @@ void impl_ScrollableCommonMethod_friction(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollableCommonMethodModifier()->setFriction(self, (const Ark_Union_Number_Resource*)&value_value); @@ -4989,15 +4949,8 @@ KOALA_INTEROP_V3(ScrollableCommonMethod_onWillScroll, Ark_NativePointer, uint8_t void impl_ScrollableCommonMethod_onDidScroll(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_ScrollOnScrollCallback value_value_buf = {}; - value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) - { - value_value_buf.value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ScrollOnScrollCallback)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ScrollOnScrollCallback))))}; - } - Opt_ScrollOnScrollCallback value_value = value_value_buf;; - GetNodeModifiers()->getScrollableCommonMethodModifier()->setOnDidScroll(self, (const Opt_ScrollOnScrollCallback*)&value_value); + ScrollOnScrollCallback value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ScrollOnScrollCallback)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ScrollOnScrollCallback))))};; + GetNodeModifiers()->getScrollableCommonMethodModifier()->setOnDidScroll(self, (const ScrollOnScrollCallback*)&value_value); } KOALA_INTEROP_V3(ScrollableCommonMethod_onDidScroll, Ark_NativePointer, uint8_t*, int32_t) void impl_ScrollableCommonMethod_onReachStart(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -5048,7 +5001,7 @@ void impl_ScrollableCommonMethod_clipContent(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = thisDeserializer.readRectShape(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ContentClipMode_RectShape value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollableCommonMethodModifier()->setClipContent(self, (const Ark_Union_ContentClipMode_RectShape*)&value_value); @@ -5123,7 +5076,7 @@ void impl_Component3DAttribute_environment(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getComponent3DModifier()->setEnvironment(self, (const Ark_ResourceStr*)&value_value); @@ -5144,7 +5097,7 @@ void impl_Component3DAttribute_shader(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getComponent3DModifier()->setShader(self, (const Ark_ResourceStr*)&value_value); @@ -5165,7 +5118,7 @@ void impl_Component3DAttribute_shaderImageTexture(Ark_NativePointer thisPtr, uin value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getComponent3DModifier()->setShaderImageTexture(self, (const Ark_ResourceStr*)&value_value); @@ -5210,7 +5163,7 @@ void impl_Component3DAttribute_customRender(Ark_NativePointer thisPtr, uint8_t* uri_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for uri_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for uri_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr uri_value = static_cast(uri_value_buf);; GetNodeModifiers()->getComponent3DModifier()->setCustomRender(self, (const Ark_ResourceStr*)&uri_value, selfRenderUpdate); @@ -5285,12 +5238,12 @@ void impl_DataPanelAttribute_valueColors(Ark_NativePointer thisPtr, uint8_t* thi Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 value_value_buf_length = thisDeserializer.readInt32(); - Array_Union_ResourceColor_LinearGradient_data_panel value_value_buf = {}; + Array_Union_ResourceColor_LinearGradient value_value_buf = {}; thisDeserializer.resizeArray::type, std::decay::type>(&value_value_buf, value_value_buf_length); for (int value_value_buf_i = 0; value_value_buf_i < value_value_buf_length; value_value_buf_i++) { const Ark_Int8 value_value_buf_buf_selector = thisDeserializer.readInt8(); - Ark_Union_ResourceColor_LinearGradient_data_panel value_value_buf_buf = {}; + Ark_Union_ResourceColor_LinearGradient value_value_buf_buf = {}; value_value_buf_buf.selector = value_value_buf_buf_selector; if (value_value_buf_buf_selector == 0) { value_value_buf_buf.selector = 0; @@ -5314,21 +5267,21 @@ void impl_DataPanelAttribute_valueColors(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_buf_u has to be chosen through deserialisation."); } value_value_buf_buf.value0 = static_cast(value_value_buf_buf_u); } else if (value_value_buf_buf_selector == 1) { value_value_buf_buf.selector = 1; - value_value_buf_buf.value1 = thisDeserializer.readLinearGradient_data_panel(); + value_value_buf_buf.value1 = static_cast(thisDeserializer.readLinearGradient()); } else { - throw "One of the branches for value_value_buf_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_buf has to be chosen through deserialisation."); } - value_value_buf.array[value_value_buf_i] = static_cast(value_value_buf_buf); + value_value_buf.array[value_value_buf_i] = static_cast(value_value_buf_buf); } - Array_Union_ResourceColor_LinearGradient_data_panel value_value = value_value_buf;; - GetNodeModifiers()->getDataPanelModifier()->setValueColors(self, (const Array_Union_ResourceColor_LinearGradient_data_panel*)&value_value); + Array_Union_ResourceColor_LinearGradient value_value = value_value_buf;; + GetNodeModifiers()->getDataPanelModifier()->setValueColors(self, (const Array_Union_ResourceColor_LinearGradient*)&value_value); } KOALA_INTEROP_V3(DataPanelAttribute_valueColors, Ark_NativePointer, uint8_t*, int32_t) void impl_DataPanelAttribute_trackBackgroundColor(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -5354,7 +5307,7 @@ void impl_DataPanelAttribute_trackBackgroundColor(Ark_NativePointer thisPtr, uin value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getDataPanelModifier()->setTrackBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -5437,13 +5390,13 @@ void impl_DatePickerAttribute_onDateChange(Ark_NativePointer thisPtr, uint8_t* t GetNodeModifiers()->getDatePickerModifier()->setOnDateChange(self, (const Callback_Date_Void*)&value_value); } KOALA_INTEROP_V3(DatePickerAttribute_onDateChange, Ark_NativePointer, uint8_t*, int32_t) -void impl_DatePickerAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_DatePickerAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Date_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Date_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Date_Void))))};; - GetNodeModifiers()->getDatePickerModifier()->set__onChangeEvent_selected(self, (const Callback_Date_Void*)&callback_value); + GetNodeModifiers()->getDatePickerModifier()->set_onChangeEvent_selected(self, (const Callback_Date_Void*)&callback_value); } -KOALA_INTEROP_V3(DatePickerAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(DatePickerAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Divider_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getDividerModifier()->construct(id, flags); } @@ -5481,7 +5434,7 @@ void impl_DividerAttribute_color(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getDividerModifier()->setColor(self, (const Ark_ResourceColor*)&value_value); @@ -5502,7 +5455,7 @@ void impl_DividerAttribute_strokeWidth(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getDividerModifier()->setStrokeWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -5784,24 +5737,24 @@ void impl_GaugeAttribute_colors(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } else if (value_value_buf_selector == 1) { value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readLinearGradient_common(); + value_value_buf.value1 = static_cast(thisDeserializer.readLinearGradient()); } else if (value_value_buf_selector == 2) { value_value_buf.selector = 2; const Ark_Int32 value_value_buf_u_length = thisDeserializer.readInt32(); - Array_Tuple_Union_ResourceColor_LinearGradient_common_Number value_value_buf_u = {}; + Array_Tuple_Union_ResourceColor_LinearGradient_Number value_value_buf_u = {}; thisDeserializer.resizeArray::type, std::decay::type>(&value_value_buf_u, value_value_buf_u_length); for (int value_value_buf_u_i = 0; value_value_buf_u_i < value_value_buf_u_length; value_value_buf_u_i++) { - Ark_Tuple_Union_ResourceColor_LinearGradient_common_Number value_value_buf_u_buf = {}; + Ark_Tuple_Union_ResourceColor_LinearGradient_Number value_value_buf_u_buf = {}; const Ark_Int8 value_value_buf_u_buf_value0_buf_selector = thisDeserializer.readInt8(); - Ark_Union_ResourceColor_LinearGradient_common value_value_buf_u_buf_value0_buf = {}; + Ark_Union_ResourceColor_LinearGradient value_value_buf_u_buf_value0_buf = {}; value_value_buf_u_buf_value0_buf.selector = value_value_buf_u_buf_value0_buf_selector; if (value_value_buf_u_buf_value0_buf_selector == 0) { value_value_buf_u_buf_value0_buf.selector = 0; @@ -5825,25 +5778,25 @@ void impl_GaugeAttribute_colors(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf_u_buf_value0_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u_buf_value0_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_buf_value0_buf_u has to be chosen through deserialisation."); } value_value_buf_u_buf_value0_buf.value0 = static_cast(value_value_buf_u_buf_value0_buf_u); } else if (value_value_buf_u_buf_value0_buf_selector == 1) { value_value_buf_u_buf_value0_buf.selector = 1; - value_value_buf_u_buf_value0_buf.value1 = thisDeserializer.readLinearGradient_common(); + value_value_buf_u_buf_value0_buf.value1 = static_cast(thisDeserializer.readLinearGradient()); } else { - throw "One of the branches for value_value_buf_u_buf_value0_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_buf_value0_buf has to be chosen through deserialisation."); } - value_value_buf_u_buf.value0 = static_cast(value_value_buf_u_buf_value0_buf); + value_value_buf_u_buf.value0 = static_cast(value_value_buf_u_buf_value0_buf); value_value_buf_u_buf.value1 = static_cast(thisDeserializer.readNumber()); value_value_buf_u.array[value_value_buf_u_i] = value_value_buf_u_buf; } value_value_buf.value2 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Type_GaugeAttribute_colors_colors value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGaugeModifier()->setColors(self, (const Ark_Type_GaugeAttribute_colors_colors*)&value_value); @@ -5957,7 +5910,7 @@ void impl_GridAttribute_scrollBarWidth(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGridModifier()->setScrollBarWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -5982,7 +5935,7 @@ void impl_GridAttribute_scrollBarColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Color_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGridModifier()->setScrollBarColor(self, (const Ark_Union_Color_Number_String*)&value_value); @@ -6114,7 +6067,7 @@ void impl_GridAttribute_friction(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGridModifier()->setFriction(self, (const Ark_Union_Number_Resource*)&value_value); @@ -6250,13 +6203,13 @@ void impl_GridItemAttribute_onSelect(Ark_NativePointer thisPtr, uint8_t* thisArr GetNodeModifiers()->getGridItemModifier()->setOnSelect(self, (const Callback_Boolean_Void*)&value_value); } KOALA_INTEROP_V3(GridItemAttribute_onSelect, Ark_NativePointer, uint8_t*, int32_t) -void impl_GridItemAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_GridItemAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getGridItemModifier()->set__onChangeEvent_selected(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getGridItemModifier()->set_onChangeEvent_selected(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(GridItemAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(GridItemAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_GridCol_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getGridColModifier()->construct(id, flags); } @@ -6290,7 +6243,7 @@ void impl_GridColAttribute_span(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf.value1 = thisDeserializer.readGridColColumnOption(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_GridColColumnOption value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGridColModifier()->setSpan(self, (const Ark_Union_Number_GridColColumnOption*)&value_value); @@ -6311,7 +6264,7 @@ void impl_GridColAttribute_gridColOffset(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value1 = thisDeserializer.readGridColColumnOption(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_GridColColumnOption value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGridColModifier()->setGridColOffset(self, (const Ark_Union_Number_GridColColumnOption*)&value_value); @@ -6332,7 +6285,7 @@ void impl_GridColAttribute_order(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value1 = thisDeserializer.readGridColColumnOption(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_GridColColumnOption value_value = static_cast(value_value_buf);; GetNodeModifiers()->getGridColModifier()->setOrder(self, (const Ark_Union_Number_GridColColumnOption*)&value_value); @@ -6405,7 +6358,7 @@ void impl_HyperlinkInterface_setHyperlinkOptions(Ark_NativePointer thisPtr, uint address_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for address_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for address_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource address_value = static_cast(address_value_buf);; const auto content_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -6425,7 +6378,7 @@ void impl_HyperlinkInterface_setHyperlinkOptions(Ark_NativePointer thisPtr, uint content_value_buf_.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for content_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_value_buf_ has to be chosen through deserialisation."); } content_value_buf.value = static_cast(content_value_buf_); } @@ -6456,7 +6409,7 @@ void impl_HyperlinkAttribute_color(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Color_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getHyperlinkModifier()->setColor(self, (const Ark_Union_Color_Number_String_Resource*)&value_value); @@ -6490,7 +6443,7 @@ void impl_ImageInterface_setImageOptions0(Ark_NativePointer thisPtr, uint8_t* th src_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for src_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf_u has to be chosen through deserialisation."); } src_value_buf.value1 = static_cast(src_value_buf_u); } @@ -6499,7 +6452,7 @@ void impl_ImageInterface_setImageOptions0(Ark_NativePointer thisPtr, uint8_t* th src_value_buf.value2 = thisDeserializer.readDrawableDescriptor(); } else { - throw "One of the branches for src_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf has to be chosen through deserialisation."); } Ark_Union_PixelMap_ResourceStr_DrawableDescriptor src_value = static_cast(src_value_buf);; GetNodeModifiers()->getImageModifier()->setImageOptions0(self, (const Ark_Union_PixelMap_ResourceStr_DrawableDescriptor*)&src_value); @@ -6529,7 +6482,7 @@ void impl_ImageInterface_setImageOptions1(Ark_NativePointer thisPtr, uint8_t* th src_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for src_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf_u has to be chosen through deserialisation."); } src_value_buf.value1 = static_cast(src_value_buf_u); } @@ -6542,7 +6495,7 @@ void impl_ImageInterface_setImageOptions1(Ark_NativePointer thisPtr, uint8_t* th src_value_buf.value3 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for src_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf has to be chosen through deserialisation."); } Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ImageContent src_value = static_cast(src_value_buf);; GetNodeModifiers()->getImageModifier()->setImageOptions1(self, (const Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ImageContent*)&src_value); @@ -6572,7 +6525,7 @@ void impl_ImageInterface_setImageOptions2(Ark_NativePointer thisPtr, uint8_t* th src_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for src_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf_u has to be chosen through deserialisation."); } src_value_buf.value1 = static_cast(src_value_buf_u); } @@ -6581,7 +6534,7 @@ void impl_ImageInterface_setImageOptions2(Ark_NativePointer thisPtr, uint8_t* th src_value_buf.value2 = thisDeserializer.readDrawableDescriptor(); } else { - throw "One of the branches for src_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf has to be chosen through deserialisation."); } Ark_Union_PixelMap_ResourceStr_DrawableDescriptor src_value = static_cast(src_value_buf);; Ark_ImageAIOptions imageAIOptions_value = thisDeserializer.readImageAIOptions();; @@ -6607,7 +6560,7 @@ void impl_ImageAttribute_alt(Ark_NativePointer thisPtr, uint8_t* thisArray, int3 value_value_buf.value2 = static_cast(thisDeserializer.readPixelMap()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource_PixelMap value_value = static_cast(value_value_buf);; GetNodeModifiers()->getImageModifier()->setAlt(self, (const Ark_Union_String_Resource_PixelMap*)&value_value); @@ -6646,7 +6599,7 @@ void impl_ImageAttribute_fillColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getImageModifier()->setFillColor(self, (const Ark_ResourceColor*)&value_value); @@ -6702,14 +6655,14 @@ void impl_ImageAttribute_colorFilter(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.selector = value_value_buf_selector; if (value_value_buf_selector == 0) { value_value_buf.selector = 0; - value_value_buf.value0 = thisDeserializer.readColorFilter(); + value_value_buf.value0 = static_cast(thisDeserializer.readColorFilter()); } else if (value_value_buf_selector == 1) { value_value_buf.selector = 1; value_value_buf.value1 = thisDeserializer.readDrawingColorFilter(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ColorFilter_DrawingColorFilter value_value = static_cast(value_value_buf);; GetNodeModifiers()->getImageModifier()->setColorFilter(self, (const Ark_Union_ColorFilter_DrawingColorFilter*)&value_value); @@ -6906,7 +6859,7 @@ void impl_ImageSpanInterface_setImageSpanOptions(Ark_NativePointer thisPtr, uint value_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } @@ -6915,7 +6868,7 @@ void impl_ImageSpanInterface_setImageSpanOptions(Ark_NativePointer thisPtr, uint value_value_buf.value1 = static_cast(thisDeserializer.readPixelMap()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ResourceStr_PixelMap value_value = static_cast(value_value_buf);; GetNodeModifiers()->getImageSpanModifier()->setImageSpanOptions(self, (const Ark_Union_ResourceStr_PixelMap*)&value_value); @@ -6934,14 +6887,14 @@ void impl_ImageSpanAttribute_colorFilter(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.selector = value_value_buf_selector; if (value_value_buf_selector == 0) { value_value_buf.selector = 0; - value_value_buf.value0 = thisDeserializer.readColorFilter(); + value_value_buf.value0 = static_cast(thisDeserializer.readColorFilter()); } else if (value_value_buf_selector == 1) { value_value_buf.selector = 1; value_value_buf.value1 = thisDeserializer.readDrawingColorFilter(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ColorFilter_DrawingColorFilter value_value = static_cast(value_value_buf);; GetNodeModifiers()->getImageSpanModifier()->setColorFilter(self, (const Ark_Union_ColorFilter_DrawingColorFilter*)&value_value); @@ -6970,7 +6923,7 @@ void impl_ImageSpanAttribute_alt(Ark_NativePointer thisPtr, uint8_t* thisArray, Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_PixelMap value_value = static_cast(thisDeserializer.readPixelMap());; - GetNodeModifiers()->getImageSpanModifier()->setAlt(self, (const Ark_PixelMap*)&value_value); + GetNodeModifiers()->getImageSpanModifier()->setAlt(self, value_value); } KOALA_INTEROP_V3(ImageSpanAttribute_alt, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Line_construct(Ark_Int32 id, Ark_Int32 flags) { @@ -7145,7 +7098,7 @@ void impl_ListAttribute_friction(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getListModifier()->setFriction(self, (const Ark_Union_Number_Resource*)&value_value); @@ -7155,7 +7108,7 @@ void impl_ListAttribute_childrenMainSize(Ark_NativePointer thisPtr, uint8_t* thi Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ChildrenMainSize value_value = static_cast(thisDeserializer.readChildrenMainSize());; - GetNodeModifiers()->getListModifier()->setChildrenMainSize(self, (const Ark_ChildrenMainSize*)&value_value); + GetNodeModifiers()->getListModifier()->setChildrenMainSize(self, value_value); } KOALA_INTEROP_V3(ListAttribute_childrenMainSize, Ark_NativePointer, uint8_t*, int32_t) void impl_ListAttribute_maintainVisibleContentPosition(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -7286,7 +7239,7 @@ void impl_ListAttribute_lanes(Ark_NativePointer thisPtr, uint8_t* thisArray, int value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_LengthConstrain value_value = static_cast(value_value_buf);; const auto gutter_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -7366,7 +7319,7 @@ void impl_ListItemAttribute_editable(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Boolean_EditMode value_value = static_cast(value_value_buf);; GetNodeModifiers()->getListItemModifier()->setEditable(self, (const Ark_Union_Boolean_EditMode*)&value_value); @@ -7396,13 +7349,13 @@ void impl_ListItemAttribute_onSelect(Ark_NativePointer thisPtr, uint8_t* thisArr GetNodeModifiers()->getListItemModifier()->setOnSelect(self, (const Callback_Boolean_Void*)&value_value); } KOALA_INTEROP_V3(ListItemAttribute_onSelect, Ark_NativePointer, uint8_t*, int32_t) -void impl_ListItemAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_ListItemAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getListItemModifier()->set__onChangeEvent_selected(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getListItemModifier()->set_onChangeEvent_selected(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(ListItemAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(ListItemAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_ListItemGroup_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getListItemGroupModifier()->construct(id, flags); } @@ -7439,7 +7392,7 @@ void impl_ListItemGroupAttribute_childrenMainSize(Ark_NativePointer thisPtr, uin Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ChildrenMainSize value_value = static_cast(thisDeserializer.readChildrenMainSize());; - GetNodeModifiers()->getListItemGroupModifier()->setChildrenMainSize(self, (const Ark_ChildrenMainSize*)&value_value); + GetNodeModifiers()->getListItemGroupModifier()->setChildrenMainSize(self, value_value); } KOALA_INTEROP_V3(ListItemGroupAttribute_childrenMainSize, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_LoadingProgress_construct(Ark_Int32 id, Ark_Int32 flags) { @@ -7474,7 +7427,7 @@ void impl_LoadingProgressAttribute_color(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getLoadingProgressModifier()->setColor(self, (const Ark_ResourceColor*)&value_value); @@ -7549,7 +7502,7 @@ void impl_MarqueeAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMarqueeModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -7584,7 +7537,7 @@ void impl_MarqueeAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMarqueeModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -7605,7 +7558,7 @@ void impl_MarqueeAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMarqueeModifier()->setFontFamily(self, (const Ark_Union_String_Resource*)&value_value); @@ -7665,7 +7618,7 @@ void impl_MediaCachedImageInterface_setMediaCachedImageOptions(Ark_NativePointer src_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for src_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf_u has to be chosen through deserialisation."); } src_value_buf.value1 = static_cast(src_value_buf_u); } @@ -7678,7 +7631,7 @@ void impl_MediaCachedImageInterface_setMediaCachedImageOptions(Ark_NativePointer src_value_buf.value3 = thisDeserializer.readASTCResource(); } else { - throw "One of the branches for src_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for src_value_buf has to be chosen through deserialisation."); } Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ASTCResource src_value = static_cast(src_value_buf);; GetNodeModifiers()->getMediaCachedImageModifier()->setMediaCachedImageOptions(self, (const Ark_Union_PixelMap_ResourceStr_DrawableDescriptor_ASTCResource*)&src_value); @@ -7728,7 +7681,7 @@ void impl_MenuAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMenuModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -7782,7 +7735,7 @@ void impl_MenuAttribute_radius(Ark_NativePointer thisPtr, uint8_t* thisArray, in value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Dimension_BorderRadiuses value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMenuModifier()->setRadius(self, (const Ark_Union_Dimension_BorderRadiuses*)&value_value); @@ -7845,7 +7798,7 @@ void impl_MenuItemInterface_setMenuItemOptions(Ark_NativePointer thisPtr, uint8_ value_value_buf_.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for value_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_ has to be chosen through deserialisation."); } value_value_buf.value = static_cast(value_value_buf_); } @@ -7882,7 +7835,7 @@ void impl_MenuItemAttribute_selectIcon(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value1 = static_cast(value_value_buf_u); } @@ -7891,7 +7844,7 @@ void impl_MenuItemAttribute_selectIcon(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = thisDeserializer.readSymbolGlyphModifier(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Boolean_ResourceStr_SymbolGlyphModifier value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMenuItemModifier()->setSelectIcon(self, (const Ark_Union_Boolean_ResourceStr_SymbolGlyphModifier*)&value_value); @@ -7934,7 +7887,7 @@ void impl_MenuItemAttribute_contentFontColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMenuItemModifier()->setContentFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -7970,19 +7923,19 @@ void impl_MenuItemAttribute_labelFontColor(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getMenuItemModifier()->setLabelFontColor(self, (const Ark_ResourceColor*)&value_value); } KOALA_INTEROP_V3(MenuItemAttribute_labelFontColor, Ark_NativePointer, uint8_t*, int32_t) -void impl_MenuItemAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_MenuItemAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getMenuItemModifier()->set__onChangeEvent_selected(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getMenuItemModifier()->set_onChangeEvent_selected(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(MenuItemAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(MenuItemAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_MenuItemGroup_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getMenuItemGroupModifier()->construct(id, flags); } @@ -8066,7 +8019,7 @@ void impl_NavDestinationAttribute_backButtonIcon(Ark_NativePointer thisPtr, uint value_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } @@ -8079,7 +8032,7 @@ void impl_NavDestinationAttribute_backButtonIcon(Ark_NativePointer thisPtr, uint value_value_buf.value2 = thisDeserializer.readSymbolGlyphModifier(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier value_value = static_cast(value_value_buf);; GetNodeModifiers()->getNavDestinationModifier()->setBackButtonIcon(self, (const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier*)&value_value); @@ -8107,7 +8060,7 @@ void impl_NavDestinationAttribute_menus(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Array_NavigationMenuItem_CustomBuilder value_value = static_cast(value_value_buf);; GetNodeModifiers()->getNavDestinationModifier()->setMenus(self, (const Ark_Union_Array_NavigationMenuItem_CustomBuilder*)&value_value); @@ -8208,7 +8161,7 @@ void impl_NavDestinationAttribute_title(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value4 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Type_NavDestinationAttribute_title_value value_value = static_cast(value_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -8244,7 +8197,7 @@ void impl_NavDestinationAttribute_toolbarConfiguration(Ark_NativePointer thisPtr toolbarParam_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; } else { - throw "One of the branches for toolbarParam_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for toolbarParam_value_buf has to be chosen through deserialisation."); } Ark_Union_Array_ToolbarItem_CustomBuilder toolbarParam_value = static_cast(toolbarParam_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -8441,7 +8394,7 @@ void impl_PanelAttribute_customHeight(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Dimension_PanelHeight value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPanelModifier()->setCustomHeight(self, (const Ark_Union_Dimension_PanelHeight*)&value_value); @@ -8462,7 +8415,7 @@ void impl_PanelAttribute_fullHeight(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPanelModifier()->setFullHeight(self, (const Ark_Union_Number_String*)&value_value); @@ -8483,7 +8436,7 @@ void impl_PanelAttribute_halfHeight(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPanelModifier()->setHalfHeight(self, (const Ark_Union_Number_String*)&value_value); @@ -8504,7 +8457,7 @@ void impl_PanelAttribute_miniHeight(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPanelModifier()->setMiniHeight(self, (const Ark_Union_Number_String*)&value_value); @@ -8538,7 +8491,7 @@ void impl_PanelAttribute_backgroundMask(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPanelModifier()->setBackgroundMask(self, (const Ark_ResourceColor*)&value_value); @@ -8563,13 +8516,13 @@ void impl_PanelAttribute_onHeightChange(Ark_NativePointer thisPtr, uint8_t* this GetNodeModifiers()->getPanelModifier()->setOnHeightChange(self, (const Callback_Number_Void*)&value_value); } KOALA_INTEROP_V3(PanelAttribute_onHeightChange, Ark_NativePointer, uint8_t*, int32_t) -void impl_PanelAttribute___onChangeEvent_mode(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_PanelAttribute__onChangeEvent_mode(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_PanelMode_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PanelMode_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PanelMode_Void))))};; - GetNodeModifiers()->getPanelModifier()->set__onChangeEvent_mode(self, (const Callback_PanelMode_Void*)&callback_value); + GetNodeModifiers()->getPanelModifier()->set_onChangeEvent_mode(self, (const Callback_PanelMode_Void*)&callback_value); } -KOALA_INTEROP_V3(PanelAttribute___onChangeEvent_mode, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(PanelAttribute__onChangeEvent_mode, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_PasteButton_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getPasteButtonModifier()->construct(id, flags); } @@ -8667,7 +8620,7 @@ void impl_PatternLockAttribute_backgroundColor(Ark_NativePointer thisPtr, uint8_ value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPatternLockModifier()->setBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -8696,7 +8649,7 @@ void impl_PatternLockAttribute_regularColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPatternLockModifier()->setRegularColor(self, (const Ark_ResourceColor*)&value_value); @@ -8725,7 +8678,7 @@ void impl_PatternLockAttribute_selectedColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPatternLockModifier()->setSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -8754,7 +8707,7 @@ void impl_PatternLockAttribute_activeColor(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPatternLockModifier()->setActiveColor(self, (const Ark_ResourceColor*)&value_value); @@ -8783,7 +8736,7 @@ void impl_PatternLockAttribute_pathColor(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPatternLockModifier()->setPathColor(self, (const Ark_ResourceColor*)&value_value); @@ -8804,7 +8757,7 @@ void impl_PatternLockAttribute_pathStrokeWidth(Ark_NativePointer thisPtr, uint8_ value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getPatternLockModifier()->setPathStrokeWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -8952,7 +8905,7 @@ void impl_ProgressAttribute_color(Ark_NativePointer thisPtr, uint8_t* thisArray, Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Union_ResourceColor_LinearGradient_common value_value_buf = {}; + Ark_Union_ResourceColor_LinearGradient value_value_buf = {}; value_value_buf.selector = value_value_buf_selector; if (value_value_buf_selector == 0) { value_value_buf.selector = 0; @@ -8976,19 +8929,19 @@ void impl_ProgressAttribute_color(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } else if (value_value_buf_selector == 1) { value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readLinearGradient_common(); + value_value_buf.value1 = static_cast(thisDeserializer.readLinearGradient()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } - Ark_Union_ResourceColor_LinearGradient_common value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getProgressModifier()->setColor(self, (const Ark_Union_ResourceColor_LinearGradient_common*)&value_value); + Ark_Union_ResourceColor_LinearGradient value_value = static_cast(value_value_buf);; + GetNodeModifiers()->getProgressModifier()->setColor(self, (const Ark_Union_ResourceColor_LinearGradient*)&value_value); } KOALA_INTEROP_V3(ProgressAttribute_color, Ark_NativePointer, uint8_t*, int32_t) void impl_ProgressAttribute_style(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -9014,7 +8967,7 @@ void impl_ProgressAttribute_style(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readProgressStyleOptions(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_LinearStyleOptions_RingStyleOptions_CapsuleStyleOptions_ProgressStyleOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getProgressModifier()->setStyle(self, (const Ark_Union_LinearStyleOptions_RingStyleOptions_CapsuleStyleOptions_ProgressStyleOptions*)&value_value); @@ -9073,7 +9026,7 @@ void impl_QRCodeAttribute_color(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getQRCodeModifier()->setColor(self, (const Ark_ResourceColor*)&value_value); @@ -9102,7 +9055,7 @@ void impl_QRCodeAttribute_backgroundColor(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getQRCodeModifier()->setBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -9123,7 +9076,7 @@ void impl_QRCodeAttribute_contentOpacity(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getQRCodeModifier()->setContentOpacity(self, (const Ark_Union_Number_Resource*)&value_value); @@ -9173,13 +9126,13 @@ void impl_RadioAttribute_contentModifier(Ark_NativePointer thisPtr, uint8_t* thi GetNodeModifiers()->getRadioModifier()->setContentModifier(self, (const Ark_CustomObject*)&value_value); } KOALA_INTEROP_V3(RadioAttribute_contentModifier, Ark_NativePointer, uint8_t*, int32_t) -void impl_RadioAttribute___onChangeEvent_checked(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_RadioAttribute__onChangeEvent_checked(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getRadioModifier()->set__onChangeEvent_checked(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getRadioModifier()->set_onChangeEvent_checked(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(RadioAttribute___onChangeEvent_checked, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(RadioAttribute__onChangeEvent_checked, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Rating_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getRatingModifier()->construct(id, flags); } @@ -9229,13 +9182,13 @@ void impl_RatingAttribute_contentModifier(Ark_NativePointer thisPtr, uint8_t* th GetNodeModifiers()->getRatingModifier()->setContentModifier(self, (const Ark_CustomObject*)&value_value); } KOALA_INTEROP_V3(RatingAttribute_contentModifier, Ark_NativePointer, uint8_t*, int32_t) -void impl_RatingAttribute___onChangeEvent_rating(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_RatingAttribute__onChangeEvent_rating(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))};; - GetNodeModifiers()->getRatingModifier()->set__onChangeEvent_rating(self, (const Callback_Number_Void*)&callback_value); + GetNodeModifiers()->getRatingModifier()->set_onChangeEvent_rating(self, (const Callback_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(RatingAttribute___onChangeEvent_rating, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(RatingAttribute__onChangeEvent_rating, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Rect_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getRectModifier()->construct(id, flags); } @@ -9260,7 +9213,7 @@ void impl_RectInterface_setRectOptions(Ark_NativePointer thisPtr, uint8_t* thisA options_value_buf_.value1 = thisDeserializer.readRoundedRectOptions(); } else { - throw "One of the branches for options_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for options_value_buf_ has to be chosen through deserialisation."); } options_value_buf.value = static_cast(options_value_buf_); } @@ -9283,7 +9236,7 @@ void impl_RectAttribute_radiusWidth(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getRectModifier()->setRadiusWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -9304,7 +9257,7 @@ void impl_RectAttribute_radiusHeight(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getRectModifier()->setRadiusHeight(self, (const Ark_Union_Number_String*)&value_value); @@ -9343,14 +9296,14 @@ void impl_RectAttribute_radius(Ark_NativePointer thisPtr, uint8_t* thisArray, in value_value_buf_u_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf_u_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u_buf has to be chosen through deserialisation."); } value_value_buf_u.array[value_value_buf_u_i] = static_cast(value_value_buf_u_buf); } value_value_buf.value2 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Array_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getRectModifier()->setRadius(self, (const Ark_Union_Number_String_Array_Union_Number_String*)&value_value); @@ -9412,13 +9365,13 @@ void impl_RefreshAttribute_pullDownRatio(Ark_NativePointer thisPtr, uint8_t* thi GetNodeModifiers()->getRefreshModifier()->setPullDownRatio(self, (const Opt_Number*)&value_value); } KOALA_INTEROP_V3(RefreshAttribute_pullDownRatio, Ark_NativePointer, uint8_t*, int32_t) -void impl_RefreshAttribute___onChangeEvent_refreshing(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_RefreshAttribute__onChangeEvent_refreshing(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getRefreshModifier()->set__onChangeEvent_refreshing(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getRefreshModifier()->set_onChangeEvent_refreshing(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(RefreshAttribute___onChangeEvent_refreshing, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(RefreshAttribute__onChangeEvent_refreshing, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RelativeContainer_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getRelativeContainerModifier()->construct(id, flags); } @@ -9596,7 +9549,7 @@ void impl_RichEditorAttribute_caretColor(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getRichEditorModifier()->setCaretColor(self, (const Ark_ResourceColor*)&value_value); @@ -9625,7 +9578,7 @@ void impl_RichEditorAttribute_selectedBackgroundColor(Ark_NativePointer thisPtr, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getRichEditorModifier()->setSelectedBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -9682,7 +9635,7 @@ void impl_RichEditorAttribute_editMenuOptions(Ark_NativePointer thisPtr, uint8_t Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EditMenuOptions value_value = static_cast(thisDeserializer.readEditMenuOptions());; - GetNodeModifiers()->getRichEditorModifier()->setEditMenuOptions(self, (const Ark_EditMenuOptions*)&value_value); + GetNodeModifiers()->getRichEditorModifier()->setEditMenuOptions(self, value_value); } KOALA_INTEROP_V3(RichEditorAttribute_editMenuOptions, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorAttribute_enableKeyboardOnFocus(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -9716,7 +9669,7 @@ void impl_RichEditorAttribute_bindSelectionMenu(Ark_NativePointer thisPtr, Ark_I responseType_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for responseType_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for responseType_value_buf has to be chosen through deserialisation."); } Ark_Union_ResponseType_RichEditorResponseType responseType_value = static_cast(responseType_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -9760,7 +9713,7 @@ void impl_RichEditorAttribute_placeholder(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; const auto style_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -9950,15 +9903,8 @@ KOALA_INTEROP_V3(ScrollAttribute_onWillScroll, Ark_NativePointer, uint8_t*, int3 void impl_ScrollAttribute_onDidScroll(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_ScrollOnScrollCallback value_value_buf = {}; - value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) - { - value_value_buf.value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ScrollOnScrollCallback)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ScrollOnScrollCallback))))}; - } - Opt_ScrollOnScrollCallback value_value = value_value_buf;; - GetNodeModifiers()->getScrollModifier()->setOnDidScroll(self, (const Opt_ScrollOnScrollCallback*)&value_value); + ScrollOnScrollCallback value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ScrollOnScrollCallback)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ScrollOnScrollCallback))))};; + GetNodeModifiers()->getScrollModifier()->setOnDidScroll(self, (const ScrollOnScrollCallback*)&value_value); } KOALA_INTEROP_V3(ScrollAttribute_onDidScroll, Ark_NativePointer, uint8_t*, int32_t) void impl_ScrollAttribute_onScrollEdge(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -10013,7 +9959,7 @@ void impl_ScrollAttribute_scrollBarColor(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Color_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollModifier()->setScrollBarColor(self, (const Ark_Union_Color_Number_String*)&value_value); @@ -10034,7 +9980,7 @@ void impl_ScrollAttribute_scrollBarWidth(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollModifier()->setScrollBarWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -10074,7 +10020,7 @@ void impl_ScrollAttribute_friction(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getScrollModifier()->setFriction(self, (const Ark_Union_Number_Resource*)&value_value); @@ -10179,7 +10125,7 @@ void impl_SearchAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -10200,7 +10146,7 @@ void impl_SearchAttribute_searchIcon(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = thisDeserializer.readSymbolGlyphModifier(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_IconOptions_SymbolGlyphModifier value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setSearchIcon(self, (const Ark_Union_IconOptions_SymbolGlyphModifier*)&value_value); @@ -10221,7 +10167,7 @@ void impl_SearchAttribute_cancelButton(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = thisDeserializer.readCancelButtonSymbolOptions(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_CancelButtonOptions_CancelButtonSymbolOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setCancelButton(self, (const Ark_Union_CancelButtonOptions_CancelButtonSymbolOptions*)&value_value); @@ -10262,7 +10208,7 @@ void impl_SearchAttribute_selectedBackgroundColor(Ark_NativePointer thisPtr, uin value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setSelectedBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -10298,7 +10244,7 @@ void impl_SearchAttribute_placeholderColor(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setPlaceholderColor(self, (const Ark_ResourceColor*)&value_value); @@ -10437,7 +10383,7 @@ void impl_SearchAttribute_minFontSize(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setMinFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -10462,7 +10408,7 @@ void impl_SearchAttribute_maxFontSize(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setMaxFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -10494,7 +10440,7 @@ void impl_SearchAttribute_letterSpacing(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setLetterSpacing(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -10519,7 +10465,7 @@ void impl_SearchAttribute_lineHeight(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSearchModifier()->setLineHeight(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -10567,7 +10513,7 @@ void impl_SearchAttribute_editMenuOptions(Ark_NativePointer thisPtr, uint8_t* th Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EditMenuOptions value_value = static_cast(thisDeserializer.readEditMenuOptions());; - GetNodeModifiers()->getSearchModifier()->setEditMenuOptions(self, (const Ark_EditMenuOptions*)&value_value); + GetNodeModifiers()->getSearchModifier()->setEditMenuOptions(self, value_value); } KOALA_INTEROP_V3(SearchAttribute_editMenuOptions, Ark_NativePointer, uint8_t*, int32_t) void impl_SearchAttribute_enablePreviewText(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -10609,7 +10555,7 @@ void impl_SearchAttribute_inputFilter(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; const auto error_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -10638,13 +10584,13 @@ void impl_SearchAttribute_customKeyboard(Ark_NativePointer thisPtr, uint8_t* thi GetNodeModifiers()->getSearchModifier()->setCustomKeyboard(self, (const CustomNodeBuilder*)&value_value, (const Opt_KeyboardOptions*)&options_value); } KOALA_INTEROP_V3(SearchAttribute_customKeyboard, Ark_NativePointer, uint8_t*, int32_t) -void impl_SearchAttribute___onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_SearchAttribute__onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); 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))))};; - GetNodeModifiers()->getSearchModifier()->set__onChangeEvent_value(self, (const Callback_String_Void*)&callback_value); + GetNodeModifiers()->getSearchModifier()->set_onChangeEvent_value(self, (const Callback_String_Void*)&callback_value); } -KOALA_INTEROP_V3(SearchAttribute___onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(SearchAttribute__onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_SecurityComponentMethod_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getSecurityComponentMethodModifier()->construct(id, flags); } @@ -10692,7 +10638,7 @@ void impl_SecurityComponentMethod_offset(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value2 = thisDeserializer.readLocalizedEdges(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Position_Edges_LocalizedEdges value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setOffset(self, (const Ark_Union_Position_Edges_LocalizedEdges*)&value_value); @@ -10727,7 +10673,7 @@ void impl_SecurityComponentMethod_fontWeight(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -10748,7 +10694,7 @@ void impl_SecurityComponentMethod_fontFamily(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setFontFamily(self, (const Ark_Union_String_Resource*)&value_value); @@ -10777,7 +10723,7 @@ void impl_SecurityComponentMethod_fontColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -10806,7 +10752,7 @@ void impl_SecurityComponentMethod_iconColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setIconColor(self, (const Ark_ResourceColor*)&value_value); @@ -10835,7 +10781,7 @@ void impl_SecurityComponentMethod_backgroundColor(Ark_NativePointer thisPtr, uin value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -10874,7 +10820,7 @@ void impl_SecurityComponentMethod_borderColor(Ark_NativePointer thisPtr, uint8_t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setBorderColor(self, (const Ark_ResourceColor*)&value_value); @@ -10933,7 +10879,7 @@ void impl_SecurityComponentMethod_padding(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value1 = thisDeserializer.readLength(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Padding_Dimension value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSecurityComponentMethodModifier()->setPadding(self, (const Ark_Union_Padding_Dimension*)&value_value); @@ -11006,7 +10952,7 @@ void impl_SelectAttribute_selected(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setSelected(self, (const Ark_Union_Number_Resource*)&value_value); @@ -11027,7 +10973,7 @@ void impl_SelectAttribute_value(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setValue(self, (const Ark_ResourceStr*)&value_value); @@ -11063,7 +11009,7 @@ void impl_SelectAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -11092,7 +11038,7 @@ void impl_SelectAttribute_selectedOptionBgColor(Ark_NativePointer thisPtr, uint8 value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setSelectedOptionBgColor(self, (const Ark_ResourceColor*)&value_value); @@ -11128,7 +11074,7 @@ void impl_SelectAttribute_selectedOptionFontColor(Ark_NativePointer thisPtr, uin value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setSelectedOptionFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -11157,7 +11103,7 @@ void impl_SelectAttribute_optionBgColor(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setOptionBgColor(self, (const Ark_ResourceColor*)&value_value); @@ -11193,7 +11139,7 @@ void impl_SelectAttribute_optionFontColor(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setOptionFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -11231,7 +11177,7 @@ void impl_SelectAttribute_optionWidth(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Dimension_OptionWidthMode value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setOptionWidth(self, (const Ark_Union_Dimension_OptionWidthMode*)&value_value); @@ -11265,7 +11211,7 @@ void impl_SelectAttribute_menuBackgroundColor(Ark_NativePointer thisPtr, uint8_t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSelectModifier()->setMenuBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -11319,20 +11265,20 @@ void impl_SelectAttribute_menuAlign(Ark_NativePointer thisPtr, Ark_Int32 alignTy GetNodeModifiers()->getSelectModifier()->setMenuAlign(self, static_cast(alignType), (const Opt_Offset*)&offset_value); } KOALA_INTEROP_V4(SelectAttribute_menuAlign, Ark_NativePointer, Ark_Int32, uint8_t*, int32_t) -void impl_SelectAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_SelectAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Union_Number_Resource_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Union_Number_Resource_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Union_Number_Resource_Void))))};; - GetNodeModifiers()->getSelectModifier()->set__onChangeEvent_selected(self, (const Callback_Union_Number_Resource_Void*)&callback_value); + GetNodeModifiers()->getSelectModifier()->set_onChangeEvent_selected(self, (const Callback_Union_Number_Resource_Void*)&callback_value); } -KOALA_INTEROP_V3(SelectAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) -void impl_SelectAttribute___onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V3(SelectAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +void impl_SelectAttribute__onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_ResourceStr_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_ResourceStr_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_ResourceStr_Void))))};; - GetNodeModifiers()->getSelectModifier()->set__onChangeEvent_value(self, (const Callback_ResourceStr_Void*)&callback_value); + GetNodeModifiers()->getSelectModifier()->set_onChangeEvent_value(self, (const Callback_ResourceStr_Void*)&callback_value); } -KOALA_INTEROP_V3(SelectAttribute___onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(SelectAttribute__onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Shape_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getShapeModifier()->construct(id, flags); } @@ -11341,7 +11287,7 @@ void impl_ShapeInterface_setShapeOptions0(Ark_NativePointer thisPtr, uint8_t* th Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_PixelMap value_value = static_cast(thisDeserializer.readPixelMap());; - GetNodeModifiers()->getShapeModifier()->setShapeOptions0(self, (const Ark_PixelMap*)&value_value); + GetNodeModifiers()->getShapeModifier()->setShapeOptions0(self, value_value); } KOALA_INTEROP_V3(ShapeInterface_setShapeOptions0, Ark_NativePointer, uint8_t*, int32_t) void impl_ShapeInterface_setShapeOptions1(Ark_NativePointer thisPtr) { @@ -11379,7 +11325,7 @@ void impl_ShapeAttribute_stroke(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setStroke(self, (const Ark_ResourceColor*)&value_value); @@ -11408,7 +11354,7 @@ void impl_ShapeAttribute_fill(Ark_NativePointer thisPtr, uint8_t* thisArray, int value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setFill(self, (const Ark_ResourceColor*)&value_value); @@ -11429,7 +11375,7 @@ void impl_ShapeAttribute_strokeDashOffset(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setStrokeDashOffset(self, (const Ark_Union_Number_String*)&value_value); @@ -11474,7 +11420,7 @@ void impl_ShapeAttribute_strokeMiterLimit(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setStrokeMiterLimit(self, (const Ark_Union_Number_String*)&value_value); @@ -11499,7 +11445,7 @@ void impl_ShapeAttribute_strokeOpacity(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setStrokeOpacity(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -11524,7 +11470,7 @@ void impl_ShapeAttribute_fillOpacity(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setFillOpacity(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -11545,7 +11491,7 @@ void impl_ShapeAttribute_strokeWidth(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getShapeModifier()->setStrokeWidth(self, (const Ark_Union_Number_String*)&value_value); @@ -11611,7 +11557,7 @@ void impl_SliderAttribute_blockColor(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSliderModifier()->setBlockColor(self, (const Ark_ResourceColor*)&value_value); @@ -11621,7 +11567,7 @@ void impl_SliderAttribute_trackColor(Ark_NativePointer thisPtr, uint8_t* thisArr Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Union_ResourceColor_LinearGradient_common value_value_buf = {}; + Ark_Union_ResourceColor_LinearGradient value_value_buf = {}; value_value_buf.selector = value_value_buf_selector; if (value_value_buf_selector == 0) { value_value_buf.selector = 0; @@ -11645,19 +11591,19 @@ void impl_SliderAttribute_trackColor(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf_u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value0 = static_cast(value_value_buf_u); } else if (value_value_buf_selector == 1) { value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readLinearGradient_common(); + value_value_buf.value1 = static_cast(thisDeserializer.readLinearGradient()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } - Ark_Union_ResourceColor_LinearGradient_common value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getSliderModifier()->setTrackColor(self, (const Ark_Union_ResourceColor_LinearGradient_common*)&value_value); + Ark_Union_ResourceColor_LinearGradient value_value = static_cast(value_value_buf);; + GetNodeModifiers()->getSliderModifier()->setTrackColor(self, (const Ark_Union_ResourceColor_LinearGradient*)&value_value); } KOALA_INTEROP_V3(SliderAttribute_trackColor, Ark_NativePointer, uint8_t*, int32_t) void impl_SliderAttribute_selectedColor(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -11683,7 +11629,7 @@ void impl_SliderAttribute_selectedColor(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSliderModifier()->setSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -11739,7 +11685,7 @@ void impl_SliderAttribute_blockBorderColor(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSliderModifier()->setBlockBorderColor(self, (const Ark_ResourceColor*)&value_value); @@ -11773,7 +11719,7 @@ void impl_SliderAttribute_stepColor(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSliderModifier()->setStepColor(self, (const Ark_ResourceColor*)&value_value); @@ -11852,7 +11798,7 @@ void impl_SliderAttribute_showTips(Ark_NativePointer thisPtr, Ark_Boolean value, content_value_buf_.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for content_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_value_buf_ has to be chosen through deserialisation."); } content_value_buf.value = static_cast(content_value_buf_); } @@ -11860,13 +11806,13 @@ void impl_SliderAttribute_showTips(Ark_NativePointer thisPtr, Ark_Boolean value, GetNodeModifiers()->getSliderModifier()->setShowTips(self, value, (const Opt_ResourceStr*)&content_value); } KOALA_INTEROP_V4(SliderAttribute_showTips, Ark_NativePointer, Ark_Boolean, uint8_t*, int32_t) -void impl_SliderAttribute___onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_SliderAttribute__onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))};; - GetNodeModifiers()->getSliderModifier()->set__onChangeEvent_value(self, (const Callback_Number_Void*)&callback_value); + GetNodeModifiers()->getSliderModifier()->set_onChangeEvent_value(self, (const Callback_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(SliderAttribute___onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(SliderAttribute__onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_BaseSpan_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getBaseSpanModifier()->construct(id, flags); } @@ -11882,7 +11828,7 @@ void impl_BaseSpan_baselineOffset(Ark_NativePointer thisPtr, uint8_t* thisArray, Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics value_value = static_cast(thisDeserializer.readLengthMetrics());; - GetNodeModifiers()->getBaseSpanModifier()->setBaselineOffset(self, (const Ark_LengthMetrics*)&value_value); + GetNodeModifiers()->getBaseSpanModifier()->setBaselineOffset(self, value_value); } KOALA_INTEROP_V3(BaseSpan_baselineOffset, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Span_construct(Ark_Int32 id, Ark_Int32 flags) { @@ -11904,7 +11850,7 @@ void impl_SpanInterface_setSpanOptions(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setSpanOptions(self, (const Ark_Union_String_Resource*)&value_value); @@ -11940,7 +11886,7 @@ void impl_SpanAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -11965,7 +11911,7 @@ void impl_SpanAttribute_fontSize(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -11995,7 +11941,7 @@ void impl_SpanAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -12016,7 +11962,7 @@ void impl_SpanAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setFontFamily(self, (const Ark_Union_String_Resource*)&value_value); @@ -12044,7 +11990,7 @@ void impl_SpanAttribute_letterSpacing(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setLetterSpacing(self, (const Ark_Union_Number_String*)&value_value); @@ -12082,7 +12028,7 @@ void impl_SpanAttribute_textShadow(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ShadowOptions_Array_ShadowOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSpanModifier()->setTextShadow(self, (const Ark_Union_ShadowOptions_Array_ShadowOptions*)&value_value); @@ -12180,13 +12126,13 @@ void impl_StepperAttribute_onPrevious(Ark_NativePointer thisPtr, uint8_t* thisAr GetNodeModifiers()->getStepperModifier()->setOnPrevious(self, (const Callback_Number_Number_Void*)&value_value); } KOALA_INTEROP_V3(StepperAttribute_onPrevious, Ark_NativePointer, uint8_t*, int32_t) -void impl_StepperAttribute___onChangeEvent_index(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_StepperAttribute__onChangeEvent_index(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))};; - GetNodeModifiers()->getStepperModifier()->set__onChangeEvent_index(self, (const Callback_Number_Void*)&callback_value); + GetNodeModifiers()->getStepperModifier()->set_onChangeEvent_index(self, (const Callback_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(StepperAttribute___onChangeEvent_index, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(StepperAttribute__onChangeEvent_index, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_StepperItem_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getStepperItemModifier()->construct(id, flags); } @@ -12272,7 +12218,7 @@ void impl_SwiperAttribute_indicator0(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value2 = thisDeserializer.readBoolean(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_DotIndicator_DigitIndicator_Boolean value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSwiperModifier()->setIndicator0(self, (const Ark_Union_DotIndicator_DigitIndicator_Boolean*)&value_value); @@ -12282,7 +12228,7 @@ void impl_SwiperAttribute_indicator1(Ark_NativePointer thisPtr, uint8_t* thisArr Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_IndicatorComponentController value_value = static_cast(thisDeserializer.readIndicatorComponentController());; - GetNodeModifiers()->getSwiperModifier()->setIndicator1(self, (const Ark_IndicatorComponentController*)&value_value); + GetNodeModifiers()->getSwiperModifier()->setIndicator1(self, value_value); } KOALA_INTEROP_V3(SwiperAttribute_indicator1, Ark_NativePointer, uint8_t*, int32_t) void impl_SwiperAttribute_loop(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -12315,7 +12261,7 @@ void impl_SwiperAttribute_itemSpace(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSwiperModifier()->setItemSpace(self, (const Ark_Union_Number_String*)&value_value); @@ -12360,7 +12306,7 @@ void impl_SwiperAttribute_curve(Ark_NativePointer thisPtr, uint8_t* thisArray, i value_value_buf.value2 = static_cast(thisDeserializer.readICurve()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Curve_String_ICurve value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSwiperModifier()->setCurve(self, (const Ark_Union_Curve_String_ICurve*)&value_value); @@ -12447,7 +12393,7 @@ void impl_SwiperAttribute_displayArrow(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = thisDeserializer.readBoolean(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ArrowStyle_Boolean value_value = static_cast(value_value_buf);; const auto isHoverShow_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -12480,7 +12426,7 @@ void impl_SwiperAttribute_displayCount(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = thisDeserializer.readSwiperAutoFill(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_SwiperAutoFill value_value = static_cast(value_value_buf);; const auto swipeByGroup_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -12522,13 +12468,13 @@ void impl_SwiperAttribute_nextMargin(Ark_NativePointer thisPtr, const KLength& v GetNodeModifiers()->getSwiperModifier()->setNextMargin(self, (const Ark_Length*)&value, (const Opt_Boolean*)&ignoreBlank_value); } KOALA_INTEROP_V4(SwiperAttribute_nextMargin, Ark_NativePointer, KLength, uint8_t*, int32_t) -void impl_SwiperAttribute___onChangeEvent_index(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_SwiperAttribute__onChangeEvent_index(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))};; - GetNodeModifiers()->getSwiperModifier()->set__onChangeEvent_index(self, (const Callback_Number_Void*)&callback_value); + GetNodeModifiers()->getSwiperModifier()->set_onChangeEvent_index(self, (const Callback_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(SwiperAttribute___onChangeEvent_index, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(SwiperAttribute__onChangeEvent_index, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_IndicatorComponent_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getIndicatorComponentModifier()->construct(id, flags); } @@ -12572,7 +12518,7 @@ void impl_IndicatorComponentAttribute_style(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = thisDeserializer.readDigitIndicator(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_DotIndicator_DigitIndicator value_value = static_cast(value_value_buf);; GetNodeModifiers()->getIndicatorComponentModifier()->setStyle(self, (const Ark_Union_DotIndicator_DigitIndicator*)&value_value); @@ -12632,7 +12578,7 @@ void impl_SymbolGlyphAttribute_fontSize(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSymbolGlyphModifier()->setFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -12666,7 +12612,7 @@ void impl_SymbolGlyphAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_buf has to be chosen through deserialisation."); } value_value_buf.array[value_value_buf_i] = static_cast(value_value_buf_buf); } @@ -12693,7 +12639,7 @@ void impl_SymbolGlyphAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSymbolGlyphModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -12769,7 +12715,7 @@ void impl_SymbolSpanAttribute_fontSize(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSymbolSpanModifier()->setFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -12803,7 +12749,7 @@ void impl_SymbolSpanAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* this value_value_buf_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_buf has to be chosen through deserialisation."); } value_value_buf.array[value_value_buf_i] = static_cast(value_value_buf_buf); } @@ -12830,7 +12776,7 @@ void impl_SymbolSpanAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getSymbolSpanModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -13023,7 +12969,7 @@ void impl_TabsAttribute_barBackgroundColor(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTabsModifier()->setBarBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -13076,13 +13022,13 @@ void impl_TabsAttribute_barModeScrollable(Ark_NativePointer thisPtr, uint8_t* th GetNodeModifiers()->getTabsModifier()->setBarModeScrollable(self, (const Ark_ScrollableBarModeOptions*)&options_value); } KOALA_INTEROP_V3(TabsAttribute_barModeScrollable, Ark_NativePointer, uint8_t*, int32_t) -void impl_TabsAttribute___onChangeEvent_index(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_TabsAttribute__onChangeEvent_index(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))};; - GetNodeModifiers()->getTabsModifier()->set__onChangeEvent_index(self, (const Callback_Number_Void*)&callback_value); + GetNodeModifiers()->getTabsModifier()->set_onChangeEvent_index(self, (const Callback_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(TabsAttribute___onChangeEvent_index, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(TabsAttribute__onChangeEvent_index, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TabContent_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getTabContentModifier()->construct(id, flags); } @@ -13115,7 +13061,7 @@ void impl_TabContentAttribute_tabBar0(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value3 = thisDeserializer.readTabBarOptions(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource_CustomBuilder_TabBarOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTabContentModifier()->setTabBar0(self, (const Ark_Union_String_Resource_CustomBuilder_TabBarOptions*)&value_value); @@ -13136,7 +13082,7 @@ void impl_TabContentAttribute_tabBar1(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = thisDeserializer.readBottomTabBarStyle(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_SubTabBarStyle_BottomTabBarStyle value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTabContentModifier()->setTabBar1(self, (const Ark_Union_SubTabBarStyle_BottomTabBarStyle*)&value_value); @@ -13180,7 +13126,7 @@ void impl_TextInterface_setTextOptions(Ark_NativePointer thisPtr, uint8_t* thisA content_value_buf_.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for content_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for content_value_buf_ has to be chosen through deserialisation."); } content_value_buf.value = static_cast(content_value_buf_); } @@ -13241,7 +13187,7 @@ void impl_TextAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -13266,7 +13212,7 @@ void impl_TextAttribute_fontSize(Ark_NativePointer thisPtr, uint8_t* thisArray, value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -13291,7 +13237,7 @@ void impl_TextAttribute_minFontSize(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setMinFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -13316,7 +13262,7 @@ void impl_TextAttribute_maxFontSize(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setMaxFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -13337,7 +13283,7 @@ void impl_TextAttribute_minFontScale(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setMinFontScale(self, (const Ark_Union_Number_Resource*)&value_value); @@ -13358,7 +13304,7 @@ void impl_TextAttribute_maxFontScale(Ark_NativePointer thisPtr, uint8_t* thisArr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setMaxFontScale(self, (const Ark_Union_Number_Resource*)&value_value); @@ -13388,7 +13334,7 @@ void impl_TextAttribute_fontWeight0(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setFontWeight0(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -13413,7 +13359,7 @@ void impl_TextAttribute_fontWeight1(Ark_NativePointer thisPtr, uint8_t* thisArra weight_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for weight_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for weight_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String weight_value = static_cast(weight_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -13431,7 +13377,7 @@ void impl_TextAttribute_lineSpacing(Ark_NativePointer thisPtr, uint8_t* thisArra Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics value_value = static_cast(thisDeserializer.readLengthMetrics());; - GetNodeModifiers()->getTextModifier()->setLineSpacing(self, (const Ark_LengthMetrics*)&value_value); + GetNodeModifiers()->getTextModifier()->setLineSpacing(self, value_value); } KOALA_INTEROP_V3(TextAttribute_lineSpacing, Ark_NativePointer, uint8_t*, int32_t) void impl_TextAttribute_textAlign(Ark_NativePointer thisPtr, Ark_Int32 value) { @@ -13458,7 +13404,7 @@ void impl_TextAttribute_lineHeight(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setLineHeight(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -13486,7 +13432,7 @@ void impl_TextAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setFontFamily(self, (const Ark_Union_String_Resource*)&value_value); @@ -13519,7 +13465,7 @@ void impl_TextAttribute_letterSpacing(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setLetterSpacing(self, (const Ark_Union_Number_String*)&value_value); @@ -13545,7 +13491,7 @@ void impl_TextAttribute_baselineOffset(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setBaselineOffset(self, (const Ark_Union_Number_String*)&value_value); @@ -13583,7 +13529,7 @@ void impl_TextAttribute_textShadow(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ShadowOptions_Array_ShadowOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setTextShadow(self, (const Ark_Union_ShadowOptions_Array_ShadowOptions*)&value_value); @@ -13639,7 +13585,7 @@ void impl_TextAttribute_caretColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setCaretColor(self, (const Ark_ResourceColor*)&value_value); @@ -13668,7 +13614,7 @@ void impl_TextAttribute_selectedBackgroundColor(Ark_NativePointer thisPtr, uint8 value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextModifier()->setSelectedBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -13717,7 +13663,7 @@ void impl_TextAttribute_editMenuOptions(Ark_NativePointer thisPtr, uint8_t* this Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EditMenuOptions value_value = static_cast(thisDeserializer.readEditMenuOptions());; - GetNodeModifiers()->getTextModifier()->setEditMenuOptions(self, (const Ark_EditMenuOptions*)&value_value); + GetNodeModifiers()->getTextModifier()->setEditMenuOptions(self, value_value); } KOALA_INTEROP_V3(TextAttribute_editMenuOptions, Ark_NativePointer, uint8_t*, int32_t) void impl_TextAttribute_halfLeading(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -13791,7 +13737,7 @@ void impl_TextAreaAttribute_placeholderColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setPlaceholderColor(self, (const Ark_ResourceColor*)&value_value); @@ -13837,7 +13783,7 @@ void impl_TextAreaAttribute_caretColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setCaretColor(self, (const Ark_ResourceColor*)&value_value); @@ -13866,7 +13812,7 @@ void impl_TextAreaAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -13901,7 +13847,7 @@ void impl_TextAreaAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -13922,7 +13868,7 @@ void impl_TextAreaAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setFontFamily(self, (const Ark_ResourceStr*)&value_value); @@ -13968,7 +13914,7 @@ void impl_TextAreaAttribute_selectedBackgroundColor(Ark_NativePointer thisPtr, u value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setSelectedBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -14086,7 +14032,7 @@ void impl_TextAreaAttribute_minFontSize(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setMinFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -14111,7 +14057,7 @@ void impl_TextAreaAttribute_maxFontSize(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setMaxFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -14163,7 +14109,7 @@ void impl_TextAreaAttribute_letterSpacing(Ark_NativePointer thisPtr, uint8_t* th value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setLetterSpacing(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -14173,7 +14119,7 @@ void impl_TextAreaAttribute_lineSpacing(Ark_NativePointer thisPtr, uint8_t* this Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics value_value = static_cast(thisDeserializer.readLengthMetrics());; - GetNodeModifiers()->getTextAreaModifier()->setLineSpacing(self, (const Ark_LengthMetrics*)&value_value); + GetNodeModifiers()->getTextAreaModifier()->setLineSpacing(self, value_value); } KOALA_INTEROP_V3(TextAreaAttribute_lineSpacing, Ark_NativePointer, uint8_t*, int32_t) void impl_TextAreaAttribute_lineHeight(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -14195,7 +14141,7 @@ void impl_TextAreaAttribute_lineHeight(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextAreaModifier()->setLineHeight(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -14253,7 +14199,7 @@ void impl_TextAreaAttribute_editMenuOptions(Ark_NativePointer thisPtr, uint8_t* Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EditMenuOptions value_value = static_cast(thisDeserializer.readEditMenuOptions());; - GetNodeModifiers()->getTextAreaModifier()->setEditMenuOptions(self, (const Ark_EditMenuOptions*)&value_value); + GetNodeModifiers()->getTextAreaModifier()->setEditMenuOptions(self, value_value); } KOALA_INTEROP_V3(TextAreaAttribute_editMenuOptions, Ark_NativePointer, uint8_t*, int32_t) void impl_TextAreaAttribute_enablePreviewText(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -14281,7 +14227,7 @@ void impl_TextAreaAttribute_inputFilter(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; const auto error_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -14324,13 +14270,13 @@ void impl_TextAreaAttribute_customKeyboard(Ark_NativePointer thisPtr, uint8_t* t GetNodeModifiers()->getTextAreaModifier()->setCustomKeyboard(self, (const CustomNodeBuilder*)&value_value, (const Opt_KeyboardOptions*)&options_value); } KOALA_INTEROP_V3(TextAreaAttribute_customKeyboard, Ark_NativePointer, uint8_t*, int32_t) -void impl_TextAreaAttribute___onChangeEvent_text(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_TextAreaAttribute__onChangeEvent_text(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_ResourceStr_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_ResourceStr_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_ResourceStr_Void))))};; - GetNodeModifiers()->getTextAreaModifier()->set__onChangeEvent_text(self, (const Callback_ResourceStr_Void*)&callback_value); + GetNodeModifiers()->getTextAreaModifier()->set_onChangeEvent_text(self, (const Callback_ResourceStr_Void*)&callback_value); } -KOALA_INTEROP_V3(TextAreaAttribute___onChangeEvent_text, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(TextAreaAttribute__onChangeEvent_text, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TextClock_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getTextClockModifier()->construct(id, flags); } @@ -14384,7 +14330,7 @@ void impl_TextClockAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextClockModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -14419,7 +14365,7 @@ void impl_TextClockAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextClockModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -14440,7 +14386,7 @@ void impl_TextClockAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextClockModifier()->setFontFamily(self, (const Ark_ResourceStr*)&value_value); @@ -14468,7 +14414,7 @@ void impl_TextClockAttribute_textShadow(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ShadowOptions_Array_ShadowOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextClockModifier()->setTextShadow(self, (const Ark_Union_ShadowOptions_Array_ShadowOptions*)&value_value); @@ -14551,7 +14497,7 @@ void impl_TextInputAttribute_placeholderColor(Ark_NativePointer thisPtr, uint8_t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setPlaceholderColor(self, (const Ark_ResourceColor*)&value_value); @@ -14609,7 +14555,7 @@ void impl_TextInputAttribute_caretColor(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setCaretColor(self, (const Ark_ResourceColor*)&value_value); @@ -14685,7 +14631,7 @@ void impl_TextInputAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -14720,7 +14666,7 @@ void impl_TextInputAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -14741,7 +14687,7 @@ void impl_TextInputAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setFontFamily(self, (const Ark_ResourceStr*)&value_value); @@ -14798,7 +14744,7 @@ void impl_TextInputAttribute_style(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value1 = static_cast(thisDeserializer.readInt32()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_TextInputStyle_TextContentStyle value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setStyle(self, (const Ark_Union_TextInputStyle_TextContentStyle*)&value_value); @@ -14834,7 +14780,7 @@ void impl_TextInputAttribute_selectedBackgroundColor(Ark_NativePointer thisPtr, value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setSelectedBackgroundColor(self, (const Ark_ResourceColor*)&value_value); @@ -14877,7 +14823,7 @@ void impl_TextInputAttribute_showError(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf_.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_ has to be chosen through deserialisation."); } value_value_buf.value = static_cast(value_value_buf_); } @@ -14930,7 +14876,7 @@ void impl_TextInputAttribute_underlineColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf__u.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf__u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf__u has to be chosen through deserialisation."); } value_value_buf_.value0 = static_cast(value_value_buf__u); } @@ -14939,7 +14885,7 @@ void impl_TextInputAttribute_underlineColor(Ark_NativePointer thisPtr, uint8_t* value_value_buf_.value1 = thisDeserializer.readUnderlineColor(); } else { - throw "One of the branches for value_value_buf_ has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_ has to be chosen through deserialisation."); } value_value_buf.value = static_cast(value_value_buf_); } @@ -15010,7 +14956,7 @@ void impl_TextInputAttribute_minFontSize(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setMinFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -15035,7 +14981,7 @@ void impl_TextInputAttribute_maxFontSize(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setMaxFontSize(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -15077,7 +15023,7 @@ void impl_TextInputAttribute_letterSpacing(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setLetterSpacing(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -15102,7 +15048,7 @@ void impl_TextInputAttribute_lineHeight(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextInputModifier()->setLineHeight(self, (const Ark_Union_Number_String_Resource*)&value_value); @@ -15162,7 +15108,7 @@ void impl_TextInputAttribute_editMenuOptions(Ark_NativePointer thisPtr, uint8_t* Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EditMenuOptions value_value = static_cast(thisDeserializer.readEditMenuOptions());; - GetNodeModifiers()->getTextInputModifier()->setEditMenuOptions(self, (const Ark_EditMenuOptions*)&value_value); + GetNodeModifiers()->getTextInputModifier()->setEditMenuOptions(self, value_value); } KOALA_INTEROP_V3(TextInputAttribute_editMenuOptions, Ark_NativePointer, uint8_t*, int32_t) void impl_TextInputAttribute_enablePreviewText(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -15190,7 +15136,7 @@ void impl_TextInputAttribute_inputFilter(Ark_NativePointer thisPtr, uint8_t* thi value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; const auto error_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -15233,13 +15179,13 @@ void impl_TextInputAttribute_showCounter(Ark_NativePointer thisPtr, Ark_Boolean GetNodeModifiers()->getTextInputModifier()->setShowCounter(self, value, (const Opt_InputCounterOptions*)&options_value); } KOALA_INTEROP_V4(TextInputAttribute_showCounter, Ark_NativePointer, Ark_Boolean, uint8_t*, int32_t) -void impl_TextInputAttribute___onChangeEvent_text(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_TextInputAttribute__onChangeEvent_text(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_ResourceStr_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_ResourceStr_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_ResourceStr_Void))))};; - GetNodeModifiers()->getTextInputModifier()->set__onChangeEvent_text(self, (const Callback_ResourceStr_Void*)&callback_value); + GetNodeModifiers()->getTextInputModifier()->set_onChangeEvent_text(self, (const Callback_ResourceStr_Void*)&callback_value); } -KOALA_INTEROP_V3(TextInputAttribute___onChangeEvent_text, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(TextInputAttribute__onChangeEvent_text, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TextPicker_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getTextPickerModifier()->construct(id, flags); } @@ -15273,7 +15219,7 @@ void impl_TextPickerAttribute_defaultPickerItemHeight(Ark_NativePointer thisPtr, value_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextPickerModifier()->setDefaultPickerItemHeight(self, (const Ark_Union_Number_String*)&value_value); @@ -15348,7 +15294,7 @@ void impl_TextPickerAttribute_selectedIndex(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Array_Number value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextPickerModifier()->setSelectedIndex(self, (const Ark_Union_Number_Array_Number*)&value_value); @@ -15373,20 +15319,20 @@ void impl_TextPickerAttribute_gradientHeight(Ark_NativePointer thisPtr, const KL GetNodeModifiers()->getTextPickerModifier()->setGradientHeight(self, (const Ark_Length*)&value); } KOALA_INTEROP_V2(TextPickerAttribute_gradientHeight, Ark_NativePointer, KLength) -void impl_TextPickerAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_TextPickerAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Union_Number_Array_Number_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Union_Number_Array_Number_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Union_Number_Array_Number_Void))))};; - GetNodeModifiers()->getTextPickerModifier()->set__onChangeEvent_selected(self, (const Callback_Union_Number_Array_Number_Void*)&callback_value); + GetNodeModifiers()->getTextPickerModifier()->set_onChangeEvent_selected(self, (const Callback_Union_Number_Array_Number_Void*)&callback_value); } -KOALA_INTEROP_V3(TextPickerAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) -void impl_TextPickerAttribute___onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V3(TextPickerAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +void impl_TextPickerAttribute__onChangeEvent_value(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Union_String_Array_String_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Union_String_Array_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Union_String_Array_String_Void))))};; - GetNodeModifiers()->getTextPickerModifier()->set__onChangeEvent_value(self, (const Callback_Union_String_Array_String_Void*)&callback_value); + GetNodeModifiers()->getTextPickerModifier()->set_onChangeEvent_value(self, (const Callback_Union_String_Array_String_Void*)&callback_value); } -KOALA_INTEROP_V3(TextPickerAttribute___onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(TextPickerAttribute__onChangeEvent_value, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TextTimer_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getTextTimerModifier()->construct(id, flags); } @@ -15433,7 +15379,7 @@ void impl_TextTimerAttribute_fontColor(Ark_NativePointer thisPtr, uint8_t* thisA value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextTimerModifier()->setFontColor(self, (const Ark_ResourceColor*)&value_value); @@ -15468,7 +15414,7 @@ void impl_TextTimerAttribute_fontWeight(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value2 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_FontWeight_String value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextTimerModifier()->setFontWeight(self, (const Ark_Union_Number_FontWeight_String*)&value_value); @@ -15489,7 +15435,7 @@ void impl_TextTimerAttribute_fontFamily(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextTimerModifier()->setFontFamily(self, (const Ark_ResourceStr*)&value_value); @@ -15524,7 +15470,7 @@ void impl_TextTimerAttribute_textShadow(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value1 = value_value_buf_u; } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_ShadowOptions_Array_ShadowOptions value_value = static_cast(value_value_buf);; GetNodeModifiers()->getTextTimerModifier()->setTextShadow(self, (const Ark_Union_ShadowOptions_Array_ShadowOptions*)&value_value); @@ -15605,13 +15551,13 @@ void impl_TimePickerAttribute_enableHapticFeedback(Ark_NativePointer thisPtr, Ar GetNodeModifiers()->getTimePickerModifier()->setEnableHapticFeedback(self, value); } KOALA_INTEROP_V2(TimePickerAttribute_enableHapticFeedback, Ark_NativePointer, Ark_Boolean) -void impl_TimePickerAttribute___onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_TimePickerAttribute__onChangeEvent_selected(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Date_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Date_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Date_Void))))};; - GetNodeModifiers()->getTimePickerModifier()->set__onChangeEvent_selected(self, (const Callback_Date_Void*)&callback_value); + GetNodeModifiers()->getTimePickerModifier()->set_onChangeEvent_selected(self, (const Callback_Date_Void*)&callback_value); } -KOALA_INTEROP_V3(TimePickerAttribute___onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(TimePickerAttribute__onChangeEvent_selected, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Toggle_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getToggleModifier()->construct(id, flags); } @@ -15660,7 +15606,7 @@ void impl_ToggleAttribute_selectedColor(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getToggleModifier()->setSelectedColor(self, (const Ark_ResourceColor*)&value_value); @@ -15689,7 +15635,7 @@ void impl_ToggleAttribute_switchPointColor(Ark_NativePointer thisPtr, uint8_t* t value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetNodeModifiers()->getToggleModifier()->setSwitchPointColor(self, (const Ark_ResourceColor*)&value_value); @@ -15702,13 +15648,13 @@ void impl_ToggleAttribute_switchStyle(Ark_NativePointer thisPtr, uint8_t* thisAr GetNodeModifiers()->getToggleModifier()->setSwitchStyle(self, (const Ark_SwitchStyle*)&value_value); } KOALA_INTEROP_V3(ToggleAttribute_switchStyle, Ark_NativePointer, uint8_t*, int32_t) -void impl_ToggleAttribute___onChangeEvent_isOn(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_ToggleAttribute__onChangeEvent_isOn(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getToggleModifier()->set__onChangeEvent_isOn(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getToggleModifier()->set_onChangeEvent_isOn(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(ToggleAttribute___onChangeEvent_isOn, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(ToggleAttribute__onChangeEvent_isOn, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Video_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getVideoModifier()->construct(id, flags); } @@ -16483,7 +16429,7 @@ void impl_WebAttribute_nestedScroll(Ark_NativePointer thisPtr, uint8_t* thisArra value_value_buf.value1 = thisDeserializer.readNestedScrollOptionsExt(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_NestedScrollOptions_NestedScrollOptionsExt value_value = static_cast(value_value_buf);; GetNodeModifiers()->getWebModifier()->setNestedScroll(self, (const Ark_Union_NestedScrollOptions_NestedScrollOptionsExt*)&value_value); @@ -16602,7 +16548,7 @@ void impl_WebAttribute_editMenuOptions(Ark_NativePointer thisPtr, uint8_t* thisA Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EditMenuOptions value_value = static_cast(thisDeserializer.readEditMenuOptions());; - GetNodeModifiers()->getWebModifier()->setEditMenuOptions(self, (const Ark_EditMenuOptions*)&value_value); + GetNodeModifiers()->getWebModifier()->setEditMenuOptions(self, value_value); } KOALA_INTEROP_V3(WebAttribute_editMenuOptions, Ark_NativePointer, uint8_t*, int32_t) void impl_WebAttribute_enableHapticFeedback(Ark_NativePointer thisPtr, Ark_Boolean value) { @@ -16834,13 +16780,13 @@ void impl_SideBarContainerAttribute_minContentWidth(Ark_NativePointer thisPtr, c GetNodeModifiers()->getSideBarContainerModifier()->setMinContentWidth(self, (const Ark_Length*)&value); } KOALA_INTEROP_V2(SideBarContainerAttribute_minContentWidth, Ark_NativePointer, KLength) -void impl_SideBarContainerAttribute___onChangeEvent_showSideBar(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { +void impl_SideBarContainerAttribute__onChangeEvent_showSideBar(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { Ark_NodeHandle self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Boolean_Void callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))};; - GetNodeModifiers()->getSideBarContainerModifier()->set__onChangeEvent_showSideBar(self, (const Callback_Boolean_Void*)&callback_value); + GetNodeModifiers()->getSideBarContainerModifier()->set_onChangeEvent_showSideBar(self, (const Callback_Boolean_Void*)&callback_value); } -KOALA_INTEROP_V3(SideBarContainerAttribute___onChangeEvent_showSideBar, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(SideBarContainerAttribute__onChangeEvent_showSideBar, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RemoteWindow_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getRemoteWindowModifier()->construct(id, flags); } @@ -16929,7 +16875,7 @@ void impl_WaterFlowAttribute_friction(Ark_NativePointer thisPtr, uint8_t* thisAr value_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource value_value = static_cast(value_value_buf);; GetNodeModifiers()->getWaterFlowModifier()->setFriction(self, (const Ark_Union_Number_Resource*)&value_value); @@ -17113,26 +17059,32 @@ Ark_NativePointer impl_AnimationExtender_getFinalizer() { return GetAccessors()->getAnimationExtenderAccessor()->getFinalizer(); } KOALA_INTEROP_0(AnimationExtender_getFinalizer, Ark_NativePointer) -void impl_AnimationExtender_SetClipRect(Ark_NativePointer peer, KInteropNumber left, KInteropNumber top, KInteropNumber right, KInteropNumber bottom) { - GetAccessors()->getAnimationExtenderAccessor()->SetClipRect(peer, (const Ark_Number*) (&left), (const Ark_Number*) (&top), (const Ark_Number*) (&right), (const Ark_Number*) (&bottom)); +void impl_AnimationExtender_SetClipRect(Ark_NativePointer node, KFloat x, KFloat y, KFloat width, KFloat height) { + GetAccessors()->getAnimationExtenderAccessor()->SetClipRect(node, x, y, width, height); } -KOALA_INTEROP_V5(AnimationExtender_SetClipRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) -void impl_AnimationExtender_OpenImplicitAnimation(Ark_NativePointer peer, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V5(AnimationExtender_SetClipRect, Ark_NativePointer, KFloat, KFloat, KFloat, KFloat) +void impl_AnimationExtender_OpenImplicitAnimation(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam param_value = thisDeserializer.readAnimateParam();; - GetAccessors()->getAnimationExtenderAccessor()->OpenImplicitAnimation(peer, (const Ark_AnimateParam*)¶m_value); + GetAccessors()->getAnimationExtenderAccessor()->OpenImplicitAnimation((const Ark_AnimateParam*)¶m_value); } -KOALA_INTEROP_V3(AnimationExtender_OpenImplicitAnimation, Ark_NativePointer, uint8_t*, int32_t) -void impl_AnimationExtender_CloseImplicitAnimation(Ark_NativePointer node) { - GetAccessors()->getAnimationExtenderAccessor()->CloseImplicitAnimation(node); +KOALA_INTEROP_V2(AnimationExtender_OpenImplicitAnimation, uint8_t*, int32_t) +void impl_AnimationExtender_CloseImplicitAnimation() { + GetAccessors()->getAnimationExtenderAccessor()->CloseImplicitAnimation(); } -KOALA_INTEROP_V1(AnimationExtender_CloseImplicitAnimation, Ark_NativePointer) -void impl_AnimationExtender_StartDoubleAnimation(Ark_NativePointer peer, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V0(AnimationExtender_CloseImplicitAnimation) +void impl_AnimationExtender_StartDoubleAnimation(Ark_NativePointer node, uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_DoubleAnimationParam param_value = thisDeserializer.readDoubleAnimationParam();; - GetAccessors()->getAnimationExtenderAccessor()->StartDoubleAnimation(peer, (const Ark_DoubleAnimationParam*)¶m_value); + GetAccessors()->getAnimationExtenderAccessor()->StartDoubleAnimation(node, (const Ark_DoubleAnimationParam*)¶m_value); } KOALA_INTEROP_V3(AnimationExtender_StartDoubleAnimation, Ark_NativePointer, uint8_t*, int32_t) +void impl_AnimationExtender_AnimationTranslate(Ark_NativePointer node, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_TranslateOptions options_value = thisDeserializer.readTranslateOptions();; + GetAccessors()->getAnimationExtenderAccessor()->AnimationTranslate(node, (const Ark_TranslateOptions*)&options_value); +} +KOALA_INTEROP_V3(AnimationExtender_AnimationTranslate, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_UnifiedData_ctor() { return GetAccessors()->getUnifiedDataAccessor()->ctor(); } @@ -17180,7 +17132,7 @@ KOALA_INTEROP_V1(LazyForEachOps_Prepare, 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());; - return GetAccessors()->getDrawingCanvasAccessor()->ctor((const Ark_PixelMap*)&pixelmap_value); + return GetAccessors()->getDrawingCanvasAccessor()->ctor( pixelmap_value); } KOALA_INTEROP_2(DrawingCanvas_ctor, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_DrawingCanvas_getFinalizer() { @@ -17257,7 +17209,7 @@ void impl_WebviewController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArra url_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for url_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for url_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Resource url_value = static_cast(url_value_buf);; const auto headers_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17325,8 +17277,8 @@ void impl_GlobalScope_ohos_arkui_performanceMonitor_end(const KStringPtr& scene) GetAccessors()->getGlobalScope_ohos_arkui_performanceMonitorAccessor()->end((const Ark_String*) (&scene)); } KOALA_INTEROP_V1(GlobalScope_ohos_arkui_performanceMonitor_end, KStringPtr) -void impl_GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(Ark_Int32 type, Ark_Int32 sourceType, KInteropNumber time) { - GetAccessors()->getGlobalScope_ohos_arkui_performanceMonitorAccessor()->recordInputEventTime(static_cast(type), static_cast(sourceType), (const Ark_Number*) (&time)); +void impl_GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(Ark_Int32 actionType, Ark_Int32 sourceType, KInteropNumber time) { + GetAccessors()->getGlobalScope_ohos_arkui_performanceMonitorAccessor()->recordInputEventTime(static_cast(actionType), static_cast(sourceType), (const Ark_Number*) (&time)); } KOALA_INTEROP_V3(GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime, Ark_Int32, Ark_Int32, KInteropNumber) Ark_NativePointer impl_FrameNode_ctor(uint8_t* thisArray, int32_t thisLength) { @@ -17348,7 +17300,7 @@ void impl_FrameNode_appendChild(Ark_NativePointer thisPtr, uint8_t* thisArray, i FrameNodePeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode node_value = static_cast(thisDeserializer.readFrameNode());; - GetAccessors()->getFrameNodeAccessor()->appendChild(self, (const Ark_FrameNode*)&node_value); + 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) { @@ -17356,14 +17308,14 @@ void impl_FrameNode_insertChildAfter(Ark_NativePointer thisPtr, uint8_t* thisArr Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode child_value = static_cast(thisDeserializer.readFrameNode());; Ark_FrameNode sibling_value = static_cast(thisDeserializer.readFrameNode());; - GetAccessors()->getFrameNodeAccessor()->insertChildAfter(self, (const Ark_FrameNode*)&child_value, (const Ark_FrameNode*)&sibling_value); + GetAccessors()->getFrameNodeAccessor()->insertChildAfter(self, child_value, sibling_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode node_value = static_cast(thisDeserializer.readFrameNode());; - GetAccessors()->getFrameNodeAccessor()->removeChild(self, (const Ark_FrameNode*)&node_value); + GetAccessors()->getFrameNodeAccessor()->removeChild(self, node_value); } KOALA_INTEROP_V3(FrameNode_removeChild, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_clearChildren(Ark_NativePointer thisPtr) { @@ -17470,7 +17422,7 @@ void impl_NavExtender_setUpdateStackCallback(uint8_t* thisArray, int32_t thisLen Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathStack peer_value = static_cast(thisDeserializer.readNavPathStack());; NavExtender_OnUpdateStack callback_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_NavExtender_OnUpdateStack)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_NavExtender_OnUpdateStack))))};; - GetAccessors()->getNavExtenderAccessor()->setUpdateStackCallback((const Ark_NavPathStack*)&peer_value, (const NavExtender_OnUpdateStack*)&callback_value); + GetAccessors()->getNavExtenderAccessor()->setUpdateStackCallback( peer_value, (const NavExtender_OnUpdateStack*)&callback_value); } KOALA_INTEROP_V2(NavExtender_setUpdateStackCallback, uint8_t*, int32_t) Ark_NativePointer impl_EventEmulator_ctor() { @@ -17484,7 +17436,7 @@ KOALA_INTEROP_0(EventEmulator_getFinalizer, Ark_NativePointer) void impl_EventEmulator_emitClickEvent(Ark_NativePointer node, uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_ClickEvent event_value = static_cast(thisDeserializer.readClickEvent());; - GetAccessors()->getEventEmulatorAccessor()->emitClickEvent(node, (const Ark_ClickEvent*)&event_value); + GetAccessors()->getEventEmulatorAccessor()->emitClickEvent(node, event_value); } KOALA_INTEROP_V3(EventEmulator_emitClickEvent, Ark_NativePointer, uint8_t*, int32_t) void impl_EventEmulator_emitTextInputEvent(Ark_NativePointer node, const KStringPtr& text) { @@ -17531,12 +17483,48 @@ void impl_AlertDialog_show(uint8_t* thisArray, int32_t thisLength) { value_value_buf.value2 = thisDeserializer.readAlertDialogParamWithOptions(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Type_AlertDialog_show_value value_value = static_cast(value_value_buf);; GetAccessors()->getAlertDialogAccessor()->show((const Ark_Type_AlertDialog_show_value*)&value_value); } KOALA_INTEROP_V2(AlertDialog_show, uint8_t*, int32_t) +Ark_NativePointer impl_SpringProp_ctor(KInteropNumber mass, KInteropNumber stiffness, KInteropNumber damping) { + return GetAccessors()->getSpringPropAccessor()->ctor((const Ark_Number*) (&mass), (const Ark_Number*) (&stiffness), (const Ark_Number*) (&damping)); +} +KOALA_INTEROP_3(SpringProp_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber) +Ark_NativePointer impl_SpringProp_getFinalizer() { + return GetAccessors()->getSpringPropAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(SpringProp_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_SpringMotion_ctor(KInteropNumber start, KInteropNumber end, KInteropNumber velocity, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_SpringProp prop_value = static_cast(thisDeserializer.readSpringProp());; + return GetAccessors()->getSpringMotionAccessor()->ctor((const Ark_Number*) (&start), (const Ark_Number*) (&end), (const Ark_Number*) (&velocity), prop_value); +} +KOALA_INTEROP_5(SpringMotion_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +Ark_NativePointer impl_SpringMotion_getFinalizer() { + return GetAccessors()->getSpringMotionAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(SpringMotion_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_FrictionMotion_ctor(KInteropNumber friction, KInteropNumber position, KInteropNumber velocity) { + return GetAccessors()->getFrictionMotionAccessor()->ctor((const Ark_Number*) (&friction), (const Ark_Number*) (&position), (const Ark_Number*) (&velocity)); +} +KOALA_INTEROP_3(FrictionMotion_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber) +Ark_NativePointer impl_FrictionMotion_getFinalizer() { + return GetAccessors()->getFrictionMotionAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(FrictionMotion_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_ScrollMotion_ctor(KInteropNumber position, KInteropNumber velocity, KInteropNumber min, KInteropNumber max, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_SpringProp prop_value = static_cast(thisDeserializer.readSpringProp());; + return GetAccessors()->getScrollMotionAccessor()->ctor((const Ark_Number*) (&position), (const Ark_Number*) (&velocity), (const Ark_Number*) (&min), (const Ark_Number*) (&max), prop_value); +} +KOALA_INTEROP_6(ScrollMotion_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +Ark_NativePointer impl_ScrollMotion_getFinalizer() { + return GetAccessors()->getScrollMotionAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(ScrollMotion_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_CalendarController_ctor() { return GetAccessors()->getCalendarControllerAccessor()->ctor(); } @@ -17686,7 +17674,7 @@ void impl_Path2D_addPath(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t transform_value_buf.value = static_cast(thisDeserializer.readMatrix2D()); } Opt_Matrix2D transform_value = transform_value_buf;; - GetAccessors()->getPath2DAccessor()->addPath(self, (const Ark_Path2D*)&path_value, (const Opt_Matrix2D*)&transform_value); + GetAccessors()->getPath2DAccessor()->addPath(self, path_value, (const Opt_Matrix2D*)&transform_value); } KOALA_INTEROP_V3(Path2D_addPath, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasPattern_ctor() { @@ -17734,6 +17722,60 @@ Ark_Int32 impl_ImageBitmap_getWidth(Ark_NativePointer thisPtr) { return GetAccessors()->getImageBitmapAccessor()->getWidth(self); } KOALA_INTEROP_1(ImageBitmap_getWidth, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_ImageData_ctor(KInteropNumber width, KInteropNumber height, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto data_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Buffer data_value_buf = {}; + data_value_buf.tag = data_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (data_value_buf_runtimeType)) + { + data_value_buf.value = static_cast(thisDeserializer.readBuffer()); + } + Opt_Buffer data_value = data_value_buf;; + return GetAccessors()->getImageDataAccessor()->ctor((const Ark_Number*) (&width), (const Ark_Number*) (&height), (const Opt_Buffer*)&data_value); +} +KOALA_INTEROP_4(ImageData_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +Ark_NativePointer impl_ImageData_getFinalizer() { + return GetAccessors()->getImageDataAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(ImageData_getFinalizer, Ark_NativePointer) +Ark_Int32 impl_ImageData_getHeight(Ark_NativePointer thisPtr) { + ImageDataPeer* 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); + return GetAccessors()->getImageDataAccessor()->getWidth(self); +} +KOALA_INTEROP_1(ImageData_getWidth, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_RenderingContextSettings_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto antialias_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Boolean antialias_value_buf = {}; + antialias_value_buf.tag = antialias_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (antialias_value_buf_runtimeType)) + { + antialias_value_buf.value = thisDeserializer.readBoolean(); + } + Opt_Boolean antialias_value = antialias_value_buf;; + return GetAccessors()->getRenderingContextSettingsAccessor()->ctor((const Opt_Boolean*)&antialias_value); +} +KOALA_INTEROP_2(RenderingContextSettings_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_RenderingContextSettings_getFinalizer() { + return GetAccessors()->getRenderingContextSettingsAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(RenderingContextSettings_getFinalizer, Ark_NativePointer) +Ark_Boolean impl_RenderingContextSettings_getAntialias(Ark_NativePointer thisPtr) { + RenderingContextSettingsPeer* 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); + GetAccessors()->getRenderingContextSettingsAccessor()->setAntialias(self, antialias); +} +KOALA_INTEROP_V2(RenderingContextSettings_setAntialias, Ark_NativePointer, Ark_Boolean) Ark_NativePointer impl_CanvasRenderer_ctor() { return GetAccessors()->getCanvasRendererAccessor()->ctor(); } @@ -17757,7 +17799,7 @@ void impl_CanvasRenderer_drawImage0(Ark_NativePointer thisPtr, uint8_t* thisArra image_value_buf.value1 = static_cast(thisDeserializer.readPixelMap()); } else { - throw "One of the branches for image_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for image_value_buf has to be chosen through deserialisation."); } Ark_Union_ImageBitmap_PixelMap image_value = static_cast(image_value_buf);; GetAccessors()->getCanvasRendererAccessor()->drawImage0(self, (const Ark_Union_ImageBitmap_PixelMap*)&image_value, (const Ark_Number*) (&dx), (const Ark_Number*) (&dy)); @@ -17778,7 +17820,7 @@ void impl_CanvasRenderer_drawImage1(Ark_NativePointer thisPtr, uint8_t* thisArra image_value_buf.value1 = static_cast(thisDeserializer.readPixelMap()); } else { - throw "One of the branches for image_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for image_value_buf has to be chosen through deserialisation."); } Ark_Union_ImageBitmap_PixelMap image_value = static_cast(image_value_buf);; GetAccessors()->getCanvasRendererAccessor()->drawImage1(self, (const Ark_Union_ImageBitmap_PixelMap*)&image_value, (const Ark_Number*) (&dx), (const Ark_Number*) (&dy), (const Ark_Number*) (&dw), (const Ark_Number*) (&dh)); @@ -17799,7 +17841,7 @@ void impl_CanvasRenderer_drawImage2(Ark_NativePointer thisPtr, uint8_t* thisArra image_value_buf.value1 = static_cast(thisDeserializer.readPixelMap()); } else { - throw "One of the branches for image_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for image_value_buf has to be chosen through deserialisation."); } Ark_Union_ImageBitmap_PixelMap image_value = static_cast(image_value_buf);; GetAccessors()->getCanvasRendererAccessor()->drawImage2(self, (const Ark_Union_ImageBitmap_PixelMap*)&image_value, (const Ark_Number*) (&sx), (const Ark_Number*) (&sy), (const Ark_Number*) (&sw), (const Ark_Number*) (&sh), (const Ark_Number*) (&dx), (const Ark_Number*) (&dy), (const Ark_Number*) (&dw), (const Ark_Number*) (&dh)); @@ -17836,7 +17878,7 @@ void impl_CanvasRenderer_clip1(Ark_NativePointer thisPtr, uint8_t* thisArray, in fillRule_value_buf.value = static_cast(thisDeserializer.readString()); } Opt_String fillRule_value = fillRule_value_buf;; - GetAccessors()->getCanvasRendererAccessor()->clip1(self, (const Ark_Path2D*)&path_value, (const Opt_String*)&fillRule_value); + GetAccessors()->getCanvasRendererAccessor()->clip1(self, path_value, (const Opt_String*)&fillRule_value); } KOALA_INTEROP_V3(CanvasRenderer_clip1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_fill0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -17865,7 +17907,7 @@ void impl_CanvasRenderer_fill1(Ark_NativePointer thisPtr, uint8_t* thisArray, in fillRule_value_buf.value = static_cast(thisDeserializer.readString()); } Opt_String fillRule_value = fillRule_value_buf;; - GetAccessors()->getCanvasRendererAccessor()->fill1(self, (const Ark_Path2D*)&path_value, (const Opt_String*)&fillRule_value); + GetAccessors()->getCanvasRendererAccessor()->fill1(self, path_value, (const Opt_String*)&fillRule_value); } KOALA_INTEROP_V3(CanvasRenderer_fill1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_stroke0(Ark_NativePointer thisPtr) { @@ -17877,7 +17919,7 @@ void impl_CanvasRenderer_stroke1(Ark_NativePointer thisPtr, uint8_t* thisArray, CanvasRendererPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; - GetAccessors()->getCanvasRendererAccessor()->stroke1(self, (const Ark_Path2D*)&path_value); + 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) { @@ -17897,7 +17939,7 @@ 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, (const Ark_ImageBitmap*)&image_value, (const Opt_String*)&repetition_value); + return GetAccessors()->getCanvasRendererAccessor()->createPattern(self, image_value, (const Opt_String*)&repetition_value); } KOALA_INTEROP_3(CanvasRenderer_createPattern, Ark_NativePointer, 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) { @@ -17918,8 +17960,8 @@ KOALA_INTEROP_3(CanvasRenderer_createImageData0, Ark_NativePointer, Ark_NativePo Ark_NativePointer impl_CanvasRenderer_createImageData1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { CanvasRendererPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - Ark_ImageData imagedata_value = thisDeserializer.readImageData();; - return GetAccessors()->getCanvasRendererAccessor()->createImageData1(self, (const Ark_ImageData*)&imagedata_value); + 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) { @@ -17935,7 +17977,7 @@ KOALA_INTEROP_5(CanvasRenderer_getPixelMap, Ark_NativePointer, Ark_NativePointer void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { CanvasRendererPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - Ark_ImageData imagedata_value = thisDeserializer.readImageData();; + Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; const Ark_Int8 dx_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_Number_String dx_value_buf = {}; dx_value_buf.selector = dx_value_buf_selector; @@ -17948,7 +17990,7 @@ void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisA dx_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dx_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dx_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dx_value = static_cast(dx_value_buf);; const Ark_Int8 dy_value_buf_selector = thisDeserializer.readInt8(); @@ -17963,16 +18005,16 @@ void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisA dy_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dy_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dy_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dy_value = static_cast(dy_value_buf);; - GetAccessors()->getCanvasRendererAccessor()->putImageData0(self, (const Ark_ImageData*)&imagedata_value, (const Ark_Union_Number_String*)&dx_value, (const Ark_Union_Number_String*)&dy_value); + GetAccessors()->getCanvasRendererAccessor()->putImageData0(self, imagedata_value, (const Ark_Union_Number_String*)&dx_value, (const Ark_Union_Number_String*)&dy_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_ImageData imagedata_value = thisDeserializer.readImageData();; + Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; const Ark_Int8 dx_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_Number_String dx_value_buf = {}; dx_value_buf.selector = dx_value_buf_selector; @@ -17985,7 +18027,7 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA dx_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dx_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dx_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dx_value = static_cast(dx_value_buf);; const Ark_Int8 dy_value_buf_selector = thisDeserializer.readInt8(); @@ -18000,7 +18042,7 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA dy_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dy_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dy_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dy_value = static_cast(dy_value_buf);; const Ark_Int8 dirtyX_value_buf_selector = thisDeserializer.readInt8(); @@ -18015,7 +18057,7 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA dirtyX_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dirtyX_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dirtyX_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dirtyX_value = static_cast(dirtyX_value_buf);; const Ark_Int8 dirtyY_value_buf_selector = thisDeserializer.readInt8(); @@ -18030,7 +18072,7 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA dirtyY_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dirtyY_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dirtyY_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dirtyY_value = static_cast(dirtyY_value_buf);; const Ark_Int8 dirtyWidth_value_buf_selector = thisDeserializer.readInt8(); @@ -18045,7 +18087,7 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA dirtyWidth_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dirtyWidth_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dirtyWidth_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dirtyWidth_value = static_cast(dirtyWidth_value_buf);; const Ark_Int8 dirtyHeight_value_buf_selector = thisDeserializer.readInt8(); @@ -18060,10 +18102,10 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA dirtyHeight_value_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for dirtyHeight_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for dirtyHeight_value_buf has to be chosen through deserialisation."); } Ark_Union_Number_String dirtyHeight_value = static_cast(dirtyHeight_value_buf);; - GetAccessors()->getCanvasRendererAccessor()->putImageData1(self, (const Ark_ImageData*)&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); + 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) { @@ -18210,7 +18252,7 @@ void impl_CanvasRenderer_transferFromImageBitmap(Ark_NativePointer thisPtr, uint CanvasRendererPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageBitmap bitmap_value = static_cast(thisDeserializer.readImageBitmap());; - GetAccessors()->getCanvasRendererAccessor()->transferFromImageBitmap(self, (const Ark_ImageBitmap*)&bitmap_value); + GetAccessors()->getCanvasRendererAccessor()->transferFromImageBitmap(self, bitmap_value); } KOALA_INTEROP_V3(CanvasRenderer_transferFromImageBitmap, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_saveLayer(Ark_NativePointer thisPtr) { @@ -18271,7 +18313,7 @@ void impl_CanvasRenderer_setFillStyle(Ark_NativePointer thisPtr, uint8_t* thisAr fillStyle_value_buf.value3 = static_cast(thisDeserializer.readCanvasPattern()); } else { - throw "One of the branches for fillStyle_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for fillStyle_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Number_CanvasGradient_CanvasPattern fillStyle_value = static_cast(fillStyle_value_buf);; GetAccessors()->getCanvasRendererAccessor()->setFillStyle(self, (const Ark_Union_String_Number_CanvasGradient_CanvasPattern*)&fillStyle_value); @@ -18300,7 +18342,7 @@ void impl_CanvasRenderer_setStrokeStyle(Ark_NativePointer thisPtr, uint8_t* this strokeStyle_value_buf.value3 = static_cast(thisDeserializer.readCanvasPattern()); } else { - throw "One of the branches for strokeStyle_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for strokeStyle_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Number_CanvasGradient_CanvasPattern strokeStyle_value = static_cast(strokeStyle_value_buf);; GetAccessors()->getCanvasRendererAccessor()->setStrokeStyle(self, (const Ark_Union_String_Number_CanvasGradient_CanvasPattern*)&strokeStyle_value); @@ -18473,7 +18515,7 @@ Ark_NativePointer impl_CanvasRenderingContext2D_ctor(uint8_t* thisArray, int32_t 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 = thisDeserializer.readRenderingContextSettings(); + settings_value_buf.value = static_cast(thisDeserializer.readRenderingContextSettings()); } Opt_RenderingContextSettings settings_value = settings_value_buf;; return GetAccessors()->getCanvasRenderingContext2DAccessor()->ctor((const Opt_RenderingContextSettings*)&settings_value); @@ -18691,7 +18733,7 @@ Ark_NativePointer impl_TransitionEffect_asymmetric(uint8_t* thisArray, int32_t t Deserializer thisDeserializer(thisArray, thisLength); Ark_TransitionEffect appear_value = static_cast(thisDeserializer.readTransitionEffect());; Ark_TransitionEffect disappear_value = static_cast(thisDeserializer.readTransitionEffect());; - return GetAccessors()->getTransitionEffectAccessor()->asymmetric((const Ark_TransitionEffect*)&appear_value, (const Ark_TransitionEffect*)&disappear_value); + return GetAccessors()->getTransitionEffectAccessor()->asymmetric( appear_value, disappear_value); } 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) { @@ -18705,7 +18747,7 @@ Ark_NativePointer impl_TransitionEffect_combine(Ark_NativePointer thisPtr, uint8 TransitionEffectPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TransitionEffect transitionEffect_value = static_cast(thisDeserializer.readTransitionEffect());; - return GetAccessors()->getTransitionEffectAccessor()->combine(self, (const Ark_TransitionEffect*)&transitionEffect_value); + return GetAccessors()->getTransitionEffectAccessor()->combine(self, transitionEffect_value); } KOALA_INTEROP_3(TransitionEffect_combine, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_BaseEvent_ctor() { @@ -18915,6 +18957,13 @@ void impl_ClickEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { 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); + [[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); Deserializer thisDeserializer(thisArray, thisLength); @@ -18930,6 +18979,13 @@ Ark_NativePointer impl_HoverEvent_getFinalizer() { return GetAccessors()->getHoverEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(HoverEvent_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_HoverEvent_getStopPropagation(Ark_NativePointer thisPtr) { + HoverEventPeer* 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); Deserializer thisDeserializer(thisArray, thisLength); @@ -19045,6 +19101,13 @@ void impl_MouseEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { 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); + [[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); Deserializer thisDeserializer(thisArray, thisLength); @@ -19181,6 +19244,13 @@ void impl_TouchEvent_setChangedTouches(Ark_NativePointer thisPtr, uint8_t* thisA GetAccessors()->getTouchEventAccessor()->setChangedTouches(self, (const Array_TouchObject*)&changedTouches_value); } KOALA_INTEROP_V3(TouchEvent_setChangedTouches, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_TouchEvent_getStopPropagation(Ark_NativePointer thisPtr) { + TouchEventPeer* 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); Deserializer thisDeserializer(thisArray, thisLength); @@ -19188,6 +19258,13 @@ void impl_TouchEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* this 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); + [[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); Deserializer thisDeserializer(thisArray, thisLength); @@ -19250,7 +19327,7 @@ void impl_DragEvent_setData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32 DragEventPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_UnifiedData unifiedData_value = static_cast(thisDeserializer.readUnifiedData());; - GetAccessors()->getDragEventAccessor()->setData(self, (const Ark_UnifiedData*)&unifiedData_value); + 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) { @@ -19419,6 +19496,13 @@ void impl_KeyEvent_setTimestamp(Ark_NativePointer thisPtr, KInteropNumber timest 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); + [[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); Deserializer thisDeserializer(thisArray, thisLength); @@ -19465,7 +19549,7 @@ Ark_NativePointer impl_ProgressMask_ctor(KInteropNumber value, KInteropNumber to color_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for color_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for color_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor color_value = static_cast(color_value_buf);; return GetAccessors()->getProgressMaskAccessor()->ctor((const Ark_Number*) (&value), (const Ark_Number*) (&total), (const Ark_ResourceColor*)&color_value); @@ -19503,7 +19587,7 @@ void impl_ProgressMask_updateColor(Ark_NativePointer thisPtr, uint8_t* thisArray value_value_buf.value3 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_ResourceColor value_value = static_cast(value_value_buf);; GetAccessors()->getProgressMaskAccessor()->updateColor(self, (const Ark_ResourceColor*)&value_value); @@ -19834,14 +19918,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) -Ark_NativePointer impl_GlobalScope_common_ctor() { - return GetAccessors()->getGlobalScope_commonAccessor()->ctor(); -} -KOALA_INTEROP_0(GlobalScope_common_ctor, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_common_getFinalizer() { - return GetAccessors()->getGlobalScope_commonAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(GlobalScope_common_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_GlobalScope_common_getContext(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const auto component_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -19961,6 +20037,23 @@ void impl_CustomDialogController_close(Ark_NativePointer thisPtr) { GetAccessors()->getCustomDialogControllerAccessor()->close(self); } KOALA_INTEROP_V1(CustomDialogController_close, Ark_NativePointer) +Ark_NativePointer impl_LinearGradient_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const Ark_Int32 colorStops_value_buf_length = thisDeserializer.readInt32(); + Array_ColorStop colorStops_value_buf = {}; + thisDeserializer.resizeArray::type, + std::decay::type>(&colorStops_value_buf, colorStops_value_buf_length); + for (int colorStops_value_buf_i = 0; colorStops_value_buf_i < colorStops_value_buf_length; colorStops_value_buf_i++) { + colorStops_value_buf.array[colorStops_value_buf_i] = thisDeserializer.readColorStop(); + } + Array_ColorStop colorStops_value = colorStops_value_buf;; + return GetAccessors()->getLinearGradientAccessor()->ctor((const Array_ColorStop*)&colorStops_value); +} +KOALA_INTEROP_2(LinearGradient_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_LinearGradient_getFinalizer() { + return GetAccessors()->getLinearGradientAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(LinearGradient_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_DatePickerDialog_ctor() { return GetAccessors()->getDatePickerDialogAccessor()->ctor(); } @@ -20721,15 +20814,15 @@ KOALA_INTEROP_1(NavDestinationContext_getConfigInRouteMap, Ark_NativePointer, Ar void impl_NavDestinationContext_setPathInfo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { NavDestinationContextPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo pathInfo_value = thisDeserializer.readNavPathInfo();; - GetAccessors()->getNavDestinationContextAccessor()->setPathInfo(self, (const Ark_NavPathInfo*)&pathInfo_value); + 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); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathStack pathStack_value = static_cast(thisDeserializer.readNavPathStack());; - GetAccessors()->getNavDestinationContextAccessor()->setPathStack(self, (const Ark_NavPathStack*)&pathStack_value); + GetAccessors()->getNavDestinationContextAccessor()->setPathStack(self, pathStack_value); } KOALA_INTEROP_V3(NavDestinationContext_setPathStack, Ark_NativePointer, uint8_t*, int32_t) void impl_NavDestinationContext_getNavDestinationId(Ark_NativePointer thisPtr) { @@ -20742,6 +20835,73 @@ void impl_NavDestinationContext_setNavDestinationId(Ark_NativePointer thisPtr, c GetAccessors()->getNavDestinationContextAccessor()->setNavDestinationId(self, (const Ark_String*) (&navDestinationId)); } KOALA_INTEROP_V2(NavDestinationContext_setNavDestinationId, Ark_NativePointer, KStringPtr) +Ark_NativePointer impl_NavPathInfo_ctor(const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Any"));; + const auto onPop_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Callback_PopInfo_Void onPop_value_buf = {}; + onPop_value_buf.tag = onPop_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (onPop_value_buf_runtimeType)) + { + onPop_value_buf.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))))}; + } + Opt_Callback_PopInfo_Void onPop_value = onPop_value_buf;; + const auto isEntry_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Boolean isEntry_value_buf = {}; + isEntry_value_buf.tag = isEntry_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (isEntry_value_buf_runtimeType)) + { + isEntry_value_buf.value = thisDeserializer.readBoolean(); + } + Opt_Boolean isEntry_value = isEntry_value_buf;; + return GetAccessors()->getNavPathInfoAccessor()->ctor((const Ark_String*) (&name), (const Ark_CustomObject*)¶m_value, (const Opt_Callback_PopInfo_Void*)&onPop_value, (const Opt_Boolean*)&isEntry_value); +} +KOALA_INTEROP_3(NavPathInfo_ctor, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) +Ark_NativePointer impl_NavPathInfo_getFinalizer() { + return GetAccessors()->getNavPathInfoAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(NavPathInfo_getFinalizer, Ark_NativePointer) +void impl_NavPathInfo_getName(Ark_NativePointer thisPtr) { + NavPathInfoPeer* 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); + 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); + 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); + [[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); + 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); + 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); + GetAccessors()->getNavPathInfoAccessor()->setIsEntry(self, isEntry); +} +KOALA_INTEROP_V2(NavPathInfo_setIsEntry, Ark_NativePointer, Ark_Boolean) Ark_NativePointer impl_NavPathStack_ctor() { return GetAccessors()->getNavPathStackAccessor()->ctor(); } @@ -20753,7 +20913,7 @@ 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; animated_value_buf.tag = animated_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20762,13 +20922,13 @@ void impl_NavPathStack_pushPath0(Ark_NativePointer thisPtr, uint8_t* thisArray, animated_value_buf.value = thisDeserializer.readBoolean(); } Opt_Boolean animated_value = animated_value_buf;; - GetAccessors()->getNavPathStackAccessor()->pushPath0(self, (const Ark_NavPathInfo*)&info_value, (const Opt_Boolean*)&animated_value); + GetAccessors()->getNavPathStackAccessor()->pushPath0(self, info_value, (const Opt_Boolean*)&animated_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_NavigationOptions options_value_buf = {}; options_value_buf.tag = options_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20777,13 +20937,13 @@ void impl_NavPathStack_pushPath1(Ark_NativePointer thisPtr, uint8_t* thisArray, options_value_buf.value = thisDeserializer.readNavigationOptions(); } Opt_NavigationOptions options_value = options_value_buf;; - GetAccessors()->getNavPathStackAccessor()->pushPath1(self, (const Ark_NavPathInfo*)&info_value, (const Opt_NavigationOptions*)&options_value); + GetAccessors()->getNavPathStackAccessor()->pushPath1(self, info_value, (const Opt_NavigationOptions*)&options_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; animated_value_buf.tag = animated_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20793,13 +20953,13 @@ void impl_NavPathStack_pushDestination0(Ark_NativePointer thisPtr, uint8_t* this } Opt_Boolean animated_value = animated_value_buf;; 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))))};; - GetAccessors()->getNavPathStackAccessor()->pushDestination0(self, (const Ark_NavPathInfo*)&info_value, (const Opt_Boolean*)&animated_value, (const Callback_Opt_Array_String_Void*)&outputArgumentForReturningPromise_value); + GetAccessors()->getNavPathStackAccessor()->pushDestination0(self, info_value, (const Opt_Boolean*)&animated_value, (const Callback_Opt_Array_String_Void*)&outputArgumentForReturningPromise_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_NavigationOptions options_value_buf = {}; options_value_buf.tag = options_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20809,7 +20969,7 @@ void impl_NavPathStack_pushDestination1(Ark_NativePointer thisPtr, uint8_t* this } Opt_NavigationOptions options_value = options_value_buf;; 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))))};; - GetAccessors()->getNavPathStackAccessor()->pushDestination1(self, (const Ark_NavPathInfo*)&info_value, (const Opt_NavigationOptions*)&options_value, (const Callback_Opt_Array_String_Void*)&outputArgumentForReturningPromise_value); + GetAccessors()->getNavPathStackAccessor()->pushDestination1(self, info_value, (const Opt_NavigationOptions*)&options_value, (const Callback_Opt_Array_String_Void*)&outputArgumentForReturningPromise_value); } 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) { @@ -20879,7 +21039,7 @@ KOALA_INTEROP_V4(NavPathStack_pushDestinationByName1, Ark_NativePointer, KString void impl_NavPathStack_replacePath0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { NavPathStackPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; animated_value_buf.tag = animated_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20888,13 +21048,13 @@ void impl_NavPathStack_replacePath0(Ark_NativePointer thisPtr, uint8_t* thisArra animated_value_buf.value = thisDeserializer.readBoolean(); } Opt_Boolean animated_value = animated_value_buf;; - GetAccessors()->getNavPathStackAccessor()->replacePath0(self, (const Ark_NavPathInfo*)&info_value, (const Opt_Boolean*)&animated_value); + GetAccessors()->getNavPathStackAccessor()->replacePath0(self, info_value, (const Opt_Boolean*)&animated_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_NavigationOptions options_value_buf = {}; options_value_buf.tag = options_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20903,13 +21063,13 @@ void impl_NavPathStack_replacePath1(Ark_NativePointer thisPtr, uint8_t* thisArra options_value_buf.value = thisDeserializer.readNavigationOptions(); } Opt_NavigationOptions options_value = options_value_buf;; - GetAccessors()->getNavPathStackAccessor()->replacePath1(self, (const Ark_NavPathInfo*)&info_value, (const Opt_NavigationOptions*)&options_value); + GetAccessors()->getNavPathStackAccessor()->replacePath1(self, info_value, (const Opt_NavigationOptions*)&options_value); } 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); Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo info_value = thisDeserializer.readNavPathInfo();; + Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_NavigationOptions options_value_buf = {}; options_value_buf.tag = options_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; @@ -20919,7 +21079,7 @@ void impl_NavPathStack_replaceDestination(Ark_NativePointer thisPtr, uint8_t* th } Opt_NavigationOptions options_value = options_value_buf;; 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))))};; - GetAccessors()->getNavPathStackAccessor()->replaceDestination(self, (const Ark_NavPathInfo*)&info_value, (const Opt_NavigationOptions*)&options_value, (const Callback_Opt_Array_String_Void*)&outputArgumentForReturningPromise_value); + GetAccessors()->getNavPathStackAccessor()->replaceDestination(self, info_value, (const Opt_NavigationOptions*)&options_value, (const Callback_Opt_Array_String_Void*)&outputArgumentForReturningPromise_value); } 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) { @@ -21312,12 +21472,12 @@ Ark_Int32 impl_RichEditorController_addImageSpan(Ark_NativePointer thisPtr, uint value_value_buf_u.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf_u has to be chosen through deserialisation."); } value_value_buf.value1 = static_cast(value_value_buf_u); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_PixelMap_ResourceStr value_value = static_cast(value_value_buf);; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21380,7 +21540,7 @@ void impl_RichEditorController_updateSpanStyle(Ark_NativePointer thisPtr, uint8_ value_value_buf.value2 = thisDeserializer.readRichEditorUpdateSymbolSpanStyleOptions(); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Type_RichEditorController_updateSpanStyle_value value_value = static_cast(value_value_buf);; GetAccessors()->getRichEditorControllerAccessor()->updateSpanStyle(self, (const Ark_Type_RichEditorController_updateSpanStyle_value*)&value_value); @@ -21444,7 +21604,7 @@ void impl_RichEditorController_fromStyledString(Ark_NativePointer thisPtr, uint8 RichEditorControllerPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString value_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(self, (const Ark_StyledString*)&value_value); + GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(self, value_value); } KOALA_INTEROP_V3(RichEditorController_fromStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RichEditorController_toStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -21466,7 +21626,7 @@ void impl_RichEditorStyledStringController_setStyledString(Ark_NativePointer thi RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getRichEditorStyledStringControllerAccessor()->setStyledString(self, (const Ark_StyledString*)&styledString_value); + 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) { @@ -21762,6 +21922,204 @@ void impl_IndicatorComponentController_changeIndex(Ark_NativePointer thisPtr, KI GetAccessors()->getIndicatorComponentControllerAccessor()->changeIndex(self, (const Ark_Number*) (&index), (const Opt_Boolean*)&useAnimation_value); } KOALA_INTEROP_V4(IndicatorComponentController_changeIndex, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) +Ark_NativePointer impl_ScaleSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto scope_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectScope scope_value_buf = {}; + scope_value_buf.tag = scope_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (scope_value_buf_runtimeType)) + { + scope_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectScope scope_value = scope_value_buf;; + const auto direction_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectDirection direction_value_buf = {}; + direction_value_buf.tag = direction_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (direction_value_buf_runtimeType)) + { + direction_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectDirection direction_value = direction_value_buf;; + return GetAccessors()->getScaleSymbolEffectAccessor()->ctor((const Opt_EffectScope*)&scope_value, (const Opt_EffectDirection*)&direction_value); +} +KOALA_INTEROP_2(ScaleSymbolEffect_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(ScaleSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +void impl_ScaleSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { + ScaleSymbolEffectPeer* 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); +} +KOALA_INTEROP_1(ScaleSymbolEffect_getDirection, Ark_NativePointer, Ark_NativePointer) +void impl_ScaleSymbolEffect_setDirection(Ark_NativePointer thisPtr, Ark_Int32 direction) { + ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getScaleSymbolEffectAccessor()->setDirection(self, static_cast(direction)); +} +KOALA_INTEROP_V2(ScaleSymbolEffect_setDirection, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_HierarchicalSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto fillStyle_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectFillStyle fillStyle_value_buf = {}; + fillStyle_value_buf.tag = fillStyle_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (fillStyle_value_buf_runtimeType)) + { + fillStyle_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectFillStyle fillStyle_value = fillStyle_value_buf;; + return GetAccessors()->getHierarchicalSymbolEffectAccessor()->ctor((const Opt_EffectFillStyle*)&fillStyle_value); +} +KOALA_INTEROP_2(HierarchicalSymbolEffect_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(HierarchicalSymbolEffect_getFillStyle, Ark_NativePointer, Ark_NativePointer) +void impl_HierarchicalSymbolEffect_setFillStyle(Ark_NativePointer thisPtr, Ark_Int32 fillStyle) { + HierarchicalSymbolEffectPeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getHierarchicalSymbolEffectAccessor()->setFillStyle(self, static_cast(fillStyle)); +} +KOALA_INTEROP_V2(HierarchicalSymbolEffect_setFillStyle, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_AppearSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto scope_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectScope scope_value_buf = {}; + scope_value_buf.tag = scope_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (scope_value_buf_runtimeType)) + { + scope_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectScope scope_value = scope_value_buf;; + return GetAccessors()->getAppearSymbolEffectAccessor()->ctor((const Opt_EffectScope*)&scope_value); +} +KOALA_INTEROP_2(AppearSymbolEffect_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(AppearSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +void impl_AppearSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { + AppearSymbolEffectPeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getAppearSymbolEffectAccessor()->setScope(self, static_cast(scope)); +} +KOALA_INTEROP_V2(AppearSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_DisappearSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto scope_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectScope scope_value_buf = {}; + scope_value_buf.tag = scope_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (scope_value_buf_runtimeType)) + { + scope_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectScope scope_value = scope_value_buf;; + return GetAccessors()->getDisappearSymbolEffectAccessor()->ctor((const Opt_EffectScope*)&scope_value); +} +KOALA_INTEROP_2(DisappearSymbolEffect_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(DisappearSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +void impl_DisappearSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { + DisappearSymbolEffectPeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getDisappearSymbolEffectAccessor()->setScope(self, static_cast(scope)); +} +KOALA_INTEROP_V2(DisappearSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_BounceSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto scope_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectScope scope_value_buf = {}; + scope_value_buf.tag = scope_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (scope_value_buf_runtimeType)) + { + scope_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectScope scope_value = scope_value_buf;; + const auto direction_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectDirection direction_value_buf = {}; + direction_value_buf.tag = direction_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (direction_value_buf_runtimeType)) + { + direction_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectDirection direction_value = direction_value_buf;; + return GetAccessors()->getBounceSymbolEffectAccessor()->ctor((const Opt_EffectScope*)&scope_value, (const Opt_EffectDirection*)&direction_value); +} +KOALA_INTEROP_2(BounceSymbolEffect_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(BounceSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +void impl_BounceSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { + BounceSymbolEffectPeer* 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); +} +KOALA_INTEROP_1(BounceSymbolEffect_getDirection, Ark_NativePointer, Ark_NativePointer) +void impl_BounceSymbolEffect_setDirection(Ark_NativePointer thisPtr, Ark_Int32 direction) { + BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getBounceSymbolEffectAccessor()->setDirection(self, static_cast(direction)); +} +KOALA_INTEROP_V2(BounceSymbolEffect_setDirection, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_ReplaceSymbolEffect_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto scope_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_EffectScope scope_value_buf = {}; + scope_value_buf.tag = scope_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (scope_value_buf_runtimeType)) + { + scope_value_buf.value = static_cast(thisDeserializer.readInt32()); + } + Opt_EffectScope scope_value = scope_value_buf;; + return GetAccessors()->getReplaceSymbolEffectAccessor()->ctor((const Opt_EffectScope*)&scope_value); +} +KOALA_INTEROP_2(ReplaceSymbolEffect_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(ReplaceSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +void impl_ReplaceSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { + ReplaceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getReplaceSymbolEffectAccessor()->setScope(self, static_cast(scope)); +} +KOALA_INTEROP_V2(ReplaceSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) Ark_NativePointer impl_TabsController_ctor() { return GetAccessors()->getTabsControllerAccessor()->ctor(); } @@ -21859,7 +22217,7 @@ void impl_TextController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thi TextControllerPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString value_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getTextControllerAccessor()->setStyledString(self, (const Ark_StyledString*)&value_value); + 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) { @@ -21994,7 +22352,7 @@ void impl_StyledStringController_setStyledString(Ark_NativePointer thisPtr, uint StyledStringControllerPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getStyledStringControllerAccessor()->setStyledString(self, (const Ark_StyledString*)&styledString_value); + 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) { @@ -22054,7 +22412,7 @@ Ark_NativePointer impl_TextMenuItemId_of(uint8_t* thisArray, int32_t thisLength) id_value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for id_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for id_value_buf has to be chosen through deserialisation."); } Ark_ResourceStr id_value = static_cast(id_value_buf);; return GetAccessors()->getTextMenuItemIdAccessor()->of((const Ark_ResourceStr*)&id_value); @@ -22064,7 +22422,7 @@ Ark_Boolean impl_TextMenuItemId_equals(Ark_NativePointer thisPtr, uint8_t* thisA TextMenuItemIdPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextMenuItemId id_value = static_cast(thisDeserializer.readTextMenuItemId());; - return GetAccessors()->getTextMenuItemIdAccessor()->equals(self, (const Ark_TextMenuItemId*)&id_value); + return GetAccessors()->getTextMenuItemIdAccessor()->equals(self, id_value); } KOALA_INTEROP_3(TextMenuItemId_equals, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_EditMenuOptions_ctor() { @@ -22217,6 +22575,23 @@ void impl_TimePickerDialog_show(uint8_t* thisArray, int32_t thisLength) { GetAccessors()->getTimePickerDialogAccessor()->show((const Opt_TimePickerDialogOptions*)&options_value); } KOALA_INTEROP_V2(TimePickerDialog_show, uint8_t*, int32_t) +Ark_NativePointer impl_ColorFilter_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const Ark_Int32 value_value_buf_length = thisDeserializer.readInt32(); + Array_Number value_value_buf = {}; + thisDeserializer.resizeArray::type, + std::decay::type>(&value_value_buf, value_value_buf_length); + for (int value_value_buf_i = 0; value_value_buf_i < value_value_buf_length; value_value_buf_i++) { + value_value_buf.array[value_value_buf_i] = static_cast(thisDeserializer.readNumber()); + } + Array_Number value_value = value_value_buf;; + return GetAccessors()->getColorFilterAccessor()->ctor((const Array_Number*)&value_value); +} +KOALA_INTEROP_2(ColorFilter_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_ColorFilter_getFinalizer() { + return GetAccessors()->getColorFilterAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(ColorFilter_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_VideoController_ctor() { return GetAccessors()->getVideoControllerAccessor()->ctor(); } @@ -22545,7 +22920,7 @@ void impl_ControllerHandler_setWebController(Ark_NativePointer thisPtr, uint8_t* ControllerHandlerPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_WebviewController controller_value = static_cast(thisDeserializer.readWebviewController());; - GetAccessors()->getControllerHandlerAccessor()->setWebController(self, (const Ark_WebviewController*)&controller_value); + GetAccessors()->getControllerHandlerAccessor()->setWebController(self, controller_value); } KOALA_INTEROP_V3(ControllerHandler_setWebController, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_WebContextMenuParam_ctor() { @@ -22796,7 +23171,7 @@ void impl_WebResourceResponse_setResponseData(Ark_NativePointer thisPtr, uint8_t data_value_buf.value3 = static_cast(thisDeserializer.readBuffer()); } else { - throw "One of the branches for data_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for data_value_buf has to be chosen through deserialisation."); } Ark_Union_String_Number_Resource_Buffer data_value = static_cast(data_value_buf);; GetAccessors()->getWebResourceResponseAccessor()->setResponseData(self, (const Ark_Union_String_Number_Resource_Buffer*)&data_value); @@ -22996,7 +23371,7 @@ void impl_WebController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, i options_value_buf_url_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for options_value_buf_url_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for options_value_buf_url_buf has to be chosen through deserialisation."); } options_value_buf.url = static_cast(options_value_buf_url_buf); const auto options_value_buf_headers_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -23327,14 +23702,14 @@ Ark_NativePointer impl_StyledString_ctor(uint8_t* thisArray, int32_t thisLength) } else if (value_value_buf_selector == 1) { value_value_buf.selector = 1; - value_value_buf.value1 = thisDeserializer.readImageAttachment(); + value_value_buf.value1 = static_cast(thisDeserializer.readImageAttachment()); } else if (value_value_buf_selector == 2) { value_value_buf.selector = 2; value_value_buf.value2 = static_cast(thisDeserializer.readCustomSpan()); } else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); } Ark_Union_String_ImageAttachment_CustomSpan value_value = static_cast(value_value_buf);; const auto styles_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -23382,7 +23757,7 @@ Ark_Boolean impl_StyledString_equals(Ark_NativePointer thisPtr, uint8_t* thisArr StyledStringPeer* self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; - return GetAccessors()->getStyledStringAccessor()->equals(self, (const Ark_StyledString*)&other_value); + 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) { @@ -23408,13 +23783,13 @@ KOALA_INTEROP_V3(StyledString_fromHtml, KStringPtr, uint8_t*, int32_t) void impl_StyledString_toHtml(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getStyledStringAccessor()->toHtml((const Ark_StyledString*)&styledString_value); + GetAccessors()->getStyledStringAccessor()->toHtml( styledString_value); } KOALA_INTEROP_V2(StyledString_toHtml, uint8_t*, int32_t) void impl_StyledString_marshalling(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getStyledStringAccessor()->marshalling((const Ark_StyledString*)&styledString_value); + GetAccessors()->getStyledStringAccessor()->marshalling( styledString_value); } KOALA_INTEROP_V2(StyledString_marshalling, uint8_t*, int32_t) void impl_StyledString_unmarshalling(uint8_t* thisArray, int32_t thisLength) { @@ -23429,6 +23804,221 @@ Ark_Int32 impl_StyledString_getLength(Ark_NativePointer thisPtr) { return GetAccessors()->getStyledStringAccessor()->getLength(self); } KOALA_INTEROP_1(StyledString_getLength, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_TextStyle_styled_string_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_TextStyleInterface value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = thisDeserializer.readTextStyleInterface(); + } + Opt_TextStyleInterface value_value = value_value_buf;; + return GetAccessors()->getTextStyle_styled_stringAccessor()->ctor((const Opt_TextStyleInterface*)&value_value); +} +KOALA_INTEROP_2(TextStyle_styled_string_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_TextStyle_styled_string_getFinalizer() { + return GetAccessors()->getTextStyle_styled_stringAccessor()->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); + 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); + 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); + 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); +} +KOALA_INTEROP_1(TextStyle_styled_string_getFontStyle, Ark_NativePointer, Ark_NativePointer) +Ark_NativePointer impl_DecorationStyle_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_DecorationStyleInterface value_value = thisDeserializer.readDecorationStyleInterface();; + return GetAccessors()->getDecorationStyleAccessor()->ctor((const Ark_DecorationStyleInterface*)&value_value); +} +KOALA_INTEROP_2(DecorationStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +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_1(DecorationStyle_getStyle, Ark_NativePointer, 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());; + return GetAccessors()->getBaselineOffsetStyleAccessor()->ctor( value_value); +} +KOALA_INTEROP_2(BaselineOffsetStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_BaselineOffsetStyle_getFinalizer() { + return GetAccessors()->getBaselineOffsetStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(BaselineOffsetStyle_getFinalizer, Ark_NativePointer) +Ark_Int32 impl_BaselineOffsetStyle_getBaselineOffset(Ark_NativePointer thisPtr) { + BaselineOffsetStylePeer* self = reinterpret_cast(thisPtr); + return GetAccessors()->getBaselineOffsetStyleAccessor()->getBaselineOffset(self); +} +KOALA_INTEROP_1(BaselineOffsetStyle_getBaselineOffset, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_LetterSpacingStyle_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_LengthMetrics value_value = static_cast(thisDeserializer.readLengthMetrics());; + return GetAccessors()->getLetterSpacingStyleAccessor()->ctor( value_value); +} +KOALA_INTEROP_2(LetterSpacingStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_LetterSpacingStyle_getFinalizer() { + return GetAccessors()->getLetterSpacingStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(LetterSpacingStyle_getFinalizer, Ark_NativePointer) +Ark_Int32 impl_LetterSpacingStyle_getLetterSpacing(Ark_NativePointer thisPtr) { + LetterSpacingStylePeer* self = reinterpret_cast(thisPtr); + return GetAccessors()->getLetterSpacingStyleAccessor()->getLetterSpacing(self); +} +KOALA_INTEROP_1(LetterSpacingStyle_getLetterSpacing, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_TextShadowStyle_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); + Ark_Union_ShadowOptions_Array_ShadowOptions value_value_buf = {}; + value_value_buf.selector = value_value_buf_selector; + if (value_value_buf_selector == 0) { + value_value_buf.selector = 0; + value_value_buf.value0 = thisDeserializer.readShadowOptions(); + } + else if (value_value_buf_selector == 1) { + value_value_buf.selector = 1; + const Ark_Int32 value_value_buf_u_length = thisDeserializer.readInt32(); + Array_ShadowOptions value_value_buf_u = {}; + thisDeserializer.resizeArray::type, + std::decay::type>(&value_value_buf_u, value_value_buf_u_length); + for (int value_value_buf_u_i = 0; value_value_buf_u_i < value_value_buf_u_length; value_value_buf_u_i++) { + value_value_buf_u.array[value_value_buf_u_i] = thisDeserializer.readShadowOptions(); + } + value_value_buf.value1 = value_value_buf_u; + } + else { + INTEROP_FATAL("One of the branches for value_value_buf has to be chosen through deserialisation."); + } + Ark_Union_ShadowOptions_Array_ShadowOptions value_value = static_cast(value_value_buf);; + return GetAccessors()->getTextShadowStyleAccessor()->ctor((const Ark_Union_ShadowOptions_Array_ShadowOptions*)&value_value); +} +KOALA_INTEROP_2(TextShadowStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_TextShadowStyle_getFinalizer() { + return GetAccessors()->getTextShadowStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(TextShadowStyle_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_BackgroundColorStyle_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_TextBackgroundStyle textBackgroundStyle_value = thisDeserializer.readTextBackgroundStyle();; + return GetAccessors()->getBackgroundColorStyleAccessor()->ctor((const Ark_TextBackgroundStyle*)&textBackgroundStyle_value); +} +KOALA_INTEROP_2(BackgroundColorStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_BackgroundColorStyle_getFinalizer() { + return GetAccessors()->getBackgroundColorStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(BackgroundColorStyle_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_GestureStyle_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_GestureStyleInterface value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = thisDeserializer.readGestureStyleInterface(); + } + Opt_GestureStyleInterface value_value = value_value_buf;; + return GetAccessors()->getGestureStyleAccessor()->ctor((const Opt_GestureStyleInterface*)&value_value); +} +KOALA_INTEROP_2(GestureStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_GestureStyle_getFinalizer() { + return GetAccessors()->getGestureStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(GestureStyle_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_ParagraphStyle_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_ParagraphStyleInterface value_value_buf = {}; + value_value_buf.tag = value_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) + { + value_value_buf.value = thisDeserializer.readParagraphStyleInterface(); + } + Opt_ParagraphStyleInterface value_value = value_value_buf;; + return GetAccessors()->getParagraphStyleAccessor()->ctor((const Opt_ParagraphStyleInterface*)&value_value); +} +KOALA_INTEROP_2(ParagraphStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +KOALA_INTEROP_1(ParagraphStyle_getTextAlign, Ark_NativePointer, Ark_NativePointer) +Ark_Int32 impl_ParagraphStyle_getTextIndent(Ark_NativePointer thisPtr) { + ParagraphStylePeer* 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); + 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); +} +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_1(ParagraphStyle_getWordBreak, Ark_NativePointer, 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());; + return GetAccessors()->getLineHeightStyleAccessor()->ctor( lineHeight_value); +} +KOALA_INTEROP_2(LineHeightStyle_ctor, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_LineHeightStyle_getFinalizer() { + return GetAccessors()->getLineHeightStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(LineHeightStyle_getFinalizer, Ark_NativePointer) +Ark_Int32 impl_LineHeightStyle_getLineHeight(Ark_NativePointer thisPtr) { + LineHeightStylePeer* self = reinterpret_cast(thisPtr); + return GetAccessors()->getLineHeightStyleAccessor()->getLineHeight(self); +} +KOALA_INTEROP_1(LineHeightStyle_getLineHeight, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_UrlStyle_ctor(const KStringPtr& url) { + return GetAccessors()->getUrlStyleAccessor()->ctor((const Ark_String*) (&url)); +} +KOALA_INTEROP_1(UrlStyle_ctor, Ark_NativePointer, KStringPtr) +Ark_NativePointer impl_UrlStyle_getFinalizer() { + return GetAccessors()->getUrlStyleAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(UrlStyle_getFinalizer, Ark_NativePointer) +void impl_UrlStyle_getUrl(Ark_NativePointer thisPtr) { + UrlStylePeer* self = reinterpret_cast(thisPtr); + GetAccessors()->getUrlStyleAccessor()->getUrl(self); +} +KOALA_INTEROP_V1(UrlStyle_getUrl, Ark_NativePointer) Ark_NativePointer impl_MutableStyledString_ctor() { return GetAccessors()->getMutableStyledStringAccessor()->ctor(); } @@ -23485,23 +24075,43 @@ void impl_MutableStyledString_replaceStyledString(Ark_NativePointer thisPtr, KIn MutableStyledStringPeer* 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), (const Ark_StyledString*)&other_value); + 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); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getMutableStyledStringAccessor()->insertStyledString(self, (const Ark_Number*) (&start), (const Ark_StyledString*)&other_value); + 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); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getMutableStyledStringAccessor()->appendStyledString(self, (const Ark_StyledString*)&other_value); + GetAccessors()->getMutableStyledStringAccessor()->appendStyledString(self, other_value); } KOALA_INTEROP_V3(MutableStyledString_appendStyledString, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_ImageAttachment_ctor(uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_ImageAttachmentInterface value_value = thisDeserializer.readImageAttachmentInterface();; + return GetAccessors()->getImageAttachmentAccessor()->ctor((const Ark_ImageAttachmentInterface*)&value_value); +} +KOALA_INTEROP_2(ImageAttachment_ctor, Ark_NativePointer, uint8_t*, int32_t) +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); +} +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_1(ImageAttachment_getObjectFit, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_CustomSpan_ctor() { return GetAccessors()->getCustomSpanAccessor()->ctor(); } @@ -23567,14 +24177,6 @@ void impl_LinearIndicatorController_stop(Ark_NativePointer thisPtr) { GetAccessors()->getLinearIndicatorControllerAccessor()->stop(self); } KOALA_INTEROP_V1(LinearIndicatorController_stop, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_inspector_ctor() { - return GetAccessors()->getGlobalScope_inspectorAccessor()->ctor(); -} -KOALA_INTEROP_0(GlobalScope_inspector_ctor, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_inspector_getFinalizer() { - return GetAccessors()->getGlobalScope_inspectorAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(GlobalScope_inspector_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_GlobalScope_inspector_getInspectorNodes() { return GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodes(); } diff --git a/arkoala/framework/native/src/generated/callback_deserialize_call.cc b/arkoala/framework/native/src/generated/callback_deserialize_call.cc index 7e9b0855a..4d6446507 100644 --- a/arkoala/framework/native/src/generated/callback_deserialize_call.cc +++ b/arkoala/framework/native/src/generated/callback_deserialize_call.cc @@ -2674,7 +2674,7 @@ void deserializeAndCallCallback_ResourceStr_Void(uint8_t* thisArray, Ark_Int32 t value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value = static_cast(value_buf); _call(_resourceId, value); @@ -2697,7 +2697,7 @@ void deserializeAndCallSyncCallback_ResourceStr_Void(Ark_VMContext vmContext, ui value_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_ResourceStr value = static_cast(value_buf); _callSync(vmContext, _resourceId, value); @@ -3290,7 +3290,7 @@ void deserializeAndCallCallback_Union_CustomBuilder_DragItemInfo_Void(uint8_t* t value_buf.value1 = thisDeserializer.readDragItemInfo(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_Union_CustomBuilder_DragItemInfo value = static_cast(value_buf); _call(_resourceId, value); @@ -3313,7 +3313,7 @@ void deserializeAndCallSyncCallback_Union_CustomBuilder_DragItemInfo_Void(Ark_VM value_buf.value1 = thisDeserializer.readDragItemInfo(); } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_Union_CustomBuilder_DragItemInfo value = static_cast(value_buf); _callSync(vmContext, _resourceId, value); @@ -3343,7 +3343,7 @@ void deserializeAndCallCallback_Union_Number_Array_Number_Void(uint8_t* thisArra selected_buf.value1 = selected_buf_u; } else { - throw "One of the branches for selected_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selected_buf has to be chosen through deserialisation."); } Ark_Union_Number_Array_Number selected = static_cast(selected_buf); _call(_resourceId, selected); @@ -3373,7 +3373,7 @@ void deserializeAndCallSyncCallback_Union_Number_Array_Number_Void(Ark_VMContext selected_buf.value1 = selected_buf_u; } else { - throw "One of the branches for selected_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selected_buf has to be chosen through deserialisation."); } Ark_Union_Number_Array_Number selected = static_cast(selected_buf); _callSync(vmContext, _resourceId, selected); @@ -3396,7 +3396,7 @@ void deserializeAndCallCallback_Union_Number_Resource_Void(uint8_t* thisArray, A selected_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for selected_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selected_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource selected = static_cast(selected_buf); _call(_resourceId, selected); @@ -3419,7 +3419,7 @@ void deserializeAndCallSyncCallback_Union_Number_Resource_Void(Ark_VMContext vmC selected_buf.value1 = thisDeserializer.readResource(); } else { - throw "One of the branches for selected_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for selected_buf has to be chosen through deserialisation."); } Ark_Union_Number_Resource selected = static_cast(selected_buf); _callSync(vmContext, _resourceId, selected); @@ -3449,7 +3449,7 @@ void deserializeAndCallCallback_Union_String_Array_String_Void(uint8_t* thisArra value_buf.value1 = value_buf_u; } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_Union_String_Array_String value = static_cast(value_buf); _call(_resourceId, value); @@ -3479,7 +3479,7 @@ void deserializeAndCallSyncCallback_Union_String_Array_String_Void(Ark_VMContext value_buf.value1 = value_buf_u; } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_Union_String_Array_String value = static_cast(value_buf); _callSync(vmContext, _resourceId, value); @@ -3782,7 +3782,7 @@ void deserializeAndCallInterceptionShowCallback(uint8_t* thisArray, Ark_Int32 th from_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for from_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for from_buf has to be chosen through deserialisation."); } Ark_Union_NavDestinationContext_NavBar from = static_cast(from_buf); const Ark_Int8 to_buf_selector = thisDeserializer.readInt8(); @@ -3797,7 +3797,7 @@ void deserializeAndCallInterceptionShowCallback(uint8_t* thisArray, Ark_Int32 th to_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for to_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for to_buf has to be chosen through deserialisation."); } Ark_Union_NavDestinationContext_NavBar to = static_cast(to_buf); Ark_NavigationOperation operation = static_cast(thisDeserializer.readInt32()); @@ -3822,7 +3822,7 @@ void deserializeAndCallSyncInterceptionShowCallback(Ark_VMContext vmContext, uin from_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for from_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for from_buf has to be chosen through deserialisation."); } Ark_Union_NavDestinationContext_NavBar from = static_cast(from_buf); const Ark_Int8 to_buf_selector = thisDeserializer.readInt8(); @@ -3837,7 +3837,7 @@ void deserializeAndCallSyncInterceptionShowCallback(Ark_VMContext vmContext, uin to_buf.value1 = static_cast(thisDeserializer.readString()); } else { - throw "One of the branches for to_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for to_buf has to be chosen through deserialisation."); } Ark_Union_NavDestinationContext_NavBar to = static_cast(to_buf); Ark_NavigationOperation operation = static_cast(thisDeserializer.readInt32()); @@ -5049,7 +5049,7 @@ void deserializeAndCallType_TextPickerAttribute_onChange_callback(uint8_t* thisA value_buf.value1 = value_buf_u; } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_Union_String_Array_String value = static_cast(value_buf); const Ark_Int8 index_buf_selector = thisDeserializer.readInt8(); @@ -5071,7 +5071,7 @@ void deserializeAndCallType_TextPickerAttribute_onChange_callback(uint8_t* thisA index_buf.value1 = index_buf_u; } else { - throw "One of the branches for index_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for index_buf has to be chosen through deserialisation."); } Ark_Union_Number_Array_Number index = static_cast(index_buf); _call(_resourceId, value, index); @@ -5101,7 +5101,7 @@ void deserializeAndCallSyncType_TextPickerAttribute_onChange_callback(Ark_VMCont value_buf.value1 = value_buf_u; } else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); } Ark_Union_String_Array_String value = static_cast(value_buf); const Ark_Int8 index_buf_selector = thisDeserializer.readInt8(); @@ -5123,7 +5123,7 @@ void deserializeAndCallSyncType_TextPickerAttribute_onChange_callback(Ark_VMCont index_buf.value1 = index_buf_u; } else { - throw "One of the branches for index_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for index_buf has to be chosen through deserialisation."); } Ark_Union_Number_Array_Number index = static_cast(index_buf); _callSync(vmContext, _resourceId, value, index); @@ -5190,7 +5190,7 @@ void deserializeAndCallType_WebAttribute_onUrlLoadIntercept_callback(uint8_t* th event_buf__data_buf.value1 = static_cast(thisDeserializer.readWebResourceRequest()); } else { - throw "One of the branches for event_buf__data_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for event_buf__data_buf has to be chosen through deserialisation."); } event_buf_.data = static_cast(event_buf__data_buf); event_buf.value = event_buf_; @@ -5223,7 +5223,7 @@ void deserializeAndCallSyncType_WebAttribute_onUrlLoadIntercept_callback(Ark_VMC event_buf__data_buf.value1 = static_cast(thisDeserializer.readWebResourceRequest()); } else { - throw "One of the branches for event_buf__data_buf has to be chosen through deserialisation."; + INTEROP_FATAL("One of the branches for event_buf__data_buf has to be chosen through deserialisation."); } event_buf_.data = static_cast(event_buf__data_buf); event_buf.value = event_buf_; diff --git a/arkoala/framework/native/src/generated/callback_managed_caller.cc b/arkoala/framework/native/src/generated/callback_managed_caller.cc index 96209d14b..125de7860 100644 --- a/arkoala/framework/native/src/generated/callback_managed_caller.cc +++ b/arkoala/framework/native/src/generated/callback_managed_caller.cc @@ -22,116 +22,116 @@ void callManagedAccessibilityCallback(Ark_Int32 resourceId, Ark_Boolean isHover, Ark_AccessibilityHoverEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_AccessibilityCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isHover); argsSerializer.writeAccessibilityHoverEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedAccessibilityCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean isHover, Ark_AccessibilityHoverEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_AccessibilityCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isHover); argsSerializer.writeAccessibilityHoverEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedAsyncCallback_image_PixelMap_Void(Ark_Int32 resourceId, Ark_PixelMap result) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_AsyncCallback_image_PixelMap_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePixelMap(result); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedAsyncCallback_image_PixelMap_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PixelMap result) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_AsyncCallback_image_PixelMap_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePixelMap(result); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedButtonTriggerClickCallback(Ark_Int32 resourceId, Ark_Number xPos, Ark_Number yPos) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ButtonTriggerClickCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(xPos); argsSerializer.writeNumber(yPos); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedButtonTriggerClickCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number xPos, Ark_Number yPos) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ButtonTriggerClickCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(xPos); argsSerializer.writeNumber(yPos); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Any_Void(Ark_Int32 resourceId, Ark_CustomObject info) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Any_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCustomObject("Any", info); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Any_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_CustomObject info) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Any_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCustomObject("Any", info); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Area_Area_Void(Ark_Int32 resourceId, Ark_Area oldValue, Ark_Area newValue) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Area_Area_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeArea(oldValue); argsSerializer.writeArea(newValue); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Area_Area_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Area oldValue, Ark_Area newValue) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Area_Area_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeArea(oldValue); argsSerializer.writeArea(newValue); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Array_Number_Void(Ark_Int32 resourceId, Array_Number input) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Array_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(input.length); @@ -139,12 +139,12 @@ void callManagedCallback_Array_Number_Void(Ark_Int32 resourceId, Array_Number in const Ark_Number input_element = input.array[i]; argsSerializer.writeNumber(input_element); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Array_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Array_Number input) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Array_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(input.length); @@ -152,14 +152,14 @@ void callManagedCallback_Array_Number_VoidSync(Ark_VMContext vmContext, Ark_Int3 const Ark_Number input_element = input.array[i]; argsSerializer.writeNumber(input_element); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Array_String_Void(Ark_Int32 resourceId, Array_String value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Array_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(value.length); @@ -167,12 +167,12 @@ void callManagedCallback_Array_String_Void(Ark_Int32 resourceId, Array_String va const Ark_String value_element = value.array[i]; argsSerializer.writeString(value_element); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Array_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Array_String value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Array_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(value.length); @@ -180,14 +180,14 @@ void callManagedCallback_Array_String_VoidSync(Ark_VMContext vmContext, Ark_Int3 const Ark_String value_element = value.array[i]; argsSerializer.writeString(value_element); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Array_TouchTestInfo_TouchResult(Ark_Int32 resourceId, Array_TouchTestInfo value, Callback_TouchResult_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Array_TouchTestInfo_TouchResult); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(value.length); @@ -198,12 +198,12 @@ void callManagedCallback_Array_TouchTestInfo_TouchResult(Ark_Int32 resourceId, A argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Array_TouchTestInfo_TouchResultSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Array_TouchTestInfo value, Callback_TouchResult_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Array_TouchTestInfo_TouchResult); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(value.length); @@ -214,456 +214,456 @@ void callManagedCallback_Array_TouchTestInfo_TouchResultSync(Ark_VMContext vmCon argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Boolean(Ark_Int32 resourceId, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Boolean_HoverEvent_Void(Ark_Int32 resourceId, Ark_Boolean isHover, Ark_HoverEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Boolean_HoverEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isHover); argsSerializer.writeHoverEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Boolean_HoverEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean isHover, Ark_HoverEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Boolean_HoverEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isHover); argsSerializer.writeHoverEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Boolean_Void(Ark_Int32 resourceId, Ark_Boolean parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Boolean_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Boolean_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Boolean_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_CalendarRequestedData_Void(Ark_Int32 resourceId, Ark_CalendarRequestedData event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_CalendarRequestedData_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCalendarRequestedData(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_CalendarRequestedData_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_CalendarRequestedData event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_CalendarRequestedData_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCalendarRequestedData(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_CalendarSelectedDate_Void(Ark_Int32 resourceId, Ark_CalendarSelectedDate event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_CalendarSelectedDate_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCalendarSelectedDate(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_CalendarSelectedDate_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_CalendarSelectedDate event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_CalendarSelectedDate_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCalendarSelectedDate(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ClickEvent_LocationButtonOnClickResult_Void(Ark_Int32 resourceId, Ark_ClickEvent event, Ark_LocationButtonOnClickResult result) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ClickEvent_LocationButtonOnClickResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); argsSerializer.writeInt32(static_cast(result)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ClickEvent_LocationButtonOnClickResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ClickEvent event, Ark_LocationButtonOnClickResult result) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ClickEvent_LocationButtonOnClickResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); argsSerializer.writeInt32(static_cast(result)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ClickEvent_PasteButtonOnClickResult_Void(Ark_Int32 resourceId, Ark_ClickEvent event, Ark_PasteButtonOnClickResult result) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ClickEvent_PasteButtonOnClickResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); argsSerializer.writeInt32(static_cast(result)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ClickEvent_PasteButtonOnClickResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ClickEvent event, Ark_PasteButtonOnClickResult result) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ClickEvent_PasteButtonOnClickResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); argsSerializer.writeInt32(static_cast(result)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ClickEvent_SaveButtonOnClickResult_Void(Ark_Int32 resourceId, Ark_ClickEvent event, Ark_SaveButtonOnClickResult result) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ClickEvent_SaveButtonOnClickResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); argsSerializer.writeInt32(static_cast(result)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ClickEvent_SaveButtonOnClickResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ClickEvent event, Ark_SaveButtonOnClickResult result) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ClickEvent_SaveButtonOnClickResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); argsSerializer.writeInt32(static_cast(result)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ClickEvent_Void(Ark_Int32 resourceId, Ark_ClickEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ClickEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ClickEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ClickEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ClickEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeClickEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ComputedBarAttribute_Void(Ark_Int32 resourceId, Ark_ComputedBarAttribute value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ComputedBarAttribute_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeComputedBarAttribute(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ComputedBarAttribute_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ComputedBarAttribute value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ComputedBarAttribute_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeComputedBarAttribute(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_CopyEvent_Void(Ark_Int32 resourceId, Ark_CopyEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_CopyEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCopyEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_CopyEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_CopyEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_CopyEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCopyEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_CustomBuilder_Void(Ark_Int32 resourceId, CustomNodeBuilder value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_CustomBuilder_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCallbackResource(value.resource); argsSerializer.writePointer(reinterpret_cast(value.call)); argsSerializer.writePointer(reinterpret_cast(value.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_CustomBuilder_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, CustomNodeBuilder value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_CustomBuilder_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCallbackResource(value.resource); argsSerializer.writePointer(reinterpret_cast(value.call)); argsSerializer.writePointer(reinterpret_cast(value.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_CutEvent_Void(Ark_Int32 resourceId, Ark_CutEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_CutEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCutEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_CutEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_CutEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_CutEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeCutEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Date_Void(Ark_Int32 resourceId, Ark_Date parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Date_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt64(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Date_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Date parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Date_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt64(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DatePickerResult_Void(Ark_Int32 resourceId, Ark_DatePickerResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DatePickerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDatePickerResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DatePickerResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DatePickerResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DatePickerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDatePickerResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DeleteValue_Boolean(Ark_Int32 resourceId, Ark_DeleteValue parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DeleteValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeDeleteValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DeleteValue_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DeleteValue parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DeleteValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeDeleteValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DeleteValue_Void(Ark_Int32 resourceId, Ark_DeleteValue parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DeleteValue_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDeleteValue(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DeleteValue_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DeleteValue parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DeleteValue_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDeleteValue(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DismissContentCoverAction_Void(Ark_Int32 resourceId, Ark_DismissContentCoverAction parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DismissContentCoverAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissContentCoverAction(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DismissContentCoverAction_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DismissContentCoverAction parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DismissContentCoverAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissContentCoverAction(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DismissDialogAction_Void(Ark_Int32 resourceId, Ark_DismissDialogAction parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DismissDialogAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissDialogAction(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DismissDialogAction_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DismissDialogAction parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DismissDialogAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissDialogAction(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DismissPopupAction_Void(Ark_Int32 resourceId, Ark_DismissPopupAction parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DismissPopupAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissPopupAction(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DismissPopupAction_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DismissPopupAction parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DismissPopupAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissPopupAction(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DismissSheetAction_Void(Ark_Int32 resourceId, Ark_DismissSheetAction parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DismissSheetAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissSheetAction(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DismissSheetAction_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DismissSheetAction parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DismissSheetAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDismissSheetAction(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(Ark_Int32 resourceId, Ark_DragEvent event, Opt_String extraParams, Callback_Union_CustomBuilder_DragItemInfo_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo); argsSerializer.writeInt32(resourceId); argsSerializer.writeDragEvent(event); @@ -677,12 +677,12 @@ void callManagedCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(Ark_I argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DragEvent_String_Union_CustomBuilder_DragItemInfoSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DragEvent event, Opt_String extraParams, Callback_Union_CustomBuilder_DragItemInfo_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo); argsSerializer.writeInt32(resourceId); argsSerializer.writeDragEvent(event); @@ -696,14 +696,14 @@ void callManagedCallback_DragEvent_String_Union_CustomBuilder_DragItemInfoSync(A argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_DragEvent_String_Void(Ark_Int32 resourceId, Ark_DragEvent event, Opt_String extraParams) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_DragEvent_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDragEvent(event); @@ -714,12 +714,12 @@ void callManagedCallback_DragEvent_String_Void(Ark_Int32 resourceId, Ark_DragEve const auto extraParams_value = extraParams.value; argsSerializer.writeString(extraParams_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_DragEvent_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_DragEvent event, Opt_String extraParams) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_DragEvent_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeDragEvent(event); @@ -730,132 +730,132 @@ void callManagedCallback_DragEvent_String_VoidSync(Ark_VMContext vmContext, Ark_ const auto extraParams_value = extraParams.value; argsSerializer.writeString(extraParams_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_EnterKeyType_Void(Ark_Int32 resourceId, Ark_EnterKeyType enterKey) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_EnterKeyType_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKey)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_EnterKeyType_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_EnterKeyType enterKey) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_EnterKeyType_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKey)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Extender_OnFinish(Ark_Int32 resourceId) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Extender_OnFinish); argsSerializer.writeInt32(resourceId); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Extender_OnFinishSync(Ark_VMContext vmContext, Ark_Int32 resourceId) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Extender_OnFinish); argsSerializer.writeInt32(resourceId); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Extender_OnProgress(Ark_Int32 resourceId, Ark_Float32 value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Extender_OnProgress); argsSerializer.writeInt32(resourceId); argsSerializer.writeFloat32(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Extender_OnProgressSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Float32 value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Extender_OnProgress); argsSerializer.writeInt32(resourceId); argsSerializer.writeFloat32(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_FormCallbackInfo_Void(Ark_Int32 resourceId, Ark_FormCallbackInfo parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_FormCallbackInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeFormCallbackInfo(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_FormCallbackInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_FormCallbackInfo parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_FormCallbackInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeFormCallbackInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_FullscreenInfo_Void(Ark_Int32 resourceId, Ark_FullscreenInfo parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_FullscreenInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeFullscreenInfo(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_FullscreenInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_FullscreenInfo parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_FullscreenInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeFullscreenInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_GestureEvent_Void(Ark_Int32 resourceId, Ark_GestureEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_GestureEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_GestureEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_GestureEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_GestureEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_GestureInfo_BaseGestureEvent_GestureJudgeResult(Ark_Int32 resourceId, Ark_GestureInfo gestureInfo, Ark_BaseGestureEvent event, Callback_GestureJudgeResult_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureInfo(gestureInfo); @@ -863,12 +863,12 @@ void callManagedCallback_GestureInfo_BaseGestureEvent_GestureJudgeResult(Ark_Int argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_GestureInfo_BaseGestureEvent_GestureJudgeResultSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_GestureInfo gestureInfo, Ark_BaseGestureEvent event, Callback_GestureJudgeResult_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureInfo(gestureInfo); @@ -876,140 +876,140 @@ void callManagedCallback_GestureInfo_BaseGestureEvent_GestureJudgeResultSync(Ark argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_GestureJudgeResult_Void(Ark_Int32 resourceId, Ark_GestureJudgeResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_GestureJudgeResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(value)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_GestureJudgeResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_GestureJudgeResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_GestureJudgeResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(value)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_GestureRecognizer_Void(Ark_Int32 resourceId, Ark_GestureRecognizer value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_GestureRecognizer_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureRecognizer(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_GestureRecognizer_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_GestureRecognizer value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_GestureRecognizer_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureRecognizer(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_HitTestMode_Void(Ark_Int32 resourceId, Ark_HitTestMode value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_HitTestMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(value)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_HitTestMode_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_HitTestMode value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_HitTestMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(value)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_InsertValue_Boolean(Ark_Int32 resourceId, Ark_InsertValue parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_InsertValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeInsertValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_InsertValue_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_InsertValue parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_InsertValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeInsertValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_InsertValue_Void(Ark_Int32 resourceId, Ark_InsertValue parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_InsertValue_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInsertValue(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_InsertValue_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_InsertValue parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_InsertValue_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInsertValue(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_IsolatedComponentAttribute_Void(Ark_Int32 resourceId, Ark_IsolatedComponentAttribute value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_IsolatedComponentAttribute_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeIsolatedComponentAttribute(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_IsolatedComponentAttribute_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_IsolatedComponentAttribute value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_IsolatedComponentAttribute_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeIsolatedComponentAttribute(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ItemDragInfo_Number_CustomBuilder(Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex, Callback_CustomBuilder_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_CustomBuilder); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); @@ -1017,12 +1017,12 @@ void callManagedCallback_ItemDragInfo_Number_CustomBuilder(Ark_Int32 resourceId, argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ItemDragInfo_Number_CustomBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex, Callback_CustomBuilder_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_CustomBuilder); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); @@ -1030,174 +1030,174 @@ void callManagedCallback_ItemDragInfo_Number_CustomBuilderSync(Ark_VMContext vmC argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ItemDragInfo_Number_Number_Boolean_Void(Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex, Ark_Number insertIndex, Ark_Boolean isSuccess) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_Number_Boolean_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); argsSerializer.writeNumber(itemIndex); argsSerializer.writeNumber(insertIndex); argsSerializer.writeBoolean(isSuccess); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ItemDragInfo_Number_Number_Boolean_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex, Ark_Number insertIndex, Ark_Boolean isSuccess) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_Number_Boolean_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); argsSerializer.writeNumber(itemIndex); argsSerializer.writeNumber(insertIndex); argsSerializer.writeBoolean(isSuccess); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ItemDragInfo_Number_Number_Void(Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex, Ark_Number insertIndex) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); argsSerializer.writeNumber(itemIndex); argsSerializer.writeNumber(insertIndex); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ItemDragInfo_Number_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex, Ark_Number insertIndex) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); argsSerializer.writeNumber(itemIndex); argsSerializer.writeNumber(insertIndex); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ItemDragInfo_Number_Void(Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); argsSerializer.writeNumber(itemIndex); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ItemDragInfo_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ItemDragInfo event, Ark_Number itemIndex) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); argsSerializer.writeNumber(itemIndex); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ItemDragInfo_Void(Ark_Int32 resourceId, Ark_ItemDragInfo event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ItemDragInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ItemDragInfo event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ItemDragInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeItemDragInfo(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_KeyEvent_Boolean(Ark_Int32 resourceId, Ark_KeyEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_KeyEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeKeyEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_KeyEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_KeyEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_KeyEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeKeyEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_KeyEvent_Void(Ark_Int32 resourceId, Ark_KeyEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_KeyEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeKeyEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_KeyEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_KeyEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_KeyEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeKeyEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_Boolean_isVisible_Void(Ark_Int32 resourceId, Ark_Literal_Boolean_isVisible event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_Boolean_isVisible_Void); argsSerializer.writeInt32(resourceId); const auto event_isVisible = event.isVisible; argsSerializer.writeBoolean(event_isVisible); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_Boolean_isVisible_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Literal_Boolean_isVisible event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_Boolean_isVisible_Void); argsSerializer.writeInt32(resourceId); const auto event_isVisible = event.isVisible; argsSerializer.writeBoolean(event_isVisible); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_Function_handler_Object_error_Void(Ark_Int32 resourceId, Opt_Literal_Function_handler_Object_error event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_Function_handler_Object_error_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -1210,12 +1210,12 @@ void callManagedCallback_Literal_Function_handler_Object_error_Void(Ark_Int32 re const auto event_value_error = event_value.error; argsSerializer.writeCustomObject("Object", event_value_error); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_Function_handler_Object_error_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_Literal_Function_handler_Object_error event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_Function_handler_Object_error_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -1228,14 +1228,14 @@ void callManagedCallback_Literal_Function_handler_Object_error_VoidSync(Ark_VMCo const auto event_value_error = event_value.error; argsSerializer.writeCustomObject("Object", event_value_error); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_Number_code_Want_want_Void(Ark_Int32 resourceId, Ark_Literal_Number_code_Want_want parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_Number_code_Want_want_Void); argsSerializer.writeInt32(resourceId); const auto parameter_code = parameter.code; @@ -1248,12 +1248,12 @@ void callManagedCallback_Literal_Number_code_Want_want_Void(Ark_Int32 resourceId const auto parameter_want_value = parameter_want.value; argsSerializer.writeWant(parameter_want_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_Number_code_Want_want_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Literal_Number_code_Want_want parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_Number_code_Want_want_Void); argsSerializer.writeInt32(resourceId); const auto parameter_code = parameter.code; @@ -1266,62 +1266,62 @@ void callManagedCallback_Literal_Number_code_Want_want_VoidSync(Ark_VMContext vm const auto parameter_want_value = parameter_want.value; argsSerializer.writeWant(parameter_want_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_Number_errcode_String_msg_Void(Ark_Int32 resourceId, Ark_Literal_Number_errcode_String_msg info) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_Number_errcode_String_msg_Void); argsSerializer.writeInt32(resourceId); const auto info_errcode = info.errcode; argsSerializer.writeNumber(info_errcode); const auto info_msg = info.msg; argsSerializer.writeString(info_msg); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_Number_errcode_String_msg_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Literal_Number_errcode_String_msg info) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_Number_errcode_String_msg_Void); argsSerializer.writeInt32(resourceId); const auto info_errcode = info.errcode; argsSerializer.writeNumber(info_errcode); const auto info_msg = info.msg; argsSerializer.writeString(info_msg); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_Number_offsetRemain_Void(Ark_Int32 resourceId, Ark_Literal_Number_offsetRemain value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_Number_offsetRemain_Void); argsSerializer.writeInt32(resourceId); const auto value_offsetRemain = value.offsetRemain; argsSerializer.writeNumber(value_offsetRemain); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_Number_offsetRemain_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Literal_Number_offsetRemain value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_Number_offsetRemain_Void); argsSerializer.writeInt32(resourceId); const auto value_offsetRemain = value.offsetRemain; argsSerializer.writeNumber(value_offsetRemain); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_Object_detail_Boolean(Ark_Int32 resourceId, Opt_Literal_Object_detail event, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_Object_detail_Boolean); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -1335,12 +1335,12 @@ void callManagedCallback_Literal_Object_detail_Boolean(Ark_Int32 resourceId, Opt argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_Object_detail_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_Literal_Object_detail event, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_Object_detail_Boolean); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -1354,202 +1354,202 @@ void callManagedCallback_Literal_Object_detail_BooleanSync(Ark_VMContext vmConte argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Literal_String_plainText_Void(Ark_Int32 resourceId, Ark_Literal_String_plainText selectedText) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Literal_String_plainText_Void); argsSerializer.writeInt32(resourceId); const auto selectedText_plainText = selectedText.plainText; argsSerializer.writeString(selectedText_plainText); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Literal_String_plainText_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Literal_String_plainText selectedText) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Literal_String_plainText_Void); argsSerializer.writeInt32(resourceId); const auto selectedText_plainText = selectedText.plainText; argsSerializer.writeString(selectedText_plainText); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_MouseEvent_Void(Ark_Int32 resourceId, Ark_MouseEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_MouseEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeMouseEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_MouseEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_MouseEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_MouseEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeMouseEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_NativeEmbedDataInfo_Void(Ark_Int32 resourceId, Ark_NativeEmbedDataInfo event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_NativeEmbedDataInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNativeEmbedDataInfo(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_NativeEmbedDataInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativeEmbedDataInfo event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_NativeEmbedDataInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNativeEmbedDataInfo(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_NativeEmbedTouchInfo_Void(Ark_Int32 resourceId, Ark_NativeEmbedTouchInfo event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_NativeEmbedTouchInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNativeEmbedTouchInfo(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_NativeEmbedTouchInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativeEmbedTouchInfo event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_NativeEmbedTouchInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNativeEmbedTouchInfo(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_NavDestinationContext_Void(Ark_Int32 resourceId, Ark_NavDestinationContext parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_NavDestinationContext_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNavDestinationContext(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_NavDestinationContext_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavDestinationContext parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_NavDestinationContext_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNavDestinationContext(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_NavigationMode_Void(Ark_Int32 resourceId, Ark_NavigationMode mode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_NavigationMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(mode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_NavigationMode_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavigationMode mode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_NavigationMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(mode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_NavigationTitleMode_Void(Ark_Int32 resourceId, Ark_NavigationTitleMode titleMode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_NavigationTitleMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(titleMode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_NavigationTitleMode_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavigationTitleMode titleMode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_NavigationTitleMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(titleMode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_NavigationTransitionProxy_Void(Ark_Int32 resourceId, Ark_NavigationTransitionProxy transitionProxy) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_NavigationTransitionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNavigationTransitionProxy(transitionProxy); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_NavigationTransitionProxy_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavigationTransitionProxy transitionProxy) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_NavigationTransitionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNavigationTransitionProxy(transitionProxy); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Boolean(Ark_Int32 resourceId, Ark_Number index, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Number_Boolean(Ark_Int32 resourceId, Ark_Number from, Ark_Number to, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Number_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(from); @@ -1557,12 +1557,12 @@ void callManagedCallback_Number_Number_Boolean(Ark_Int32 resourceId, Ark_Number argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Number_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number from, Ark_Number to, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Number_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(from); @@ -1570,14 +1570,14 @@ void callManagedCallback_Number_Number_BooleanSync(Ark_VMContext vmContext, Ark_ argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Number_ComputedBarAttribute(Ark_Int32 resourceId, Ark_Number index, Ark_Number offset, Callback_ComputedBarAttribute_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Number_ComputedBarAttribute); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); @@ -1585,12 +1585,12 @@ void callManagedCallback_Number_Number_ComputedBarAttribute(Ark_Int32 resourceId argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Number_ComputedBarAttributeSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_Number offset, Callback_ComputedBarAttribute_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Number_ComputedBarAttribute); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); @@ -1598,84 +1598,84 @@ void callManagedCallback_Number_Number_ComputedBarAttributeSync(Ark_VMContext vm argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Number_Number_Void(Ark_Int32 resourceId, Ark_Number start, Ark_Number end, Ark_Number center) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Number_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(start); argsSerializer.writeNumber(end); argsSerializer.writeNumber(center); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Number_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number start, Ark_Number end, Ark_Number center) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Number_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(start); argsSerializer.writeNumber(end); argsSerializer.writeNumber(center); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Number_PanelMode_Void(Ark_Int32 resourceId, Ark_Number width, Ark_Number height, Ark_PanelMode mode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Number_PanelMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(width); argsSerializer.writeNumber(height); argsSerializer.writeInt32(static_cast(mode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Number_PanelMode_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number width, Ark_Number height, Ark_PanelMode mode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Number_PanelMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(width); argsSerializer.writeNumber(height); argsSerializer.writeInt32(static_cast(mode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Number_Void(Ark_Int32 resourceId, Ark_Number first, Ark_Number last) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(first); argsSerializer.writeNumber(last); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number first, Ark_Number last) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(first); argsSerializer.writeNumber(last); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_ScrollState_Literal_Number_offsetRemain(Ark_Int32 resourceId, Ark_Number offset, Ark_ScrollState state, Callback_Literal_Number_offsetRemain_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_ScrollState_Literal_Number_offsetRemain); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(offset); @@ -1683,12 +1683,12 @@ void callManagedCallback_Number_ScrollState_Literal_Number_offsetRemain(Ark_Int3 argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_ScrollState_Literal_Number_offsetRemainSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number offset, Ark_ScrollState state, Callback_Literal_Number_offsetRemain_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_ScrollState_Literal_Number_offsetRemain); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(offset); @@ -1696,950 +1696,950 @@ void callManagedCallback_Number_ScrollState_Literal_Number_offsetRemainSync(Ark_ argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_SliderChangeMode_Void(Ark_Int32 resourceId, Ark_Number value, Ark_SliderChangeMode mode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_SliderChangeMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(value); argsSerializer.writeInt32(static_cast(mode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_SliderChangeMode_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number value, Ark_SliderChangeMode mode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_SliderChangeMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(value); argsSerializer.writeInt32(static_cast(mode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_String_Void(Ark_Int32 resourceId, Ark_Number index, Ark_String value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeString(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_String value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeString(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Tuple_Number_Number(Ark_Int32 resourceId, Ark_Number index, Callback_Tuple_Number_Number_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Tuple_Number_Number); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Tuple_Number_NumberSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Callback_Tuple_Number_Number_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Tuple_Number_Number); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Tuple_Number_Number_Number_Number(Ark_Int32 resourceId, Ark_Number index, Callback_Tuple_Number_Number_Number_Number_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Tuple_Number_Number_Number_Number); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_Tuple_Number_Number_Number_NumberSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Callback_Tuple_Number_Number_Number_Number_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Tuple_Number_Number_Number_Number); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Number_Void(Ark_Int32 resourceId, Ark_Number index) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OffsetResult_Void(Ark_Int32 resourceId, Ark_OffsetResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OffsetResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOffsetResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OffsetResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OffsetResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OffsetResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOffsetResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnAlertEvent_Boolean(Ark_Int32 resourceId, Ark_OnAlertEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnAlertEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnAlertEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnAlertEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnAlertEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnAlertEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnAlertEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnAudioStateChangedEvent_Void(Ark_Int32 resourceId, Ark_OnAudioStateChangedEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnAudioStateChangedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnAudioStateChangedEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnAudioStateChangedEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnAudioStateChangedEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnAudioStateChangedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnAudioStateChangedEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnBeforeUnloadEvent_Boolean(Ark_Int32 resourceId, Ark_OnBeforeUnloadEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnBeforeUnloadEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnBeforeUnloadEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnBeforeUnloadEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnBeforeUnloadEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnBeforeUnloadEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnBeforeUnloadEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnClientAuthenticationEvent_Void(Ark_Int32 resourceId, Ark_OnClientAuthenticationEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnClientAuthenticationEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnClientAuthenticationEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnClientAuthenticationEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnClientAuthenticationEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnClientAuthenticationEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnClientAuthenticationEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnConfirmEvent_Boolean(Ark_Int32 resourceId, Ark_OnConfirmEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnConfirmEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnConfirmEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnConfirmEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnConfirmEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnConfirmEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnConfirmEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnConsoleEvent_Boolean(Ark_Int32 resourceId, Ark_OnConsoleEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnConsoleEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnConsoleEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnConsoleEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnConsoleEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnConsoleEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnConsoleEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnContextMenuShowEvent_Boolean(Ark_Int32 resourceId, Ark_OnContextMenuShowEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnContextMenuShowEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnContextMenuShowEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnContextMenuShowEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnContextMenuShowEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnContextMenuShowEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnContextMenuShowEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnDataResubmittedEvent_Void(Ark_Int32 resourceId, Ark_OnDataResubmittedEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnDataResubmittedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnDataResubmittedEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnDataResubmittedEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnDataResubmittedEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnDataResubmittedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnDataResubmittedEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnDownloadStartEvent_Void(Ark_Int32 resourceId, Ark_OnDownloadStartEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnDownloadStartEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnDownloadStartEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnDownloadStartEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnDownloadStartEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnDownloadStartEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnDownloadStartEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnErrorReceiveEvent_Void(Ark_Int32 resourceId, Ark_OnErrorReceiveEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnErrorReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnErrorReceiveEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnErrorReceiveEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnErrorReceiveEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnErrorReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnErrorReceiveEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnFaviconReceivedEvent_Void(Ark_Int32 resourceId, Ark_OnFaviconReceivedEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnFaviconReceivedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnFaviconReceivedEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnFaviconReceivedEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnFaviconReceivedEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnFaviconReceivedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnFaviconReceivedEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnFirstContentfulPaintEvent_Void(Ark_Int32 resourceId, Ark_OnFirstContentfulPaintEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnFirstContentfulPaintEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnFirstContentfulPaintEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnFirstContentfulPaintEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnFirstContentfulPaintEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnFirstContentfulPaintEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnFirstContentfulPaintEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnGeolocationShowEvent_Void(Ark_Int32 resourceId, Ark_OnGeolocationShowEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnGeolocationShowEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnGeolocationShowEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnGeolocationShowEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnGeolocationShowEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnGeolocationShowEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnGeolocationShowEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnHttpAuthRequestEvent_Boolean(Ark_Int32 resourceId, Ark_OnHttpAuthRequestEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnHttpAuthRequestEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnHttpAuthRequestEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnHttpAuthRequestEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnHttpAuthRequestEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnHttpAuthRequestEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnHttpAuthRequestEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnHttpErrorReceiveEvent_Void(Ark_Int32 resourceId, Ark_OnHttpErrorReceiveEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnHttpErrorReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnHttpErrorReceiveEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnHttpErrorReceiveEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnHttpErrorReceiveEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnHttpErrorReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnHttpErrorReceiveEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnInterceptRequestEvent_WebResourceResponse(Ark_Int32 resourceId, Ark_OnInterceptRequestEvent parameter, Callback_WebResourceResponse_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnInterceptRequestEvent_WebResourceResponse); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnInterceptRequestEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnInterceptRequestEvent_WebResourceResponseSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnInterceptRequestEvent parameter, Callback_WebResourceResponse_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnInterceptRequestEvent_WebResourceResponse); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnInterceptRequestEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnLoadInterceptEvent_Boolean(Ark_Int32 resourceId, Ark_OnLoadInterceptEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnLoadInterceptEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnLoadInterceptEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnLoadInterceptEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnLoadInterceptEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnLoadInterceptEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnLoadInterceptEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnOverScrollEvent_Void(Ark_Int32 resourceId, Ark_OnOverScrollEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnOverScrollEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnOverScrollEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnOverScrollEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnOverScrollEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnOverScrollEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnOverScrollEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnPageBeginEvent_Void(Ark_Int32 resourceId, Ark_OnPageBeginEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnPageBeginEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPageBeginEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnPageBeginEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnPageBeginEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnPageBeginEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPageBeginEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnPageEndEvent_Void(Ark_Int32 resourceId, Ark_OnPageEndEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnPageEndEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPageEndEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnPageEndEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnPageEndEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnPageEndEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPageEndEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnPageVisibleEvent_Void(Ark_Int32 resourceId, Ark_OnPageVisibleEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnPageVisibleEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPageVisibleEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnPageVisibleEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnPageVisibleEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnPageVisibleEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPageVisibleEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnPermissionRequestEvent_Void(Ark_Int32 resourceId, Ark_OnPermissionRequestEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnPermissionRequestEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPermissionRequestEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnPermissionRequestEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnPermissionRequestEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnPermissionRequestEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPermissionRequestEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnProgressChangeEvent_Void(Ark_Int32 resourceId, Ark_OnProgressChangeEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnProgressChangeEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnProgressChangeEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnProgressChangeEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnProgressChangeEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnProgressChangeEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnProgressChangeEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnPromptEvent_Boolean(Ark_Int32 resourceId, Ark_OnPromptEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnPromptEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPromptEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnPromptEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnPromptEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnPromptEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnPromptEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnRefreshAccessedHistoryEvent_Void(Ark_Int32 resourceId, Ark_OnRefreshAccessedHistoryEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnRefreshAccessedHistoryEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnRefreshAccessedHistoryEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnRefreshAccessedHistoryEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnRefreshAccessedHistoryEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnRenderExitedEvent_Void(Ark_Int32 resourceId, Ark_OnRenderExitedEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnRenderExitedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnRenderExitedEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnRenderExitedEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnRenderExitedEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnRenderExitedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnRenderExitedEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnResourceLoadEvent_Void(Ark_Int32 resourceId, Ark_OnResourceLoadEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnResourceLoadEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnResourceLoadEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnResourceLoadEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnResourceLoadEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnResourceLoadEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnResourceLoadEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnScaleChangeEvent_Void(Ark_Int32 resourceId, Ark_OnScaleChangeEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnScaleChangeEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScaleChangeEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnScaleChangeEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnScaleChangeEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnScaleChangeEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScaleChangeEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnScreenCaptureRequestEvent_Void(Ark_Int32 resourceId, Ark_OnScreenCaptureRequestEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnScreenCaptureRequestEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScreenCaptureRequestEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnScreenCaptureRequestEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnScreenCaptureRequestEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnScreenCaptureRequestEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScreenCaptureRequestEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnScrollEvent_Void(Ark_Int32 resourceId, Ark_OnScrollEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnScrollEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScrollEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnScrollEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnScrollEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnScrollEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScrollEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnScrollFrameBeginHandlerResult_Void(Ark_Int32 resourceId, Ark_OnScrollFrameBeginHandlerResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnScrollFrameBeginHandlerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScrollFrameBeginHandlerResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnScrollFrameBeginHandlerResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnScrollFrameBeginHandlerResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnScrollFrameBeginHandlerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnScrollFrameBeginHandlerResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnSearchResultReceiveEvent_Void(Ark_Int32 resourceId, Ark_OnSearchResultReceiveEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnSearchResultReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnSearchResultReceiveEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnSearchResultReceiveEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnSearchResultReceiveEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnSearchResultReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnSearchResultReceiveEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnShowFileSelectorEvent_Boolean(Ark_Int32 resourceId, Ark_OnShowFileSelectorEvent parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnShowFileSelectorEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnShowFileSelectorEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnShowFileSelectorEvent_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnShowFileSelectorEvent parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnShowFileSelectorEvent_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnShowFileSelectorEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnSslErrorEventReceiveEvent_Void(Ark_Int32 resourceId, Ark_OnSslErrorEventReceiveEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnSslErrorEventReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnSslErrorEventReceiveEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnSslErrorEventReceiveEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnSslErrorEventReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnTitleReceiveEvent_Void(Ark_Int32 resourceId, Ark_OnTitleReceiveEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnTitleReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnTitleReceiveEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnTitleReceiveEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnTitleReceiveEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnTitleReceiveEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnTitleReceiveEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnTouchIconUrlReceivedEvent_Void(Ark_Int32 resourceId, Ark_OnTouchIconUrlReceivedEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnTouchIconUrlReceivedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnTouchIconUrlReceivedEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnTouchIconUrlReceivedEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnTouchIconUrlReceivedEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_OnWindowNewEvent_Void(Ark_Int32 resourceId, Ark_OnWindowNewEvent parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_OnWindowNewEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnWindowNewEvent(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_OnWindowNewEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnWindowNewEvent parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_OnWindowNewEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnWindowNewEvent(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Opt_Array_String_Void(Ark_Int32 resourceId, Opt_Array_String error) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Opt_Array_String_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 error_type = INTEROP_RUNTIME_UNDEFINED; @@ -2653,12 +2653,12 @@ void callManagedCallback_Opt_Array_String_Void(Ark_Int32 resourceId, Opt_Array_S argsSerializer.writeString(error_value_element); } } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Opt_Array_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_Array_String error) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Opt_Array_String_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 error_type = INTEROP_RUNTIME_UNDEFINED; @@ -2672,14 +2672,14 @@ void callManagedCallback_Opt_Array_String_VoidSync(Ark_VMContext vmContext, Ark_ argsSerializer.writeString(error_value_element); } } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Opt_NavigationAnimatedTransition_Void(Ark_Int32 resourceId, Opt_NavigationAnimatedTransition value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Opt_NavigationAnimatedTransition_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2689,12 +2689,12 @@ void callManagedCallback_Opt_NavigationAnimatedTransition_Void(Ark_Int32 resourc const auto value_value = value.value; argsSerializer.writeNavigationAnimatedTransition(value_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Opt_NavigationAnimatedTransition_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_NavigationAnimatedTransition value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Opt_NavigationAnimatedTransition_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2704,14 +2704,14 @@ void callManagedCallback_Opt_NavigationAnimatedTransition_VoidSync(Ark_VMContext const auto value_value = value.value; argsSerializer.writeNavigationAnimatedTransition(value_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Opt_StyledString_Opt_Array_String_Void(Ark_Int32 resourceId, Opt_StyledString value, Opt_Array_String error) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Opt_StyledString_Opt_Array_String_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2732,12 +2732,12 @@ void callManagedCallback_Opt_StyledString_Opt_Array_String_Void(Ark_Int32 resour argsSerializer.writeString(error_value_element); } } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Opt_StyledString_Opt_Array_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_StyledString value, Opt_Array_String error) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Opt_StyledString_Opt_Array_String_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2758,14 +2758,14 @@ void callManagedCallback_Opt_StyledString_Opt_Array_String_VoidSync(Ark_VMContex argsSerializer.writeString(error_value_element); } } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Opt_TabContentAnimatedTransition_Void(Ark_Int32 resourceId, Opt_TabContentAnimatedTransition value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Opt_TabContentAnimatedTransition_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2775,12 +2775,12 @@ void callManagedCallback_Opt_TabContentAnimatedTransition_Void(Ark_Int32 resourc const auto value_value = value.value; argsSerializer.writeTabContentAnimatedTransition(value_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Opt_TabContentAnimatedTransition_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_TabContentAnimatedTransition value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Opt_TabContentAnimatedTransition_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2790,178 +2790,178 @@ void callManagedCallback_Opt_TabContentAnimatedTransition_VoidSync(Ark_VMContext const auto value_value = value.value; argsSerializer.writeTabContentAnimatedTransition(value_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_PanelMode_Void(Ark_Int32 resourceId, Ark_PanelMode mode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_PanelMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(mode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_PanelMode_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PanelMode mode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_PanelMode_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(mode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_PlaybackInfo_Void(Ark_Int32 resourceId, Ark_PlaybackInfo parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_PlaybackInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePlaybackInfo(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_PlaybackInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PlaybackInfo parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_PlaybackInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePlaybackInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Pointer_Void(Ark_Int32 resourceId, Ark_NativePointer value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Pointer_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePointer(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Pointer_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Pointer_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePointer(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_PopInfo_Void(Ark_Int32 resourceId, Ark_PopInfo parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_PopInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePopInfo(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_PopInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PopInfo parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_PopInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePopInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_PreDragStatus_Void(Ark_Int32 resourceId, Ark_PreDragStatus parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_PreDragStatus_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(parameter)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_PreDragStatus_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PreDragStatus parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_PreDragStatus_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(parameter)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_PreparedInfo_Void(Ark_Int32 resourceId, Ark_PreparedInfo parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_PreparedInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePreparedInfo(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_PreparedInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PreparedInfo parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_PreparedInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writePreparedInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RangeUpdate(Ark_Int32 resourceId, Ark_Int32 index, Ark_NativePointer mark, Ark_Int32 end) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RangeUpdate); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(index); argsSerializer.writePointer(mark); argsSerializer.writeInt32(end); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RangeUpdateSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Int32 index, Ark_NativePointer mark, Ark_Int32 end) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RangeUpdate); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(index); argsSerializer.writePointer(mark); argsSerializer.writeInt32(end); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RefreshStatus_Void(Ark_Int32 resourceId, Ark_RefreshStatus state) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RefreshStatus_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(state)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RefreshStatus_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RefreshStatus state) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RefreshStatus_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(state)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_ResourceStr_Void(Ark_Int32 resourceId, Ark_ResourceStr value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_ResourceStr_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2976,12 +2976,12 @@ void callManagedCallback_ResourceStr_Void(Ark_Int32 resourceId, Ark_ResourceStr const auto value_1 = value.value1; argsSerializer.writeResource(value_1); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_ResourceStr_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ResourceStr value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_ResourceStr_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -2996,530 +2996,530 @@ void callManagedCallback_ResourceStr_VoidSync(Ark_VMContext vmContext, Ark_Int32 const auto value_1 = value.value1; argsSerializer.writeResource(value_1); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RichEditorChangeValue_Boolean(Ark_Int32 resourceId, Ark_RichEditorChangeValue parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RichEditorChangeValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorChangeValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RichEditorChangeValue_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RichEditorChangeValue parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RichEditorChangeValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorChangeValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RichEditorDeleteValue_Boolean(Ark_Int32 resourceId, Ark_RichEditorDeleteValue parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RichEditorDeleteValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorDeleteValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RichEditorDeleteValue_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RichEditorDeleteValue parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RichEditorDeleteValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorDeleteValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RichEditorInsertValue_Boolean(Ark_Int32 resourceId, Ark_RichEditorInsertValue parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RichEditorInsertValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorInsertValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RichEditorInsertValue_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RichEditorInsertValue parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RichEditorInsertValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorInsertValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RichEditorRange_Void(Ark_Int32 resourceId, Ark_RichEditorRange parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RichEditorRange_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorRange(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RichEditorRange_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RichEditorRange parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RichEditorRange_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorRange(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RichEditorSelection_Void(Ark_Int32 resourceId, Ark_RichEditorSelection parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RichEditorSelection_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorSelection(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RichEditorSelection_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RichEditorSelection parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RichEditorSelection_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorSelection(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_RichEditorTextSpanResult_Void(Ark_Int32 resourceId, Ark_RichEditorTextSpanResult parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_RichEditorTextSpanResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorTextSpanResult(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_RichEditorTextSpanResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RichEditorTextSpanResult parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_RichEditorTextSpanResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeRichEditorTextSpanResult(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_SheetDismiss_Void(Ark_Int32 resourceId, Ark_SheetDismiss sheetDismiss) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_SheetDismiss_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeSheetDismiss(sheetDismiss); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_SheetDismiss_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SheetDismiss sheetDismiss) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_SheetDismiss_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeSheetDismiss(sheetDismiss); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_SheetType_Void(Ark_Int32 resourceId, Ark_SheetType parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_SheetType_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(parameter)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_SheetType_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SheetType parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_SheetType_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(parameter)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_SpringBackAction_Void(Ark_Int32 resourceId, Ark_SpringBackAction parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_SpringBackAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeSpringBackAction(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_SpringBackAction_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SpringBackAction parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_SpringBackAction_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeSpringBackAction(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_String_Number_Void(Ark_Int32 resourceId, Ark_String value, Ark_Number index) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_String_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); argsSerializer.writeNumber(index); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_String_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String value, Ark_Number index) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_String_Number_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); argsSerializer.writeNumber(index); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_String_PasteEvent_Void(Ark_Int32 resourceId, Ark_String value, Ark_PasteEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_String_PasteEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); argsSerializer.writePasteEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_String_PasteEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String value, Ark_PasteEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_String_PasteEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); argsSerializer.writePasteEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_String_Unknown_Void(Ark_Int32 resourceId, Ark_String name, Ark_CustomObject param) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_String_Unknown_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(name); argsSerializer.writeCustomObject("Any", param); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_String_Unknown_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String name, Ark_CustomObject param) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_String_Unknown_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(name); argsSerializer.writeCustomObject("Any", param); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_String_Void(Ark_Int32 resourceId, Ark_String breakpoints) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(breakpoints); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String breakpoints) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_String_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(breakpoints); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_StyledStringChangeValue_Boolean(Ark_Int32 resourceId, Ark_StyledStringChangeValue parameter, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_StyledStringChangeValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeStyledStringChangeValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_StyledStringChangeValue_BooleanSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_StyledStringChangeValue parameter, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_StyledStringChangeValue_Boolean); argsSerializer.writeInt32(resourceId); argsSerializer.writeStyledStringChangeValue(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_SwipeActionState_Void(Ark_Int32 resourceId, Ark_SwipeActionState state) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_SwipeActionState_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(state)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_SwipeActionState_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SwipeActionState state) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_SwipeActionState_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(state)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_SwiperContentTransitionProxy_Void(Ark_Int32 resourceId, Ark_SwiperContentTransitionProxy parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_SwiperContentTransitionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeSwiperContentTransitionProxy(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_SwiperContentTransitionProxy_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SwiperContentTransitionProxy parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_SwiperContentTransitionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeSwiperContentTransitionProxy(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TabContentTransitionProxy_Void(Ark_Int32 resourceId, Ark_TabContentTransitionProxy parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TabContentTransitionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTabContentTransitionProxy(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TabContentTransitionProxy_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TabContentTransitionProxy parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TabContentTransitionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTabContentTransitionProxy(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TerminationInfo_Void(Ark_Int32 resourceId, Ark_TerminationInfo parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TerminationInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTerminationInfo(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TerminationInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TerminationInfo parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TerminationInfo_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTerminationInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TextPickerResult_Void(Ark_Int32 resourceId, Ark_TextPickerResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TextPickerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTextPickerResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TextPickerResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TextPickerResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TextPickerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTextPickerResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TextRange_Void(Ark_Int32 resourceId, Ark_TextRange parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TextRange_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTextRange(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TextRange_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TextRange parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TextRange_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTextRange(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TimePickerResult_Void(Ark_Int32 resourceId, Ark_TimePickerResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TimePickerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTimePickerResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TimePickerResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TimePickerResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TimePickerResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTimePickerResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TouchEvent_HitTestMode(Ark_Int32 resourceId, Ark_TouchEvent parameter, Callback_HitTestMode_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TouchEvent_HitTestMode); argsSerializer.writeInt32(resourceId); argsSerializer.writeTouchEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TouchEvent_HitTestModeSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TouchEvent parameter, Callback_HitTestMode_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TouchEvent_HitTestMode); argsSerializer.writeInt32(resourceId); argsSerializer.writeTouchEvent(parameter); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TouchEvent_Void(Ark_Int32 resourceId, Ark_TouchEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TouchEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTouchEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TouchEvent_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TouchEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TouchEvent_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTouchEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_TouchResult_Void(Ark_Int32 resourceId, Ark_TouchResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_TouchResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTouchResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_TouchResult_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TouchResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_TouchResult_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeTouchResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Tuple_Number_Number_Number_Number_Void(Ark_Int32 resourceId, Ark_Tuple_Number_Number_Number_Number value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Tuple_Number_Number_Number_Number_Void); argsSerializer.writeInt32(resourceId); const auto value_0 = value.value0; @@ -3530,12 +3530,12 @@ void callManagedCallback_Tuple_Number_Number_Number_Number_Void(Ark_Int32 resour argsSerializer.writeNumber(value_2); const auto value_3 = value.value3; argsSerializer.writeNumber(value_3); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Tuple_Number_Number_Number_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Tuple_Number_Number_Number_Number value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Tuple_Number_Number_Number_Number_Void); argsSerializer.writeInt32(resourceId); const auto value_0 = value.value0; @@ -3546,40 +3546,40 @@ void callManagedCallback_Tuple_Number_Number_Number_Number_VoidSync(Ark_VMContex argsSerializer.writeNumber(value_2); const auto value_3 = value.value3; argsSerializer.writeNumber(value_3); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Tuple_Number_Number_Void(Ark_Int32 resourceId, Ark_Tuple_Number_Number value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Tuple_Number_Number_Void); argsSerializer.writeInt32(resourceId); const auto value_0 = value.value0; argsSerializer.writeNumber(value_0); const auto value_1 = value.value1; argsSerializer.writeNumber(value_1); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Tuple_Number_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Tuple_Number_Number value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Tuple_Number_Number_Void); argsSerializer.writeInt32(resourceId); const auto value_0 = value.value0; argsSerializer.writeNumber(value_0); const auto value_1 = value.value1; argsSerializer.writeNumber(value_1); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Type_ImageAttribute_onComplete_callback_event_Void(Ark_Int32 resourceId, Opt_Type_ImageAttribute_onComplete_callback_event event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Type_ImageAttribute_onComplete_callback_event_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -3606,12 +3606,12 @@ void callManagedCallback_Type_ImageAttribute_onComplete_callback_event_Void(Ark_ const auto event_value_contentOffsetY = event_value.contentOffsetY; argsSerializer.writeNumber(event_value_contentOffsetY); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Type_ImageAttribute_onComplete_callback_event_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_Type_ImageAttribute_onComplete_callback_event event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Type_ImageAttribute_onComplete_callback_event_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -3638,34 +3638,34 @@ void callManagedCallback_Type_ImageAttribute_onComplete_callback_event_VoidSync( const auto event_value_contentOffsetY = event_value.contentOffsetY; argsSerializer.writeNumber(event_value_contentOffsetY); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_UIExtensionProxy_Void(Ark_Int32 resourceId, Ark_UIExtensionProxy parameter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_UIExtensionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeUIExtensionProxy(parameter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_UIExtensionProxy_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_UIExtensionProxy parameter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_UIExtensionProxy_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeUIExtensionProxy(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Union_CustomBuilder_DragItemInfo_Void(Ark_Int32 resourceId, Ark_Union_CustomBuilder_DragItemInfo value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Union_CustomBuilder_DragItemInfo_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -3682,12 +3682,12 @@ void callManagedCallback_Union_CustomBuilder_DragItemInfo_Void(Ark_Int32 resourc const auto value_1 = value.value1; argsSerializer.writeDragItemInfo(value_1); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Union_CustomBuilder_DragItemInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_CustomBuilder_DragItemInfo value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Union_CustomBuilder_DragItemInfo_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -3704,14 +3704,14 @@ void callManagedCallback_Union_CustomBuilder_DragItemInfo_VoidSync(Ark_VMContext const auto value_1 = value.value1; argsSerializer.writeDragItemInfo(value_1); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Union_Number_Array_Number_Void(Ark_Int32 resourceId, Ark_Union_Number_Array_Number selected) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Union_Number_Array_Number_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; @@ -3730,12 +3730,12 @@ void callManagedCallback_Union_Number_Array_Number_Void(Ark_Int32 resourceId, Ar argsSerializer.writeNumber(selected_1_element); } } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Union_Number_Array_Number_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_Number_Array_Number selected) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Union_Number_Array_Number_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; @@ -3754,14 +3754,14 @@ void callManagedCallback_Union_Number_Array_Number_VoidSync(Ark_VMContext vmCont argsSerializer.writeNumber(selected_1_element); } } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Union_Number_Resource_Void(Ark_Int32 resourceId, Ark_Union_Number_Resource selected) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Union_Number_Resource_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; @@ -3776,12 +3776,12 @@ void callManagedCallback_Union_Number_Resource_Void(Ark_Int32 resourceId, Ark_Un const auto selected_1 = selected.value1; argsSerializer.writeResource(selected_1); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Union_Number_Resource_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_Number_Resource selected) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Union_Number_Resource_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; @@ -3796,14 +3796,14 @@ void callManagedCallback_Union_Number_Resource_VoidSync(Ark_VMContext vmContext, const auto selected_1 = selected.value1; argsSerializer.writeResource(selected_1); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Union_String_Array_String_Void(Ark_Int32 resourceId, Ark_Union_String_Array_String value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Union_String_Array_String_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -3822,12 +3822,12 @@ void callManagedCallback_Union_String_Array_String_Void(Ark_Int32 resourceId, Ar argsSerializer.writeString(value_1_element); } } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_Union_String_Array_String_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_String_Array_String value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Union_String_Array_String_Void); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -3846,144 +3846,144 @@ void callManagedCallback_Union_String_Array_String_VoidSync(Ark_VMContext vmCont argsSerializer.writeString(value_1_element); } } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_Void(Ark_Int32 resourceId) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_Void); argsSerializer.writeInt32(resourceId); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_Void); argsSerializer.writeInt32(resourceId); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_WebKeyboardOptions_Void(Ark_Int32 resourceId, Ark_WebKeyboardOptions value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_WebKeyboardOptions_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebKeyboardOptions(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_WebKeyboardOptions_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_WebKeyboardOptions value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_WebKeyboardOptions_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebKeyboardOptions(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_WebResourceResponse_Void(Ark_Int32 resourceId, Ark_WebResourceResponse value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_WebResourceResponse_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebResourceResponse(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_WebResourceResponse_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_WebResourceResponse value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_WebResourceResponse_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebResourceResponse(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCallback_WithThemeAttribute_Void(Ark_Int32 resourceId, Ark_WithThemeAttribute value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Callback_WithThemeAttribute_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeWithThemeAttribute(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCallback_WithThemeAttribute_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_WithThemeAttribute value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Callback_WithThemeAttribute_Void); argsSerializer.writeInt32(resourceId); argsSerializer.writeWithThemeAttribute(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedContentDidScrollCallback(Ark_Int32 resourceId, Ark_Number selectedIndex, Ark_Number index, Ark_Number position, Ark_Number mainAxisLength) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ContentDidScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(selectedIndex); argsSerializer.writeNumber(index); argsSerializer.writeNumber(position); argsSerializer.writeNumber(mainAxisLength); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedContentDidScrollCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number selectedIndex, Ark_Number index, Ark_Number position, Ark_Number mainAxisLength) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ContentDidScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(selectedIndex); argsSerializer.writeNumber(index); argsSerializer.writeNumber(position); argsSerializer.writeNumber(mainAxisLength); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedCustomNodeBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Callback_Pointer_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_CustomNodeBuilder); argsSerializer.writeInt32(resourceId); argsSerializer.writePointer(parentNode); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedCustomNodeBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Callback_Pointer_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_CustomNodeBuilder); argsSerializer.writeInt32(resourceId); argsSerializer.writePointer(parentNode); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedEditableTextOnChangeCallback(Ark_Int32 resourceId, Ark_String value, Opt_PreviewText previewText) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_EditableTextOnChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); @@ -3994,12 +3994,12 @@ void callManagedEditableTextOnChangeCallback(Ark_Int32 resourceId, Ark_String va const auto previewText_value = previewText.value; argsSerializer.writePreviewText(previewText_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedEditableTextOnChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String value, Opt_PreviewText previewText) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_EditableTextOnChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); @@ -4010,14 +4010,14 @@ void callManagedEditableTextOnChangeCallbackSync(Ark_VMContext vmContext, Ark_In const auto previewText_value = previewText.value; argsSerializer.writePreviewText(previewText_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedGestureRecognizerJudgeBeginCallback(Ark_Int32 resourceId, Ark_BaseGestureEvent event, Ark_GestureRecognizer current, Array_GestureRecognizer recognizers, Callback_GestureJudgeResult_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_GestureRecognizerJudgeBeginCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBaseGestureEvent(event); @@ -4030,12 +4030,12 @@ void callManagedGestureRecognizerJudgeBeginCallback(Ark_Int32 resourceId, Ark_Ba argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedGestureRecognizerJudgeBeginCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_BaseGestureEvent event, Ark_GestureRecognizer current, Array_GestureRecognizer recognizers, Callback_GestureJudgeResult_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_GestureRecognizerJudgeBeginCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBaseGestureEvent(event); @@ -4048,122 +4048,122 @@ void callManagedGestureRecognizerJudgeBeginCallbackSync(Ark_VMContext vmContext, argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedGetItemMainSizeByIndex(Ark_Int32 resourceId, Ark_Number index, Callback_Number_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_GetItemMainSizeByIndex); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedGetItemMainSizeByIndexSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Callback_Number_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_GetItemMainSizeByIndex); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedHoverCallback(Ark_Int32 resourceId, Ark_Boolean isHover, Ark_HoverEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_HoverCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isHover); argsSerializer.writeHoverEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedHoverCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean isHover, Ark_HoverEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_HoverCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isHover); argsSerializer.writeHoverEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedImageCompleteCallback(Ark_Int32 resourceId, Ark_ImageLoadResult result) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ImageCompleteCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeImageLoadResult(result); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedImageCompleteCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ImageLoadResult result) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ImageCompleteCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeImageLoadResult(result); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedImageErrorCallback(Ark_Int32 resourceId, Ark_ImageError error) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ImageErrorCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeImageError(error); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedImageErrorCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ImageError error) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ImageErrorCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeImageError(error); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedInterceptionModeCallback(Ark_Int32 resourceId, Ark_NavigationMode mode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_InterceptionModeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(mode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedInterceptionModeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavigationMode mode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_InterceptionModeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(mode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedInterceptionShowCallback(Ark_Int32 resourceId, Ark_Union_NavDestinationContext_NavBar from, Ark_Union_NavDestinationContext_NavBar to, Ark_NavigationOperation operation, Ark_Boolean isAnimated) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_InterceptionShowCallback); argsSerializer.writeInt32(resourceId); Ark_Int32 from_type = INTEROP_RUNTIME_UNDEFINED; @@ -4192,12 +4192,12 @@ void callManagedInterceptionShowCallback(Ark_Int32 resourceId, Ark_Union_NavDest } argsSerializer.writeInt32(static_cast(operation)); argsSerializer.writeBoolean(isAnimated); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedInterceptionShowCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_NavDestinationContext_NavBar from, Ark_Union_NavDestinationContext_NavBar to, Ark_NavigationOperation operation, Ark_Boolean isAnimated) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_InterceptionShowCallback); argsSerializer.writeInt32(resourceId); Ark_Int32 from_type = INTEROP_RUNTIME_UNDEFINED; @@ -4226,454 +4226,454 @@ void callManagedInterceptionShowCallbackSync(Ark_VMContext vmContext, Ark_Int32 } argsSerializer.writeInt32(static_cast(operation)); argsSerializer.writeBoolean(isAnimated); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedIsolatedComponentInterface(Ark_Int32 resourceId, Ark_IsolatedOptions options, Callback_IsolatedComponentAttribute_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_IsolatedComponentInterface); argsSerializer.writeInt32(resourceId); argsSerializer.writeIsolatedOptions(options); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedIsolatedComponentInterfaceSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_IsolatedOptions options, Callback_IsolatedComponentAttribute_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_IsolatedComponentInterface); argsSerializer.writeInt32(resourceId); argsSerializer.writeIsolatedOptions(options); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedMenuOnAppearCallback(Ark_Int32 resourceId, Ark_Number start, Ark_Number end) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_MenuOnAppearCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(start); argsSerializer.writeNumber(end); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedMenuOnAppearCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number start, Ark_Number end) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_MenuOnAppearCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(start); argsSerializer.writeNumber(end); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedNavExtender_OnUpdateStack(Ark_Int32 resourceId, Ark_String value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_NavExtender_OnUpdateStack); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedNavExtender_OnUpdateStackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_NavExtender_OnUpdateStack); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnAdsBlockedCallback(Ark_Int32 resourceId, Ark_AdsBlockedDetails details) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnAdsBlockedCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeAdsBlockedDetails(details); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnAdsBlockedCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_AdsBlockedDetails details) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnAdsBlockedCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeAdsBlockedDetails(details); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnAlphabetIndexerPopupSelectCallback(Ark_Int32 resourceId, Ark_Number index) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnAlphabetIndexerPopupSelectCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnAlphabetIndexerPopupSelectCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnAlphabetIndexerPopupSelectCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnAlphabetIndexerRequestPopupDataCallback(Ark_Int32 resourceId, Ark_Number index, Callback_Array_String_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnAlphabetIndexerRequestPopupDataCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnAlphabetIndexerRequestPopupDataCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Callback_Array_String_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnAlphabetIndexerRequestPopupDataCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnAlphabetIndexerSelectCallback(Ark_Int32 resourceId, Ark_Number index) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnAlphabetIndexerSelectCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnAlphabetIndexerSelectCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnAlphabetIndexerSelectCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnCheckboxChangeCallback(Ark_Int32 resourceId, Ark_Boolean value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnCheckboxChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnCheckboxChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnCheckboxChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnCheckboxGroupChangeCallback(Ark_Int32 resourceId, Ark_CheckboxGroupResult value) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnCheckboxGroupChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeCheckboxGroupResult(value); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnCheckboxGroupChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_CheckboxGroupResult value) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnCheckboxGroupChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeCheckboxGroupResult(value); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnContentScrollCallback(Ark_Int32 resourceId, Ark_Number totalOffsetX, Ark_Number totalOffsetY) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnContentScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(totalOffsetX); argsSerializer.writeNumber(totalOffsetY); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnContentScrollCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number totalOffsetX, Ark_Number totalOffsetY) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnContentScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(totalOffsetX); argsSerializer.writeNumber(totalOffsetY); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnContextMenuHideCallback(Ark_Int32 resourceId) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnContextMenuHideCallback); argsSerializer.writeInt32(resourceId); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnContextMenuHideCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnContextMenuHideCallback); argsSerializer.writeInt32(resourceId); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnDidChangeCallback(Ark_Int32 resourceId, Ark_TextRange rangeBefore, Ark_TextRange rangeAfter) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnDidChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeTextRange(rangeBefore); argsSerializer.writeTextRange(rangeAfter); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnDidChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_TextRange rangeBefore, Ark_TextRange rangeAfter) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnDidChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeTextRange(rangeBefore); argsSerializer.writeTextRange(rangeAfter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnFirstMeaningfulPaintCallback(Ark_Int32 resourceId, Ark_FirstMeaningfulPaint firstMeaningfulPaint) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnFirstMeaningfulPaintCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnFirstMeaningfulPaintCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_FirstMeaningfulPaint firstMeaningfulPaint) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnFirstMeaningfulPaintCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnFoldStatusChangeCallback(Ark_Int32 resourceId, Ark_OnFoldStatusChangeInfo event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnFoldStatusChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnFoldStatusChangeInfo(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnFoldStatusChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_OnFoldStatusChangeInfo event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnFoldStatusChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeOnFoldStatusChangeInfo(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnFullScreenEnterCallback(Ark_Int32 resourceId, Ark_FullScreenEnterEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnFullScreenEnterCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeFullScreenEnterEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnFullScreenEnterCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_FullScreenEnterEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnFullScreenEnterCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeFullScreenEnterEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnHoverStatusChangeCallback(Ark_Int32 resourceId, Ark_HoverEventParam param) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnHoverStatusChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeHoverEventParam(param); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnHoverStatusChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_HoverEventParam param) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnHoverStatusChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeHoverEventParam(param); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnIntelligentTrackingPreventionCallback(Ark_Int32 resourceId, Ark_IntelligentTrackingPreventionDetails details) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnIntelligentTrackingPreventionCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeIntelligentTrackingPreventionDetails(details); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnIntelligentTrackingPreventionCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_IntelligentTrackingPreventionDetails details) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnIntelligentTrackingPreventionCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeIntelligentTrackingPreventionDetails(details); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnLargestContentfulPaintCallback(Ark_Int32 resourceId, Ark_LargestContentfulPaint largestContentfulPaint) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnLargestContentfulPaintCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnLargestContentfulPaintCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_LargestContentfulPaint largestContentfulPaint) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnLargestContentfulPaintCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnLinearIndicatorChangeCallback(Ark_Int32 resourceId, Ark_Number index, Ark_Number progress) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnLinearIndicatorChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeNumber(progress); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnLinearIndicatorChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_Number progress) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnLinearIndicatorChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeNumber(progress); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnMoveHandler(Ark_Int32 resourceId, Ark_Number from, Ark_Number to) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnMoveHandler); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(from); argsSerializer.writeNumber(to); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnMoveHandlerSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number from, Ark_Number to) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnMoveHandler); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(from); argsSerializer.writeNumber(to); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnNativeEmbedVisibilityChangeCallback(Ark_Int32 resourceId, Ark_NativeEmbedVisibilityInfo nativeEmbedVisibilityInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnNativeEmbedVisibilityChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnNativeEmbedVisibilityChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativeEmbedVisibilityInfo nativeEmbedVisibilityInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnNativeEmbedVisibilityChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnNativeLoadCallback(Ark_Int32 resourceId, Opt_CustomObject event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnNativeLoadCallback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -4683,12 +4683,12 @@ void callManagedOnNativeLoadCallback(Ark_Int32 resourceId, Opt_CustomObject even const auto event_value = event.value; argsSerializer.writeCustomObject("Object", event_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnNativeLoadCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_CustomObject event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnNativeLoadCallback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -4698,182 +4698,182 @@ void callManagedOnNativeLoadCallbackSync(Ark_VMContext vmContext, Ark_Int32 reso const auto event_value = event.value; argsSerializer.writeCustomObject("Object", event_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnNavigationEntryCommittedCallback(Ark_Int32 resourceId, Ark_LoadCommittedDetails loadCommittedDetails) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnNavigationEntryCommittedCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnNavigationEntryCommittedCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_LoadCommittedDetails loadCommittedDetails) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnNavigationEntryCommittedCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnOverrideUrlLoadingCallback(Ark_Int32 resourceId, Ark_WebResourceRequest webResourceRequest, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnOverrideUrlLoadingCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebResourceRequest(webResourceRequest); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnOverrideUrlLoadingCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_WebResourceRequest webResourceRequest, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnOverrideUrlLoadingCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebResourceRequest(webResourceRequest); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnPasteCallback(Ark_Int32 resourceId, Ark_String content, Ark_PasteEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnPasteCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(content); argsSerializer.writePasteEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnPasteCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String content, Ark_PasteEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnPasteCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(content); argsSerializer.writePasteEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnRenderProcessNotRespondingCallback(Ark_Int32 resourceId, Ark_RenderProcessNotRespondingData data) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnRenderProcessNotRespondingCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeRenderProcessNotRespondingData(data); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnRenderProcessNotRespondingCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RenderProcessNotRespondingData data) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnRenderProcessNotRespondingCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeRenderProcessNotRespondingData(data); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnRenderProcessRespondingCallback(Ark_Int32 resourceId) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnRenderProcessRespondingCallback); argsSerializer.writeInt32(resourceId); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnRenderProcessRespondingCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnRenderProcessRespondingCallback); argsSerializer.writeInt32(resourceId); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnSafeBrowsingCheckResultCallback(Ark_Int32 resourceId, Ark_ThreatType threatType) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnSafeBrowsingCheckResultCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(threatType)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnSafeBrowsingCheckResultCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ThreatType threatType) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnSafeBrowsingCheckResultCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(threatType)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnScrollCallback(Ark_Int32 resourceId, Ark_Number scrollOffset, Ark_ScrollState scrollState) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(scrollOffset); argsSerializer.writeInt32(static_cast(scrollState)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnScrollCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number scrollOffset, Ark_ScrollState scrollState) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(scrollOffset); argsSerializer.writeInt32(static_cast(scrollState)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnScrollEdgeCallback(Ark_Int32 resourceId, Ark_Edge side) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnScrollEdgeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(side)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnScrollEdgeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Edge side) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnScrollEdgeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(side)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnScrollFrameBeginCallback(Ark_Int32 resourceId, Ark_Number offset, Ark_ScrollState state, Callback_OnScrollFrameBeginHandlerResult_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnScrollFrameBeginCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(offset); @@ -4881,12 +4881,12 @@ void callManagedOnScrollFrameBeginCallback(Ark_Int32 resourceId, Ark_Number offs argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnScrollFrameBeginCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number offset, Ark_ScrollState state, Callback_OnScrollFrameBeginHandlerResult_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnScrollFrameBeginCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(offset); @@ -4894,192 +4894,192 @@ void callManagedOnScrollFrameBeginCallbackSync(Ark_VMContext vmContext, Ark_Int3 argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnScrollVisibleContentChangeCallback(Ark_Int32 resourceId, Ark_VisibleListContentInfo start, Ark_VisibleListContentInfo end) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnScrollVisibleContentChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeVisibleListContentInfo(start); argsSerializer.writeVisibleListContentInfo(end); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnScrollVisibleContentChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_VisibleListContentInfo start, Ark_VisibleListContentInfo end) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnScrollVisibleContentChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeVisibleListContentInfo(start); argsSerializer.writeVisibleListContentInfo(end); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnSslErrorEventCallback(Ark_Int32 resourceId, Ark_SslErrorEvent sslErrorEvent) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnSslErrorEventCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeSslErrorEvent(sslErrorEvent); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnSslErrorEventCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SslErrorEvent sslErrorEvent) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnSslErrorEventCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeSslErrorEvent(sslErrorEvent); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnSubmitCallback(Ark_Int32 resourceId, Ark_EnterKeyType enterKey, Ark_SubmitEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnSubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKey)); argsSerializer.writeSubmitEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_EnterKeyType enterKey, Ark_SubmitEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnSubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKey)); argsSerializer.writeSubmitEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnSwiperAnimationEndCallback(Ark_Int32 resourceId, Ark_Number index, Ark_SwiperAnimationEvent extraInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnSwiperAnimationEndCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeSwiperAnimationEvent(extraInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnSwiperAnimationEndCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_SwiperAnimationEvent extraInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnSwiperAnimationEndCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeSwiperAnimationEvent(extraInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnSwiperAnimationStartCallback(Ark_Int32 resourceId, Ark_Number index, Ark_Number targetIndex, Ark_SwiperAnimationEvent extraInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnSwiperAnimationStartCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeNumber(targetIndex); argsSerializer.writeSwiperAnimationEvent(extraInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnSwiperAnimationStartCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_Number targetIndex, Ark_SwiperAnimationEvent extraInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnSwiperAnimationStartCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeNumber(targetIndex); argsSerializer.writeSwiperAnimationEvent(extraInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnSwiperGestureSwipeCallback(Ark_Int32 resourceId, Ark_Number index, Ark_SwiperAnimationEvent extraInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnSwiperGestureSwipeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeSwiperAnimationEvent(extraInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnSwiperGestureSwipeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_SwiperAnimationEvent extraInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnSwiperGestureSwipeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeSwiperAnimationEvent(extraInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnTabsAnimationEndCallback(Ark_Int32 resourceId, Ark_Number index, Ark_TabsAnimationEvent extraInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnTabsAnimationEndCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeTabsAnimationEvent(extraInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnTabsAnimationEndCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_TabsAnimationEvent extraInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnTabsAnimationEndCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeTabsAnimationEvent(extraInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnTabsAnimationStartCallback(Ark_Int32 resourceId, Ark_Number index, Ark_Number targetIndex, Ark_TabsAnimationEvent extraInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnTabsAnimationStartCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeNumber(targetIndex); argsSerializer.writeTabsAnimationEvent(extraInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnTabsAnimationStartCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_Number targetIndex, Ark_TabsAnimationEvent extraInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnTabsAnimationStartCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeNumber(targetIndex); argsSerializer.writeTabsAnimationEvent(extraInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnTabsContentWillChangeCallback(Ark_Int32 resourceId, Ark_Number currentIndex, Ark_Number comingIndex, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnTabsContentWillChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(currentIndex); @@ -5087,12 +5087,12 @@ void callManagedOnTabsContentWillChangeCallback(Ark_Int32 resourceId, Ark_Number argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnTabsContentWillChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number currentIndex, Ark_Number comingIndex, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnTabsContentWillChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(currentIndex); @@ -5100,100 +5100,100 @@ void callManagedOnTabsContentWillChangeCallbackSync(Ark_VMContext vmContext, Ark argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnTabsGestureSwipeCallback(Ark_Int32 resourceId, Ark_Number index, Ark_TabsAnimationEvent extraInfo) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnTabsGestureSwipeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeTabsAnimationEvent(extraInfo); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnTabsGestureSwipeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number index, Ark_TabsAnimationEvent extraInfo) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnTabsGestureSwipeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(index); argsSerializer.writeTabsAnimationEvent(extraInfo); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnTextSelectionChangeCallback(Ark_Int32 resourceId, Ark_Number selectionStart, Ark_Number selectionEnd) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnTextSelectionChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(selectionStart); argsSerializer.writeNumber(selectionEnd); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnTextSelectionChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number selectionStart, Ark_Number selectionEnd) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnTextSelectionChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(selectionStart); argsSerializer.writeNumber(selectionEnd); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedOnViewportFitChangedCallback(Ark_Int32 resourceId, Ark_ViewportFit viewportFit) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_OnViewportFitChangedCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(viewportFit)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedOnViewportFitChangedCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_ViewportFit viewportFit) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_OnViewportFitChangedCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(viewportFit)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedPageTransitionCallback(Ark_Int32 resourceId, Ark_RouteType type, Ark_Number progress) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_PageTransitionCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(type)); argsSerializer.writeNumber(progress); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedPageTransitionCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_RouteType type, Ark_Number progress) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_PageTransitionCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(type)); argsSerializer.writeNumber(progress); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedPasteEventCallback(Ark_Int32 resourceId, Opt_PasteEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_PasteEventCallback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -5203,12 +5203,12 @@ void callManagedPasteEventCallback(Ark_Int32 resourceId, Opt_PasteEvent event) const auto event_value = event.value; argsSerializer.writePasteEvent(event_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedPasteEventCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_PasteEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_PasteEventCallback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -5218,58 +5218,58 @@ void callManagedPasteEventCallbackSync(Ark_VMContext vmContext, Ark_Int32 resour const auto event_value = event.value; argsSerializer.writePasteEvent(event_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedPluginErrorCallback(Ark_Int32 resourceId, Ark_PluginErrorData info) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_PluginErrorCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writePluginErrorData(info); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedPluginErrorCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PluginErrorData info) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_PluginErrorCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writePluginErrorData(info); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedScrollOnScrollCallback(Ark_Int32 resourceId, Ark_Number xOffset, Ark_Number yOffset, Ark_ScrollState scrollState) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ScrollOnScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(xOffset); argsSerializer.writeNumber(yOffset); argsSerializer.writeInt32(static_cast(scrollState)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedScrollOnScrollCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number xOffset, Ark_Number yOffset, Ark_ScrollState scrollState) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ScrollOnScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(xOffset); argsSerializer.writeNumber(yOffset); argsSerializer.writeInt32(static_cast(scrollState)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedScrollOnWillScrollCallback(Ark_Int32 resourceId, Ark_Number xOffset, Ark_Number yOffset, Ark_ScrollState scrollState, Ark_ScrollSource scrollSource, Callback_OffsetResult_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ScrollOnWillScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(xOffset); @@ -5279,12 +5279,12 @@ void callManagedScrollOnWillScrollCallback(Ark_Int32 resourceId, Ark_Number xOff argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedScrollOnWillScrollCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number xOffset, Ark_Number yOffset, Ark_ScrollState scrollState, Ark_ScrollSource scrollSource, Callback_OffsetResult_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ScrollOnWillScrollCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(xOffset); @@ -5294,14 +5294,14 @@ void callManagedScrollOnWillScrollCallbackSync(Ark_VMContext vmContext, Ark_Int3 argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedSearchSubmitCallback(Ark_Int32 resourceId, Ark_String searchContent, Opt_SubmitEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_SearchSubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(searchContent); @@ -5312,12 +5312,12 @@ void callManagedSearchSubmitCallback(Ark_Int32 resourceId, Ark_String searchCont const auto event_value = event.value; argsSerializer.writeSubmitEvent(event_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedSearchSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_String searchContent, Opt_SubmitEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_SearchSubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeString(searchContent); @@ -5328,14 +5328,14 @@ void callManagedSearchSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 reso const auto event_value = event.value; argsSerializer.writeSubmitEvent(event_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedShouldBuiltInRecognizerParallelWithCallback(Ark_Int32 resourceId, Ark_GestureRecognizer current, Array_GestureRecognizer others, Callback_GestureRecognizer_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_ShouldBuiltInRecognizerParallelWithCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureRecognizer(current); @@ -5347,12 +5347,12 @@ void callManagedShouldBuiltInRecognizerParallelWithCallback(Ark_Int32 resourceId argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedShouldBuiltInRecognizerParallelWithCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_GestureRecognizer current, Array_GestureRecognizer others, Callback_GestureRecognizer_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_ShouldBuiltInRecognizerParallelWithCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeGestureRecognizer(current); @@ -5364,80 +5364,80 @@ void callManagedShouldBuiltInRecognizerParallelWithCallbackSync(Ark_VMContext vm argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedSizeChangeCallback(Ark_Int32 resourceId, Ark_SizeOptions oldValue, Ark_SizeOptions newValue) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_SizeChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeSizeOptions(oldValue); argsSerializer.writeSizeOptions(newValue); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedSizeChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_SizeOptions oldValue, Ark_SizeOptions newValue) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_SizeChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeSizeOptions(oldValue); argsSerializer.writeSizeOptions(newValue); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedSliderTriggerChangeCallback(Ark_Int32 resourceId, Ark_Number value, Ark_SliderChangeMode mode) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_SliderTriggerChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(value); argsSerializer.writeInt32(static_cast(mode)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedSliderTriggerChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number value, Ark_SliderChangeMode mode) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_SliderTriggerChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(value); argsSerializer.writeInt32(static_cast(mode)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedSubmitCallback(Ark_Int32 resourceId, Ark_EnterKeyType enterKey, Ark_SubmitEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_SubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKey)); argsSerializer.writeSubmitEvent(event); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_EnterKeyType enterKey, Ark_SubmitEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_SubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKey)); argsSerializer.writeSubmitEvent(event); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedTabsCustomContentTransitionCallback(Ark_Int32 resourceId, Ark_Number from, Ark_Number to, Callback_Opt_TabContentAnimatedTransition_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_TabsCustomContentTransitionCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(from); @@ -5445,12 +5445,12 @@ void callManagedTabsCustomContentTransitionCallback(Ark_Int32 resourceId, Ark_Nu argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedTabsCustomContentTransitionCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Number from, Ark_Number to, Callback_Opt_TabContentAnimatedTransition_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_TabsCustomContentTransitionCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeNumber(from); @@ -5458,14 +5458,14 @@ void callManagedTabsCustomContentTransitionCallbackSync(Ark_VMContext vmContext, argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedTextAreaSubmitCallback(Ark_Int32 resourceId, Ark_EnterKeyType enterKeyType, Opt_SubmitEvent event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_TextAreaSubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKeyType)); @@ -5476,12 +5476,12 @@ void callManagedTextAreaSubmitCallback(Ark_Int32 resourceId, Ark_EnterKeyType en const auto event_value = event.value; argsSerializer.writeSubmitEvent(event_value); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedTextAreaSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_EnterKeyType enterKeyType, Opt_SubmitEvent event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_TextAreaSubmitCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeInt32(static_cast(enterKeyType)); @@ -5492,34 +5492,34 @@ void callManagedTextAreaSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 re const auto event_value = event.value; argsSerializer.writeSubmitEvent(event_value); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedTransitionFinishCallback(Ark_Int32 resourceId, Ark_Boolean transitionIn) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_TransitionFinishCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(transitionIn); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedTransitionFinishCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean transitionIn) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_TransitionFinishCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(transitionIn); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedType_NavigationAttribute_customNavContentTransition_delegate(Ark_Int32 resourceId, Ark_NavContentInfo from, Ark_NavContentInfo to, Ark_NavigationOperation operation, Callback_Opt_NavigationAnimatedTransition_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Type_NavigationAttribute_customNavContentTransition_delegate); argsSerializer.writeInt32(resourceId); argsSerializer.writeNavContentInfo(from); @@ -5528,12 +5528,12 @@ void callManagedType_NavigationAttribute_customNavContentTransition_delegate(Ark argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedType_NavigationAttribute_customNavContentTransition_delegateSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavContentInfo from, Ark_NavContentInfo to, Ark_NavigationOperation operation, Callback_Opt_NavigationAnimatedTransition_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Type_NavigationAttribute_customNavContentTransition_delegate); argsSerializer.writeInt32(resourceId); argsSerializer.writeNavContentInfo(from); @@ -5542,14 +5542,14 @@ void callManagedType_NavigationAttribute_customNavContentTransition_delegateSync argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, Ark_Union_String_Array_String value, Ark_Union_Number_Array_Number index) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Type_TextPickerAttribute_onChange_callback); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -5584,12 +5584,12 @@ void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, argsSerializer.writeNumber(index_1_element); } } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedType_TextPickerAttribute_onChange_callbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_String_Array_String value, Ark_Union_Number_Array_Number index) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Type_TextPickerAttribute_onChange_callback); argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; @@ -5624,14 +5624,14 @@ void callManagedType_TextPickerAttribute_onChange_callbackSync(Ark_VMContext vmC argsSerializer.writeNumber(index_1_element); } } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedType_WebAttribute_onFileSelectorShow_callback(Ark_Int32 resourceId, Opt_Literal_Function_callback__Object_fileSelector event) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Type_WebAttribute_onFileSelectorShow_callback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -5644,12 +5644,12 @@ void callManagedType_WebAttribute_onFileSelectorShow_callback(Ark_Int32 resource const auto event_value_fileSelector = event_value.fileSelector; argsSerializer.writeCustomObject("Object", event_value_fileSelector); } - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedType_WebAttribute_onFileSelectorShow_callbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_Literal_Function_callback__Object_fileSelector event) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Type_WebAttribute_onFileSelectorShow_callback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -5662,14 +5662,14 @@ void callManagedType_WebAttribute_onFileSelectorShow_callbackSync(Ark_VMContext const auto event_value_fileSelector = event_value.fileSelector; argsSerializer.writeCustomObject("Object", event_value_fileSelector); } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedType_WebAttribute_onUrlLoadIntercept_callback(Ark_Int32 resourceId, Opt_Literal_Union_String_WebResourceRequest_data event, Callback_Boolean_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_Type_WebAttribute_onUrlLoadIntercept_callback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -5694,12 +5694,12 @@ void callManagedType_WebAttribute_onUrlLoadIntercept_callback(Ark_Int32 resource argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedType_WebAttribute_onUrlLoadIntercept_callbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_Literal_Union_String_WebResourceRequest_data event, Callback_Boolean_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_Type_WebAttribute_onUrlLoadIntercept_callback); argsSerializer.writeInt32(resourceId); Ark_Int32 event_type = INTEROP_RUNTIME_UNDEFINED; @@ -5724,99 +5724,99 @@ void callManagedType_WebAttribute_onUrlLoadIntercept_callbackSync(Ark_VMContext argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedVisibleAreaChangeCallback(Ark_Int32 resourceId, Ark_Boolean isExpanding, Ark_Number currentRatio) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_VisibleAreaChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isExpanding); argsSerializer.writeNumber(currentRatio); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedVisibleAreaChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Boolean isExpanding, Ark_Number currentRatio) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_VisibleAreaChangeCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeBoolean(isExpanding); argsSerializer.writeNumber(currentRatio); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedVoidCallback(Ark_Int32 resourceId) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_VoidCallback); argsSerializer.writeInt32(resourceId); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedVoidCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_VoidCallback); argsSerializer.writeInt32(resourceId); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedWebKeyboardCallback(Ark_Int32 resourceId, Ark_WebKeyboardCallbackInfo keyboardCallbackInfo, Callback_WebKeyboardOptions_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_WebKeyboardCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedWebKeyboardCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_WebKeyboardCallbackInfo keyboardCallbackInfo, Callback_WebKeyboardOptions_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_WebKeyboardCallback); argsSerializer.writeInt32(resourceId); argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } void callManagedWithThemeInterface(Ark_Int32 resourceId, Ark_WithThemeOptions options, Callback_WithThemeAttribute_Void continuation) { - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, sizeof(__buffer.buffer), &(__buffer.resourceHolder)); + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResource); + Serializer argsSerializer = Serializer(_buffer.buffer, sizeof(_buffer.buffer), &(_buffer.resourceHolder)); argsSerializer.writeInt32(Kind_WithThemeInterface); argsSerializer.writeInt32(resourceId); argsSerializer.writeWithThemeOptions(options); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueCallback(&__buffer); + enqueueCallback(&_buffer); } void callManagedWithThemeInterfaceSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_WithThemeOptions options, Callback_WithThemeAttribute_Void continuation) { - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, sizeof(__buffer), nullptr); + uint8_t _buffer[60 * 4]; + Serializer argsSerializer = Serializer(_buffer, sizeof(_buffer), nullptr); argsSerializer.writeInt32(Kind_WithThemeInterface); argsSerializer.writeInt32(resourceId); argsSerializer.writeWithThemeOptions(options); argsSerializer.writeCallbackResource(continuation.resource); argsSerializer.writePointer(reinterpret_cast(continuation.call)); argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) { diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index 271f05bf3..ba44464d1 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -96,8 +96,7 @@ std::array drawNodeDelay = {}; void CheckType(GENERATED_Ark_NodeType type) { if (type >= MAX_NODE_TYPE) { - LOG("Error: GENERATED_Ark_NodeType value is too big, change MAX_NODE_TYPE accordingly"); - throw "Error"; + INTEROP_FATAL("Error: GENERATED_Ark_NodeType value is too big, change MAX_NODE_TYPE accordingly"); } } @@ -840,7 +839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_LazyForEachOps CtorImpl() { if (!needGroupedLog(1)) return (LazyForEachOpsPeer*) 100; @@ -1328,12 +1327,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -1439,7 +1438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void MotionImpl(Ark_NativePointer node, - const Ark_Union_SpringMotion_FrictionMotion_ScrollMotion* value) + Ark_SpringMotion value) { if (!needGroupedLog(1)) return; @@ -2143,12 +2142,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_select("); + string out("_onChangeEvent_select("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -2243,12 +2242,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectAllImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectAllImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selectAll("); + string out("_onChangeEvent_selectAll("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -2976,7 +2975,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Transition1Impl(Ark_NativePointer node, - const Ark_TransitionEffect* effect, + Ark_TransitionEffect effect, const Opt_TransitionFinishCallback* onFinish) { if (!needGroupedLog(1)) @@ -3572,7 +3571,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Clip0Impl(Ark_NativePointer node, - Ark_Boolean value) + const Opt_Boolean* value) { if (!needGroupedLog(1)) return; @@ -3582,7 +3581,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Clip1Impl(Ark_NativePointer node, - const Ark_Type_CommonMethod_clip_value* value) + const Opt_Boolean* value) { if (!needGroupedLog(1)) return; @@ -3602,7 +3601,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Mask0Impl(Ark_NativePointer node, - const Ark_ProgressMask* value) + const Opt_ProgressMask* value) { if (!needGroupedLog(1)) return; @@ -3612,7 +3611,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Mask1Impl(Ark_NativePointer node, - const Ark_Type_CommonMethod_mask_value* value) + const Opt_ProgressMask* value) { if (!needGroupedLog(1)) return; @@ -3868,7 +3867,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void GestureModifierImpl(Ark_NativePointer node, - const Ark_GestureModifier* value) + Ark_GestureModifier value) { if (!needGroupedLog(1)) return; @@ -4644,7 +4643,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void OnDidScrollImpl(Ark_NativePointer node, - const Opt_ScrollOnScrollCallback* value) + const ScrollOnScrollCallback* value) { if (!needGroupedLog(1)) return; @@ -4989,7 +4988,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ValueColorsImpl(Ark_NativePointer node, - const Array_Union_ResourceColor_LinearGradient_data_panel* value) + const Array_Union_ResourceColor_LinearGradient* value) { if (!needGroupedLog(1)) return; @@ -5128,12 +5127,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Date_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Date_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -6236,12 +6235,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -6969,7 +6968,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void AltImpl(Ark_NativePointer node, - const Ark_PixelMap* value) + Ark_PixelMap value) { if (!needGroupedLog(1)) return; @@ -7232,7 +7231,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ChildrenMainSizeImpl(Ark_NativePointer node, - const Ark_ChildrenMainSize* value) + Ark_ChildrenMainSize value) { if (!needGroupedLog(1)) return; @@ -7527,12 +7526,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -7578,7 +7577,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ChildrenMainSizeImpl(Ark_NativePointer node, - const Ark_ChildrenMainSize* value) + Ark_ChildrenMainSize value) { if (!needGroupedLog(1)) return; @@ -8039,12 +8038,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -8634,12 +8633,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_modeImpl(Ark_NativePointer node, - const Callback_PanelMode_Void* callback) + void _onChangeEvent_modeImpl(Ark_NativePointer node, + const Callback_PanelMode_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_mode("); + string out("_onChangeEvent_mode("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -9053,7 +9052,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ColorImpl(Ark_NativePointer node, - const Ark_Union_ResourceColor_LinearGradient_common* value) + const Ark_Union_ResourceColor_LinearGradient* value) { if (!needGroupedLog(1)) return; @@ -9222,12 +9221,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_checkedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_checkedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_checked("); + string out("_onChangeEvent_checked("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -9312,12 +9311,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_ratingImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_ratingImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_rating("); + string out("_onChangeEvent_rating("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -9472,12 +9471,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_refreshingImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_refreshingImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_refreshing("); + string out("_onChangeEvent_refreshing("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -9801,7 +9800,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { if (!needGroupedLog(1)) return; @@ -10208,7 +10207,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void OnDidScrollImpl(Ark_NativePointer node, - const Opt_ScrollOnScrollCallback* value) + const ScrollOnScrollCallback* value) { if (!needGroupedLog(1)) return; @@ -10791,7 +10790,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { if (!needGroupedLog(1)) return; @@ -10859,12 +10858,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_String_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_String_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_value("); + string out("_onChangeEvent_value("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -11358,22 +11357,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Union_Number_Resource_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Union_Number_Resource_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_value("); + string out("_onChangeEvent_value("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -11397,7 +11396,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } // ShapeModifier namespace ShapeInterfaceModifier { void SetShapeOptions0Impl(Ark_NativePointer node, - const Ark_PixelMap* value) + Ark_PixelMap value) { if (!needGroupedLog(1)) return; @@ -11593,7 +11592,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void TrackColorImpl(Ark_NativePointer node, - const Ark_Union_ResourceColor_LinearGradient_common* value) + const Ark_Union_ResourceColor_LinearGradient* value) { if (!needGroupedLog(1)) return; @@ -11795,12 +11794,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_value("); + string out("_onChangeEvent_value("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -11832,7 +11831,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void BaselineOffsetImpl(Ark_NativePointer node, - const Ark_LengthMetrics* value) + Ark_LengthMetrics value) { if (!needGroupedLog(1)) return; @@ -12111,12 +12110,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_indexImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_indexImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_index("); + string out("_onChangeEvent_index("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -12250,7 +12249,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Indicator1Impl(Ark_NativePointer node, - const Ark_IndicatorComponentController* value) + Ark_IndicatorComponentController value) { if (!needGroupedLog(1)) return; @@ -12491,12 +12490,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_indexImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_indexImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_index("); + string out("_onChangeEvent_index("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -13073,12 +13072,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_indexImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_indexImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_index("); + string out("_onChangeEvent_index("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -13301,7 +13300,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void LineSpacingImpl(Ark_NativePointer node, - const Ark_LengthMetrics* value) + Ark_LengthMetrics value) { if (!needGroupedLog(1)) return; @@ -13571,7 +13570,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { if (!needGroupedLog(1)) return; @@ -14033,7 +14032,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void LineSpacingImpl(Ark_NativePointer node, - const Ark_LengthMetrics* value) + Ark_LengthMetrics value) { if (!needGroupedLog(1)) return; @@ -14133,7 +14132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { if (!needGroupedLog(1)) return; @@ -14201,12 +14200,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_textImpl(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback) + void _onChangeEvent_textImpl(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_text("); + string out("_onChangeEvent_text("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -14972,7 +14971,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { if (!needGroupedLog(1)) return; @@ -15040,12 +15039,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_textImpl(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback) + void _onChangeEvent_textImpl(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_text("); + string out("_onChangeEvent_text("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -15190,22 +15189,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Union_Number_Array_Number_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Union_Number_Array_Number_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_Union_String_Array_String_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_Union_String_Array_String_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_value("); + string out("_onChangeEvent_value("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -15440,12 +15439,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Date_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Date_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_selected("); + string out("_onChangeEvent_selected("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -15530,12 +15529,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_isOnImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_isOnImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_isOn("); + string out("_onChangeEvent_isOn("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -16941,7 +16940,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { if (!needGroupedLog(1)) return; @@ -17295,12 +17294,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void __onChangeEvent_showSideBarImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_showSideBarImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { if (!needGroupedLog(1)) return; - string out("__onChangeEvent_showSideBar("); + string out("_onChangeEvent_showSideBar("); WriteToString(&out, callback); out.append(") \n"); appendGroupedLog(1, out); @@ -17732,7 +17731,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { AlphabetIndexerAttributeModifier::PopupTitleBackgroundImpl, AlphabetIndexerAttributeModifier::EnableHapticFeedbackImpl, AlphabetIndexerAttributeModifier::AlignStyleImpl, - AlphabetIndexerAttributeModifier::__onChangeEvent_selectedImpl, + AlphabetIndexerAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIAlphabetIndexerModifierImpl; } @@ -17861,7 +17860,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { CheckboxAttributeModifier::MarkImpl, CheckboxAttributeModifier::OnChangeImpl, CheckboxAttributeModifier::ContentModifierImpl, - CheckboxAttributeModifier::__onChangeEvent_selectImpl, + CheckboxAttributeModifier::_onChangeEvent_selectImpl, }; return &ArkUICheckboxModifierImpl; } @@ -17877,7 +17876,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { CheckboxGroupAttributeModifier::MarkImpl, CheckboxGroupAttributeModifier::OnChangeImpl, CheckboxGroupAttributeModifier::CheckboxShapeImpl, - CheckboxGroupAttributeModifier::__onChangeEvent_selectAllImpl, + CheckboxGroupAttributeModifier::_onChangeEvent_selectAllImpl, }; return &ArkUICheckboxGroupModifierImpl; } @@ -18228,7 +18227,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { DatePickerAttributeModifier::SelectedTextStyleImpl, DatePickerAttributeModifier::OnChangeImpl, DatePickerAttributeModifier::OnDateChangeImpl, - DatePickerAttributeModifier::__onChangeEvent_selectedImpl, + DatePickerAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIDatePickerModifierImpl; } @@ -18411,7 +18410,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GridItemAttributeModifier::SelectableImpl, GridItemAttributeModifier::SelectedImpl, GridItemAttributeModifier::OnSelectImpl, - GridItemAttributeModifier::__onChangeEvent_selectedImpl, + GridItemAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIGridItemModifierImpl; } @@ -18599,7 +18598,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { ListItemAttributeModifier::SelectedImpl, ListItemAttributeModifier::SwipeActionImpl, ListItemAttributeModifier::OnSelectImpl, - ListItemAttributeModifier::__onChangeEvent_selectedImpl, + ListItemAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIListItemModifierImpl; } @@ -18693,7 +18692,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { MenuItemAttributeModifier::ContentFontColorImpl, MenuItemAttributeModifier::LabelFontImpl, MenuItemAttributeModifier::LabelFontColorImpl, - MenuItemAttributeModifier::__onChangeEvent_selectedImpl, + MenuItemAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIMenuItemModifierImpl; } @@ -18788,7 +18787,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { PanelAttributeModifier::ShowCloseIconImpl, PanelAttributeModifier::OnChangeImpl, PanelAttributeModifier::OnHeightChangeImpl, - PanelAttributeModifier::__onChangeEvent_modeImpl, + PanelAttributeModifier::_onChangeEvent_modeImpl, }; return &ArkUIPanelModifierImpl; } @@ -18901,7 +18900,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { RadioAttributeModifier::OnChangeImpl, RadioAttributeModifier::RadioStyleImpl, RadioAttributeModifier::ContentModifierImpl, - RadioAttributeModifier::__onChangeEvent_checkedImpl, + RadioAttributeModifier::_onChangeEvent_checkedImpl, }; return &ArkUIRadioModifierImpl; } @@ -18916,7 +18915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { RatingAttributeModifier::StarStyleImpl, RatingAttributeModifier::OnChangeImpl, RatingAttributeModifier::ContentModifierImpl, - RatingAttributeModifier::__onChangeEvent_ratingImpl, + RatingAttributeModifier::_onChangeEvent_ratingImpl, }; return &ArkUIRatingModifierImpl; } @@ -18944,7 +18943,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { RefreshAttributeModifier::PullToRefreshImpl, RefreshAttributeModifier::OnOffsetChangeImpl, RefreshAttributeModifier::PullDownRatioImpl, - RefreshAttributeModifier::__onChangeEvent_refreshingImpl, + RefreshAttributeModifier::_onChangeEvent_refreshingImpl, }; return &ArkUIRefreshModifierImpl; } @@ -19147,7 +19146,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SearchAttributeModifier::SearchButtonImpl, SearchAttributeModifier::InputFilterImpl, SearchAttributeModifier::CustomKeyboardImpl, - SearchAttributeModifier::__onChangeEvent_valueImpl, + SearchAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUISearchModifierImpl; } @@ -19209,8 +19208,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { SelectAttributeModifier::MenuItemContentModifierImpl, SelectAttributeModifier::DividerImpl, SelectAttributeModifier::MenuAlignImpl, - SelectAttributeModifier::__onChangeEvent_selectedImpl, - SelectAttributeModifier::__onChangeEvent_valueImpl, + SelectAttributeModifier::_onChangeEvent_selectedImpl, + SelectAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUISelectModifierImpl; } @@ -19264,7 +19263,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SliderAttributeModifier::ContentModifierImpl, SliderAttributeModifier::SlideRangeImpl, SliderAttributeModifier::ShowTipsImpl, - SliderAttributeModifier::__onChangeEvent_valueImpl, + SliderAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUISliderModifierImpl; } @@ -19320,7 +19319,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { StepperAttributeModifier::OnChangeImpl, StepperAttributeModifier::OnNextImpl, StepperAttributeModifier::OnPreviousImpl, - StepperAttributeModifier::__onChangeEvent_indexImpl, + StepperAttributeModifier::_onChangeEvent_indexImpl, }; return &ArkUIStepperModifierImpl; } @@ -19369,7 +19368,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SwiperAttributeModifier::DisplayCountImpl, SwiperAttributeModifier::PrevMarginImpl, SwiperAttributeModifier::NextMarginImpl, - SwiperAttributeModifier::__onChangeEvent_indexImpl, + SwiperAttributeModifier::_onChangeEvent_indexImpl, }; return &ArkUISwiperModifierImpl; } @@ -19450,7 +19449,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TabsAttributeModifier::BarBackgroundEffectImpl, TabsAttributeModifier::OnContentWillChangeImpl, TabsAttributeModifier::BarModeScrollableImpl, - TabsAttributeModifier::__onChangeEvent_indexImpl, + TabsAttributeModifier::_onChangeEvent_indexImpl, }; return &ArkUITabsModifierImpl; } @@ -19578,7 +19577,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextAreaAttributeModifier::InputFilterImpl, TextAreaAttributeModifier::ShowCounterImpl, TextAreaAttributeModifier::CustomKeyboardImpl, - TextAreaAttributeModifier::__onChangeEvent_textImpl, + TextAreaAttributeModifier::_onChangeEvent_textImpl, }; return &ArkUITextAreaModifierImpl; } @@ -19673,7 +19672,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextInputAttributeModifier::InputFilterImpl, TextInputAttributeModifier::CustomKeyboardImpl, TextInputAttributeModifier::ShowCounterImpl, - TextInputAttributeModifier::__onChangeEvent_textImpl, + TextInputAttributeModifier::_onChangeEvent_textImpl, }; return &ArkUITextInputModifierImpl; } @@ -19694,8 +19693,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextPickerAttributeModifier::SelectedIndexImpl, TextPickerAttributeModifier::DividerImpl, TextPickerAttributeModifier::GradientHeightImpl, - TextPickerAttributeModifier::__onChangeEvent_selectedImpl, - TextPickerAttributeModifier::__onChangeEvent_valueImpl, + TextPickerAttributeModifier::_onChangeEvent_selectedImpl, + TextPickerAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUITextPickerModifierImpl; } @@ -19731,7 +19730,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TimePickerAttributeModifier::DateTimeOptionsImpl, TimePickerAttributeModifier::OnChangeImpl, TimePickerAttributeModifier::EnableHapticFeedbackImpl, - TimePickerAttributeModifier::__onChangeEvent_selectedImpl, + TimePickerAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUITimePickerModifierImpl; } @@ -19746,7 +19745,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { ToggleAttributeModifier::SelectedColorImpl, ToggleAttributeModifier::SwitchPointColorImpl, ToggleAttributeModifier::SwitchStyleImpl, - ToggleAttributeModifier::__onChangeEvent_isOnImpl, + ToggleAttributeModifier::_onChangeEvent_isOnImpl, }; return &ArkUIToggleModifierImpl; } @@ -19951,7 +19950,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SideBarContainerAttributeModifier::SideBarPositionImpl, SideBarContainerAttributeModifier::DividerImpl, SideBarContainerAttributeModifier::MinContentWidthImpl, - SideBarContainerAttributeModifier::__onChangeEvent_showSideBarImpl, + SideBarContainerAttributeModifier::_onChangeEvent_showSideBarImpl, }; return &ArkUISideBarContainerModifierImpl; } @@ -20146,7 +20145,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_AnimationExtender CtorImpl() { if (!needGroupedLog(1)) return (AnimationExtenderPeer*) 100; @@ -20166,60 +20165,68 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetClipRectImpl(Ark_NativePointer peer, - const Ark_Number* left, - const Ark_Number* top, - const Ark_Number* right, - const Ark_Number* bottom) + void SetClipRectImpl(Ark_NativePointer node, + Ark_Float32 x, + Ark_Float32 y, + Ark_Float32 width, + Ark_Float32 height) { if (!needGroupedLog(1)) return; string out("SetClipRect("); - WriteToString(&out, peer); + WriteToString(&out, node); out.append(", "); - WriteToString(&out, left); + WriteToString(&out, x); out.append(", "); - WriteToString(&out, top); + WriteToString(&out, y); out.append(", "); - WriteToString(&out, right); + WriteToString(&out, width); out.append(", "); - WriteToString(&out, bottom); + WriteToString(&out, height); out.append(") \n"); appendGroupedLog(1, out); } - void OpenImplicitAnimationImpl(Ark_NativePointer peer, - const Ark_AnimateParam* param) + void OpenImplicitAnimationImpl(const Ark_AnimateParam* param) { if (!needGroupedLog(1)) return; string out("OpenImplicitAnimation("); - WriteToString(&out, peer); - out.append(", "); WriteToString(&out, param); out.append(") \n"); appendGroupedLog(1, out); } - void CloseImplicitAnimationImpl(Ark_NativePointer node) + void CloseImplicitAnimationImpl() { if (!needGroupedLog(1)) return; string out("CloseImplicitAnimation("); - WriteToString(&out, node); out.append(") \n"); appendGroupedLog(1, out); } - void StartDoubleAnimationImpl(Ark_NativePointer peer, + void StartDoubleAnimationImpl(Ark_NativePointer node, const Ark_DoubleAnimationParam* param) { if (!needGroupedLog(1)) return; string out("StartDoubleAnimation("); - WriteToString(&out, peer); + WriteToString(&out, node); out.append(", "); WriteToString(&out, param); out.append(") \n"); appendGroupedLog(1, out); } + void AnimationTranslateImpl(Ark_NativePointer node, + const Ark_TranslateOptions* options) + { + if (!needGroupedLog(1)) + return; + string out("AnimationTranslate("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, options); + out.append(") \n"); + appendGroupedLog(1, out); + } } // AnimationExtenderAccessor namespace UnifiedDataAccessor { void DestroyPeerImpl(UnifiedDataPeer* peer) @@ -20230,7 +20237,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_UnifiedData CtorImpl() { if (!needGroupedLog(1)) return (UnifiedDataPeer*) 100; @@ -20282,7 +20289,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_PixelMap* pixelmap) + Ark_DrawingCanvas CtorImpl(Ark_PixelMap pixelmap) { if (!needGroupedLog(1)) return (DrawingCanvasPeer*) 100; @@ -20332,7 +20339,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_LengthMetrics CtorImpl() { if (!needGroupedLog(1)) return (LengthMetricsPeer*) 100; @@ -20352,37 +20359,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer PxImpl(const Ark_Number* value) + Ark_LengthMetrics PxImpl(const Ark_Number* value) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_LengthMetrics) 300; string out("px("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_LengthMetrics) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_LengthMetrics) 300; } - Ark_NativePointer ResourceImpl(const Ark_Resource* value) + Ark_LengthMetrics ResourceImpl(const Ark_Resource* value) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_LengthMetrics) 300; string out("resource("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_LengthMetrics) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_LengthMetrics) 300; } Ark_NativePointer GetUnitImpl(LengthMetricsPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getUnit("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetUnitImpl(LengthMetricsPeer* peer, Ark_LengthUnit unit) @@ -20424,7 +20431,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebviewController CtorImpl() { if (!needGroupedLog(1)) return (WebviewControllerPeer*) 100; @@ -20475,7 +20482,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_GlobalScope_ohos_arkui_componentSnapshot CtorImpl() { if (!needGroupedLog(1)) return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100; @@ -20520,7 +20527,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_GlobalScope_ohos_arkui_performanceMonitor CtorImpl() { if (!needGroupedLog(1)) return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100; @@ -20564,14 +20571,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RecordInputEventTimeImpl(Ark_PerfMonitorActionType type, + void RecordInputEventTimeImpl(Ark_PerfMonitorActionType actionType, Ark_PerfMonitorSourceType sourceType, const Ark_Number* time) { if (!needGroupedLog(1)) return; string out("recordInputEventTime("); - WriteToString(&out, type); + WriteToString(&out, actionType); out.append(", "); WriteToString(&out, sourceType); out.append(", "); @@ -20589,7 +20596,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_UIContext* uiContext) + Ark_FrameNode CtorImpl(const Ark_UIContext* uiContext) { if (!needGroupedLog(1)) return (FrameNodePeer*) 100; @@ -20621,7 +20628,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } void AppendChildImpl(FrameNodePeer* peer, - const Ark_FrameNode* node) + Ark_FrameNode node) { if (!needGroupedLog(1)) return; @@ -20631,8 +20638,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void InsertChildAfterImpl(FrameNodePeer* peer, - const Ark_FrameNode* child, - const Ark_FrameNode* sibling) + Ark_FrameNode child, + Ark_FrameNode sibling) { if (!needGroupedLog(1)) return; @@ -20644,7 +20651,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void RemoveChildImpl(FrameNodePeer* peer, - const Ark_FrameNode* node) + Ark_FrameNode node) { if (!needGroupedLog(1)) return; @@ -20661,57 +20668,57 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetChildImpl(FrameNodePeer* peer, - const Ark_Number* index) + Ark_FrameNode GetChildImpl(FrameNodePeer* peer, + const Ark_Number* index) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getChild("); WriteToString(&out, index); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetFirstChildImpl(FrameNodePeer* peer) + Ark_FrameNode GetFirstChildImpl(FrameNodePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getFirstChild("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetNextSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetNextSiblingImpl(FrameNodePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getNextSibling("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetPreviousSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetPreviousSiblingImpl(FrameNodePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPreviousSibling("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetParentImpl(FrameNodePeer* peer) + Ark_FrameNode GetParentImpl(FrameNodePeer* 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 GetChildrenCountImpl(FrameNodePeer* peer) { @@ -20744,12 +20751,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetPositionToWindowWithTransformImpl(FrameNodePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPositionToWindowWithTransform("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // FrameNodeAccessor namespace PixelMapAccessor { @@ -20761,7 +20768,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PixelMap CtorImpl() { if (!needGroupedLog(1)) return (PixelMapPeer*) 100; @@ -20851,7 +20858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_NavExtender CtorImpl() { if (!needGroupedLog(1)) return (NavExtenderPeer*) 100; @@ -20871,7 +20878,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetUpdateStackCallbackImpl(const Ark_NavPathStack* peer, + void SetUpdateStackCallbackImpl(Ark_NavPathStack peer, const NavExtender_OnUpdateStack* callback) { if (!needGroupedLog(1)) @@ -20893,7 +20900,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_EventEmulator CtorImpl() { if (!needGroupedLog(1)) return (EventEmulatorPeer*) 100; @@ -20914,7 +20921,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return fnPtr(dummyClassFinalizer); } void EmitClickEventImpl(Ark_NativePointer node, - const Ark_ClickEvent* event) + Ark_ClickEvent event) { if (!needGroupedLog(1)) return; @@ -20947,7 +20954,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ActionSheet CtorImpl() { if (!needGroupedLog(1)) return (ActionSheetPeer*) 100; @@ -20986,7 +20993,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_AlertDialog CtorImpl() { if (!needGroupedLog(1)) return (AlertDialogPeer*) 100; @@ -21016,6 +21023,163 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // AlertDialogAccessor + namespace SpringPropAccessor { + void DestroyPeerImpl(SpringPropPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_SpringProp CtorImpl(const Ark_Number* mass, + const Ark_Number* stiffness, + const Ark_Number* damping) + { + if (!needGroupedLog(1)) + return (SpringPropPeer*) 100; + string out("new SpringProp("); + WriteToString(&out, mass); + out.append(", "); + WriteToString(&out, stiffness); + out.append(", "); + WriteToString(&out, damping); + out.append(") \n"); + out.append("[return (SpringPropPeer*) 100] \n"); + appendGroupedLog(1, out); + return (SpringPropPeer*) 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); + } + } // SpringPropAccessor + namespace SpringMotionAccessor { + void DestroyPeerImpl(SpringMotionPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_SpringMotion CtorImpl(const Ark_Number* start, + const Ark_Number* end, + const Ark_Number* velocity, + Ark_SpringProp prop) + { + if (!needGroupedLog(1)) + return (SpringMotionPeer*) 100; + string out("new SpringMotion("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, end); + out.append(", "); + WriteToString(&out, velocity); + out.append(", "); + WriteToString(&out, prop); + out.append(") \n"); + out.append("[return (SpringMotionPeer*) 100] \n"); + appendGroupedLog(1, out); + return (SpringMotionPeer*) 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); + } + } // SpringMotionAccessor + namespace FrictionMotionAccessor { + void DestroyPeerImpl(FrictionMotionPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_FrictionMotion CtorImpl(const Ark_Number* friction, + const Ark_Number* position, + const Ark_Number* velocity) + { + if (!needGroupedLog(1)) + return (FrictionMotionPeer*) 100; + string out("new FrictionMotion("); + WriteToString(&out, friction); + out.append(", "); + WriteToString(&out, position); + out.append(", "); + WriteToString(&out, velocity); + out.append(") \n"); + out.append("[return (FrictionMotionPeer*) 100] \n"); + appendGroupedLog(1, out); + return (FrictionMotionPeer*) 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); + } + } // FrictionMotionAccessor + namespace ScrollMotionAccessor { + void DestroyPeerImpl(ScrollMotionPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ScrollMotion CtorImpl(const Ark_Number* position, + const Ark_Number* velocity, + const Ark_Number* min, + const Ark_Number* max, + Ark_SpringProp prop) + { + if (!needGroupedLog(1)) + return (ScrollMotionPeer*) 100; + string out("new ScrollMotion("); + WriteToString(&out, position); + out.append(", "); + WriteToString(&out, velocity); + out.append(", "); + WriteToString(&out, min); + out.append(", "); + WriteToString(&out, max); + out.append(", "); + WriteToString(&out, prop); + out.append(") \n"); + out.append("[return (ScrollMotionPeer*) 100] \n"); + appendGroupedLog(1, out); + return (ScrollMotionPeer*) 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); + } + } // ScrollMotionAccessor namespace CalendarControllerAccessor { void DestroyPeerImpl(CalendarControllerPeer* peer) { @@ -21025,7 +21189,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_CalendarController CtorImpl() { if (!needGroupedLog(1)) return (CalendarControllerPeer*) 100; @@ -21073,7 +21237,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_CalendarPickerDialog CtorImpl() { if (!needGroupedLog(1)) return (CalendarPickerDialogPeer*) 100; @@ -21112,7 +21276,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_CanvasGradient CtorImpl() { if (!needGroupedLog(1)) return (CanvasGradientPeer*) 100; @@ -21155,7 +21319,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_CanvasPath CtorImpl() { if (!needGroupedLog(1)) return (CanvasPathPeer*) 100; @@ -21360,7 +21524,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_Path2D CtorImpl() { if (!needGroupedLog(1)) return (Path2DPeer*) 100; @@ -21381,7 +21545,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return fnPtr(dummyClassFinalizer); } void AddPathImpl(Path2DPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_Matrix2D* transform) { if (!needGroupedLog(1)) @@ -21403,7 +21567,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_CanvasPattern CtorImpl() { if (!needGroupedLog(1)) return (CanvasPatternPeer*) 100; @@ -21443,7 +21607,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_String* src) + Ark_ImageBitmap CtorImpl(const Ark_String* src) { if (!needGroupedLog(1)) return (ImageBitmapPeer*) 100; @@ -21493,6 +21657,114 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } } // ImageBitmapAccessor + namespace ImageDataAccessor { + void DestroyPeerImpl(ImageDataPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ImageData CtorImpl(const Ark_Number* width, + const Ark_Number* height, + const Opt_Buffer* data) + { + if (!needGroupedLog(1)) + return (ImageDataPeer*) 100; + string out("new ImageData("); + WriteToString(&out, width); + out.append(", "); + WriteToString(&out, height); + out.append(", "); + WriteToString(&out, data); + out.append(") \n"); + out.append("[return (ImageDataPeer*) 100] \n"); + appendGroupedLog(1, out); + return (ImageDataPeer*) 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_Int32 GetHeightImpl(ImageDataPeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getHeight("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + Ark_Int32 GetWidthImpl(ImageDataPeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getWidth("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + } // ImageDataAccessor + namespace RenderingContextSettingsAccessor { + void DestroyPeerImpl(RenderingContextSettingsPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_RenderingContextSettings CtorImpl(const Opt_Boolean* antialias) + { + if (!needGroupedLog(1)) + return (RenderingContextSettingsPeer*) 100; + string out("new RenderingContextSettings("); + WriteToString(&out, antialias); + out.append(") \n"); + out.append("[return (RenderingContextSettingsPeer*) 100] \n"); + appendGroupedLog(1, out); + return (RenderingContextSettingsPeer*) 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_Boolean GetAntialiasImpl(RenderingContextSettingsPeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getAntialias("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + void SetAntialiasImpl(RenderingContextSettingsPeer* peer, + Ark_Boolean antialias) + { + if (!needGroupedLog(1)) + return; + string out("setAntialias("); + WriteToString(&out, antialias); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // RenderingContextSettingsAccessor namespace CanvasRendererAccessor { void DestroyPeerImpl(CanvasRendererPeer* peer) { @@ -21502,7 +21774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_CanvasRenderer CtorImpl() { if (!needGroupedLog(1)) return (CanvasRendererPeer*) 100; @@ -21613,7 +21885,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Clip1Impl(CanvasRendererPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_String* fillRule) { if (!needGroupedLog(1)) @@ -21636,7 +21908,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Fill1Impl(CanvasRendererPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_String* fillRule) { if (!needGroupedLog(1)) @@ -21657,7 +21929,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void Stroke1Impl(CanvasRendererPeer* peer, - const Ark_Path2D* path) + Ark_Path2D path) { if (!needGroupedLog(1)) return; @@ -21666,14 +21938,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CreateLinearGradientImpl(CanvasRendererPeer* peer, - const Ark_Number* x0, - const Ark_Number* y0, - const Ark_Number* x1, - const Ark_Number* y1) + Ark_CanvasGradient CreateLinearGradientImpl(CanvasRendererPeer* peer, + const Ark_Number* x0, + const Ark_Number* y0, + const Ark_Number* x1, + const Ark_Number* y1) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createLinearGradient("); WriteToString(&out, x0); out.append(", "); @@ -21683,12 +21955,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, y1); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer CreatePatternImpl(CanvasRendererPeer* peer, - const Ark_ImageBitmap* image, + Ark_CanvasPattern CreatePatternImpl(CanvasRendererPeer* peer, + Ark_ImageBitmap image, const Opt_String* repetition) { if (!needGroupedLog(1)) @@ -21702,16 +21974,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer CreateRadialGradientImpl(CanvasRendererPeer* 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 CreateRadialGradientImpl(CanvasRendererPeer* 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) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createRadialGradient("); WriteToString(&out, x0); out.append(", "); @@ -21725,17 +21997,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, r1); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer CreateConicGradientImpl(CanvasRendererPeer* peer, - const Ark_Number* startAngle, - const Ark_Number* x, - const Ark_Number* y) + Ark_CanvasGradient CreateConicGradientImpl(CanvasRendererPeer* peer, + const Ark_Number* startAngle, + const Ark_Number* x, + const Ark_Number* y) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createConicGradient("); WriteToString(&out, startAngle); out.append(", "); @@ -21743,45 +22015,45 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, y); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer CreateImageData0Impl(CanvasRendererPeer* peer, - const Ark_Number* sw, - const Ark_Number* sh) + Ark_ImageData CreateImageData0Impl(CanvasRendererPeer* peer, + const Ark_Number* sw, + const Ark_Number* sh) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createImageData("); WriteToString(&out, sw); out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer CreateImageData1Impl(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata) + Ark_ImageData CreateImageData1Impl(CanvasRendererPeer* peer, + Ark_ImageData imagedata) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createImageData("); WriteToString(&out, imagedata); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetImageDataImpl(CanvasRendererPeer* peer, - const Ark_Number* sx, - const Ark_Number* sy, - const Ark_Number* sw, - const Ark_Number* sh) + Ark_ImageData GetImageDataImpl(CanvasRendererPeer* peer, + const Ark_Number* sx, + const Ark_Number* sy, + const Ark_Number* sw, + const Ark_Number* sh) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getImageData("); WriteToString(&out, sx); out.append(", "); @@ -21791,18 +22063,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetPixelMapImpl(CanvasRendererPeer* peer, - const Ark_Number* sx, - const Ark_Number* sy, - const Ark_Number* sw, - const Ark_Number* sh) + Ark_PixelMap GetPixelMapImpl(CanvasRendererPeer* peer, + const Ark_Number* sx, + const Ark_Number* sy, + const Ark_Number* sw, + const Ark_Number* sh) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPixelMap("); WriteToString(&out, sx); out.append(", "); @@ -21812,12 +22084,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void PutImageData0Impl(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata, + Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy) { @@ -21833,7 +22105,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void PutImageData1Impl(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata, + Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, const Ark_Union_Number_String* dirtyX, @@ -21974,13 +22246,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_String* text) { if (!needGroupedLog(1)) - return 0; + return {}; string out("measureText("); WriteToString(&out, text); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void StrokeTextImpl(CanvasRendererPeer* peer, const Ark_String* text, @@ -22001,15 +22273,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTransformImpl(CanvasRendererPeer* peer) + Ark_Matrix2D GetTransformImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getTransform("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void ResetTransformImpl(CanvasRendererPeer* peer) { @@ -22126,7 +22398,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void TransferFromImageBitmapImpl(CanvasRendererPeer* peer, - const Ark_ImageBitmap* bitmap) + Ark_ImageBitmap bitmap) { if (!needGroupedLog(1)) return; @@ -22258,12 +22530,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetImageSmoothingQualityImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getImageSmoothingQuality("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetImageSmoothingQualityImpl(CanvasRendererPeer* peer, const Ark_String* imageSmoothingQuality) @@ -22278,12 +22550,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetLineCapImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getLineCap("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetLineCapImpl(CanvasRendererPeer* peer, const Ark_String* lineCap) @@ -22318,12 +22590,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetLineJoinImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getLineJoin("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetLineJoinImpl(CanvasRendererPeer* peer, const Ark_String* lineJoin) @@ -22456,12 +22728,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetDirectionImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getDirection("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetDirectionImpl(CanvasRendererPeer* peer, const Ark_String* direction) @@ -22494,12 +22766,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTextAlignImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getTextAlign("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetTextAlignImpl(CanvasRendererPeer* peer, const Ark_String* textAlign) @@ -22514,12 +22786,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTextBaselineImpl(CanvasRendererPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getTextBaseline("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetTextBaselineImpl(CanvasRendererPeer* peer, const Ark_String* textBaseline) @@ -22541,7 +22813,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Opt_RenderingContextSettings* settings) + Ark_CanvasRenderingContext2D CtorImpl(const Opt_RenderingContextSettings* settings) { if (!needGroupedLog(1)) return (CanvasRenderingContext2DPeer*) 100; @@ -22666,7 +22938,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Opt_LengthMetricsUnit* unit) + Ark_DrawingRenderingContext CtorImpl(const Opt_LengthMetricsUnit* unit) { if (!needGroupedLog(1)) return (DrawingRenderingContextPeer*) 100; @@ -22705,7 +22977,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ICurve CtorImpl() { if (!needGroupedLog(1)) return (ICurvePeer*) 100; @@ -22747,7 +23019,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_DrawModifier CtorImpl() { if (!needGroupedLog(1)) return (DrawModifierPeer*) 100; @@ -22815,8 +23087,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_String* type, - const Ark_TransitionEffects* effect) + Ark_TransitionEffect CtorImpl(const Ark_String* type, + const Ark_TransitionEffects* effect) { if (!needGroupedLog(1)) return (TransitionEffectPeer*) 100; @@ -22839,98 +23111,98 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer TranslateImpl(const Ark_TranslateOptions* options) + Ark_TransitionEffect TranslateImpl(const Ark_TranslateOptions* options) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TransitionEffect) 300; string out("translate("); WriteToString(&out, options); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TransitionEffect) 300; } - Ark_NativePointer RotateImpl(const Ark_RotateOptions* options) + Ark_TransitionEffect RotateImpl(const Ark_RotateOptions* options) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TransitionEffect) 300; string out("rotate("); WriteToString(&out, options); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TransitionEffect) 300; } - Ark_NativePointer ScaleImpl(const Ark_ScaleOptions* options) + Ark_TransitionEffect ScaleImpl(const Ark_ScaleOptions* options) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TransitionEffect) 300; string out("scale("); WriteToString(&out, options); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TransitionEffect) 300; } - Ark_NativePointer OpacityImpl(const Ark_Number* alpha) + Ark_TransitionEffect OpacityImpl(const Ark_Number* alpha) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TransitionEffect) 300; string out("opacity("); WriteToString(&out, alpha); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TransitionEffect) 300; } - Ark_NativePointer MoveImpl(Ark_TransitionEdge edge) + Ark_TransitionEffect MoveImpl(Ark_TransitionEdge edge) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TransitionEffect) 300; string out("move("); WriteToString(&out, edge); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TransitionEffect) 300; } - Ark_NativePointer AsymmetricImpl(const Ark_TransitionEffect* appear, - const Ark_TransitionEffect* disappear) + Ark_TransitionEffect AsymmetricImpl(Ark_TransitionEffect appear, + Ark_TransitionEffect disappear) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TransitionEffect) 300; string out("asymmetric("); WriteToString(&out, appear); out.append(", "); WriteToString(&out, disappear); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TransitionEffect) 300; } - Ark_NativePointer AnimationImpl(TransitionEffectPeer* peer, - const Ark_AnimateParam* value) + Ark_TransitionEffect AnimationImpl(TransitionEffectPeer* peer, + const Ark_AnimateParam* value) { if (!needGroupedLog(1)) - return 0; + return {}; string out("animation("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer CombineImpl(TransitionEffectPeer* peer, - const Ark_TransitionEffect* transitionEffect) + Ark_TransitionEffect CombineImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect transitionEffect) { if (!needGroupedLog(1)) - return 0; + return {}; string out("combine("); WriteToString(&out, transitionEffect); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // TransitionEffectAccessor namespace BaseEventAccessor { @@ -22942,7 +23214,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_BaseEvent CtorImpl() { if (!needGroupedLog(1)) return (BaseEventPeer*) 100; @@ -23007,12 +23279,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetSourceImpl(BaseEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getSource("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetSourceImpl(BaseEventPeer* peer, Ark_SourceType source) @@ -23127,12 +23399,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetSourceToolImpl(BaseEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getSourceTool("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetSourceToolImpl(BaseEventPeer* peer, Ark_SourceTool sourceTool) @@ -23174,7 +23446,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ClickEvent CtorImpl() { if (!needGroupedLog(1)) return (ClickEventPeer*) 100; @@ -23354,6 +23626,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } + Callback_Void GetPreventDefaultImpl(ClickEventPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getPreventDefault("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } void SetPreventDefaultImpl(ClickEventPeer* peer, const Callback_Void* preventDefault) { @@ -23374,7 +23656,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_HoverEvent CtorImpl() { if (!needGroupedLog(1)) return (HoverEventPeer*) 100; @@ -23394,6 +23676,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } + Callback_Void GetStopPropagationImpl(HoverEventPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getStopPropagation("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } void SetStopPropagationImpl(HoverEventPeer* peer, const Callback_Void* stopPropagation) { @@ -23414,7 +23706,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_MouseEvent CtorImpl() { if (!needGroupedLog(1)) return (MouseEventPeer*) 100; @@ -23437,12 +23729,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetButtonImpl(MouseEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getButton("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetButtonImpl(MouseEventPeer* peer, Ark_MouseButton button) @@ -23457,12 +23749,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetActionImpl(MouseEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getAction("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetActionImpl(MouseEventPeer* peer, Ark_MouseAction action) @@ -23634,6 +23926,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } + Callback_Void GetStopPropagationImpl(MouseEventPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getStopPropagation("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } void SetStopPropagationImpl(MouseEventPeer* peer, const Callback_Void* stopPropagation) { @@ -23654,7 +23956,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_AccessibilityHoverEvent CtorImpl() { if (!needGroupedLog(1)) return (AccessibilityHoverEventPeer*) 100; @@ -23677,12 +23979,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTypeImpl(AccessibilityHoverEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetTypeImpl(AccessibilityHoverEventPeer* peer, Ark_AccessibilityHoverType type) @@ -23824,7 +24126,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TouchEvent CtorImpl() { if (!needGroupedLog(1)) return (TouchEventPeer*) 100; @@ -23855,12 +24157,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTypeImpl(TouchEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetTypeImpl(TouchEventPeer* peer, Ark_TouchType type) @@ -23892,6 +24194,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } + Callback_Void GetStopPropagationImpl(TouchEventPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getStopPropagation("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } void SetStopPropagationImpl(TouchEventPeer* peer, const Callback_Void* stopPropagation) { @@ -23902,6 +24214,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } + Callback_Void GetPreventDefaultImpl(TouchEventPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getPreventDefault("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } void SetPreventDefaultImpl(TouchEventPeer* peer, const Callback_Void* preventDefault) { @@ -23922,7 +24244,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PixelMapMock CtorImpl() { if (!needGroupedLog(1)) return (PixelMapMockPeer*) 100; @@ -23960,7 +24282,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_DragEvent CtorImpl() { if (!needGroupedLog(1)) return (DragEventPeer*) 100; @@ -24041,7 +24363,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } void SetDataImpl(DragEventPeer* peer, - const Ark_UnifiedData* unifiedData) + Ark_UnifiedData unifiedData) { if (!needGroupedLog(1)) return; @@ -24050,25 +24372,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDataImpl(DragEventPeer* peer) + Ark_UnifiedData GetDataImpl(DragEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getData("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetSummaryImpl(DragEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getSummary("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetResultImpl(DragEventPeer* peer, Ark_DragResult dragResult) @@ -24083,22 +24405,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetResultImpl(DragEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getResult("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetPreviewRectImpl(DragEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPreviewRect("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Int32 GetVelocityXImpl(DragEventPeer* peer) { @@ -24145,12 +24467,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetDragBehaviorImpl(DragEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getDragBehavior("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetDragBehaviorImpl(DragEventPeer* peer, Ark_DragBehavior dragBehavior) @@ -24192,7 +24514,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_KeyEvent CtorImpl() { if (!needGroupedLog(1)) return (KeyEventPeer*) 100; @@ -24227,12 +24549,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTypeImpl(KeyEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetTypeImpl(KeyEventPeer* peer, Ark_KeyType type) @@ -24285,12 +24607,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetKeySourceImpl(KeyEventPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getKeySource("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetKeySourceImpl(KeyEventPeer* peer, Ark_KeySource keySource) @@ -24362,6 +24684,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } + Callback_Void GetStopPropagationImpl(KeyEventPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getStopPropagation("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } void SetStopPropagationImpl(KeyEventPeer* peer, const Callback_Void* stopPropagation) { @@ -24412,9 +24744,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_Number* value, - const Ark_Number* total, - const Ark_ResourceColor* color) + Ark_ProgressMask CtorImpl(const Ark_Number* value, + const Ark_Number* total, + const Ark_ResourceColor* color) { if (!needGroupedLog(1)) return (ProgressMaskPeer*) 100; @@ -24479,7 +24811,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_Measurable CtorImpl() { if (!needGroupedLog(1)) return (MeasurablePeer*) 100; @@ -24503,43 +24835,43 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_ConstraintSizeOptions* constraint) { if (!needGroupedLog(1)) - return 0; + return {}; string out("measure("); WriteToString(&out, constraint); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetMarginImpl(MeasurablePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getMargin("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetPaddingImpl(MeasurablePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPadding("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetBorderWidthImpl(MeasurablePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getBorderWidth("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // MeasurableAccessor namespace ViewAccessor { @@ -24551,7 +24883,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_View CtorImpl() { if (!needGroupedLog(1)) return (ViewPeer*) 100; @@ -24591,7 +24923,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextContentControllerBase CtorImpl() { if (!needGroupedLog(1)) return (TextContentControllerBasePeer*) 100; @@ -24614,22 +24946,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetCaretOffsetImpl(TextContentControllerBasePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getCaretOffset("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetTextContentRectImpl(TextContentControllerBasePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getTextContentRect("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Int32 GetTextContentLineCountImpl(TextContentControllerBasePeer* peer) { @@ -24651,7 +24983,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_DynamicNode CtorImpl() { if (!needGroupedLog(1)) return (DynamicNodePeer*) 100; @@ -24691,7 +25023,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_Number* childDefaultSize) + Ark_ChildrenMainSize CtorImpl(const Ark_Number* childDefaultSize) { if (!needGroupedLog(1)) return (ChildrenMainSizePeer*) 100; @@ -24771,7 +25103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_UICommonEvent CtorImpl() { if (!needGroupedLog(1)) return (UICommonEventPeer*) 100; @@ -24914,7 +25246,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_GestureModifier CtorImpl() { if (!needGroupedLog(1)) return (GestureModifierPeer*) 100; @@ -24954,36 +25286,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (GlobalScope_commonPeer*) 100; - string out("new GlobalScope_common("); - out.append(") \n"); - out.append("[return (GlobalScope_commonPeer*) 100] \n"); - appendGroupedLog(1, out); - return (GlobalScope_commonPeer*) 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 GetContextImpl(const Opt_CustomObject* component) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_NativePointer) 300; string out("getContext("); WriteToString(&out, component); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_NativePointer) 300; } void PostCardActionImpl(const Ark_CustomObject* component, const Ark_CustomObject* action) @@ -25001,26 +25313,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Array_CustomObject* params) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_NativePointer) 300; string out("dollar_r("); WriteToString(&out, value); out.append(", "); WriteToString(&out, params); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_NativePointer) 300; } Ark_NativePointer Dollar_rawfileImpl(const Ark_String* value) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_NativePointer) 300; string out("dollar_rawfile("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_NativePointer) 300; } void AnimateToImpl(const Ark_AnimateParam* value, const Callback_Void* event) @@ -25150,7 +25462,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ContextMenu CtorImpl() { if (!needGroupedLog(1)) return (ContextMenuPeer*) 100; @@ -25188,7 +25500,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_CustomDialogControllerOptions* value) + Ark_CustomDialogController CtorImpl(const Ark_CustomDialogControllerOptions* value) { if (!needGroupedLog(1)) return (CustomDialogControllerPeer*) 100; @@ -25226,6 +25538,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // CustomDialogControllerAccessor + namespace LinearGradientAccessor { + void DestroyPeerImpl(LinearGradientPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_LinearGradient CtorImpl(const Array_ColorStop* colorStops) + { + if (!needGroupedLog(1)) + return (LinearGradientPeer*) 100; + string out("new LinearGradient("); + WriteToString(&out, colorStops); + out.append(") \n"); + out.append("[return (LinearGradientPeer*) 100] \n"); + appendGroupedLog(1, out); + return (LinearGradientPeer*) 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); + } + } // LinearGradientAccessor namespace DatePickerDialogAccessor { void DestroyPeerImpl(DatePickerDialogPeer* peer) { @@ -25235,7 +25578,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_DatePickerDialog CtorImpl() { if (!needGroupedLog(1)) return (DatePickerDialogPeer*) 100; @@ -25274,7 +25617,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_BaseGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (BaseGestureEventPeer*) 100; @@ -25314,7 +25657,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TapGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (TapGestureEventPeer*) 100; @@ -25344,7 +25687,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_LongPressGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (LongPressGestureEventPeer*) 100; @@ -25394,7 +25737,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PanGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (PanGestureEventPeer*) 100; @@ -25524,7 +25867,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PinchGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (PinchGestureEventPeer*) 100; @@ -25614,7 +25957,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_RotationGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (RotationGestureEventPeer*) 100; @@ -25664,7 +26007,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_SwipeGestureEvent CtorImpl() { if (!needGroupedLog(1)) return (SwipeGestureEventPeer*) 100; @@ -25734,7 +26077,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_GestureEvent CtorImpl() { if (!needGroupedLog(1)) return (GestureEventPeer*) 100; @@ -25994,7 +26337,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value) + Ark_PanGestureOptions CtorImpl(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value) { if (!needGroupedLog(1)) return (PanGestureOptionsPeer*) 100; @@ -26048,12 +26391,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetDirectionImpl(PanGestureOptionsPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getDirection("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // PanGestureOptionsAccessor namespace ScrollableTargetInfoAccessor { @@ -26065,7 +26408,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ScrollableTargetInfo CtorImpl() { if (!needGroupedLog(1)) return (ScrollableTargetInfoPeer*) 100; @@ -26115,7 +26458,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_EventTargetInfo CtorImpl() { if (!needGroupedLog(1)) return (EventTargetInfoPeer*) 100; @@ -26153,7 +26496,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_GestureRecognizer CtorImpl() { if (!needGroupedLog(1)) return (GestureRecognizerPeer*) 100; @@ -26184,12 +26527,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTypeImpl(GestureRecognizerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Boolean IsBuiltInImpl(GestureRecognizerPeer* peer) { @@ -26224,22 +26567,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetStateImpl(GestureRecognizerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getState("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer GetEventTargetInfoImpl(GestureRecognizerPeer* peer) + Ark_EventTargetInfo GetEventTargetInfoImpl(GestureRecognizerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getEventTargetInfo("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Boolean IsValidImpl(GestureRecognizerPeer* peer) { @@ -26261,7 +26604,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PanRecognizer CtorImpl() { if (!needGroupedLog(1)) return (PanRecognizerPeer*) 100; @@ -26281,15 +26624,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetPanGestureOptionsImpl(PanRecognizerPeer* peer) + Ark_PanGestureOptions GetPanGestureOptionsImpl(PanRecognizerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPanGestureOptions("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // PanRecognizerAccessor namespace ImageAnalyzerControllerAccessor { @@ -26301,7 +26644,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ImageAnalyzerController CtorImpl() { if (!needGroupedLog(1)) return (ImageAnalyzerControllerPeer*) 100; @@ -26339,7 +26682,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ListScroller CtorImpl() { if (!needGroupedLog(1)) return (ListScrollerPeer*) 100; @@ -26364,15 +26707,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* indexInGroup) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getItemRectInGroup("); WriteToString(&out, index); out.append(", "); WriteToString(&out, indexInGroup); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void ScrollToItemInGroupImpl(ListScrollerPeer* peer, const Ark_Number* index, @@ -26408,15 +26751,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* y) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getVisibleListContentInfo("); WriteToString(&out, x); out.append(", "); WriteToString(&out, y); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // ListScrollerAccessor namespace Matrix2DAccessor { @@ -26428,7 +26771,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_Matrix2D CtorImpl() { if (!needGroupedLog(1)) return (Matrix2DPeer*) 100; @@ -26448,60 +26791,60 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer IdentityImpl(Matrix2DPeer* peer) + Ark_Matrix2D IdentityImpl(Matrix2DPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("identity("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer InvertImpl(Matrix2DPeer* peer) + Ark_Matrix2D InvertImpl(Matrix2DPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("invert("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer MultiplyImpl(Matrix2DPeer* peer, - const Opt_Matrix2D* other) + Ark_Matrix2D MultiplyImpl(Matrix2DPeer* peer, + const Opt_Matrix2D* other) { if (!needGroupedLog(1)) - return 0; + return {}; string out("multiply("); WriteToString(&out, other); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer Rotate0Impl(Matrix2DPeer* peer, - const Opt_Number* rx, - const Opt_Number* ry) + Ark_Matrix2D Rotate0Impl(Matrix2DPeer* peer, + const Opt_Number* rx, + const Opt_Number* ry) { if (!needGroupedLog(1)) - return 0; + return {}; string out("rotate("); WriteToString(&out, rx); out.append(", "); WriteToString(&out, ry); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer Rotate1Impl(Matrix2DPeer* peer, - const Ark_Number* degree, - const Opt_Number* rx, - const Opt_Number* ry) + Ark_Matrix2D Rotate1Impl(Matrix2DPeer* peer, + const Ark_Number* degree, + const Opt_Number* rx, + const Opt_Number* ry) { if (!needGroupedLog(1)) - return 0; + return {}; string out("rotate("); WriteToString(&out, degree); out.append(", "); @@ -26509,39 +26852,39 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, ry); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer TranslateImpl(Matrix2DPeer* peer, - const Opt_Number* tx, - const Opt_Number* ty) + Ark_Matrix2D TranslateImpl(Matrix2DPeer* peer, + const Opt_Number* tx, + const Opt_Number* ty) { if (!needGroupedLog(1)) - return 0; + return {}; string out("translate("); WriteToString(&out, tx); out.append(", "); WriteToString(&out, ty); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NativePointer ScaleImpl(Matrix2DPeer* peer, - const Opt_Number* sx, - const Opt_Number* sy) + Ark_Matrix2D ScaleImpl(Matrix2DPeer* peer, + const Opt_Number* sx, + const Opt_Number* sy) { if (!needGroupedLog(1)) - return 0; + return {}; string out("scale("); WriteToString(&out, sx); out.append(", "); WriteToString(&out, sy); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Int32 GetScaleXImpl(Matrix2DPeer* peer) { @@ -26673,7 +27016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_NavDestinationContext CtorImpl() { if (!needGroupedLog(1)) return (NavDestinationContextPeer*) 100; @@ -26704,7 +27047,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } void SetPathInfoImpl(NavDestinationContextPeer* peer, - const Ark_NavPathInfo* pathInfo) + Ark_NavPathInfo pathInfo) { if (!needGroupedLog(1)) return; @@ -26714,7 +27057,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void SetPathStackImpl(NavDestinationContextPeer* peer, - const Ark_NavPathStack* pathStack) + Ark_NavPathStack pathStack) { if (!needGroupedLog(1)) return; @@ -26742,6 +27085,114 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // NavDestinationContextAccessor + namespace NavPathInfoAccessor { + void DestroyPeerImpl(NavPathInfoPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_NavPathInfo CtorImpl(const Ark_String* name, + const Ark_CustomObject* param, + const Opt_Callback_PopInfo_Void* onPop, + const Opt_Boolean* isEntry) + { + if (!needGroupedLog(1)) + return (NavPathInfoPeer*) 100; + string out("new NavPathInfo("); + WriteToString(&out, name); + out.append(", "); + WriteToString(&out, param); + out.append(", "); + WriteToString(&out, onPop); + out.append(", "); + WriteToString(&out, isEntry); + out.append(") \n"); + out.append("[return (NavPathInfoPeer*) 100] \n"); + appendGroupedLog(1, out); + return (NavPathInfoPeer*) 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 GetNameImpl(NavPathInfoPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("getName("); + out.append(") \n"); + appendGroupedLog(1, out); + } + void SetNameImpl(NavPathInfoPeer* peer, + const Ark_String* name) + { + if (!needGroupedLog(1)) + return; + string out("setName("); + WriteToString(&out, name); + out.append(") \n"); + appendGroupedLog(1, out); + } + void SetParamImpl(NavPathInfoPeer* peer, + const Ark_CustomObject* param) + { + if (!needGroupedLog(1)) + return; + string out("setParam("); + WriteToString(&out, param); + out.append(") \n"); + appendGroupedLog(1, out); + } + Callback_PopInfo_Void GetOnPopImpl(NavPathInfoPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getOnPop("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetOnPopImpl(NavPathInfoPeer* peer, + const Callback_PopInfo_Void* onPop) + { + if (!needGroupedLog(1)) + return; + string out("setOnPop("); + WriteToString(&out, onPop); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_Boolean GetIsEntryImpl(NavPathInfoPeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getIsEntry("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + void SetIsEntryImpl(NavPathInfoPeer* peer, + Ark_Boolean isEntry) + { + if (!needGroupedLog(1)) + return; + string out("setIsEntry("); + WriteToString(&out, isEntry); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // NavPathInfoAccessor namespace NavPathStackAccessor { void DestroyPeerImpl(NavPathStackPeer* peer) { @@ -26751,7 +27202,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_NavPathStack CtorImpl() { if (!needGroupedLog(1)) return (NavPathStackPeer*) 100; @@ -26772,7 +27223,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return fnPtr(dummyClassFinalizer); } void PushPath0Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated) { if (!needGroupedLog(1)) @@ -26785,7 +27236,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void PushPath1Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options) { if (!needGroupedLog(1)) @@ -26798,7 +27249,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void PushDestination0Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -26814,7 +27265,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void PushDestination1Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -26906,7 +27357,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ReplacePath0Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated) { if (!needGroupedLog(1)) @@ -26919,7 +27370,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ReplacePath1Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options) { if (!needGroupedLog(1)) @@ -26932,7 +27383,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void ReplaceDestinationImpl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -26999,8 +27450,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer Pop0Impl(NavPathStackPeer* peer, - const Opt_Boolean* animated) + Ark_NavPathInfo Pop0Impl(NavPathStackPeer* peer, + const Opt_Boolean* animated) { if (!needGroupedLog(1)) return 0; @@ -27011,9 +27462,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer Pop1Impl(NavPathStackPeer* peer, - const Ark_CustomObject* result, - const Opt_Boolean* animated) + Ark_NavPathInfo Pop1Impl(NavPathStackPeer* peer, + const Ark_CustomObject* result, + const Opt_Boolean* animated) { if (!needGroupedLog(1)) return 0; @@ -27164,7 +27615,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetParentImpl(NavPathStackPeer* peer) + Ark_NavPathStack GetParentImpl(NavPathStackPeer* peer) { if (!needGroupedLog(1)) return 0; @@ -27214,7 +27665,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_NavigationTransitionProxy CtorImpl() { if (!needGroupedLog(1)) return (NavigationTransitionProxyPeer*) 100; @@ -27310,7 +27761,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PatternLockController CtorImpl() { if (!needGroupedLog(1)) return (PatternLockControllerPeer*) 100; @@ -27358,7 +27809,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_RichEditorBaseController CtorImpl() { if (!needGroupedLog(1)) return (RichEditorBaseControllerPeer*) 100; @@ -27411,12 +27862,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetTypingStyleImpl(RichEditorBaseControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getTypingStyle("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetTypingStyleImpl(RichEditorBaseControllerPeer* peer, const Ark_RichEditorTextStyle* value) @@ -27462,25 +27913,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getLayoutManager("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetPreviewTextImpl(RichEditorBaseControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPreviewText("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // RichEditorBaseControllerAccessor namespace RichEditorControllerAccessor { @@ -27492,7 +27943,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_RichEditorController CtorImpl() { if (!needGroupedLog(1)) return (RichEditorControllerPeer*) 100; @@ -27625,15 +28076,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetSelectionImpl(RichEditorControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getSelection("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void FromStyledStringImpl(RichEditorControllerPeer* peer, - const Ark_StyledString* value) + Ark_StyledString value) { if (!needGroupedLog(1)) return; @@ -27642,17 +28093,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer ToStyledStringImpl(RichEditorControllerPeer* peer, - const Ark_RichEditorRange* value) + Ark_StyledString ToStyledStringImpl(RichEditorControllerPeer* peer, + const Ark_RichEditorRange* value) { if (!needGroupedLog(1)) - return 0; + return {}; string out("toStyledString("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // RichEditorControllerAccessor namespace RichEditorStyledStringControllerAccessor { @@ -27664,7 +28115,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_RichEditorStyledStringController CtorImpl() { if (!needGroupedLog(1)) return (RichEditorStyledStringControllerPeer*) 100; @@ -27685,7 +28136,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return fnPtr(dummyClassFinalizer); } void SetStyledStringImpl(RichEditorStyledStringControllerPeer* peer, - const Ark_StyledString* styledString) + Ark_StyledString styledString) { if (!needGroupedLog(1)) return; @@ -27694,25 +28145,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getStyledString("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetSelectionImpl(RichEditorStyledStringControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getSelection("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void OnContentChangedImpl(RichEditorStyledStringControllerPeer* peer, const Ark_StyledStringChangedListener* listener) @@ -27734,7 +28185,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_Scroller CtorImpl() { if (!needGroupedLog(1)) return (ScrollerPeer*) 100; @@ -27810,12 +28261,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer CurrentOffsetImpl(ScrollerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("currentOffset("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void ScrollToIndexImpl(ScrollerPeer* peer, const Ark_Number* value, @@ -27863,13 +28314,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* index) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getItemRect("); WriteToString(&out, index); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Int32 GetItemIndexImpl(ScrollerPeer* peer, const Ark_Number* x, @@ -27896,7 +28347,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_SearchController CtorImpl() { if (!needGroupedLog(1)) return (SearchControllerPeer*) 100; @@ -27960,7 +28411,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_SwiperController CtorImpl() { if (!needGroupedLog(1)) return (SwiperControllerPeer*) 100; @@ -28029,7 +28480,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_SwiperContentTransitionProxy CtorImpl() { if (!needGroupedLog(1)) return (SwiperContentTransitionProxyPeer*) 100; @@ -28147,7 +28598,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_IndicatorComponentController CtorImpl() { if (!needGroupedLog(1)) return (IndicatorComponentControllerPeer*) 100; @@ -28197,6 +28648,358 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // IndicatorComponentControllerAccessor + namespace ScaleSymbolEffectAccessor { + void DestroyPeerImpl(ScaleSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ScaleSymbolEffect CtorImpl(const Opt_EffectScope* scope, + const Opt_EffectDirection* direction) + { + if (!needGroupedLog(1)) + return (ScaleSymbolEffectPeer*) 100; + string out("new ScaleSymbolEffect("); + WriteToString(&out, scope); + out.append(", "); + WriteToString(&out, direction); + out.append(") \n"); + out.append("[return (ScaleSymbolEffectPeer*) 100] \n"); + appendGroupedLog(1, out); + return (ScaleSymbolEffectPeer*) 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 GetScopeImpl(ScaleSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getScope("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetScopeImpl(ScaleSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + if (!needGroupedLog(1)) + return; + string out("setScope("); + WriteToString(&out, scope); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_NativePointer GetDirectionImpl(ScaleSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getDirection("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetDirectionImpl(ScaleSymbolEffectPeer* peer, + Ark_EffectDirection direction) + { + if (!needGroupedLog(1)) + return; + string out("setDirection("); + WriteToString(&out, direction); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // ScaleSymbolEffectAccessor + namespace HierarchicalSymbolEffectAccessor { + void DestroyPeerImpl(HierarchicalSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_HierarchicalSymbolEffect CtorImpl(const Opt_EffectFillStyle* fillStyle) + { + if (!needGroupedLog(1)) + return (HierarchicalSymbolEffectPeer*) 100; + string out("new HierarchicalSymbolEffect("); + WriteToString(&out, fillStyle); + out.append(") \n"); + out.append("[return (HierarchicalSymbolEffectPeer*) 100] \n"); + appendGroupedLog(1, out); + return (HierarchicalSymbolEffectPeer*) 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 GetFillStyleImpl(HierarchicalSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getFillStyle("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetFillStyleImpl(HierarchicalSymbolEffectPeer* peer, + Ark_EffectFillStyle fillStyle) + { + if (!needGroupedLog(1)) + return; + string out("setFillStyle("); + WriteToString(&out, fillStyle); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // HierarchicalSymbolEffectAccessor + namespace AppearSymbolEffectAccessor { + void DestroyPeerImpl(AppearSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_AppearSymbolEffect CtorImpl(const Opt_EffectScope* scope) + { + if (!needGroupedLog(1)) + return (AppearSymbolEffectPeer*) 100; + string out("new AppearSymbolEffect("); + WriteToString(&out, scope); + out.append(") \n"); + out.append("[return (AppearSymbolEffectPeer*) 100] \n"); + appendGroupedLog(1, out); + return (AppearSymbolEffectPeer*) 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 GetScopeImpl(AppearSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getScope("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetScopeImpl(AppearSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + if (!needGroupedLog(1)) + return; + string out("setScope("); + WriteToString(&out, scope); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // AppearSymbolEffectAccessor + namespace DisappearSymbolEffectAccessor { + void DestroyPeerImpl(DisappearSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_DisappearSymbolEffect CtorImpl(const Opt_EffectScope* scope) + { + if (!needGroupedLog(1)) + return (DisappearSymbolEffectPeer*) 100; + string out("new DisappearSymbolEffect("); + WriteToString(&out, scope); + out.append(") \n"); + out.append("[return (DisappearSymbolEffectPeer*) 100] \n"); + appendGroupedLog(1, out); + return (DisappearSymbolEffectPeer*) 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 GetScopeImpl(DisappearSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getScope("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetScopeImpl(DisappearSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + if (!needGroupedLog(1)) + return; + string out("setScope("); + WriteToString(&out, scope); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // DisappearSymbolEffectAccessor + namespace BounceSymbolEffectAccessor { + void DestroyPeerImpl(BounceSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_BounceSymbolEffect CtorImpl(const Opt_EffectScope* scope, + const Opt_EffectDirection* direction) + { + if (!needGroupedLog(1)) + return (BounceSymbolEffectPeer*) 100; + string out("new BounceSymbolEffect("); + WriteToString(&out, scope); + out.append(", "); + WriteToString(&out, direction); + out.append(") \n"); + out.append("[return (BounceSymbolEffectPeer*) 100] \n"); + appendGroupedLog(1, out); + return (BounceSymbolEffectPeer*) 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 GetScopeImpl(BounceSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getScope("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetScopeImpl(BounceSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + if (!needGroupedLog(1)) + return; + string out("setScope("); + WriteToString(&out, scope); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_NativePointer GetDirectionImpl(BounceSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getDirection("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetDirectionImpl(BounceSymbolEffectPeer* peer, + Ark_EffectDirection direction) + { + if (!needGroupedLog(1)) + return; + string out("setDirection("); + WriteToString(&out, direction); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // BounceSymbolEffectAccessor + namespace ReplaceSymbolEffectAccessor { + void DestroyPeerImpl(ReplaceSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ReplaceSymbolEffect CtorImpl(const Opt_EffectScope* scope) + { + if (!needGroupedLog(1)) + return (ReplaceSymbolEffectPeer*) 100; + string out("new ReplaceSymbolEffect("); + WriteToString(&out, scope); + out.append(") \n"); + out.append("[return (ReplaceSymbolEffectPeer*) 100] \n"); + appendGroupedLog(1, out); + return (ReplaceSymbolEffectPeer*) 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 GetScopeImpl(ReplaceSymbolEffectPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getScope("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetScopeImpl(ReplaceSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + if (!needGroupedLog(1)) + return; + string out("setScope("); + WriteToString(&out, scope); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // ReplaceSymbolEffectAccessor namespace TabsControllerAccessor { void DestroyPeerImpl(TabsControllerPeer* peer) { @@ -28206,7 +29009,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TabsController CtorImpl() { if (!needGroupedLog(1)) return (TabsControllerPeer*) 100; @@ -28279,7 +29082,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TabContentTransitionProxy CtorImpl() { if (!needGroupedLog(1)) return (TabContentTransitionProxyPeer*) 100; @@ -28357,7 +29160,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextController CtorImpl() { if (!needGroupedLog(1)) return (TextControllerPeer*) 100; @@ -28386,7 +29189,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } void SetStyledStringImpl(TextControllerPeer* peer, - const Ark_StyledString* value) + Ark_StyledString value) { if (!needGroupedLog(1)) return; @@ -28395,15 +29198,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLayoutManagerImpl(TextControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(TextControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getLayoutManager("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // TextControllerAccessor namespace TextAreaControllerAccessor { @@ -28415,7 +29218,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextAreaController CtorImpl() { if (!needGroupedLog(1)) return (TextAreaControllerPeer*) 100; @@ -28479,7 +29282,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextClockController CtorImpl() { if (!needGroupedLog(1)) return (TextClockControllerPeer*) 100; @@ -28525,7 +29328,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextBaseController CtorImpl() { if (!needGroupedLog(1)) return (TextBaseControllerPeer*) 100; @@ -28569,15 +29372,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLayoutManagerImpl(TextBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(TextBaseControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getLayoutManager("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // TextBaseControllerAccessor namespace TextEditControllerExAccessor { @@ -28589,7 +29392,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextEditControllerEx CtorImpl() { if (!needGroupedLog(1)) return (TextEditControllerExPeer*) 100; @@ -28652,12 +29455,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetPreviewTextImpl(TextEditControllerExPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getPreviewText("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // TextEditControllerExAccessor namespace StyledStringControllerAccessor { @@ -28669,7 +29472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_StyledStringController CtorImpl() { if (!needGroupedLog(1)) return (StyledStringControllerPeer*) 100; @@ -28690,7 +29493,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return fnPtr(dummyClassFinalizer); } void SetStyledStringImpl(StyledStringControllerPeer* peer, - const Ark_StyledString* styledString) + Ark_StyledString styledString) { if (!needGroupedLog(1)) return; @@ -28699,15 +29502,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetStyledStringImpl(StyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(StyledStringControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getStyledString("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // StyledStringControllerAccessor namespace LayoutManagerAccessor { @@ -28719,7 +29522,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_LayoutManager CtorImpl() { if (!needGroupedLog(1)) return (LayoutManagerPeer*) 100; @@ -28754,27 +29557,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* y) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getGlyphPositionAtCoordinate("); WriteToString(&out, x); out.append(", "); WriteToString(&out, y); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetLineMetricsImpl(LayoutManagerPeer* peer, const Ark_Number* lineNumber) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getLineMetrics("); WriteToString(&out, lineNumber); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void GetRectsForRangeImpl(LayoutManagerPeer* peer, const Ark_TextRange* range, @@ -28802,7 +29605,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextMenuItemId CtorImpl() { if (!needGroupedLog(1)) return (TextMenuItemIdPeer*) 100; @@ -28822,19 +29625,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer OfImpl(const Ark_ResourceStr* id) + Ark_TextMenuItemId OfImpl(const Ark_ResourceStr* id) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_TextMenuItemId) 300; string out("of("); WriteToString(&out, id); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_TextMenuItemId) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_TextMenuItemId) 300; } Ark_Boolean EqualsImpl(TextMenuItemIdPeer* peer, - const Ark_TextMenuItemId* id) + Ark_TextMenuItemId id) { if (!needGroupedLog(1)) return 0; @@ -28855,7 +29658,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_EditMenuOptions CtorImpl() { if (!needGroupedLog(1)) return (EditMenuOptionsPeer*) 100; @@ -28910,7 +29713,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_SubmitEvent CtorImpl() { if (!needGroupedLog(1)) return (SubmitEventPeer*) 100; @@ -28966,7 +29769,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextInputController CtorImpl() { if (!needGroupedLog(1)) return (TextInputControllerPeer*) 100; @@ -29030,7 +29833,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextPickerDialog CtorImpl() { if (!needGroupedLog(1)) return (TextPickerDialogPeer*) 100; @@ -29069,7 +29872,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextTimerController CtorImpl() { if (!needGroupedLog(1)) return (TextTimerControllerPeer*) 100; @@ -29123,7 +29926,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TimePickerDialog CtorImpl() { if (!needGroupedLog(1)) return (TimePickerDialogPeer*) 100; @@ -29153,6 +29956,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // TimePickerDialogAccessor + namespace ColorFilterAccessor { + void DestroyPeerImpl(ColorFilterPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ColorFilter CtorImpl(const Array_Number* value) + { + if (!needGroupedLog(1)) + return (ColorFilterPeer*) 100; + string out("new ColorFilter("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return (ColorFilterPeer*) 100] \n"); + appendGroupedLog(1, out); + return (ColorFilterPeer*) 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); + } + } // ColorFilterAccessor namespace VideoControllerAccessor { void DestroyPeerImpl(VideoControllerPeer* peer) { @@ -29162,7 +29996,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_VideoController CtorImpl() { if (!needGroupedLog(1)) return (VideoControllerPeer*) 100; @@ -29265,7 +30099,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebKeyboardController CtorImpl() { if (!needGroupedLog(1)) return (WebKeyboardControllerPeer*) 100; @@ -29343,7 +30177,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_FullScreenExitHandler CtorImpl() { if (!needGroupedLog(1)) return (FullScreenExitHandlerPeer*) 100; @@ -29381,7 +30215,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_FileSelectorParam CtorImpl() { if (!needGroupedLog(1)) return (FileSelectorParamPeer*) 100; @@ -29412,12 +30246,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetModeImpl(FileSelectorParamPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getMode("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void GetAcceptTypeImpl(FileSelectorParamPeer* peer) { @@ -29447,7 +30281,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_JsResult CtorImpl() { if (!needGroupedLog(1)) return (JsResultPeer*) 100; @@ -29503,7 +30337,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_FileSelectorResult CtorImpl() { if (!needGroupedLog(1)) return (FileSelectorResultPeer*) 100; @@ -29543,7 +30377,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_HttpAuthHandler CtorImpl() { if (!needGroupedLog(1)) return (HttpAuthHandlerPeer*) 100; @@ -29606,7 +30440,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_SslErrorHandler CtorImpl() { if (!needGroupedLog(1)) return (SslErrorHandlerPeer*) 100; @@ -29652,7 +30486,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ClientAuthenticationHandler CtorImpl() { if (!needGroupedLog(1)) return (ClientAuthenticationHandlerPeer*) 100; @@ -29721,7 +30555,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_PermissionRequest CtorImpl() { if (!needGroupedLog(1)) return (PermissionRequestPeer*) 100; @@ -29785,7 +30619,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ScreenCaptureHandler CtorImpl() { if (!needGroupedLog(1)) return (ScreenCaptureHandlerPeer*) 100; @@ -29841,7 +30675,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_DataResubmissionHandler CtorImpl() { if (!needGroupedLog(1)) return (DataResubmissionHandlerPeer*) 100; @@ -29887,7 +30721,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_ControllerHandler CtorImpl() { if (!needGroupedLog(1)) return (ControllerHandlerPeer*) 100; @@ -29908,7 +30742,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return fnPtr(dummyClassFinalizer); } void SetWebControllerImpl(ControllerHandlerPeer* peer, - const Ark_WebviewController* controller) + Ark_WebviewController controller) { if (!needGroupedLog(1)) return; @@ -29927,7 +30761,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebContextMenuParam CtorImpl() { if (!needGroupedLog(1)) return (WebContextMenuParamPeer*) 100; @@ -30004,12 +30838,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetMediaTypeImpl(WebContextMenuParamPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getMediaType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void GetSelectionTextImpl(WebContextMenuParamPeer* peer) { @@ -30022,22 +30856,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetSourceTypeImpl(WebContextMenuParamPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getSourceType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_NativePointer GetInputFieldTypeImpl(WebContextMenuParamPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getInputFieldType("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } Ark_Boolean IsEditableImpl(WebContextMenuParamPeer* peer) { @@ -30089,7 +30923,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebContextMenuResult CtorImpl() { if (!needGroupedLog(1)) return (WebContextMenuResultPeer*) 100; @@ -30167,10 +31001,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_String* message, - const Ark_String* sourceId, - const Ark_Number* lineNumber, - Ark_MessageLevel messageLevel) + Ark_ConsoleMessage CtorImpl(const Ark_String* message, + const Ark_String* sourceId, + const Ark_Number* lineNumber, + Ark_MessageLevel messageLevel) { if (!needGroupedLog(1)) return (ConsoleMessagePeer*) 100; @@ -30226,12 +31060,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetMessageLevelImpl(ConsoleMessagePeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getMessageLevel("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // ConsoleMessageAccessor namespace WebResourceRequestAccessor { @@ -30243,7 +31077,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebResourceRequest CtorImpl() { if (!needGroupedLog(1)) return (WebResourceRequestPeer*) 100; @@ -30327,7 +31161,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebResourceResponse CtorImpl() { if (!needGroupedLog(1)) return (WebResourceResponsePeer*) 100; @@ -30497,7 +31331,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebResourceError CtorImpl() { if (!needGroupedLog(1)) return (WebResourceErrorPeer*) 100; @@ -30545,7 +31379,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_JsGeolocation CtorImpl() { if (!needGroupedLog(1)) return (JsGeolocationPeer*) 100; @@ -30591,7 +31425,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebCookie CtorImpl() { if (!needGroupedLog(1)) return (WebCookiePeer*) 100; @@ -30637,7 +31471,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_EventResult CtorImpl() { if (!needGroupedLog(1)) return (EventResultPeer*) 100; @@ -30677,7 +31511,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WebController CtorImpl() { if (!needGroupedLog(1)) return (WebControllerPeer*) 100; @@ -30800,12 +31634,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetHitTestImpl(WebControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getHitTest("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void RequestFocusImpl(WebControllerPeer* peer) { @@ -30863,15 +31697,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetCookieManagerImpl(WebControllerPeer* peer) + Ark_WebCookie GetCookieManagerImpl(WebControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getCookieManager("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } } // WebControllerAccessor namespace XComponentControllerAccessor { @@ -30883,7 +31717,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_XComponentController CtorImpl() { if (!needGroupedLog(1)) return (XComponentControllerPeer*) 100; @@ -30914,12 +31748,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetXComponentContextImpl(XComponentControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getXComponentContext("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetXComponentSurfaceSizeImpl(XComponentControllerPeer* peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value) @@ -30944,12 +31778,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getXComponentSurfaceRect("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, const Ark_SurfaceRotationOptions* rotationOptions) @@ -30964,12 +31798,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getXComponentSurfaceRotation("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, const Ark_String* surfaceId) @@ -31035,7 +31869,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_WaterFlowSections CtorImpl() { if (!needGroupedLog(1)) return (WaterFlowSectionsPeer*) 100; @@ -31128,7 +31962,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_UIExtensionProxy CtorImpl() { if (!needGroupedLog(1)) return (UIExtensionProxyPeer*) 100; @@ -31220,8 +32054,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl(const Ark_Union_String_ImageAttachment_CustomSpan* value, - const Opt_Array_StyleOptions* styles) + Ark_StyledString CtorImpl(const Ark_Union_String_ImageAttachment_CustomSpan* value, + const Opt_Array_StyleOptions* styles) { if (!needGroupedLog(1)) return (StyledStringPeer*) 100; @@ -31269,7 +32103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } Ark_Boolean EqualsImpl(StyledStringPeer* peer, - const Ark_StyledString* other) + Ark_StyledString other) { if (!needGroupedLog(1)) return 0; @@ -31280,20 +32114,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer SubStyledStringImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Opt_Number* length) + Ark_StyledString SubStyledStringImpl(StyledStringPeer* peer, + const Ark_Number* start, + const Opt_Number* length) { if (!needGroupedLog(1)) - return 0; + return {}; string out("subStyledString("); WriteToString(&out, start); out.append(", "); WriteToString(&out, length); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } void FromHtmlImpl(const Ark_String* html, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -31307,7 +32141,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ToHtmlImpl(const Ark_StyledString* styledString) + void ToHtmlImpl(Ark_StyledString styledString) { if (!needGroupedLog(1)) return; @@ -31316,7 +32150,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void MarshallingImpl(const Ark_StyledString* styledString) + void MarshallingImpl(Ark_StyledString styledString) { if (!needGroupedLog(1)) return; @@ -31348,8 +32182,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } } // StyledStringAccessor - namespace MutableStyledStringAccessor { - void DestroyPeerImpl(MutableStyledStringPeer* peer) + namespace TextStyle_styled_stringAccessor { + void DestroyPeerImpl(TextStyle_styled_stringPeer* peer) { if (!needGroupedLog(1)) return; @@ -31357,15 +32191,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_TextStyle_styled_string CtorImpl(const Opt_TextStyleInterface* value) { if (!needGroupedLog(1)) - return (MutableStyledStringPeer*) 100; - string out("new MutableStyledString("); + return (TextStyle_styled_stringPeer*) 100; + string out("new TextStyle_styled_string("); + WriteToString(&out, value); out.append(") \n"); - out.append("[return (MutableStyledStringPeer*) 100] \n"); + out.append("[return (TextStyle_styled_stringPeer*) 100] \n"); appendGroupedLog(1, out); - return (MutableStyledStringPeer*) 100; + return (TextStyle_styled_stringPeer*) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31377,147 +32212,98 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReplaceStringImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Ark_String* other) - { - if (!needGroupedLog(1)) - return; - string out("replaceString("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, length); - out.append(", "); - WriteToString(&out, other); - out.append(") \n"); - appendGroupedLog(1, out); - } - void InsertStringImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_String* other) - { - if (!needGroupedLog(1)) - return; - string out("insertString("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, other); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RemoveStringImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length) + void GetFontFamilyImpl(TextStyle_styled_stringPeer* peer) { if (!needGroupedLog(1)) return; - string out("removeString("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, length); + string out("getFontFamily("); out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceStyleImpl(MutableStyledStringPeer* peer, - const Ark_SpanStyle* spanStyle) + Ark_Int32 GetFontSizeImpl(TextStyle_styled_stringPeer* peer) { if (!needGroupedLog(1)) - return; - string out("replaceStyle("); - WriteToString(&out, spanStyle); + return 0; + string out("getFontSize("); out.append(") \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); + return 0; } - void SetStyleImpl(MutableStyledStringPeer* peer, - const Ark_SpanStyle* spanStyle) + Ark_Int32 GetFontWeightImpl(TextStyle_styled_stringPeer* peer) { if (!needGroupedLog(1)) - return; - string out("setStyle("); - WriteToString(&out, spanStyle); + return 0; + string out("getFontWeight("); out.append(") \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); + return 0; } - void RemoveStyleImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - Ark_StyledStringKey styledKey) + Ark_NativePointer GetFontStyleImpl(TextStyle_styled_stringPeer* peer) { if (!needGroupedLog(1)) - return; - string out("removeStyle("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, length); - out.append(", "); - WriteToString(&out, styledKey); + return {}; + string out("getFontStyle("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void RemoveStylesImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length) + } // TextStyle_styled_stringAccessor + namespace DecorationStyleAccessor { + void DestroyPeerImpl(DecorationStylePeer* peer) { if (!needGroupedLog(1)) return; - string out("removeStyles("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, length); + string out("destroyPeer("); out.append(") \n"); appendGroupedLog(1, out); } - void ClearStylesImpl(MutableStyledStringPeer* peer) + Ark_DecorationStyle CtorImpl(const Ark_DecorationStyleInterface* value) { if (!needGroupedLog(1)) - return; - string out("clearStyles("); + return (DecorationStylePeer*) 100; + string out("new DecorationStyle("); + WriteToString(&out, value); out.append(") \n"); + out.append("[return (DecorationStylePeer*) 100] \n"); appendGroupedLog(1, out); + return (DecorationStylePeer*) 100; } - void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Ark_StyledString* other) + Ark_NativePointer GetFinalizerImpl() { if (!needGroupedLog(1)) - return; - string out("replaceStyledString("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, length); - out.append(", "); - WriteToString(&out, other); + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); } - void InsertStyledStringImpl(MutableStyledStringPeer* peer, - const Ark_Number* start, - const Ark_StyledString* other) + Ark_NativePointer GetTypeImpl(DecorationStylePeer* peer) { if (!needGroupedLog(1)) - return; - string out("insertStyledString("); - WriteToString(&out, start); - out.append(", "); - WriteToString(&out, other); + return {}; + string out("getType("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void AppendStyledStringImpl(MutableStyledStringPeer* peer, - const Ark_StyledString* other) + Ark_NativePointer GetStyleImpl(DecorationStylePeer* peer) { if (!needGroupedLog(1)) - return; - string out("appendStyledString("); - WriteToString(&out, other); + return {}; + string out("getStyle("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - } // MutableStyledStringAccessor - namespace CustomSpanAccessor { - void DestroyPeerImpl(CustomSpanPeer* peer) + } // DecorationStyleAccessor + namespace BaselineOffsetStyleAccessor { + void DestroyPeerImpl(BaselineOffsetStylePeer* peer) { if (!needGroupedLog(1)) return; @@ -31525,15 +32311,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_BaselineOffsetStyle CtorImpl(Ark_LengthMetrics value) { if (!needGroupedLog(1)) - return (CustomSpanPeer*) 100; - string out("new CustomSpan("); + return (BaselineOffsetStylePeer*) 100; + string out("new BaselineOffsetStyle("); + WriteToString(&out, value); out.append(") \n"); - out.append("[return (CustomSpanPeer*) 100] \n"); + out.append("[return (BaselineOffsetStylePeer*) 100] \n"); appendGroupedLog(1, out); - return (CustomSpanPeer*) 100; + return (BaselineOffsetStylePeer*) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31545,42 +32332,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer OnMeasureImpl(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo) + Ark_Int32 GetBaselineOffsetImpl(BaselineOffsetStylePeer* peer) { if (!needGroupedLog(1)) return 0; - string out("onMeasure("); - WriteToString(&out, measureInfo); + string out("getBaselineOffset("); out.append(") \n"); out.append("[return 0] \n"); appendGroupedLog(1, out); return 0; } - void OnDrawImpl(CustomSpanPeer* peer, - const Ark_DrawContext* context, - const Ark_CustomSpanDrawInfo* drawInfo) - { - if (!needGroupedLog(1)) - return; - string out("onDraw("); - WriteToString(&out, context); - out.append(", "); - WriteToString(&out, drawInfo); - out.append(") \n"); - appendGroupedLog(1, out); - } - void InvalidateImpl(CustomSpanPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("invalidate("); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // CustomSpanAccessor - namespace LinearIndicatorControllerAccessor { - void DestroyPeerImpl(LinearIndicatorControllerPeer* peer) + } // BaselineOffsetStyleAccessor + namespace LetterSpacingStyleAccessor { + void DestroyPeerImpl(LetterSpacingStylePeer* peer) { if (!needGroupedLog(1)) return; @@ -31588,15 +32352,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_LetterSpacingStyle CtorImpl(Ark_LengthMetrics value) { if (!needGroupedLog(1)) - return (LinearIndicatorControllerPeer*) 100; - string out("new LinearIndicatorController("); + return (LetterSpacingStylePeer*) 100; + string out("new LetterSpacingStyle("); + WriteToString(&out, value); out.append(") \n"); - out.append("[return (LinearIndicatorControllerPeer*) 100] \n"); + out.append("[return (LetterSpacingStylePeer*) 100] \n"); appendGroupedLog(1, out); - return (LinearIndicatorControllerPeer*) 100; + return (LetterSpacingStylePeer*) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31608,48 +32373,50 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetProgressImpl(LinearIndicatorControllerPeer* peer, - const Ark_Number* index, - const Ark_Number* progress) + Ark_Int32 GetLetterSpacingImpl(LetterSpacingStylePeer* peer) { if (!needGroupedLog(1)) - return; - string out("setProgress("); - WriteToString(&out, index); - out.append(", "); - WriteToString(&out, progress); + return 0; + string out("getLetterSpacing("); out.append(") \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); + return 0; } - void StartImpl(LinearIndicatorControllerPeer* peer, - const Opt_LinearIndicatorStartOptions* options) + } // LetterSpacingStyleAccessor + namespace TextShadowStyleAccessor { + void DestroyPeerImpl(TextShadowStylePeer* peer) { if (!needGroupedLog(1)) return; - string out("start("); - WriteToString(&out, options); + string out("destroyPeer("); out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(LinearIndicatorControllerPeer* peer) + Ark_TextShadowStyle CtorImpl(const Ark_Union_ShadowOptions_Array_ShadowOptions* value) { if (!needGroupedLog(1)) - return; - string out("pause("); + return (TextShadowStylePeer*) 100; + string out("new TextShadowStyle("); + WriteToString(&out, value); out.append(") \n"); + out.append("[return (TextShadowStylePeer*) 100] \n"); appendGroupedLog(1, out); + return (TextShadowStylePeer*) 100; } - void StopImpl(LinearIndicatorControllerPeer* peer) + Ark_NativePointer GetFinalizerImpl() { if (!needGroupedLog(1)) - return; - string out("stop("); + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); } - } // LinearIndicatorControllerAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(GlobalScope_inspectorPeer* peer) + } // TextShadowStyleAccessor + namespace BackgroundColorStyleAccessor { + void DestroyPeerImpl(BackgroundColorStylePeer* peer) { if (!needGroupedLog(1)) return; @@ -31657,15 +32424,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_BackgroundColorStyle CtorImpl(const Ark_TextBackgroundStyle* textBackgroundStyle) { if (!needGroupedLog(1)) - return (GlobalScope_inspectorPeer*) 100; - string out("new GlobalScope_inspector("); + return (BackgroundColorStylePeer*) 100; + string out("new BackgroundColorStyle("); + WriteToString(&out, textBackgroundStyle); out.append(") \n"); - out.append("[return (GlobalScope_inspectorPeer*) 100] \n"); + out.append("[return (BackgroundColorStylePeer*) 100] \n"); appendGroupedLog(1, out); - return (GlobalScope_inspectorPeer*) 100; + return (BackgroundColorStylePeer*) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31677,26 +32445,579 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } + } // BackgroundColorStyleAccessor + namespace GestureStyleAccessor { + void DestroyPeerImpl(GestureStylePeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_GestureStyle CtorImpl(const Opt_GestureStyleInterface* value) + { + if (!needGroupedLog(1)) + return (GestureStylePeer*) 100; + string out("new GestureStyle("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return (GestureStylePeer*) 100] \n"); + appendGroupedLog(1, out); + return (GestureStylePeer*) 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); + } + } // GestureStyleAccessor + namespace ParagraphStyleAccessor { + void DestroyPeerImpl(ParagraphStylePeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ParagraphStyle CtorImpl(const Opt_ParagraphStyleInterface* value) + { + if (!needGroupedLog(1)) + return (ParagraphStylePeer*) 100; + string out("new ParagraphStyle("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return (ParagraphStylePeer*) 100] \n"); + appendGroupedLog(1, out); + return (ParagraphStylePeer*) 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 GetTextAlignImpl(ParagraphStylePeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getTextAlign("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + Ark_Int32 GetTextIndentImpl(ParagraphStylePeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getTextIndent("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + Ark_Int32 GetMaxLinesImpl(ParagraphStylePeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getMaxLines("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + Ark_NativePointer GetOverflowImpl(ParagraphStylePeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getOverflow("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + Ark_NativePointer GetWordBreakImpl(ParagraphStylePeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getWordBreak("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + } // ParagraphStyleAccessor + namespace LineHeightStyleAccessor { + void DestroyPeerImpl(LineHeightStylePeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_LineHeightStyle CtorImpl(Ark_LengthMetrics lineHeight) + { + if (!needGroupedLog(1)) + return (LineHeightStylePeer*) 100; + string out("new LineHeightStyle("); + WriteToString(&out, lineHeight); + out.append(") \n"); + out.append("[return (LineHeightStylePeer*) 100] \n"); + appendGroupedLog(1, out); + return (LineHeightStylePeer*) 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_Int32 GetLineHeightImpl(LineHeightStylePeer* peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getLineHeight("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + } // LineHeightStyleAccessor + namespace UrlStyleAccessor { + void DestroyPeerImpl(UrlStylePeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_UrlStyle CtorImpl(const Ark_String* url) + { + if (!needGroupedLog(1)) + return (UrlStylePeer*) 100; + string out("new UrlStyle("); + WriteToString(&out, url); + out.append(") \n"); + out.append("[return (UrlStylePeer*) 100] \n"); + appendGroupedLog(1, out); + return (UrlStylePeer*) 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 GetUrlImpl(UrlStylePeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("getUrl("); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // UrlStyleAccessor + namespace MutableStyledStringAccessor { + void DestroyPeerImpl(MutableStyledStringPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_MutableStyledString CtorImpl() + { + if (!needGroupedLog(1)) + return (MutableStyledStringPeer*) 100; + string out("new MutableStyledString("); + out.append(") \n"); + out.append("[return (MutableStyledStringPeer*) 100] \n"); + appendGroupedLog(1, out); + return (MutableStyledStringPeer*) 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 ReplaceStringImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + const Ark_Number* length, + const Ark_String* other) + { + if (!needGroupedLog(1)) + return; + string out("replaceString("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, length); + out.append(", "); + WriteToString(&out, other); + out.append(") \n"); + appendGroupedLog(1, out); + } + void InsertStringImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + const Ark_String* other) + { + if (!needGroupedLog(1)) + return; + string out("insertString("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, other); + out.append(") \n"); + appendGroupedLog(1, out); + } + void RemoveStringImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + const Ark_Number* length) + { + if (!needGroupedLog(1)) + return; + string out("removeString("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, length); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ReplaceStyleImpl(MutableStyledStringPeer* peer, + const Ark_SpanStyle* spanStyle) + { + if (!needGroupedLog(1)) + return; + string out("replaceStyle("); + WriteToString(&out, spanStyle); + out.append(") \n"); + appendGroupedLog(1, out); + } + void SetStyleImpl(MutableStyledStringPeer* peer, + const Ark_SpanStyle* spanStyle) + { + if (!needGroupedLog(1)) + return; + string out("setStyle("); + WriteToString(&out, spanStyle); + out.append(") \n"); + appendGroupedLog(1, out); + } + void RemoveStyleImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + const Ark_Number* length, + Ark_StyledStringKey styledKey) + { + if (!needGroupedLog(1)) + return; + string out("removeStyle("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, length); + out.append(", "); + WriteToString(&out, styledKey); + out.append(") \n"); + appendGroupedLog(1, out); + } + void RemoveStylesImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + const Ark_Number* length) + { + if (!needGroupedLog(1)) + return; + string out("removeStyles("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, length); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ClearStylesImpl(MutableStyledStringPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("clearStyles("); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + const Ark_Number* length, + Ark_StyledString other) + { + if (!needGroupedLog(1)) + return; + string out("replaceStyledString("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, length); + out.append(", "); + WriteToString(&out, other); + out.append(") \n"); + appendGroupedLog(1, out); + } + void InsertStyledStringImpl(MutableStyledStringPeer* peer, + const Ark_Number* start, + Ark_StyledString other) + { + if (!needGroupedLog(1)) + return; + string out("insertStyledString("); + WriteToString(&out, start); + out.append(", "); + WriteToString(&out, other); + out.append(") \n"); + appendGroupedLog(1, out); + } + void AppendStyledStringImpl(MutableStyledStringPeer* peer, + Ark_StyledString other) + { + if (!needGroupedLog(1)) + return; + string out("appendStyledString("); + WriteToString(&out, other); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // MutableStyledStringAccessor + namespace ImageAttachmentAccessor { + void DestroyPeerImpl(ImageAttachmentPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ImageAttachment CtorImpl(const Ark_ImageAttachmentInterface* value) + { + if (!needGroupedLog(1)) + return (ImageAttachmentPeer*) 100; + string out("new ImageAttachment("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return (ImageAttachmentPeer*) 100] \n"); + appendGroupedLog(1, out); + return (ImageAttachmentPeer*) 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 GetVerticalAlignImpl(ImageAttachmentPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getVerticalAlign("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + Ark_NativePointer GetObjectFitImpl(ImageAttachmentPeer* peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getObjectFit("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + } // ImageAttachmentAccessor + namespace CustomSpanAccessor { + void DestroyPeerImpl(CustomSpanPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_CustomSpan CtorImpl() + { + if (!needGroupedLog(1)) + return (CustomSpanPeer*) 100; + string out("new CustomSpan("); + out.append(") \n"); + out.append("[return (CustomSpanPeer*) 100] \n"); + appendGroupedLog(1, out); + return (CustomSpanPeer*) 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 OnMeasureImpl(CustomSpanPeer* peer, + const Ark_CustomSpanMeasureInfo* measureInfo) + { + if (!needGroupedLog(1)) + return {}; + string out("onMeasure("); + WriteToString(&out, measureInfo); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void OnDrawImpl(CustomSpanPeer* peer, + const Ark_DrawContext* context, + const Ark_CustomSpanDrawInfo* drawInfo) + { + if (!needGroupedLog(1)) + return; + string out("onDraw("); + WriteToString(&out, context); + out.append(", "); + WriteToString(&out, drawInfo); + out.append(") \n"); + appendGroupedLog(1, out); + } + void InvalidateImpl(CustomSpanPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("invalidate("); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // CustomSpanAccessor + namespace LinearIndicatorControllerAccessor { + void DestroyPeerImpl(LinearIndicatorControllerPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_LinearIndicatorController CtorImpl() + { + if (!needGroupedLog(1)) + return (LinearIndicatorControllerPeer*) 100; + string out("new LinearIndicatorController("); + out.append(") \n"); + out.append("[return (LinearIndicatorControllerPeer*) 100] \n"); + appendGroupedLog(1, out); + return (LinearIndicatorControllerPeer*) 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 SetProgressImpl(LinearIndicatorControllerPeer* peer, + const Ark_Number* index, + const Ark_Number* progress) + { + if (!needGroupedLog(1)) + return; + string out("setProgress("); + WriteToString(&out, index); + out.append(", "); + WriteToString(&out, progress); + out.append(") \n"); + appendGroupedLog(1, out); + } + void StartImpl(LinearIndicatorControllerPeer* peer, + const Opt_LinearIndicatorStartOptions* options) + { + if (!needGroupedLog(1)) + return; + string out("start("); + WriteToString(&out, options); + out.append(") \n"); + appendGroupedLog(1, out); + } + void PauseImpl(LinearIndicatorControllerPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("pause("); + out.append(") \n"); + appendGroupedLog(1, out); + } + void StopImpl(LinearIndicatorControllerPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("stop("); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // LinearIndicatorControllerAccessor + namespace GlobalScope_inspectorAccessor { + void DestroyPeerImpl(GlobalScope_inspectorPeer* peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } Ark_NativePointer GetInspectorNodesImpl() { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_NativePointer) 300; string out("getInspectorNodes("); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_NativePointer) 300; } Ark_NativePointer GetInspectorNodeByIdImpl(const Ark_Number* id) { if (!needGroupedLog(1)) - return (void*) 300; + return (Ark_NativePointer) 300; string out("getInspectorNodeById("); WriteToString(&out, id); out.append(") \n"); - out.append("[return (void*) 300] \n"); + out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (void*) 300; + return (Ark_NativePointer) 300; } void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) { @@ -31735,6 +33056,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { AnimationExtenderAccessor::OpenImplicitAnimationImpl, AnimationExtenderAccessor::CloseImplicitAnimationImpl, AnimationExtenderAccessor::StartDoubleAnimationImpl, + AnimationExtenderAccessor::AnimationTranslateImpl, }; return &AnimationExtenderAccessorImpl; } @@ -31955,6 +33277,58 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct AlertDialogPeer { virtual ~AlertDialogPeer() = default; }; + const GENERATED_ArkUISpringPropAccessor* GetSpringPropAccessor() + { + static const GENERATED_ArkUISpringPropAccessor SpringPropAccessorImpl { + SpringPropAccessor::DestroyPeerImpl, + SpringPropAccessor::CtorImpl, + SpringPropAccessor::GetFinalizerImpl, + }; + return &SpringPropAccessorImpl; + } + + struct SpringPropPeer { + virtual ~SpringPropPeer() = default; + }; + const GENERATED_ArkUISpringMotionAccessor* GetSpringMotionAccessor() + { + static const GENERATED_ArkUISpringMotionAccessor SpringMotionAccessorImpl { + SpringMotionAccessor::DestroyPeerImpl, + SpringMotionAccessor::CtorImpl, + SpringMotionAccessor::GetFinalizerImpl, + }; + return &SpringMotionAccessorImpl; + } + + struct SpringMotionPeer { + virtual ~SpringMotionPeer() = default; + }; + const GENERATED_ArkUIFrictionMotionAccessor* GetFrictionMotionAccessor() + { + static const GENERATED_ArkUIFrictionMotionAccessor FrictionMotionAccessorImpl { + FrictionMotionAccessor::DestroyPeerImpl, + FrictionMotionAccessor::CtorImpl, + FrictionMotionAccessor::GetFinalizerImpl, + }; + return &FrictionMotionAccessorImpl; + } + + struct FrictionMotionPeer { + virtual ~FrictionMotionPeer() = default; + }; + const GENERATED_ArkUIScrollMotionAccessor* GetScrollMotionAccessor() + { + static const GENERATED_ArkUIScrollMotionAccessor ScrollMotionAccessorImpl { + ScrollMotionAccessor::DestroyPeerImpl, + ScrollMotionAccessor::CtorImpl, + ScrollMotionAccessor::GetFinalizerImpl, + }; + return &ScrollMotionAccessorImpl; + } + + struct ScrollMotionPeer { + virtual ~ScrollMotionPeer() = default; + }; const GENERATED_ArkUICalendarControllerAccessor* GetCalendarControllerAccessor() { static const GENERATED_ArkUICalendarControllerAccessor CalendarControllerAccessorImpl { @@ -32064,6 +33438,36 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct ImageBitmapPeer { virtual ~ImageBitmapPeer() = default; }; + const GENERATED_ArkUIImageDataAccessor* GetImageDataAccessor() + { + static const GENERATED_ArkUIImageDataAccessor ImageDataAccessorImpl { + ImageDataAccessor::DestroyPeerImpl, + ImageDataAccessor::CtorImpl, + ImageDataAccessor::GetFinalizerImpl, + ImageDataAccessor::GetHeightImpl, + ImageDataAccessor::GetWidthImpl, + }; + return &ImageDataAccessorImpl; + } + + struct ImageDataPeer { + virtual ~ImageDataPeer() = default; + }; + const GENERATED_ArkUIRenderingContextSettingsAccessor* GetRenderingContextSettingsAccessor() + { + static const GENERATED_ArkUIRenderingContextSettingsAccessor RenderingContextSettingsAccessorImpl { + RenderingContextSettingsAccessor::DestroyPeerImpl, + RenderingContextSettingsAccessor::CtorImpl, + RenderingContextSettingsAccessor::GetFinalizerImpl, + RenderingContextSettingsAccessor::GetAntialiasImpl, + RenderingContextSettingsAccessor::SetAntialiasImpl, + }; + return &RenderingContextSettingsAccessorImpl; + } + + struct RenderingContextSettingsPeer { + virtual ~RenderingContextSettingsPeer() = default; + }; const GENERATED_ArkUICanvasRendererAccessor* GetCanvasRendererAccessor() { static const GENERATED_ArkUICanvasRendererAccessor CanvasRendererAccessorImpl { @@ -32301,6 +33705,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { ClickEventAccessor::SetXImpl, ClickEventAccessor::GetYImpl, ClickEventAccessor::SetYImpl, + ClickEventAccessor::GetPreventDefaultImpl, ClickEventAccessor::SetPreventDefaultImpl, }; return &ClickEventAccessorImpl; @@ -32315,6 +33720,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { HoverEventAccessor::DestroyPeerImpl, HoverEventAccessor::CtorImpl, HoverEventAccessor::GetFinalizerImpl, + HoverEventAccessor::GetStopPropagationImpl, HoverEventAccessor::SetStopPropagationImpl, }; return &HoverEventAccessorImpl; @@ -32349,6 +33755,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { MouseEventAccessor::SetXImpl, MouseEventAccessor::GetYImpl, MouseEventAccessor::SetYImpl, + MouseEventAccessor::GetStopPropagationImpl, MouseEventAccessor::SetStopPropagationImpl, }; return &MouseEventAccessorImpl; @@ -32395,7 +33802,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { TouchEventAccessor::SetTypeImpl, TouchEventAccessor::SetTouchesImpl, TouchEventAccessor::SetChangedTouchesImpl, + TouchEventAccessor::GetStopPropagationImpl, TouchEventAccessor::SetStopPropagationImpl, + TouchEventAccessor::GetPreventDefaultImpl, TouchEventAccessor::SetPreventDefaultImpl, }; return &TouchEventAccessorImpl; @@ -32472,6 +33881,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { KeyEventAccessor::SetMetaKeyImpl, KeyEventAccessor::GetTimestampImpl, KeyEventAccessor::SetTimestampImpl, + KeyEventAccessor::GetStopPropagationImpl, KeyEventAccessor::SetStopPropagationImpl, KeyEventAccessor::SetIntentionCodeImpl, KeyEventAccessor::GetUnicodeImpl, @@ -32619,8 +34029,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::CtorImpl, - GlobalScope_commonAccessor::GetFinalizerImpl, GlobalScope_commonAccessor::GetContextImpl, GlobalScope_commonAccessor::PostCardActionImpl, GlobalScope_commonAccessor::Dollar_rImpl, @@ -32672,6 +34080,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct CustomDialogControllerPeer { virtual ~CustomDialogControllerPeer() = default; }; + const GENERATED_ArkUILinearGradientAccessor* GetLinearGradientAccessor() + { + static const GENERATED_ArkUILinearGradientAccessor LinearGradientAccessorImpl { + LinearGradientAccessor::DestroyPeerImpl, + LinearGradientAccessor::CtorImpl, + LinearGradientAccessor::GetFinalizerImpl, + }; + return &LinearGradientAccessorImpl; + } + + struct LinearGradientPeer { + virtual ~LinearGradientPeer() = default; + }; const GENERATED_ArkUIDatePickerDialogAccessor* GetDatePickerDialogAccessor() { static const GENERATED_ArkUIDatePickerDialogAccessor DatePickerDialogAccessorImpl { @@ -33000,6 +34421,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct NavDestinationContextPeer { virtual ~NavDestinationContextPeer() = default; }; + const GENERATED_ArkUINavPathInfoAccessor* GetNavPathInfoAccessor() + { + static const GENERATED_ArkUINavPathInfoAccessor NavPathInfoAccessorImpl { + NavPathInfoAccessor::DestroyPeerImpl, + NavPathInfoAccessor::CtorImpl, + NavPathInfoAccessor::GetFinalizerImpl, + NavPathInfoAccessor::GetNameImpl, + NavPathInfoAccessor::SetNameImpl, + NavPathInfoAccessor::SetParamImpl, + NavPathInfoAccessor::GetOnPopImpl, + NavPathInfoAccessor::SetOnPopImpl, + NavPathInfoAccessor::GetIsEntryImpl, + NavPathInfoAccessor::SetIsEntryImpl, + }; + return &NavPathInfoAccessorImpl; + } + + struct NavPathInfoPeer { + virtual ~NavPathInfoPeer() = default; + }; const GENERATED_ArkUINavPathStackAccessor* GetNavPathStackAccessor() { static const GENERATED_ArkUINavPathStackAccessor NavPathStackAccessorImpl { @@ -33240,6 +34681,100 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct IndicatorComponentControllerPeer { virtual ~IndicatorComponentControllerPeer() = default; }; + const GENERATED_ArkUIScaleSymbolEffectAccessor* GetScaleSymbolEffectAccessor() + { + static const GENERATED_ArkUIScaleSymbolEffectAccessor ScaleSymbolEffectAccessorImpl { + ScaleSymbolEffectAccessor::DestroyPeerImpl, + ScaleSymbolEffectAccessor::CtorImpl, + ScaleSymbolEffectAccessor::GetFinalizerImpl, + ScaleSymbolEffectAccessor::GetScopeImpl, + ScaleSymbolEffectAccessor::SetScopeImpl, + ScaleSymbolEffectAccessor::GetDirectionImpl, + ScaleSymbolEffectAccessor::SetDirectionImpl, + }; + return &ScaleSymbolEffectAccessorImpl; + } + + struct ScaleSymbolEffectPeer { + virtual ~ScaleSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIHierarchicalSymbolEffectAccessor* GetHierarchicalSymbolEffectAccessor() + { + static const GENERATED_ArkUIHierarchicalSymbolEffectAccessor HierarchicalSymbolEffectAccessorImpl { + HierarchicalSymbolEffectAccessor::DestroyPeerImpl, + HierarchicalSymbolEffectAccessor::CtorImpl, + HierarchicalSymbolEffectAccessor::GetFinalizerImpl, + HierarchicalSymbolEffectAccessor::GetFillStyleImpl, + HierarchicalSymbolEffectAccessor::SetFillStyleImpl, + }; + return &HierarchicalSymbolEffectAccessorImpl; + } + + struct HierarchicalSymbolEffectPeer { + virtual ~HierarchicalSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIAppearSymbolEffectAccessor* GetAppearSymbolEffectAccessor() + { + static const GENERATED_ArkUIAppearSymbolEffectAccessor AppearSymbolEffectAccessorImpl { + AppearSymbolEffectAccessor::DestroyPeerImpl, + AppearSymbolEffectAccessor::CtorImpl, + AppearSymbolEffectAccessor::GetFinalizerImpl, + AppearSymbolEffectAccessor::GetScopeImpl, + AppearSymbolEffectAccessor::SetScopeImpl, + }; + return &AppearSymbolEffectAccessorImpl; + } + + struct AppearSymbolEffectPeer { + virtual ~AppearSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIDisappearSymbolEffectAccessor* GetDisappearSymbolEffectAccessor() + { + static const GENERATED_ArkUIDisappearSymbolEffectAccessor DisappearSymbolEffectAccessorImpl { + DisappearSymbolEffectAccessor::DestroyPeerImpl, + DisappearSymbolEffectAccessor::CtorImpl, + DisappearSymbolEffectAccessor::GetFinalizerImpl, + DisappearSymbolEffectAccessor::GetScopeImpl, + DisappearSymbolEffectAccessor::SetScopeImpl, + }; + return &DisappearSymbolEffectAccessorImpl; + } + + struct DisappearSymbolEffectPeer { + virtual ~DisappearSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIBounceSymbolEffectAccessor* GetBounceSymbolEffectAccessor() + { + static const GENERATED_ArkUIBounceSymbolEffectAccessor BounceSymbolEffectAccessorImpl { + BounceSymbolEffectAccessor::DestroyPeerImpl, + BounceSymbolEffectAccessor::CtorImpl, + BounceSymbolEffectAccessor::GetFinalizerImpl, + BounceSymbolEffectAccessor::GetScopeImpl, + BounceSymbolEffectAccessor::SetScopeImpl, + BounceSymbolEffectAccessor::GetDirectionImpl, + BounceSymbolEffectAccessor::SetDirectionImpl, + }; + return &BounceSymbolEffectAccessorImpl; + } + + struct BounceSymbolEffectPeer { + virtual ~BounceSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIReplaceSymbolEffectAccessor* GetReplaceSymbolEffectAccessor() + { + static const GENERATED_ArkUIReplaceSymbolEffectAccessor ReplaceSymbolEffectAccessorImpl { + ReplaceSymbolEffectAccessor::DestroyPeerImpl, + ReplaceSymbolEffectAccessor::CtorImpl, + ReplaceSymbolEffectAccessor::GetFinalizerImpl, + ReplaceSymbolEffectAccessor::GetScopeImpl, + ReplaceSymbolEffectAccessor::SetScopeImpl, + }; + return &ReplaceSymbolEffectAccessorImpl; + } + + struct ReplaceSymbolEffectPeer { + virtual ~ReplaceSymbolEffectPeer() = default; + }; const GENERATED_ArkUITabsControllerAccessor* GetTabsControllerAccessor() { static const GENERATED_ArkUITabsControllerAccessor TabsControllerAccessorImpl { @@ -33494,6 +35029,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TimePickerDialogPeer { virtual ~TimePickerDialogPeer() = default; }; + const GENERATED_ArkUIColorFilterAccessor* GetColorFilterAccessor() + { + static const GENERATED_ArkUIColorFilterAccessor ColorFilterAccessorImpl { + ColorFilterAccessor::DestroyPeerImpl, + ColorFilterAccessor::CtorImpl, + ColorFilterAccessor::GetFinalizerImpl, + }; + return &ColorFilterAccessorImpl; + } + + struct ColorFilterPeer { + virtual ~ColorFilterPeer() = default; + }; const GENERATED_ArkUIVideoControllerAccessor* GetVideoControllerAccessor() { static const GENERATED_ArkUIVideoControllerAccessor VideoControllerAccessorImpl { @@ -33988,6 +35536,151 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct StyledStringPeer { virtual ~StyledStringPeer() = default; }; + const GENERATED_ArkUITextStyle_styled_stringAccessor* GetTextStyle_styled_stringAccessor() + { + static const GENERATED_ArkUITextStyle_styled_stringAccessor TextStyle_styled_stringAccessorImpl { + TextStyle_styled_stringAccessor::DestroyPeerImpl, + TextStyle_styled_stringAccessor::CtorImpl, + TextStyle_styled_stringAccessor::GetFinalizerImpl, + TextStyle_styled_stringAccessor::GetFontFamilyImpl, + TextStyle_styled_stringAccessor::GetFontSizeImpl, + TextStyle_styled_stringAccessor::GetFontWeightImpl, + TextStyle_styled_stringAccessor::GetFontStyleImpl, + }; + return &TextStyle_styled_stringAccessorImpl; + } + + struct TextStyle_styled_stringPeer { + virtual ~TextStyle_styled_stringPeer() = default; + }; + const GENERATED_ArkUIDecorationStyleAccessor* GetDecorationStyleAccessor() + { + static const GENERATED_ArkUIDecorationStyleAccessor DecorationStyleAccessorImpl { + DecorationStyleAccessor::DestroyPeerImpl, + DecorationStyleAccessor::CtorImpl, + DecorationStyleAccessor::GetFinalizerImpl, + DecorationStyleAccessor::GetTypeImpl, + DecorationStyleAccessor::GetStyleImpl, + }; + return &DecorationStyleAccessorImpl; + } + + struct DecorationStylePeer { + virtual ~DecorationStylePeer() = default; + }; + const GENERATED_ArkUIBaselineOffsetStyleAccessor* GetBaselineOffsetStyleAccessor() + { + static const GENERATED_ArkUIBaselineOffsetStyleAccessor BaselineOffsetStyleAccessorImpl { + BaselineOffsetStyleAccessor::DestroyPeerImpl, + BaselineOffsetStyleAccessor::CtorImpl, + BaselineOffsetStyleAccessor::GetFinalizerImpl, + BaselineOffsetStyleAccessor::GetBaselineOffsetImpl, + }; + return &BaselineOffsetStyleAccessorImpl; + } + + struct BaselineOffsetStylePeer { + virtual ~BaselineOffsetStylePeer() = default; + }; + const GENERATED_ArkUILetterSpacingStyleAccessor* GetLetterSpacingStyleAccessor() + { + static const GENERATED_ArkUILetterSpacingStyleAccessor LetterSpacingStyleAccessorImpl { + LetterSpacingStyleAccessor::DestroyPeerImpl, + LetterSpacingStyleAccessor::CtorImpl, + LetterSpacingStyleAccessor::GetFinalizerImpl, + LetterSpacingStyleAccessor::GetLetterSpacingImpl, + }; + return &LetterSpacingStyleAccessorImpl; + } + + struct LetterSpacingStylePeer { + virtual ~LetterSpacingStylePeer() = default; + }; + const GENERATED_ArkUITextShadowStyleAccessor* GetTextShadowStyleAccessor() + { + static const GENERATED_ArkUITextShadowStyleAccessor TextShadowStyleAccessorImpl { + TextShadowStyleAccessor::DestroyPeerImpl, + TextShadowStyleAccessor::CtorImpl, + TextShadowStyleAccessor::GetFinalizerImpl, + }; + return &TextShadowStyleAccessorImpl; + } + + struct TextShadowStylePeer { + virtual ~TextShadowStylePeer() = default; + }; + const GENERATED_ArkUIBackgroundColorStyleAccessor* GetBackgroundColorStyleAccessor() + { + static const GENERATED_ArkUIBackgroundColorStyleAccessor BackgroundColorStyleAccessorImpl { + BackgroundColorStyleAccessor::DestroyPeerImpl, + BackgroundColorStyleAccessor::CtorImpl, + BackgroundColorStyleAccessor::GetFinalizerImpl, + }; + return &BackgroundColorStyleAccessorImpl; + } + + struct BackgroundColorStylePeer { + virtual ~BackgroundColorStylePeer() = default; + }; + const GENERATED_ArkUIGestureStyleAccessor* GetGestureStyleAccessor() + { + static const GENERATED_ArkUIGestureStyleAccessor GestureStyleAccessorImpl { + GestureStyleAccessor::DestroyPeerImpl, + GestureStyleAccessor::CtorImpl, + GestureStyleAccessor::GetFinalizerImpl, + }; + return &GestureStyleAccessorImpl; + } + + struct GestureStylePeer { + virtual ~GestureStylePeer() = default; + }; + const GENERATED_ArkUIParagraphStyleAccessor* GetParagraphStyleAccessor() + { + static const GENERATED_ArkUIParagraphStyleAccessor ParagraphStyleAccessorImpl { + ParagraphStyleAccessor::DestroyPeerImpl, + ParagraphStyleAccessor::CtorImpl, + ParagraphStyleAccessor::GetFinalizerImpl, + ParagraphStyleAccessor::GetTextAlignImpl, + ParagraphStyleAccessor::GetTextIndentImpl, + ParagraphStyleAccessor::GetMaxLinesImpl, + ParagraphStyleAccessor::GetOverflowImpl, + ParagraphStyleAccessor::GetWordBreakImpl, + }; + return &ParagraphStyleAccessorImpl; + } + + struct ParagraphStylePeer { + virtual ~ParagraphStylePeer() = default; + }; + const GENERATED_ArkUILineHeightStyleAccessor* GetLineHeightStyleAccessor() + { + static const GENERATED_ArkUILineHeightStyleAccessor LineHeightStyleAccessorImpl { + LineHeightStyleAccessor::DestroyPeerImpl, + LineHeightStyleAccessor::CtorImpl, + LineHeightStyleAccessor::GetFinalizerImpl, + LineHeightStyleAccessor::GetLineHeightImpl, + }; + return &LineHeightStyleAccessorImpl; + } + + struct LineHeightStylePeer { + virtual ~LineHeightStylePeer() = default; + }; + const GENERATED_ArkUIUrlStyleAccessor* GetUrlStyleAccessor() + { + static const GENERATED_ArkUIUrlStyleAccessor UrlStyleAccessorImpl { + UrlStyleAccessor::DestroyPeerImpl, + UrlStyleAccessor::CtorImpl, + UrlStyleAccessor::GetFinalizerImpl, + UrlStyleAccessor::GetUrlImpl, + }; + return &UrlStyleAccessorImpl; + } + + struct UrlStylePeer { + virtual ~UrlStylePeer() = default; + }; const GENERATED_ArkUIMutableStyledStringAccessor* GetMutableStyledStringAccessor() { static const GENERATED_ArkUIMutableStyledStringAccessor MutableStyledStringAccessorImpl { @@ -34012,6 +35705,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct MutableStyledStringPeer { virtual ~MutableStyledStringPeer() = default; }; + const GENERATED_ArkUIImageAttachmentAccessor* GetImageAttachmentAccessor() + { + static const GENERATED_ArkUIImageAttachmentAccessor ImageAttachmentAccessorImpl { + ImageAttachmentAccessor::DestroyPeerImpl, + ImageAttachmentAccessor::CtorImpl, + ImageAttachmentAccessor::GetFinalizerImpl, + ImageAttachmentAccessor::GetVerticalAlignImpl, + ImageAttachmentAccessor::GetObjectFitImpl, + }; + return &ImageAttachmentAccessorImpl; + } + + struct ImageAttachmentPeer { + virtual ~ImageAttachmentPeer() = default; + }; const GENERATED_ArkUICustomSpanAccessor* GetCustomSpanAccessor() { static const GENERATED_ArkUICustomSpanAccessor CustomSpanAccessorImpl { @@ -34049,8 +35757,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::CtorImpl, - GlobalScope_inspectorAccessor::GetFinalizerImpl, GlobalScope_inspectorAccessor::GetInspectorNodesImpl, GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, GlobalScope_inspectorAccessor::RegisterVsyncCallbackImpl, @@ -34080,6 +35786,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetEventEmulatorAccessor, GetActionSheetAccessor, GetAlertDialogAccessor, + GetSpringPropAccessor, + GetSpringMotionAccessor, + GetFrictionMotionAccessor, + GetScrollMotionAccessor, GetCalendarControllerAccessor, GetCalendarPickerDialogAccessor, GetCanvasGradientAccessor, @@ -34087,6 +35797,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetPath2DAccessor, GetCanvasPatternAccessor, GetImageBitmapAccessor, + GetImageDataAccessor, + GetRenderingContextSettingsAccessor, GetCanvasRendererAccessor, GetCanvasRenderingContext2DAccessor, GetDrawingRenderingContextAccessor, @@ -34113,6 +35825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, + GetLinearGradientAccessor, GetDatePickerDialogAccessor, GetBaseGestureEventAccessor, GetTapGestureEventAccessor, @@ -34131,6 +35844,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetListScrollerAccessor, GetMatrix2DAccessor, GetNavDestinationContextAccessor, + GetNavPathInfoAccessor, GetNavPathStackAccessor, GetNavigationTransitionProxyAccessor, GetPatternLockControllerAccessor, @@ -34142,6 +35856,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetSwiperControllerAccessor, GetSwiperContentTransitionProxyAccessor, GetIndicatorComponentControllerAccessor, + GetScaleSymbolEffectAccessor, + GetHierarchicalSymbolEffectAccessor, + GetAppearSymbolEffectAccessor, + GetDisappearSymbolEffectAccessor, + GetBounceSymbolEffectAccessor, + GetReplaceSymbolEffectAccessor, GetTabsControllerAccessor, GetTabContentTransitionProxyAccessor, GetTextControllerAccessor, @@ -34158,6 +35878,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetTextPickerDialogAccessor, GetTextTimerControllerAccessor, GetTimePickerDialogAccessor, + GetColorFilterAccessor, GetVideoControllerAccessor, GetWebKeyboardControllerAccessor, GetFullScreenExitHandlerAccessor, @@ -34185,7 +35906,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetWaterFlowSectionsAccessor, GetUIExtensionProxyAccessor, GetStyledStringAccessor, + GetTextStyle_styled_stringAccessor, + GetDecorationStyleAccessor, + GetBaselineOffsetStyleAccessor, + GetLetterSpacingStyleAccessor, + GetTextShadowStyleAccessor, + GetBackgroundColorStyleAccessor, + GetGestureStyleAccessor, + GetParagraphStyleAccessor, + GetLineHeightStyleAccessor, + GetUrlStyleAccessor, GetMutableStyledStringAccessor, + GetImageAttachmentAccessor, GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, GetGlobalScope_inspectorAccessor, diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index 439e5fcda..6a0985480 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -96,8 +96,7 @@ std::array drawNodeDelay = {}; void CheckType(GENERATED_Ark_NodeType type) { if (type >= MAX_NODE_TYPE) { - LOG("Error: GENERATED_Ark_NodeType value is too big, change MAX_NODE_TYPE accordingly"); - throw "Error"; + INTEROP_FATAL("Error: GENERATED_Ark_NodeType value is too big, change MAX_NODE_TYPE accordingly"); } } @@ -840,7 +839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CtorImpl() + Ark_LazyForEachOps CtorImpl() { if (!needGroupedLog(1)) return (LazyForEachOpsPeer*) 100; @@ -948,21 +947,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RootModifier namespace ComponentRootModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ComponentRootModifier namespace AbilityComponentModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // AbilityComponentModifier namespace AbilityComponentInterfaceModifier { @@ -985,7 +984,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // AlphabetIndexerModifier namespace AlphabetIndexerInterfaceModifier { @@ -1104,8 +1103,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Length* offset) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { } } // AlphabetIndexerAttributeModifier @@ -1113,7 +1112,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // AnimatorModifier namespace AnimatorInterfaceModifier { @@ -1152,7 +1151,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void MotionImpl(Ark_NativePointer node, - const Ark_Union_SpringMotion_FrictionMotion_ScrollMotion* value) + Ark_SpringMotion value) { } void OnStartImpl(Ark_NativePointer node, @@ -1184,7 +1183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // BadgeModifier namespace BadgeInterfaceModifier { @@ -1201,7 +1200,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // BlankModifier namespace BlankInterfaceModifier { @@ -1220,7 +1219,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ButtonModifier namespace ButtonInterfaceModifier { @@ -1291,7 +1290,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CalendarModifier namespace CalendarInterfaceModifier { @@ -1358,7 +1357,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CalendarPickerModifier namespace CalendarPickerInterfaceModifier { @@ -1386,7 +1385,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CanvasModifier namespace CanvasInterfaceModifier { @@ -1414,7 +1413,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CheckboxModifier namespace CheckboxInterfaceModifier { @@ -1452,8 +1451,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_CustomObject* value) { } - void __onChangeEvent_selectImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // CheckboxAttributeModifier @@ -1461,7 +1460,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CheckboxGroupModifier namespace CheckboxGroupInterfaceModifier { @@ -1495,8 +1494,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CheckBoxShape value) { } - void __onChangeEvent_selectAllImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectAllImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // CheckboxGroupAttributeModifier @@ -1504,7 +1503,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CircleModifier namespace CircleInterfaceModifier { @@ -1517,7 +1516,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ColumnModifier namespace ColumnInterfaceModifier { @@ -1548,7 +1547,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ColumnSplitModifier namespace ColumnSplitInterfaceModifier { @@ -1570,7 +1569,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } void WidthImpl(Ark_NativePointer node, const Ark_Length* value) @@ -1797,7 +1796,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Transition1Impl(Ark_NativePointer node, - const Ark_TransitionEffect* effect, + Ark_TransitionEffect effect, const Opt_TransitionFinishCallback* onFinish) { } @@ -2035,11 +2034,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Clip0Impl(Ark_NativePointer node, - Ark_Boolean value) + const Opt_Boolean* value) { } void Clip1Impl(Ark_NativePointer node, - const Ark_Type_CommonMethod_clip_value* value) + const Opt_Boolean* value) { } void ClipShapeImpl(Ark_NativePointer node, @@ -2047,11 +2046,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Mask0Impl(Ark_NativePointer node, - const Ark_ProgressMask* value) + const Opt_ProgressMask* value) { } void Mask1Impl(Ark_NativePointer node, - const Ark_Type_CommonMethod_mask_value* value) + const Opt_ProgressMask* value) { } void MaskShapeImpl(Ark_NativePointer node, @@ -2153,7 +2152,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void GestureModifierImpl(Ark_NativePointer node, - const Ark_GestureModifier* value) + Ark_GestureModifier value) { } void BackgroundBrightnessImpl(Ark_NativePointer node, @@ -2360,7 +2359,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } void StrokeImpl(Ark_NativePointer node, const Ark_ResourceColor* value) @@ -2411,7 +2410,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CommonModifier namespace CommonInterfaceModifier { @@ -2423,7 +2422,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } void ScrollBarImpl(Ark_NativePointer node, Ark_BarState value) @@ -2458,7 +2457,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void OnDidScrollImpl(Ark_NativePointer node, - const Opt_ScrollOnScrollCallback* value) + const ScrollOnScrollCallback* value) { } void OnReachStartImpl(Ark_NativePointer node, @@ -2500,7 +2499,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // Component3DModifier namespace Component3DInterfaceModifier { @@ -2544,7 +2543,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ContainerSpanModifier namespace ContainerSpanInterfaceModifier { @@ -2562,7 +2561,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // CounterModifier namespace CounterInterfaceModifier { @@ -2592,7 +2591,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // DataPanelModifier namespace DataPanelInterfaceModifier { @@ -2607,7 +2606,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void ValueColorsImpl(Ark_NativePointer node, - const Array_Union_ResourceColor_LinearGradient_data_panel* value) + const Array_Union_ResourceColor_LinearGradient* value) { } void TrackBackgroundColorImpl(Ark_NativePointer node, @@ -2631,7 +2630,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // DatePickerModifier namespace DatePickerInterfaceModifier { @@ -2665,8 +2664,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Date_Void* value) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Date_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Date_Void* callback) { } } // DatePickerAttributeModifier @@ -2674,7 +2673,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // DividerModifier namespace DividerInterfaceModifier { @@ -2704,7 +2703,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // EffectComponentModifier namespace EffectComponentInterfaceModifier { @@ -2716,7 +2715,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // EllipseModifier namespace EllipseInterfaceModifier { @@ -2729,7 +2728,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // EmbeddedComponentModifier namespace EmbeddedComponentInterfaceModifier { @@ -2753,7 +2752,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // FlexModifier namespace FlexInterfaceModifier { @@ -2772,7 +2771,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // FlowItemModifier namespace FlowItemInterfaceModifier { @@ -2784,7 +2783,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // FolderStackModifier namespace FolderStackInterfaceModifier { @@ -2819,7 +2818,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // FormComponentModifier namespace FormComponentInterfaceModifier { @@ -2874,7 +2873,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // FormLinkModifier namespace FormLinkInterfaceModifier { @@ -2887,7 +2886,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // GaugeModifier namespace GaugeInterfaceModifier { @@ -2942,7 +2941,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // GridModifier namespace GridInterfaceModifier { @@ -3096,7 +3095,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // GridItemModifier namespace GridItemInterfaceModifier { @@ -3138,8 +3137,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Boolean_Void* value) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // GridItemAttributeModifier @@ -3147,7 +3146,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // GridColModifier namespace GridColInterfaceModifier { @@ -3174,7 +3173,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // GridContainerModifier namespace GridContainerInterfaceModifier { @@ -3187,7 +3186,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // GridRowModifier namespace GridRowInterfaceModifier { @@ -3210,7 +3209,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // HyperlinkModifier namespace HyperlinkInterfaceModifier { @@ -3230,7 +3229,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ImageModifier namespace ImageInterfaceModifier { @@ -3354,7 +3353,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ImageAnimatorModifier namespace ImageAnimatorInterfaceModifier { @@ -3420,7 +3419,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ImageSpanModifier namespace ImageSpanInterfaceModifier { @@ -3451,7 +3450,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void AltImpl(Ark_NativePointer node, - const Ark_PixelMap* value) + Ark_PixelMap value) { } } // ImageSpanAttributeModifier @@ -3459,7 +3458,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // LineModifier namespace LineInterfaceModifier { @@ -3482,7 +3481,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ListModifier namespace ListInterfaceModifier { @@ -3562,7 +3561,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void ChildrenMainSizeImpl(Ark_NativePointer node, - const Ark_ChildrenMainSize* value) + Ark_ChildrenMainSize value) { } void MaintainVisibleContentPositionImpl(Ark_NativePointer node, @@ -3644,7 +3643,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ListItemModifier namespace ListItemInterfaceModifier { @@ -3682,8 +3681,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Boolean_Void* value) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // ListItemAttributeModifier @@ -3691,7 +3690,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ListItemGroupModifier namespace ListItemGroupInterfaceModifier { @@ -3706,7 +3705,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void ChildrenMainSizeImpl(Ark_NativePointer node, - const Ark_ChildrenMainSize* value) + Ark_ChildrenMainSize value) { } } // ListItemGroupAttributeModifier @@ -3714,7 +3713,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // LoadingProgressModifier namespace LoadingProgressInterfaceModifier { @@ -3740,7 +3739,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // LocationButtonModifier namespace LocationButtonInterfaceModifier { @@ -3762,7 +3761,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // MarqueeModifier namespace MarqueeInterfaceModifier { @@ -3813,7 +3812,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // MediaCachedImageModifier namespace MediaCachedImageInterfaceModifier { @@ -3826,7 +3825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // MenuModifier namespace MenuInterfaceModifier { @@ -3868,7 +3867,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // MenuItemModifier namespace MenuItemInterfaceModifier { @@ -3906,8 +3905,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_ResourceColor* value) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // MenuItemAttributeModifier @@ -3915,7 +3914,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // MenuItemGroupModifier namespace MenuItemGroupInterfaceModifier { @@ -3928,7 +3927,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // NavDestinationModifier namespace NavDestinationInterfaceModifier { @@ -4027,7 +4026,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // NavRouterModifier namespace NavRouterInterfaceModifier { @@ -4053,7 +4052,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // NavigatorModifier namespace NavigatorInterfaceModifier { @@ -4087,7 +4086,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // NodeContainerModifier namespace NodeContainerInterfaceModifier { @@ -4100,7 +4099,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PanelModifier namespace PanelInterfaceModifier { @@ -4158,8 +4157,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Number_Void* value) { } - void __onChangeEvent_modeImpl(Ark_NativePointer node, - const Callback_PanelMode_Void* callback) + void _onChangeEvent_modeImpl(Ark_NativePointer node, + const Callback_PanelMode_Void* callback) { } } // PanelAttributeModifier @@ -4167,7 +4166,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PasteButtonModifier namespace PasteButtonInterfaceModifier { @@ -4189,7 +4188,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PathModifier namespace PathInterfaceModifier { @@ -4208,7 +4207,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PatternLockModifier namespace PatternLockInterfaceModifier { @@ -4271,7 +4270,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PluginComponentModifier namespace PluginComponentInterfaceModifier { @@ -4294,7 +4293,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PolygonModifier namespace PolygonInterfaceModifier { @@ -4313,7 +4312,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // PolylineModifier namespace PolylineInterfaceModifier { @@ -4332,7 +4331,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ProgressModifier namespace ProgressInterfaceModifier { @@ -4347,7 +4346,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void ColorImpl(Ark_NativePointer node, - const Ark_Union_ResourceColor_LinearGradient_common* value) + const Ark_Union_ResourceColor_LinearGradient* value) { } void StyleImpl(Ark_NativePointer node, @@ -4367,7 +4366,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // QRCodeModifier namespace QRCodeInterfaceModifier { @@ -4394,7 +4393,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RadioModifier namespace RadioInterfaceModifier { @@ -4420,8 +4419,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_CustomObject* value) { } - void __onChangeEvent_checkedImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_checkedImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // RadioAttributeModifier @@ -4429,7 +4428,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RatingModifier namespace RatingInterfaceModifier { @@ -4459,8 +4458,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_CustomObject* value) { } - void __onChangeEvent_ratingImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_ratingImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { } } // RatingAttributeModifier @@ -4468,7 +4467,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RectModifier namespace RectInterfaceModifier { @@ -4495,7 +4494,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RefreshModifier namespace RefreshInterfaceModifier { @@ -4529,8 +4528,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Number* value) { } - void __onChangeEvent_refreshingImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_refreshingImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // RefreshAttributeModifier @@ -4538,7 +4537,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RelativeContainerModifier namespace RelativeContainerInterfaceModifier { @@ -4564,7 +4563,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RichEditorModifier namespace RichEditorInterfaceModifier { @@ -4667,7 +4666,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { } void EnableKeyboardOnFocusImpl(Ark_NativePointer node, @@ -4704,7 +4703,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RichTextModifier namespace RichTextInterfaceModifier { @@ -4727,7 +4726,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RootSceneModifier namespace RootSceneInterfaceModifier { @@ -4740,7 +4739,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RowModifier namespace RowInterfaceModifier { @@ -4771,7 +4770,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RowSplitModifier namespace RowSplitInterfaceModifier { @@ -4789,7 +4788,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SaveButtonModifier namespace SaveButtonInterfaceModifier { @@ -4811,7 +4810,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ScreenModifier namespace ScreenInterfaceModifier { @@ -4824,7 +4823,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ScrollModifier namespace ScrollInterfaceModifier { @@ -4847,7 +4846,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void OnDidScrollImpl(Ark_NativePointer node, - const Opt_ScrollOnScrollCallback* value) + const ScrollOnScrollCallback* value) { } void OnScrollEdgeImpl(Ark_NativePointer node, @@ -4916,7 +4915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ScrollBarModifier namespace ScrollBarInterfaceModifier { @@ -4935,7 +4934,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SearchModifier namespace SearchInterfaceModifier { @@ -5086,7 +5085,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { } void EnablePreviewTextImpl(Ark_NativePointer node, @@ -5112,8 +5111,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_KeyboardOptions* options) { } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_String_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_String_Void* callback) { } } // SearchAttributeModifier @@ -5121,7 +5120,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } void IconSizeImpl(Ark_NativePointer node, const Ark_Length* value) @@ -5220,7 +5219,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SelectModifier namespace SelectInterfaceModifier { @@ -5315,12 +5314,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Offset* offset) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Union_Number_Resource_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Union_Number_Resource_Void* callback) { } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback) { } } // SelectAttributeModifier @@ -5328,12 +5327,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ShapeModifier namespace ShapeInterfaceModifier { void SetShapeOptions0Impl(Ark_NativePointer node, - const Ark_PixelMap* value) + Ark_PixelMap value) { } void SetShapeOptions1Impl(Ark_NativePointer node) @@ -5400,7 +5399,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SliderModifier namespace SliderInterfaceModifier { @@ -5415,7 +5414,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void TrackColorImpl(Ark_NativePointer node, - const Ark_Union_ResourceColor_LinearGradient_common* value) + const Ark_Union_ResourceColor_LinearGradient* value) { } void SelectedColorImpl(Ark_NativePointer node, @@ -5495,8 +5494,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_ResourceStr* content) { } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { } } // SliderAttributeModifier @@ -5504,14 +5503,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } void TextBackgroundStyleImpl(Ark_NativePointer node, const Ark_TextBackgroundStyle* value) { } void BaselineOffsetImpl(Ark_NativePointer node, - const Ark_LengthMetrics* value) + Ark_LengthMetrics value) { } } // BaseSpanModifier @@ -5519,7 +5518,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SpanModifier namespace SpanInterfaceModifier { @@ -5578,7 +5577,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // StackModifier namespace StackInterfaceModifier { @@ -5601,7 +5600,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // StepperModifier namespace StepperInterfaceModifier { @@ -5631,8 +5630,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Number_Number_Void* value) { } - void __onChangeEvent_indexImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_indexImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { } } // StepperAttributeModifier @@ -5640,7 +5639,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // StepperItemModifier namespace StepperItemInterfaceModifier { @@ -5666,7 +5665,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SwiperModifier namespace SwiperInterfaceModifier { @@ -5693,7 +5692,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Indicator1Impl(Ark_NativePointer node, - const Ark_IndicatorComponentController* value) + Ark_IndicatorComponentController value) { } void LoopImpl(Ark_NativePointer node, @@ -5788,8 +5787,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* ignoreBlank) { } - void __onChangeEvent_indexImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_indexImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { } } // SwiperAttributeModifier @@ -5797,7 +5796,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // IndicatorComponentModifier namespace IndicatorComponentInterfaceModifier { @@ -5836,7 +5835,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SymbolGlyphModifier namespace SymbolGlyphInterfaceModifier { @@ -5881,7 +5880,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SymbolSpanModifier namespace SymbolSpanInterfaceModifier { @@ -5916,7 +5915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TabsModifier namespace TabsInterfaceModifier { @@ -6032,8 +6031,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_ScrollableBarModeOptions* options) { } - void __onChangeEvent_indexImpl(Ark_NativePointer node, - const Callback_Number_Void* callback) + void _onChangeEvent_indexImpl(Ark_NativePointer node, + const Callback_Number_Void* callback) { } } // TabsAttributeModifier @@ -6041,7 +6040,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TabContentModifier namespace TabContentInterfaceModifier { @@ -6071,7 +6070,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TextModifier namespace TextInterfaceModifier { @@ -6129,7 +6128,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void LineSpacingImpl(Ark_NativePointer node, - const Ark_LengthMetrics* value) + Ark_LengthMetrics value) { } void TextAlignImpl(Ark_NativePointer node, @@ -6237,7 +6236,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { } void HalfLeadingImpl(Ark_NativePointer node, @@ -6265,7 +6264,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TextAreaModifier namespace TextAreaInterfaceModifier { @@ -6424,7 +6423,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void LineSpacingImpl(Ark_NativePointer node, - const Ark_LengthMetrics* value) + Ark_LengthMetrics value) { } void LineHeightImpl(Ark_NativePointer node, @@ -6464,7 +6463,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { } void EnablePreviewTextImpl(Ark_NativePointer node, @@ -6490,8 +6489,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_KeyboardOptions* options) { } - void __onChangeEvent_textImpl(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback) + void _onChangeEvent_textImpl(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback) { } } // TextAreaAttributeModifier @@ -6499,7 +6498,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TextClockModifier namespace TextClockInterfaceModifier { @@ -6558,7 +6557,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TextInputModifier namespace TextInputInterfaceModifier { @@ -6805,7 +6804,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { } void EnablePreviewTextImpl(Ark_NativePointer node, @@ -6831,8 +6830,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_InputCounterOptions* options) { } - void __onChangeEvent_textImpl(Ark_NativePointer node, - const Callback_ResourceStr_Void* callback) + void _onChangeEvent_textImpl(Ark_NativePointer node, + const Callback_ResourceStr_Void* callback) { } } // TextInputAttributeModifier @@ -6840,7 +6839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TextPickerModifier namespace TextPickerInterfaceModifier { @@ -6894,12 +6893,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Length* value) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Union_Number_Array_Number_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Union_Number_Array_Number_Void* callback) { } - void __onChangeEvent_valueImpl(Ark_NativePointer node, - const Callback_Union_String_Array_String_Void* callback) + void _onChangeEvent_valueImpl(Ark_NativePointer node, + const Callback_Union_String_Array_String_Void* callback) { } } // TextPickerAttributeModifier @@ -6907,7 +6906,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TextTimerModifier namespace TextTimerInterfaceModifier { @@ -6958,7 +6957,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // TimePickerModifier namespace TimePickerInterfaceModifier { @@ -7000,8 +6999,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Boolean value) { } - void __onChangeEvent_selectedImpl(Ark_NativePointer node, - const Callback_Date_Void* callback) + void _onChangeEvent_selectedImpl(Ark_NativePointer node, + const Callback_Date_Void* callback) { } } // TimePickerAttributeModifier @@ -7009,7 +7008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // ToggleModifier namespace ToggleInterfaceModifier { @@ -7039,8 +7038,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_SwitchStyle* value) { } - void __onChangeEvent_isOnImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_isOnImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // ToggleAttributeModifier @@ -7048,7 +7047,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // VideoModifier namespace VideoInterfaceModifier { @@ -7131,7 +7130,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // WebModifier namespace WebInterfaceModifier { @@ -7610,7 +7609,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void EditMenuOptionsImpl(Ark_NativePointer node, - const Ark_EditMenuOptions* value) + Ark_EditMenuOptions value) { } void EnableHapticFeedbackImpl(Ark_NativePointer node, @@ -7634,7 +7633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // WindowSceneModifier namespace WindowSceneInterfaceModifier { @@ -7654,7 +7653,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // XComponentModifier namespace XComponentInterfaceModifier { @@ -7693,7 +7692,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // SideBarContainerModifier namespace SideBarContainerInterfaceModifier { @@ -7759,8 +7758,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Length* value) { } - void __onChangeEvent_showSideBarImpl(Ark_NativePointer node, - const Callback_Boolean_Void* callback) + void _onChangeEvent_showSideBarImpl(Ark_NativePointer node, + const Callback_Boolean_Void* callback) { } } // SideBarContainerAttributeModifier @@ -7768,7 +7767,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // RemoteWindowModifier namespace RemoteWindowInterfaceModifier { @@ -7781,7 +7780,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // WaterFlowModifier namespace WaterFlowInterfaceModifier { @@ -7857,7 +7856,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // UIExtensionComponentModifier namespace UIExtensionComponentInterfaceModifier { @@ -7897,7 +7896,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) { - return nullptr; + return {}; } } // LinearIndicatorModifier namespace LinearIndicatorInterfaceModifier { @@ -7980,7 +7979,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { AlphabetIndexerAttributeModifier::PopupTitleBackgroundImpl, AlphabetIndexerAttributeModifier::EnableHapticFeedbackImpl, AlphabetIndexerAttributeModifier::AlignStyleImpl, - AlphabetIndexerAttributeModifier::__onChangeEvent_selectedImpl, + AlphabetIndexerAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIAlphabetIndexerModifierImpl; } @@ -8109,7 +8108,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { CheckboxAttributeModifier::MarkImpl, CheckboxAttributeModifier::OnChangeImpl, CheckboxAttributeModifier::ContentModifierImpl, - CheckboxAttributeModifier::__onChangeEvent_selectImpl, + CheckboxAttributeModifier::_onChangeEvent_selectImpl, }; return &ArkUICheckboxModifierImpl; } @@ -8125,7 +8124,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { CheckboxGroupAttributeModifier::MarkImpl, CheckboxGroupAttributeModifier::OnChangeImpl, CheckboxGroupAttributeModifier::CheckboxShapeImpl, - CheckboxGroupAttributeModifier::__onChangeEvent_selectAllImpl, + CheckboxGroupAttributeModifier::_onChangeEvent_selectAllImpl, }; return &ArkUICheckboxGroupModifierImpl; } @@ -8476,7 +8475,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { DatePickerAttributeModifier::SelectedTextStyleImpl, DatePickerAttributeModifier::OnChangeImpl, DatePickerAttributeModifier::OnDateChangeImpl, - DatePickerAttributeModifier::__onChangeEvent_selectedImpl, + DatePickerAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIDatePickerModifierImpl; } @@ -8659,7 +8658,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GridItemAttributeModifier::SelectableImpl, GridItemAttributeModifier::SelectedImpl, GridItemAttributeModifier::OnSelectImpl, - GridItemAttributeModifier::__onChangeEvent_selectedImpl, + GridItemAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIGridItemModifierImpl; } @@ -8847,7 +8846,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { ListItemAttributeModifier::SelectedImpl, ListItemAttributeModifier::SwipeActionImpl, ListItemAttributeModifier::OnSelectImpl, - ListItemAttributeModifier::__onChangeEvent_selectedImpl, + ListItemAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIListItemModifierImpl; } @@ -8941,7 +8940,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { MenuItemAttributeModifier::ContentFontColorImpl, MenuItemAttributeModifier::LabelFontImpl, MenuItemAttributeModifier::LabelFontColorImpl, - MenuItemAttributeModifier::__onChangeEvent_selectedImpl, + MenuItemAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUIMenuItemModifierImpl; } @@ -9036,7 +9035,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { PanelAttributeModifier::ShowCloseIconImpl, PanelAttributeModifier::OnChangeImpl, PanelAttributeModifier::OnHeightChangeImpl, - PanelAttributeModifier::__onChangeEvent_modeImpl, + PanelAttributeModifier::_onChangeEvent_modeImpl, }; return &ArkUIPanelModifierImpl; } @@ -9149,7 +9148,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { RadioAttributeModifier::OnChangeImpl, RadioAttributeModifier::RadioStyleImpl, RadioAttributeModifier::ContentModifierImpl, - RadioAttributeModifier::__onChangeEvent_checkedImpl, + RadioAttributeModifier::_onChangeEvent_checkedImpl, }; return &ArkUIRadioModifierImpl; } @@ -9164,7 +9163,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { RatingAttributeModifier::StarStyleImpl, RatingAttributeModifier::OnChangeImpl, RatingAttributeModifier::ContentModifierImpl, - RatingAttributeModifier::__onChangeEvent_ratingImpl, + RatingAttributeModifier::_onChangeEvent_ratingImpl, }; return &ArkUIRatingModifierImpl; } @@ -9192,7 +9191,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { RefreshAttributeModifier::PullToRefreshImpl, RefreshAttributeModifier::OnOffsetChangeImpl, RefreshAttributeModifier::PullDownRatioImpl, - RefreshAttributeModifier::__onChangeEvent_refreshingImpl, + RefreshAttributeModifier::_onChangeEvent_refreshingImpl, }; return &ArkUIRefreshModifierImpl; } @@ -9395,7 +9394,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SearchAttributeModifier::SearchButtonImpl, SearchAttributeModifier::InputFilterImpl, SearchAttributeModifier::CustomKeyboardImpl, - SearchAttributeModifier::__onChangeEvent_valueImpl, + SearchAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUISearchModifierImpl; } @@ -9457,8 +9456,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { SelectAttributeModifier::MenuItemContentModifierImpl, SelectAttributeModifier::DividerImpl, SelectAttributeModifier::MenuAlignImpl, - SelectAttributeModifier::__onChangeEvent_selectedImpl, - SelectAttributeModifier::__onChangeEvent_valueImpl, + SelectAttributeModifier::_onChangeEvent_selectedImpl, + SelectAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUISelectModifierImpl; } @@ -9512,7 +9511,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SliderAttributeModifier::ContentModifierImpl, SliderAttributeModifier::SlideRangeImpl, SliderAttributeModifier::ShowTipsImpl, - SliderAttributeModifier::__onChangeEvent_valueImpl, + SliderAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUISliderModifierImpl; } @@ -9568,7 +9567,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { StepperAttributeModifier::OnChangeImpl, StepperAttributeModifier::OnNextImpl, StepperAttributeModifier::OnPreviousImpl, - StepperAttributeModifier::__onChangeEvent_indexImpl, + StepperAttributeModifier::_onChangeEvent_indexImpl, }; return &ArkUIStepperModifierImpl; } @@ -9617,7 +9616,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SwiperAttributeModifier::DisplayCountImpl, SwiperAttributeModifier::PrevMarginImpl, SwiperAttributeModifier::NextMarginImpl, - SwiperAttributeModifier::__onChangeEvent_indexImpl, + SwiperAttributeModifier::_onChangeEvent_indexImpl, }; return &ArkUISwiperModifierImpl; } @@ -9698,7 +9697,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TabsAttributeModifier::BarBackgroundEffectImpl, TabsAttributeModifier::OnContentWillChangeImpl, TabsAttributeModifier::BarModeScrollableImpl, - TabsAttributeModifier::__onChangeEvent_indexImpl, + TabsAttributeModifier::_onChangeEvent_indexImpl, }; return &ArkUITabsModifierImpl; } @@ -9826,7 +9825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextAreaAttributeModifier::InputFilterImpl, TextAreaAttributeModifier::ShowCounterImpl, TextAreaAttributeModifier::CustomKeyboardImpl, - TextAreaAttributeModifier::__onChangeEvent_textImpl, + TextAreaAttributeModifier::_onChangeEvent_textImpl, }; return &ArkUITextAreaModifierImpl; } @@ -9921,7 +9920,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextInputAttributeModifier::InputFilterImpl, TextInputAttributeModifier::CustomKeyboardImpl, TextInputAttributeModifier::ShowCounterImpl, - TextInputAttributeModifier::__onChangeEvent_textImpl, + TextInputAttributeModifier::_onChangeEvent_textImpl, }; return &ArkUITextInputModifierImpl; } @@ -9942,8 +9941,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextPickerAttributeModifier::SelectedIndexImpl, TextPickerAttributeModifier::DividerImpl, TextPickerAttributeModifier::GradientHeightImpl, - TextPickerAttributeModifier::__onChangeEvent_selectedImpl, - TextPickerAttributeModifier::__onChangeEvent_valueImpl, + TextPickerAttributeModifier::_onChangeEvent_selectedImpl, + TextPickerAttributeModifier::_onChangeEvent_valueImpl, }; return &ArkUITextPickerModifierImpl; } @@ -9979,7 +9978,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TimePickerAttributeModifier::DateTimeOptionsImpl, TimePickerAttributeModifier::OnChangeImpl, TimePickerAttributeModifier::EnableHapticFeedbackImpl, - TimePickerAttributeModifier::__onChangeEvent_selectedImpl, + TimePickerAttributeModifier::_onChangeEvent_selectedImpl, }; return &ArkUITimePickerModifierImpl; } @@ -9994,7 +9993,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { ToggleAttributeModifier::SelectedColorImpl, ToggleAttributeModifier::SwitchPointColorImpl, ToggleAttributeModifier::SwitchStyleImpl, - ToggleAttributeModifier::__onChangeEvent_isOnImpl, + ToggleAttributeModifier::_onChangeEvent_isOnImpl, }; return &ArkUIToggleModifierImpl; } @@ -10199,7 +10198,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { SideBarContainerAttributeModifier::SideBarPositionImpl, SideBarContainerAttributeModifier::DividerImpl, SideBarContainerAttributeModifier::MinContentWidthImpl, - SideBarContainerAttributeModifier::__onChangeEvent_showSideBarImpl, + SideBarContainerAttributeModifier::_onChangeEvent_showSideBarImpl, }; return &ArkUISideBarContainerModifierImpl; } @@ -10393,7 +10392,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_AnimationExtender CtorImpl() { return new AnimationExtenderPeer(); } @@ -10401,43 +10400,41 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetClipRectImpl(Ark_NativePointer peer, - const Ark_Number* left, - const Ark_Number* top, - const Ark_Number* right, - const Ark_Number* bottom) + void SetClipRectImpl(Ark_NativePointer node, + Ark_Float32 x, + Ark_Float32 y, + Ark_Float32 width, + Ark_Float32 height) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(peer); - //auto convValue = Converter::OptConvert(peer); // for enums + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums //undefinedModelNG::SetSetClipRect(frameNode, convValue); } - void OpenImplicitAnimationImpl(Ark_NativePointer peer, - const Ark_AnimateParam* param) + void OpenImplicitAnimationImpl(const Ark_AnimateParam* param) + { + } + void CloseImplicitAnimationImpl() { - auto frameNode = reinterpret_cast(node); - CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(peer); - //auto convValue = Converter::OptConvert(peer); // for enums - //undefinedModelNG::SetOpenicitAnimationImpl(frameNode, convValue); } - void CloseImplicitAnimationImpl(Ark_NativePointer node) + void StartDoubleAnimationImpl(Ark_NativePointer node, + const Ark_DoubleAnimationParam* param) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); //auto convValue = Converter::Convert(node); //auto convValue = Converter::OptConvert(node); // for enums - //undefinedModelNG::SetCloseicitAnimationImpl(frameNode, convValue); + //undefinedModelNG::SetStartDoubleAnimation(frameNode, convValue); } - void StartDoubleAnimationImpl(Ark_NativePointer peer, - const Ark_DoubleAnimationParam* param) + void AnimationTranslateImpl(Ark_NativePointer node, + const Ark_TranslateOptions* options) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(peer); - //auto convValue = Converter::OptConvert(peer); // for enums - //undefinedModelNG::SetStartDoubleAnimation(frameNode, convValue); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetAnimationTranslate(frameNode, convValue); } } // AnimationExtenderAccessor namespace UnifiedDataAccessor { @@ -10448,7 +10445,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_UnifiedData CtorImpl() { return new UnifiedDataPeer(); } @@ -10459,7 +10456,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Boolean HasTypeImpl(UnifiedDataPeer* peer, const Ark_String* UnifiedData_type) { - return 0; + return {}; } void GetTypesImpl(UnifiedDataPeer* peer) { @@ -10475,7 +10472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_PixelMap* pixelmap) + Ark_DrawingCanvas CtorImpl(Ark_PixelMap pixelmap) { return new DrawingCanvasPeer(pixelmap); } @@ -10499,7 +10496,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_LengthMetrics CtorImpl() { return new LengthMetricsPeer(); } @@ -10507,17 +10504,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer PxImpl(const Ark_Number* value) + Ark_LengthMetrics PxImpl(const Ark_Number* value) { - return nullptr; + return {}; } - Ark_NativePointer ResourceImpl(const Ark_Resource* value) + Ark_LengthMetrics ResourceImpl(const Ark_Resource* value) { - return nullptr; + return {}; } Ark_NativePointer GetUnitImpl(LengthMetricsPeer* peer) { - return nullptr; + return {}; } void SetUnitImpl(LengthMetricsPeer* peer, Ark_LengthUnit unit) @@ -10525,7 +10522,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetValueImpl(LengthMetricsPeer* peer) { - return 0; + return {}; } void SetValueImpl(LengthMetricsPeer* peer, const Ark_Number* value) @@ -10540,7 +10537,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebviewController CtorImpl() { return new WebviewControllerPeer(); } @@ -10565,7 +10562,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_GlobalScope_ohos_arkui_componentSnapshot CtorImpl() { return new GlobalScope_ohos_arkui_componentSnapshotPeer(); } @@ -10587,7 +10584,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_GlobalScope_ohos_arkui_performanceMonitor CtorImpl() { return new GlobalScope_ohos_arkui_performanceMonitorPeer(); } @@ -10603,7 +10600,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { void EndImpl(const Ark_String* scene) { } - void RecordInputEventTimeImpl(Ark_PerfMonitorActionType type, + void RecordInputEventTimeImpl(Ark_PerfMonitorActionType actionType, Ark_PerfMonitorSourceType sourceType, const Ark_Number* time) { @@ -10617,7 +10614,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_UIContext* uiContext) + Ark_FrameNode CtorImpl(const Ark_UIContext* uiContext) { return new FrameNodePeer(uiContext); } @@ -10627,59 +10624,59 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsModifiableImpl(FrameNodePeer* peer) { - return 0; + return {}; } void AppendChildImpl(FrameNodePeer* peer, - const Ark_FrameNode* node) + Ark_FrameNode node) { } void InsertChildAfterImpl(FrameNodePeer* peer, - const Ark_FrameNode* child, - const Ark_FrameNode* sibling) + Ark_FrameNode child, + Ark_FrameNode sibling) { } void RemoveChildImpl(FrameNodePeer* peer, - const Ark_FrameNode* node) + Ark_FrameNode node) { } void ClearChildrenImpl(FrameNodePeer* peer) { } - Ark_NativePointer GetChildImpl(FrameNodePeer* peer, - const Ark_Number* index) + Ark_FrameNode GetChildImpl(FrameNodePeer* peer, + const Ark_Number* index) { - return nullptr; + return {}; } - Ark_NativePointer GetFirstChildImpl(FrameNodePeer* peer) + Ark_FrameNode GetFirstChildImpl(FrameNodePeer* peer) { - return nullptr; + return {}; } - Ark_NativePointer GetNextSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetNextSiblingImpl(FrameNodePeer* peer) { - return nullptr; + return {}; } - Ark_NativePointer GetPreviousSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetPreviousSiblingImpl(FrameNodePeer* peer) { - return nullptr; + return {}; } - Ark_NativePointer GetParentImpl(FrameNodePeer* peer) + Ark_FrameNode GetParentImpl(FrameNodePeer* peer) { - return nullptr; + return {}; } Ark_Int32 GetChildrenCountImpl(FrameNodePeer* peer) { - return 0; + return {}; } void DisposeImpl(FrameNodePeer* peer) { } Ark_Int32 GetOpacityImpl(FrameNodePeer* peer) { - return 0; + return {}; } Ark_NativePointer GetPositionToWindowWithTransformImpl(FrameNodePeer* peer) { - return nullptr; + return {}; } } // FrameNodeAccessor namespace PixelMapAccessor { @@ -10690,7 +10687,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PixelMap CtorImpl() { return new PixelMapPeer(); } @@ -10708,7 +10705,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetIsEditableImpl(PixelMapPeer* peer) { - return 0; + return {}; } void SetIsEditableImpl(PixelMapPeer* peer, Ark_Int32 isEditable) @@ -10716,7 +10713,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetIsStrideAlignmentImpl(PixelMapPeer* peer) { - return 0; + return {}; } void SetIsStrideAlignmentImpl(PixelMapPeer* peer, Ark_Int32 isStrideAlignment) @@ -10731,7 +10728,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_NavExtender CtorImpl() { return new NavExtenderPeer(); } @@ -10739,7 +10736,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetUpdateStackCallbackImpl(const Ark_NavPathStack* peer, + void SetUpdateStackCallbackImpl(Ark_NavPathStack peer, const NavExtender_OnUpdateStack* callback) { } @@ -10752,7 +10749,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_EventEmulator CtorImpl() { return new EventEmulatorPeer(); } @@ -10761,7 +10758,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(&DestroyPeerImpl); } void EmitClickEventImpl(Ark_NativePointer node, - const Ark_ClickEvent* event) + Ark_ClickEvent event) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); @@ -10787,7 +10784,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ActionSheet CtorImpl() { return new ActionSheetPeer(); } @@ -10807,7 +10804,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_AlertDialog CtorImpl() { return new AlertDialogPeer(); } @@ -10819,6 +10816,85 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // AlertDialogAccessor + namespace SpringPropAccessor { + void DestroyPeerImpl(SpringPropPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_SpringProp CtorImpl(const Ark_Number* mass, + const Ark_Number* stiffness, + const Ark_Number* damping) + { + return new SpringPropPeer(mass, stiffness, damping); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + } // SpringPropAccessor + namespace SpringMotionAccessor { + void DestroyPeerImpl(SpringMotionPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_SpringMotion CtorImpl(const Ark_Number* start, + const Ark_Number* end, + const Ark_Number* velocity, + Ark_SpringProp prop) + { + return new SpringMotionPeer(start, end, velocity, prop); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + } // SpringMotionAccessor + namespace FrictionMotionAccessor { + void DestroyPeerImpl(FrictionMotionPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_FrictionMotion CtorImpl(const Ark_Number* friction, + const Ark_Number* position, + const Ark_Number* velocity) + { + return new FrictionMotionPeer(friction, position, velocity); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + } // FrictionMotionAccessor + namespace ScrollMotionAccessor { + void DestroyPeerImpl(ScrollMotionPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_ScrollMotion CtorImpl(const Ark_Number* position, + const Ark_Number* velocity, + const Ark_Number* min, + const Ark_Number* max, + Ark_SpringProp prop) + { + return new ScrollMotionPeer(position, velocity, min, max, prop); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + } // ScrollMotionAccessor namespace CalendarControllerAccessor { void DestroyPeerImpl(CalendarControllerPeer* peer) { @@ -10827,7 +10903,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CalendarController CtorImpl() { return new CalendarControllerPeer(); } @@ -10851,7 +10927,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CalendarPickerDialog CtorImpl() { return new CalendarPickerDialogPeer(); } @@ -10871,7 +10947,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CanvasGradient CtorImpl() { return new CanvasGradientPeer(); } @@ -10893,7 +10969,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CanvasPath CtorImpl() { return new CanvasPathPeer(); } @@ -10974,7 +11050,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_Path2D CtorImpl() { return new Path2DPeer(); } @@ -10983,7 +11059,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(&DestroyPeerImpl); } void AddPathImpl(Path2DPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_Matrix2D* transform) { } @@ -10996,7 +11072,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CanvasPattern CtorImpl() { return new CanvasPatternPeer(); } @@ -11017,7 +11093,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_String* src) + Ark_ImageBitmap CtorImpl(const Ark_String* src) { return new ImageBitmapPeer(src); } @@ -11030,13 +11106,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetHeightImpl(ImageBitmapPeer* peer) { - return 0; + return {}; } Ark_Int32 GetWidthImpl(ImageBitmapPeer* peer) { - return 0; + return {}; } } // ImageBitmapAccessor + namespace ImageDataAccessor { + void DestroyPeerImpl(ImageDataPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_ImageData CtorImpl(const Ark_Number* width, + const Ark_Number* height, + const Opt_Buffer* data) + { + return new ImageDataPeer(width, height, data); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_Int32 GetHeightImpl(ImageDataPeer* peer) + { + return {}; + } + Ark_Int32 GetWidthImpl(ImageDataPeer* peer) + { + return {}; + } + } // ImageDataAccessor + namespace RenderingContextSettingsAccessor { + void DestroyPeerImpl(RenderingContextSettingsPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_RenderingContextSettings CtorImpl(const Opt_Boolean* antialias) + { + return new RenderingContextSettingsPeer(antialias); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_Boolean GetAntialiasImpl(RenderingContextSettingsPeer* peer) + { + return {}; + } + void SetAntialiasImpl(RenderingContextSettingsPeer* peer, + Ark_Boolean antialias) + { + } + } // RenderingContextSettingsAccessor namespace CanvasRendererAccessor { void DestroyPeerImpl(CanvasRendererPeer* peer) { @@ -11045,7 +11173,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CanvasRenderer CtorImpl() { return new CanvasRendererPeer(); } @@ -11087,7 +11215,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Clip1Impl(CanvasRendererPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_String* fillRule) { } @@ -11096,7 +11224,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Fill1Impl(CanvasRendererPeer* peer, - const Ark_Path2D* path, + Ark_Path2D path, const Opt_String* fillRule) { } @@ -11104,75 +11232,75 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void Stroke1Impl(CanvasRendererPeer* peer, - const Ark_Path2D* path) + Ark_Path2D path) { } - Ark_NativePointer CreateLinearGradientImpl(CanvasRendererPeer* peer, - const Ark_Number* x0, - const Ark_Number* y0, - const Ark_Number* x1, - const Ark_Number* y1) + Ark_CanvasGradient CreateLinearGradientImpl(CanvasRendererPeer* peer, + const Ark_Number* x0, + const Ark_Number* y0, + const Ark_Number* x1, + const Ark_Number* y1) { - return nullptr; + return {}; } - Ark_NativePointer CreatePatternImpl(CanvasRendererPeer* peer, - const Ark_ImageBitmap* image, + Ark_CanvasPattern CreatePatternImpl(CanvasRendererPeer* peer, + Ark_ImageBitmap image, const Opt_String* repetition) { - return 0; + return {}; } - Ark_NativePointer CreateRadialGradientImpl(CanvasRendererPeer* 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 CreateRadialGradientImpl(CanvasRendererPeer* 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) { - return nullptr; + return {}; } - Ark_NativePointer CreateConicGradientImpl(CanvasRendererPeer* peer, - const Ark_Number* startAngle, - const Ark_Number* x, - const Ark_Number* y) + Ark_CanvasGradient CreateConicGradientImpl(CanvasRendererPeer* peer, + const Ark_Number* startAngle, + const Ark_Number* x, + const Ark_Number* y) { - return nullptr; + return {}; } - Ark_NativePointer CreateImageData0Impl(CanvasRendererPeer* peer, - const Ark_Number* sw, - const Ark_Number* sh) + Ark_ImageData CreateImageData0Impl(CanvasRendererPeer* peer, + const Ark_Number* sw, + const Ark_Number* sh) { - return nullptr; + return {}; } - Ark_NativePointer CreateImageData1Impl(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata) + Ark_ImageData CreateImageData1Impl(CanvasRendererPeer* peer, + Ark_ImageData imagedata) { - return nullptr; + return {}; } - Ark_NativePointer GetImageDataImpl(CanvasRendererPeer* peer, - const Ark_Number* sx, - const Ark_Number* sy, - const Ark_Number* sw, - const Ark_Number* sh) + Ark_ImageData GetImageDataImpl(CanvasRendererPeer* peer, + const Ark_Number* sx, + const Ark_Number* sy, + const Ark_Number* sw, + const Ark_Number* sh) { - return nullptr; + return {}; } - Ark_NativePointer GetPixelMapImpl(CanvasRendererPeer* peer, - const Ark_Number* sx, - const Ark_Number* sy, - const Ark_Number* sw, - const Ark_Number* sh) + Ark_PixelMap GetPixelMapImpl(CanvasRendererPeer* peer, + const Ark_Number* sx, + const Ark_Number* sy, + const Ark_Number* sw, + const Ark_Number* sh) { - return nullptr; + return {}; } void PutImageData0Impl(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata, + Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy) { } void PutImageData1Impl(CanvasRendererPeer* peer, - const Ark_ImageData* imagedata, + Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, const Ark_Union_Number_String* dirtyX, @@ -11225,7 +11353,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer MeasureTextImpl(CanvasRendererPeer* peer, const Ark_String* text) { - return nullptr; + return {}; } void StrokeTextImpl(CanvasRendererPeer* peer, const Ark_String* text, @@ -11234,9 +11362,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Number* maxWidth) { } - Ark_NativePointer GetTransformImpl(CanvasRendererPeer* peer) + Ark_Matrix2D GetTransformImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void ResetTransformImpl(CanvasRendererPeer* peer) { @@ -11282,7 +11410,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void TransferFromImageBitmapImpl(CanvasRendererPeer* peer, - const Ark_ImageBitmap* bitmap) + Ark_ImageBitmap bitmap) { } void SaveLayerImpl(CanvasRendererPeer* peer) @@ -11296,7 +11424,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetGlobalAlphaImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetGlobalAlphaImpl(CanvasRendererPeer* peer, const Ark_Number* globalAlpha) @@ -11326,7 +11454,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean GetImageSmoothingEnabledImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetImageSmoothingEnabledImpl(CanvasRendererPeer* peer, Ark_Boolean imageSmoothingEnabled) @@ -11334,7 +11462,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetImageSmoothingQualityImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void SetImageSmoothingQualityImpl(CanvasRendererPeer* peer, const Ark_String* imageSmoothingQuality) @@ -11342,7 +11470,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetLineCapImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void SetLineCapImpl(CanvasRendererPeer* peer, const Ark_String* lineCap) @@ -11350,7 +11478,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetLineDashOffsetImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetLineDashOffsetImpl(CanvasRendererPeer* peer, const Ark_Number* lineDashOffset) @@ -11358,7 +11486,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetLineJoinImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void SetLineJoinImpl(CanvasRendererPeer* peer, const Ark_String* lineJoin) @@ -11366,7 +11494,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetLineWidthImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetLineWidthImpl(CanvasRendererPeer* peer, const Ark_Number* lineWidth) @@ -11374,7 +11502,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetMiterLimitImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetMiterLimitImpl(CanvasRendererPeer* peer, const Ark_Number* miterLimit) @@ -11382,7 +11510,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetShadowBlurImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetShadowBlurImpl(CanvasRendererPeer* peer, const Ark_Number* shadowBlur) @@ -11397,7 +11525,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetShadowOffsetXImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetShadowOffsetXImpl(CanvasRendererPeer* peer, const Ark_Number* shadowOffsetX) @@ -11405,7 +11533,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetShadowOffsetYImpl(CanvasRendererPeer* peer) { - return 0; + return {}; } void SetShadowOffsetYImpl(CanvasRendererPeer* peer, const Ark_Number* shadowOffsetY) @@ -11413,7 +11541,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetDirectionImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void SetDirectionImpl(CanvasRendererPeer* peer, const Ark_String* direction) @@ -11428,7 +11556,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetTextAlignImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void SetTextAlignImpl(CanvasRendererPeer* peer, const Ark_String* textAlign) @@ -11436,7 +11564,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetTextBaselineImpl(CanvasRendererPeer* peer) { - return nullptr; + return {}; } void SetTextBaselineImpl(CanvasRendererPeer* peer, const Ark_String* textBaseline) @@ -11451,7 +11579,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Opt_RenderingContextSettings* settings) + Ark_CanvasRenderingContext2D CtorImpl(const Opt_RenderingContextSettings* settings) { return new CanvasRenderingContext2DPeer(settings); } @@ -11490,11 +11618,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetHeightImpl(CanvasRenderingContext2DPeer* peer) { - return 0; + return {}; } Ark_Int32 GetWidthImpl(CanvasRenderingContext2DPeer* peer) { - return 0; + return {}; } } // CanvasRenderingContext2DAccessor namespace DrawingRenderingContextAccessor { @@ -11505,7 +11633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Opt_LengthMetricsUnit* unit) + Ark_DrawingRenderingContext CtorImpl(const Opt_LengthMetricsUnit* unit) { return new DrawingRenderingContextPeer(unit); } @@ -11525,7 +11653,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ICurve CtorImpl() { return new ICurvePeer(); } @@ -11536,7 +11664,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Int32 InterpolateImpl(ICurvePeer* peer, const Ark_Number* fraction) { - return 0; + return {}; } } // ICurveAccessor namespace DrawModifierAccessor { @@ -11547,7 +11675,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_DrawModifier CtorImpl() { return new DrawModifierPeer(); } @@ -11579,8 +11707,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_String* type, - const Ark_TransitionEffects* effect) + Ark_TransitionEffect CtorImpl(const Ark_String* type, + const Ark_TransitionEffects* effect) { return new TransitionEffectPeer(type, effect); } @@ -11588,40 +11716,40 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer TranslateImpl(const Ark_TranslateOptions* options) + Ark_TransitionEffect TranslateImpl(const Ark_TranslateOptions* options) { - return nullptr; + return {}; } - Ark_NativePointer RotateImpl(const Ark_RotateOptions* options) + Ark_TransitionEffect RotateImpl(const Ark_RotateOptions* options) { - return nullptr; + return {}; } - Ark_NativePointer ScaleImpl(const Ark_ScaleOptions* options) + Ark_TransitionEffect ScaleImpl(const Ark_ScaleOptions* options) { - return nullptr; + return {}; } - Ark_NativePointer OpacityImpl(const Ark_Number* alpha) + Ark_TransitionEffect OpacityImpl(const Ark_Number* alpha) { - return nullptr; + return {}; } - Ark_NativePointer MoveImpl(Ark_TransitionEdge edge) + Ark_TransitionEffect MoveImpl(Ark_TransitionEdge edge) { - return nullptr; + return {}; } - Ark_NativePointer AsymmetricImpl(const Ark_TransitionEffect* appear, - const Ark_TransitionEffect* disappear) + Ark_TransitionEffect AsymmetricImpl(Ark_TransitionEffect appear, + Ark_TransitionEffect disappear) { - return nullptr; + return {}; } - Ark_NativePointer AnimationImpl(TransitionEffectPeer* peer, - const Ark_AnimateParam* value) + Ark_TransitionEffect AnimationImpl(TransitionEffectPeer* peer, + const Ark_AnimateParam* value) { - return nullptr; + return {}; } - Ark_NativePointer CombineImpl(TransitionEffectPeer* peer, - const Ark_TransitionEffect* transitionEffect) + Ark_TransitionEffect CombineImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect transitionEffect) { - return nullptr; + return {}; } } // TransitionEffectAccessor namespace BaseEventAccessor { @@ -11632,7 +11760,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_BaseEvent CtorImpl() { return new BaseEventPeer(); } @@ -11643,7 +11771,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Boolean GetModifierKeyStateImpl(BaseEventPeer* peer, const Array_String* keys) { - return 0; + return {}; } void SetTargetImpl(BaseEventPeer* peer, const Ark_EventTarget* target) @@ -11651,7 +11779,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetTimestampImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetTimestampImpl(BaseEventPeer* peer, const Ark_Number* timestamp) @@ -11659,7 +11787,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetSourceImpl(BaseEventPeer* peer) { - return nullptr; + return {}; } void SetSourceImpl(BaseEventPeer* peer, Ark_SourceType source) @@ -11667,7 +11795,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetAxisHorizontalImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetAxisHorizontalImpl(BaseEventPeer* peer, const Ark_Number* axisHorizontal) @@ -11675,7 +11803,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetAxisVerticalImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetAxisVerticalImpl(BaseEventPeer* peer, const Ark_Number* axisVertical) @@ -11683,7 +11811,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetPressureImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetPressureImpl(BaseEventPeer* peer, const Ark_Number* pressure) @@ -11691,7 +11819,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetTiltXImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetTiltXImpl(BaseEventPeer* peer, const Ark_Number* tiltX) @@ -11699,7 +11827,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetTiltYImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetTiltYImpl(BaseEventPeer* peer, const Ark_Number* tiltY) @@ -11707,7 +11835,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetSourceToolImpl(BaseEventPeer* peer) { - return nullptr; + return {}; } void SetSourceToolImpl(BaseEventPeer* peer, Ark_SourceTool sourceTool) @@ -11715,7 +11843,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDeviceIdImpl(BaseEventPeer* peer) { - return 0; + return {}; } void SetDeviceIdImpl(BaseEventPeer* peer, const Ark_Number* deviceId) @@ -11730,7 +11858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ClickEvent CtorImpl() { return new ClickEventPeer(); } @@ -11740,7 +11868,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayXImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetDisplayXImpl(ClickEventPeer* peer, const Ark_Number* displayX) @@ -11748,7 +11876,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayYImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetDisplayYImpl(ClickEventPeer* peer, const Ark_Number* displayY) @@ -11756,7 +11884,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetWindowXImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetWindowXImpl(ClickEventPeer* peer, const Ark_Number* windowX) @@ -11764,7 +11892,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetWindowYImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetWindowYImpl(ClickEventPeer* peer, const Ark_Number* windowY) @@ -11772,7 +11900,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScreenXImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetScreenXImpl(ClickEventPeer* peer, const Ark_Number* screenX) @@ -11780,7 +11908,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScreenYImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetScreenYImpl(ClickEventPeer* peer, const Ark_Number* screenY) @@ -11788,7 +11916,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetXImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetXImpl(ClickEventPeer* peer, const Ark_Number* x) @@ -11796,12 +11924,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetYImpl(ClickEventPeer* peer) { - return 0; + return {}; } void SetYImpl(ClickEventPeer* peer, const Ark_Number* y) { } + Callback_Void GetPreventDefaultImpl(ClickEventPeer* peer) + { + return {}; + } void SetPreventDefaultImpl(ClickEventPeer* peer, const Callback_Void* preventDefault) { @@ -11815,7 +11947,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_HoverEvent CtorImpl() { return new HoverEventPeer(); } @@ -11823,6 +11955,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } + Callback_Void GetStopPropagationImpl(HoverEventPeer* peer) + { + return {}; + } void SetStopPropagationImpl(HoverEventPeer* peer, const Callback_Void* stopPropagation) { @@ -11836,7 +11972,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_MouseEvent CtorImpl() { return new MouseEventPeer(); } @@ -11846,7 +11982,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetButtonImpl(MouseEventPeer* peer) { - return nullptr; + return {}; } void SetButtonImpl(MouseEventPeer* peer, Ark_MouseButton button) @@ -11854,7 +11990,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetActionImpl(MouseEventPeer* peer) { - return nullptr; + return {}; } void SetActionImpl(MouseEventPeer* peer, Ark_MouseAction action) @@ -11862,7 +11998,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayXImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetDisplayXImpl(MouseEventPeer* peer, const Ark_Number* displayX) @@ -11870,7 +12006,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayYImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetDisplayYImpl(MouseEventPeer* peer, const Ark_Number* displayY) @@ -11878,7 +12014,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetWindowXImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetWindowXImpl(MouseEventPeer* peer, const Ark_Number* windowX) @@ -11886,7 +12022,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetWindowYImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetWindowYImpl(MouseEventPeer* peer, const Ark_Number* windowY) @@ -11894,7 +12030,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScreenXImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetScreenXImpl(MouseEventPeer* peer, const Ark_Number* screenX) @@ -11902,7 +12038,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScreenYImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetScreenYImpl(MouseEventPeer* peer, const Ark_Number* screenY) @@ -11910,7 +12046,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetXImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetXImpl(MouseEventPeer* peer, const Ark_Number* x) @@ -11918,12 +12054,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetYImpl(MouseEventPeer* peer) { - return 0; + return {}; } void SetYImpl(MouseEventPeer* peer, const Ark_Number* y) { } + Callback_Void GetStopPropagationImpl(MouseEventPeer* peer) + { + return {}; + } void SetStopPropagationImpl(MouseEventPeer* peer, const Callback_Void* stopPropagation) { @@ -11937,7 +12077,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_AccessibilityHoverEvent CtorImpl() { return new AccessibilityHoverEventPeer(); } @@ -11947,7 +12087,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetTypeImpl(AccessibilityHoverEventPeer* peer) { - return nullptr; + return {}; } void SetTypeImpl(AccessibilityHoverEventPeer* peer, Ark_AccessibilityHoverType type) @@ -11955,7 +12095,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetXImpl(AccessibilityHoverEventPeer* peer) { - return 0; + return {}; } void SetXImpl(AccessibilityHoverEventPeer* peer, const Ark_Number* x) @@ -11963,7 +12103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetYImpl(AccessibilityHoverEventPeer* peer) { - return 0; + return {}; } void SetYImpl(AccessibilityHoverEventPeer* peer, const Ark_Number* y) @@ -11971,7 +12111,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayXImpl(AccessibilityHoverEventPeer* peer) { - return 0; + return {}; } void SetDisplayXImpl(AccessibilityHoverEventPeer* peer, const Ark_Number* displayX) @@ -11979,7 +12119,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayYImpl(AccessibilityHoverEventPeer* peer) { - return 0; + return {}; } void SetDisplayYImpl(AccessibilityHoverEventPeer* peer, const Ark_Number* displayY) @@ -11987,7 +12127,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetWindowXImpl(AccessibilityHoverEventPeer* peer) { - return 0; + return {}; } void SetWindowXImpl(AccessibilityHoverEventPeer* peer, const Ark_Number* windowX) @@ -11995,7 +12135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetWindowYImpl(AccessibilityHoverEventPeer* peer) { - return 0; + return {}; } void SetWindowYImpl(AccessibilityHoverEventPeer* peer, const Ark_Number* windowY) @@ -12010,7 +12150,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TouchEvent CtorImpl() { return new TouchEventPeer(); } @@ -12023,7 +12163,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetTypeImpl(TouchEventPeer* peer) { - return nullptr; + return {}; } void SetTypeImpl(TouchEventPeer* peer, Ark_TouchType type) @@ -12037,10 +12177,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Array_TouchObject* changedTouches) { } + Callback_Void GetStopPropagationImpl(TouchEventPeer* peer) + { + return {}; + } void SetStopPropagationImpl(TouchEventPeer* peer, const Callback_Void* stopPropagation) { } + Callback_Void GetPreventDefaultImpl(TouchEventPeer* peer) + { + return {}; + } void SetPreventDefaultImpl(TouchEventPeer* peer, const Callback_Void* preventDefault) { @@ -12054,7 +12202,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PixelMapMock CtorImpl() { return new PixelMapMockPeer(); } @@ -12074,7 +12222,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_DragEvent CtorImpl() { return new DragEventPeer(); } @@ -12084,39 +12232,39 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDisplayXImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetDisplayYImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetWindowXImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetWindowYImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetXImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetYImpl(DragEventPeer* peer) { - return 0; + return {}; } void SetDataImpl(DragEventPeer* peer, - const Ark_UnifiedData* unifiedData) + Ark_UnifiedData unifiedData) { } - Ark_NativePointer GetDataImpl(DragEventPeer* peer) + Ark_UnifiedData GetDataImpl(DragEventPeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetSummaryImpl(DragEventPeer* peer) { - return nullptr; + return {}; } void SetResultImpl(DragEventPeer* peer, Ark_DragResult dragResult) @@ -12124,32 +12272,32 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetResultImpl(DragEventPeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetPreviewRectImpl(DragEventPeer* peer) { - return nullptr; + return {}; } Ark_Int32 GetVelocityXImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetVelocityYImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Int32 GetVelocityImpl(DragEventPeer* peer) { - return 0; + return {}; } Ark_Boolean GetModifierKeyStateImpl(DragEventPeer* peer, const Array_String* keys) { - return 0; + return {}; } Ark_NativePointer GetDragBehaviorImpl(DragEventPeer* peer) { - return nullptr; + return {}; } void SetDragBehaviorImpl(DragEventPeer* peer, Ark_DragBehavior dragBehavior) @@ -12157,7 +12305,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean GetUseCustomDropAnimationImpl(DragEventPeer* peer) { - return 0; + return {}; } void SetUseCustomDropAnimationImpl(DragEventPeer* peer, Ark_Boolean useCustomDropAnimation) @@ -12172,7 +12320,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_KeyEvent CtorImpl() { return new KeyEventPeer(); } @@ -12183,11 +12331,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Boolean GetModifierKeyStateImpl(KeyEventPeer* peer, const Array_String* keys) { - return 0; + return {}; } Ark_NativePointer GetTypeImpl(KeyEventPeer* peer) { - return nullptr; + return {}; } void SetTypeImpl(KeyEventPeer* peer, Ark_KeyType type) @@ -12195,7 +12343,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetKeyCodeImpl(KeyEventPeer* peer) { - return 0; + return {}; } void SetKeyCodeImpl(KeyEventPeer* peer, const Ark_Number* keyCode) @@ -12210,7 +12358,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetKeySourceImpl(KeyEventPeer* peer) { - return nullptr; + return {}; } void SetKeySourceImpl(KeyEventPeer* peer, Ark_KeySource keySource) @@ -12218,7 +12366,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetDeviceIdImpl(KeyEventPeer* peer) { - return 0; + return {}; } void SetDeviceIdImpl(KeyEventPeer* peer, const Ark_Number* deviceId) @@ -12226,7 +12374,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetMetaKeyImpl(KeyEventPeer* peer) { - return 0; + return {}; } void SetMetaKeyImpl(KeyEventPeer* peer, const Ark_Number* metaKey) @@ -12234,12 +12382,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetTimestampImpl(KeyEventPeer* peer) { - return 0; + return {}; } void SetTimestampImpl(KeyEventPeer* peer, const Ark_Number* timestamp) { } + Callback_Void GetStopPropagationImpl(KeyEventPeer* peer) + { + return {}; + } void SetStopPropagationImpl(KeyEventPeer* peer, const Callback_Void* stopPropagation) { @@ -12250,7 +12402,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetUnicodeImpl(KeyEventPeer* peer) { - return 0; + return {}; } void SetUnicodeImpl(KeyEventPeer* peer, const Ark_Number* unicode) @@ -12265,9 +12417,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_Number* value, - const Ark_Number* total, - const Ark_ResourceColor* color) + Ark_ProgressMask CtorImpl(const Ark_Number* value, + const Ark_Number* total, + const Ark_ResourceColor* color) { return new ProgressMaskPeer(value, total, color); } @@ -12296,7 +12448,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_Measurable CtorImpl() { return new MeasurablePeer(); } @@ -12307,19 +12459,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer MeasureImpl(MeasurablePeer* peer, const Ark_ConstraintSizeOptions* constraint) { - return nullptr; + return {}; } Ark_NativePointer GetMarginImpl(MeasurablePeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetPaddingImpl(MeasurablePeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetBorderWidthImpl(MeasurablePeer* peer) { - return nullptr; + return {}; } } // MeasurableAccessor namespace ViewAccessor { @@ -12330,7 +12482,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_View CtorImpl() { return new ViewPeer(); } @@ -12351,7 +12503,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextContentControllerBase CtorImpl() { return new TextContentControllerBasePeer(); } @@ -12361,15 +12513,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetCaretOffsetImpl(TextContentControllerBasePeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetTextContentRectImpl(TextContentControllerBasePeer* peer) { - return nullptr; + return {}; } Ark_Int32 GetTextContentLineCountImpl(TextContentControllerBasePeer* peer) { - return 0; + return {}; } } // TextContentControllerBaseAccessor namespace DynamicNodeAccessor { @@ -12380,7 +12532,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_DynamicNode CtorImpl() { return new DynamicNodePeer(); } @@ -12401,7 +12553,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_Number* childDefaultSize) + Ark_ChildrenMainSize CtorImpl(const Ark_Number* childDefaultSize) { return new ChildrenMainSizePeer(childDefaultSize); } @@ -12422,7 +12574,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetChildDefaultSizeImpl(ChildrenMainSizePeer* peer) { - return 0; + return {}; } void SetChildDefaultSizeImpl(ChildrenMainSizePeer* peer, const Ark_Number* childDefaultSize) @@ -12437,7 +12589,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_UICommonEvent CtorImpl() { return new UICommonEventPeer(); } @@ -12499,7 +12651,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_GestureModifier CtorImpl() { return new GestureModifierPeer(); } @@ -12520,17 +12672,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() - { - return new GlobalScope_commonPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } Ark_NativePointer GetContextImpl(const Opt_CustomObject* component) { - return nullptr; + return {}; } void PostCardActionImpl(const Ark_CustomObject* component, const Ark_CustomObject* action) @@ -12539,11 +12683,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer Dollar_rImpl(const Ark_String* value, const Array_CustomObject* params) { - return nullptr; + return {}; } Ark_NativePointer Dollar_rawfileImpl(const Ark_String* value) { - return nullptr; + return {}; } void AnimateToImpl(const Ark_AnimateParam* value, const Callback_Void* event) @@ -12555,31 +12699,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 Vp2pxImpl(const Ark_Number* value) { - return 0; + return {}; } Ark_Int32 Px2vpImpl(const Ark_Number* value) { - return 0; + return {}; } Ark_Int32 Fp2pxImpl(const Ark_Number* value) { - return 0; + return {}; } Ark_Int32 Px2fpImpl(const Ark_Number* value) { - return 0; + return {}; } Ark_Int32 Lpx2pxImpl(const Ark_Number* value) { - return 0; + return {}; } Ark_Int32 Px2lpxImpl(const Ark_Number* value) { - return 0; + return {}; } Ark_Boolean RequestFocusImpl(const Ark_String* value) { - return 0; + return {}; } void SetCursorImpl(Ark_PointerStyle value) { @@ -12596,7 +12740,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ContextMenu CtorImpl() { return new ContextMenuPeer(); } @@ -12616,7 +12760,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_CustomDialogControllerOptions* value) + Ark_CustomDialogController CtorImpl(const Ark_CustomDialogControllerOptions* value) { return new CustomDialogControllerPeer(value); } @@ -12631,6 +12775,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // CustomDialogControllerAccessor + namespace LinearGradientAccessor { + void DestroyPeerImpl(LinearGradientPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_LinearGradient CtorImpl(const Array_ColorStop* colorStops) + { + return new LinearGradientPeer(colorStops); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + } // LinearGradientAccessor namespace DatePickerDialogAccessor { void DestroyPeerImpl(DatePickerDialogPeer* peer) { @@ -12639,7 +12800,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_DatePickerDialog CtorImpl() { return new DatePickerDialogPeer(); } @@ -12659,7 +12820,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_BaseGestureEvent CtorImpl() { return new BaseGestureEventPeer(); } @@ -12680,7 +12841,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TapGestureEvent CtorImpl() { return new TapGestureEventPeer(); } @@ -12697,7 +12858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_LongPressGestureEvent CtorImpl() { return new LongPressGestureEventPeer(); } @@ -12707,7 +12868,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean GetRepeatImpl(LongPressGestureEventPeer* peer) { - return 0; + return {}; } void SetRepeatImpl(LongPressGestureEventPeer* peer, Ark_Boolean repeat) @@ -12722,7 +12883,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PanGestureEvent CtorImpl() { return new PanGestureEventPeer(); } @@ -12732,7 +12893,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetOffsetXImpl(PanGestureEventPeer* peer) { - return 0; + return {}; } void SetOffsetXImpl(PanGestureEventPeer* peer, const Ark_Number* offsetX) @@ -12740,7 +12901,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetOffsetYImpl(PanGestureEventPeer* peer) { - return 0; + return {}; } void SetOffsetYImpl(PanGestureEventPeer* peer, const Ark_Number* offsetY) @@ -12748,7 +12909,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetVelocityXImpl(PanGestureEventPeer* peer) { - return 0; + return {}; } void SetVelocityXImpl(PanGestureEventPeer* peer, const Ark_Number* velocityX) @@ -12756,7 +12917,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetVelocityYImpl(PanGestureEventPeer* peer) { - return 0; + return {}; } void SetVelocityYImpl(PanGestureEventPeer* peer, const Ark_Number* velocityY) @@ -12764,7 +12925,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetVelocityImpl(PanGestureEventPeer* peer) { - return 0; + return {}; } void SetVelocityImpl(PanGestureEventPeer* peer, const Ark_Number* velocity) @@ -12779,7 +12940,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PinchGestureEvent CtorImpl() { return new PinchGestureEventPeer(); } @@ -12789,7 +12950,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScaleImpl(PinchGestureEventPeer* peer) { - return 0; + return {}; } void SetScaleImpl(PinchGestureEventPeer* peer, const Ark_Number* scale) @@ -12797,7 +12958,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetPinchCenterXImpl(PinchGestureEventPeer* peer) { - return 0; + return {}; } void SetPinchCenterXImpl(PinchGestureEventPeer* peer, const Ark_Number* pinchCenterX) @@ -12805,7 +12966,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetPinchCenterYImpl(PinchGestureEventPeer* peer) { - return 0; + return {}; } void SetPinchCenterYImpl(PinchGestureEventPeer* peer, const Ark_Number* pinchCenterY) @@ -12820,7 +12981,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_RotationGestureEvent CtorImpl() { return new RotationGestureEventPeer(); } @@ -12830,7 +12991,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetAngleImpl(RotationGestureEventPeer* peer) { - return 0; + return {}; } void SetAngleImpl(RotationGestureEventPeer* peer, const Ark_Number* angle) @@ -12845,7 +13006,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_SwipeGestureEvent CtorImpl() { return new SwipeGestureEventPeer(); } @@ -12855,7 +13016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetAngleImpl(SwipeGestureEventPeer* peer) { - return 0; + return {}; } void SetAngleImpl(SwipeGestureEventPeer* peer, const Ark_Number* angle) @@ -12863,7 +13024,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetSpeedImpl(SwipeGestureEventPeer* peer) { - return 0; + return {}; } void SetSpeedImpl(SwipeGestureEventPeer* peer, const Ark_Number* speed) @@ -12878,7 +13039,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_GestureEvent CtorImpl() { return new GestureEventPeer(); } @@ -12888,7 +13049,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean GetRepeatImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetRepeatImpl(GestureEventPeer* peer, Ark_Boolean repeat) @@ -12900,7 +13061,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetOffsetXImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetOffsetXImpl(GestureEventPeer* peer, const Ark_Number* offsetX) @@ -12908,7 +13069,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetOffsetYImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetOffsetYImpl(GestureEventPeer* peer, const Ark_Number* offsetY) @@ -12916,7 +13077,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetAngleImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetAngleImpl(GestureEventPeer* peer, const Ark_Number* angle) @@ -12924,7 +13085,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetSpeedImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetSpeedImpl(GestureEventPeer* peer, const Ark_Number* speed) @@ -12932,7 +13093,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScaleImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetScaleImpl(GestureEventPeer* peer, const Ark_Number* scale) @@ -12940,7 +13101,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetPinchCenterXImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetPinchCenterXImpl(GestureEventPeer* peer, const Ark_Number* pinchCenterX) @@ -12948,7 +13109,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetPinchCenterYImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetPinchCenterYImpl(GestureEventPeer* peer, const Ark_Number* pinchCenterY) @@ -12956,7 +13117,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetVelocityXImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetVelocityXImpl(GestureEventPeer* peer, const Ark_Number* velocityX) @@ -12964,7 +13125,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetVelocityYImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetVelocityYImpl(GestureEventPeer* peer, const Ark_Number* velocityY) @@ -12972,7 +13133,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetVelocityImpl(GestureEventPeer* peer) { - return 0; + return {}; } void SetVelocityImpl(GestureEventPeer* peer, const Ark_Number* velocity) @@ -12987,7 +13148,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value) + Ark_PanGestureOptions CtorImpl(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value) { return new PanGestureOptionsPeer(value); } @@ -13009,7 +13170,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetDirectionImpl(PanGestureOptionsPeer* peer) { - return nullptr; + return {}; } } // PanGestureOptionsAccessor namespace ScrollableTargetInfoAccessor { @@ -13020,7 +13181,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ScrollableTargetInfo CtorImpl() { return new ScrollableTargetInfoPeer(); } @@ -13030,11 +13191,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsBeginImpl(ScrollableTargetInfoPeer* peer) { - return 0; + return {}; } Ark_Boolean IsEndImpl(ScrollableTargetInfoPeer* peer) { - return 0; + return {}; } } // ScrollableTargetInfoAccessor namespace EventTargetInfoAccessor { @@ -13045,7 +13206,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_EventTargetInfo CtorImpl() { return new EventTargetInfoPeer(); } @@ -13065,7 +13226,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_GestureRecognizer CtorImpl() { return new GestureRecognizerPeer(); } @@ -13078,11 +13239,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetTypeImpl(GestureRecognizerPeer* peer) { - return nullptr; + return {}; } Ark_Boolean IsBuiltInImpl(GestureRecognizerPeer* peer) { - return 0; + return {}; } void SetEnabledImpl(GestureRecognizerPeer* peer, Ark_Boolean isEnabled) @@ -13090,19 +13251,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsEnabledImpl(GestureRecognizerPeer* peer) { - return 0; + return {}; } Ark_NativePointer GetStateImpl(GestureRecognizerPeer* peer) { - return nullptr; + return {}; } - Ark_NativePointer GetEventTargetInfoImpl(GestureRecognizerPeer* peer) + Ark_EventTargetInfo GetEventTargetInfoImpl(GestureRecognizerPeer* peer) { - return nullptr; + return {}; } Ark_Boolean IsValidImpl(GestureRecognizerPeer* peer) { - return 0; + return {}; } } // GestureRecognizerAccessor namespace PanRecognizerAccessor { @@ -13113,7 +13274,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PanRecognizer CtorImpl() { return new PanRecognizerPeer(); } @@ -13121,9 +13282,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetPanGestureOptionsImpl(PanRecognizerPeer* peer) + Ark_PanGestureOptions GetPanGestureOptionsImpl(PanRecognizerPeer* peer) { - return nullptr; + return {}; } } // PanRecognizerAccessor namespace ImageAnalyzerControllerAccessor { @@ -13134,7 +13295,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ImageAnalyzerController CtorImpl() { return new ImageAnalyzerControllerPeer(); } @@ -13154,7 +13315,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ListScroller CtorImpl() { return new ListScrollerPeer(); } @@ -13166,7 +13327,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* index, const Ark_Number* indexInGroup) { - return nullptr; + return {}; } void ScrollToItemInGroupImpl(ListScrollerPeer* peer, const Ark_Number* index, @@ -13183,7 +13344,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* x, const Ark_Number* y) { - return nullptr; + return {}; } } // ListScrollerAccessor namespace Matrix2DAccessor { @@ -13194,7 +13355,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_Matrix2D CtorImpl() { return new Matrix2DPeer(); } @@ -13202,47 +13363,47 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer IdentityImpl(Matrix2DPeer* peer) + Ark_Matrix2D IdentityImpl(Matrix2DPeer* peer) { - return nullptr; + return {}; } - Ark_NativePointer InvertImpl(Matrix2DPeer* peer) + Ark_Matrix2D InvertImpl(Matrix2DPeer* peer) { - return nullptr; + return {}; } - Ark_NativePointer MultiplyImpl(Matrix2DPeer* peer, - const Opt_Matrix2D* other) + Ark_Matrix2D MultiplyImpl(Matrix2DPeer* peer, + const Opt_Matrix2D* other) { - return nullptr; + return {}; } - Ark_NativePointer Rotate0Impl(Matrix2DPeer* peer, - const Opt_Number* rx, - const Opt_Number* ry) + Ark_Matrix2D Rotate0Impl(Matrix2DPeer* peer, + const Opt_Number* rx, + const Opt_Number* ry) { - return nullptr; + return {}; } - Ark_NativePointer Rotate1Impl(Matrix2DPeer* peer, - const Ark_Number* degree, - const Opt_Number* rx, - const Opt_Number* ry) + Ark_Matrix2D Rotate1Impl(Matrix2DPeer* peer, + const Ark_Number* degree, + const Opt_Number* rx, + const Opt_Number* ry) { - return nullptr; + return {}; } - Ark_NativePointer TranslateImpl(Matrix2DPeer* peer, - const Opt_Number* tx, - const Opt_Number* ty) + Ark_Matrix2D TranslateImpl(Matrix2DPeer* peer, + const Opt_Number* tx, + const Opt_Number* ty) { - return nullptr; + return {}; } - Ark_NativePointer ScaleImpl(Matrix2DPeer* peer, - const Opt_Number* sx, - const Opt_Number* sy) + Ark_Matrix2D ScaleImpl(Matrix2DPeer* peer, + const Opt_Number* sx, + const Opt_Number* sy) { - return nullptr; + return {}; } Ark_Int32 GetScaleXImpl(Matrix2DPeer* peer) { - return 0; + return {}; } void SetScaleXImpl(Matrix2DPeer* peer, const Ark_Number* scaleX) @@ -13250,7 +13411,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetRotateYImpl(Matrix2DPeer* peer) { - return 0; + return {}; } void SetRotateYImpl(Matrix2DPeer* peer, const Ark_Number* rotateY) @@ -13258,7 +13419,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetRotateXImpl(Matrix2DPeer* peer) { - return 0; + return {}; } void SetRotateXImpl(Matrix2DPeer* peer, const Ark_Number* rotateX) @@ -13266,7 +13427,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetScaleYImpl(Matrix2DPeer* peer) { - return 0; + return {}; } void SetScaleYImpl(Matrix2DPeer* peer, const Ark_Number* scaleY) @@ -13274,7 +13435,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetTranslateXImpl(Matrix2DPeer* peer) { - return 0; + return {}; } void SetTranslateXImpl(Matrix2DPeer* peer, const Ark_Number* translateX) @@ -13282,7 +13443,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetTranslateYImpl(Matrix2DPeer* peer) { - return 0; + return {}; } void SetTranslateYImpl(Matrix2DPeer* peer, const Ark_Number* translateY) @@ -13297,7 +13458,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_NavDestinationContext CtorImpl() { return new NavDestinationContextPeer(); } @@ -13307,14 +13468,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) { - return 0; + return {}; } void SetPathInfoImpl(NavDestinationContextPeer* peer, - const Ark_NavPathInfo* pathInfo) + Ark_NavPathInfo pathInfo) { } void SetPathStackImpl(NavDestinationContextPeer* peer, - const Ark_NavPathStack* pathStack) + Ark_NavPathStack pathStack) { } void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) @@ -13325,6 +13486,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // NavDestinationContextAccessor + namespace NavPathInfoAccessor { + void DestroyPeerImpl(NavPathInfoPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_NavPathInfo CtorImpl(const Ark_String* name, + const Ark_CustomObject* param, + const Opt_Callback_PopInfo_Void* onPop, + const Opt_Boolean* isEntry) + { + return new NavPathInfoPeer(name, param, onPop, isEntry); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void GetNameImpl(NavPathInfoPeer* peer) + { + } + void SetNameImpl(NavPathInfoPeer* peer, + const Ark_String* name) + { + } + void SetParamImpl(NavPathInfoPeer* peer, + const Ark_CustomObject* param) + { + } + Callback_PopInfo_Void GetOnPopImpl(NavPathInfoPeer* peer) + { + return {}; + } + void SetOnPopImpl(NavPathInfoPeer* peer, + const Callback_PopInfo_Void* onPop) + { + } + Ark_Boolean GetIsEntryImpl(NavPathInfoPeer* peer) + { + return {}; + } + void SetIsEntryImpl(NavPathInfoPeer* peer, + Ark_Boolean isEntry) + { + } + } // NavPathInfoAccessor namespace NavPathStackAccessor { void DestroyPeerImpl(NavPathStackPeer* peer) { @@ -13333,7 +13541,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_NavPathStack CtorImpl() { return new NavPathStackPeer(); } @@ -13342,23 +13550,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(&DestroyPeerImpl); } void PushPath0Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated) { } void PushPath1Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options) { } void PushDestination0Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } void PushDestination1Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -13392,17 +13600,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void ReplacePath0Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_Boolean* animated) { } void ReplacePath1Impl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options) { } void ReplaceDestinationImpl(NavPathStackPeer* peer, - const Ark_NavPathInfo* info, + Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -13416,41 +13624,41 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Int32 RemoveByIndexesImpl(NavPathStackPeer* peer, const Array_Number* indexes) { - return 0; + return {}; } Ark_Int32 RemoveByNameImpl(NavPathStackPeer* peer, const Ark_String* name) { - return 0; + return {}; } Ark_Boolean RemoveByNavDestinationIdImpl(NavPathStackPeer* peer, const Ark_String* navDestinationId) { - return 0; + return {}; } - Ark_NativePointer Pop0Impl(NavPathStackPeer* peer, - const Opt_Boolean* animated) + Ark_NavPathInfo Pop0Impl(NavPathStackPeer* peer, + const Opt_Boolean* animated) { - return 0; + return {}; } - Ark_NativePointer Pop1Impl(NavPathStackPeer* peer, - const Ark_CustomObject* result, - const Opt_Boolean* animated) + Ark_NavPathInfo Pop1Impl(NavPathStackPeer* peer, + const Ark_CustomObject* result, + const Opt_Boolean* animated) { - return 0; + return {}; } Ark_Int32 PopToName0Impl(NavPathStackPeer* peer, const Ark_String* name, const Opt_Boolean* animated) { - return 0; + return {}; } Ark_Int32 PopToName1Impl(NavPathStackPeer* peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated) { - return 0; + return {}; } void PopToIndex0Impl(NavPathStackPeer* peer, const Ark_Number* index, @@ -13467,7 +13675,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_String* name, const Opt_Boolean* animated) { - return 0; + return {}; } void MoveIndexToTopImpl(NavPathStackPeer* peer, const Ark_Number* index, @@ -13493,13 +13701,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_String* name) { } - Ark_NativePointer GetParentImpl(NavPathStackPeer* peer) + Ark_NavPathStack GetParentImpl(NavPathStackPeer* peer) { - return 0; + return {}; } Ark_Int32 SizeImpl(NavPathStackPeer* peer) { - return 0; + return {}; } void DisableAnimationImpl(NavPathStackPeer* peer, Ark_Boolean value) @@ -13518,7 +13726,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_NavigationTransitionProxy CtorImpl() { return new NavigationTransitionProxyPeer(); } @@ -13546,7 +13754,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) { - return 0; + return {}; } void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, Ark_Boolean isInteractive) @@ -13561,7 +13769,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PatternLockController CtorImpl() { return new PatternLockControllerPeer(); } @@ -13585,7 +13793,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_RichEditorBaseController CtorImpl() { return new RichEditorBaseControllerPeer(); } @@ -13595,19 +13803,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetCaretOffsetImpl(RichEditorBaseControllerPeer* peer) { - return 0; + return {}; } Ark_Boolean SetCaretOffsetImpl(RichEditorBaseControllerPeer* peer, const Ark_Number* offset) { - return 0; + return {}; } void CloseSelectionMenuImpl(RichEditorBaseControllerPeer* peer) { } Ark_NativePointer GetTypingStyleImpl(RichEditorBaseControllerPeer* peer) { - return nullptr; + return {}; } void SetTypingStyleImpl(RichEditorBaseControllerPeer* peer, const Ark_RichEditorTextStyle* value) @@ -13621,18 +13829,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsEditingImpl(RichEditorBaseControllerPeer* peer) { - return 0; + return {}; } void StopEditingImpl(RichEditorBaseControllerPeer* peer) { } - Ark_NativePointer GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetPreviewTextImpl(RichEditorBaseControllerPeer* peer) { - return nullptr; + return {}; } } // RichEditorBaseControllerAccessor namespace RichEditorControllerAccessor { @@ -13643,7 +13851,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_RichEditorController CtorImpl() { return new RichEditorControllerPeer(); } @@ -13655,25 +13863,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_String* value, const Opt_RichEditorTextSpanOptions* options) { - return 0; + return {}; } Ark_Int32 AddImageSpanImpl(RichEditorControllerPeer* peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options) { - return 0; + return {}; } Ark_Int32 AddBuilderSpanImpl(RichEditorControllerPeer* peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options) { - return 0; + return {}; } Ark_Int32 AddSymbolSpanImpl(RichEditorControllerPeer* peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options) { - return 0; + return {}; } void UpdateSpanStyleImpl(RichEditorControllerPeer* peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value) @@ -13697,16 +13905,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetSelectionImpl(RichEditorControllerPeer* peer) { - return nullptr; + return {}; } void FromStyledStringImpl(RichEditorControllerPeer* peer, - const Ark_StyledString* value) + Ark_StyledString value) { } - Ark_NativePointer ToStyledStringImpl(RichEditorControllerPeer* peer, - const Ark_RichEditorRange* value) + Ark_StyledString ToStyledStringImpl(RichEditorControllerPeer* peer, + const Ark_RichEditorRange* value) { - return nullptr; + return {}; } } // RichEditorControllerAccessor namespace RichEditorStyledStringControllerAccessor { @@ -13717,7 +13925,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_RichEditorStyledStringController CtorImpl() { return new RichEditorStyledStringControllerPeer(); } @@ -13726,16 +13934,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(&DestroyPeerImpl); } void SetStyledStringImpl(RichEditorStyledStringControllerPeer* peer, - const Ark_StyledString* styledString) + Ark_StyledString styledString) { } - Ark_NativePointer GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetSelectionImpl(RichEditorStyledStringControllerPeer* peer) { - return nullptr; + return {}; } void OnContentChangedImpl(RichEditorStyledStringControllerPeer* peer, const Ark_StyledStringChangedListener* listener) @@ -13750,7 +13958,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_Scroller CtorImpl() { return new ScrollerPeer(); } @@ -13781,7 +13989,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer CurrentOffsetImpl(ScrollerPeer* peer) { - return nullptr; + return {}; } void ScrollToIndexImpl(ScrollerPeer* peer, const Ark_Number* value, @@ -13797,18 +14005,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsAtEndImpl(ScrollerPeer* peer) { - return 0; + return {}; } Ark_NativePointer GetItemRectImpl(ScrollerPeer* peer, const Ark_Number* index) { - return nullptr; + return {}; } Ark_Int32 GetItemIndexImpl(ScrollerPeer* peer, const Ark_Number* x, const Ark_Number* y) { - return 0; + return {}; } } // ScrollerAccessor namespace SearchControllerAccessor { @@ -13819,7 +14027,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_SearchController CtorImpl() { return new SearchControllerPeer(); } @@ -13849,7 +14057,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_SwiperController CtorImpl() { return new SwiperControllerPeer(); } @@ -13881,7 +14089,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_SwiperContentTransitionProxy CtorImpl() { return new SwiperContentTransitionProxyPeer(); } @@ -13894,7 +14102,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer) { - return 0; + return {}; } void SetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer, const Ark_Number* selectedIndex) @@ -13902,7 +14110,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetIndexImpl(SwiperContentTransitionProxyPeer* peer) { - return 0; + return {}; } void SetIndexImpl(SwiperContentTransitionProxyPeer* peer, const Ark_Number* index) @@ -13910,7 +14118,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetPositionImpl(SwiperContentTransitionProxyPeer* peer) { - return 0; + return {}; } void SetPositionImpl(SwiperContentTransitionProxyPeer* peer, const Ark_Number* position) @@ -13918,7 +14126,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer) { - return 0; + return {}; } void SetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer, const Ark_Number* mainAxisLength) @@ -13933,7 +14141,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_IndicatorComponentController CtorImpl() { return new IndicatorComponentControllerPeer(); } @@ -13953,33 +14161,201 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // IndicatorComponentControllerAccessor - namespace TabsControllerAccessor { - void DestroyPeerImpl(TabsControllerPeer* peer) + namespace ScaleSymbolEffectAccessor { + void DestroyPeerImpl(ScaleSymbolEffectPeer* peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ScaleSymbolEffect CtorImpl(const Opt_EffectScope* scope, + const Opt_EffectDirection* direction) { - return new TabsControllerPeer(); + return new ScaleSymbolEffectPeer(scope, direction); } Ark_NativePointer GetFinalizerImpl() { return reinterpret_cast(&DestroyPeerImpl); } - void ChangeIndexImpl(TabsControllerPeer* peer, - const Ark_Number* value) + Ark_NativePointer GetScopeImpl(ScaleSymbolEffectPeer* peer) { + return {}; } - void PreloadItemsImpl(TabsControllerPeer* peer, - const Opt_Array_Number* indices, - const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) + void SetScopeImpl(ScaleSymbolEffectPeer* peer, + Ark_EffectScope scope) { } - void SetTabBarTranslateImpl(TabsControllerPeer* peer, - const Ark_TranslateOptions* translate) + Ark_NativePointer GetDirectionImpl(ScaleSymbolEffectPeer* peer) + { + return {}; + } + void SetDirectionImpl(ScaleSymbolEffectPeer* peer, + Ark_EffectDirection direction) + { + } + } // ScaleSymbolEffectAccessor + namespace HierarchicalSymbolEffectAccessor { + void DestroyPeerImpl(HierarchicalSymbolEffectPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_HierarchicalSymbolEffect CtorImpl(const Opt_EffectFillStyle* fillStyle) + { + return new HierarchicalSymbolEffectPeer(fillStyle); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer GetFillStyleImpl(HierarchicalSymbolEffectPeer* peer) + { + return {}; + } + void SetFillStyleImpl(HierarchicalSymbolEffectPeer* peer, + Ark_EffectFillStyle fillStyle) + { + } + } // HierarchicalSymbolEffectAccessor + namespace AppearSymbolEffectAccessor { + void DestroyPeerImpl(AppearSymbolEffectPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_AppearSymbolEffect CtorImpl(const Opt_EffectScope* scope) + { + return new AppearSymbolEffectPeer(scope); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer GetScopeImpl(AppearSymbolEffectPeer* peer) + { + return {}; + } + void SetScopeImpl(AppearSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + } + } // AppearSymbolEffectAccessor + namespace DisappearSymbolEffectAccessor { + void DestroyPeerImpl(DisappearSymbolEffectPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_DisappearSymbolEffect CtorImpl(const Opt_EffectScope* scope) + { + return new DisappearSymbolEffectPeer(scope); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer GetScopeImpl(DisappearSymbolEffectPeer* peer) + { + return {}; + } + void SetScopeImpl(DisappearSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + } + } // DisappearSymbolEffectAccessor + namespace BounceSymbolEffectAccessor { + void DestroyPeerImpl(BounceSymbolEffectPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_BounceSymbolEffect CtorImpl(const Opt_EffectScope* scope, + const Opt_EffectDirection* direction) + { + return new BounceSymbolEffectPeer(scope, direction); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer GetScopeImpl(BounceSymbolEffectPeer* peer) + { + return {}; + } + void SetScopeImpl(BounceSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + } + Ark_NativePointer GetDirectionImpl(BounceSymbolEffectPeer* peer) + { + return {}; + } + void SetDirectionImpl(BounceSymbolEffectPeer* peer, + Ark_EffectDirection direction) + { + } + } // BounceSymbolEffectAccessor + namespace ReplaceSymbolEffectAccessor { + void DestroyPeerImpl(ReplaceSymbolEffectPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_ReplaceSymbolEffect CtorImpl(const Opt_EffectScope* scope) + { + return new ReplaceSymbolEffectPeer(scope); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer GetScopeImpl(ReplaceSymbolEffectPeer* peer) + { + return {}; + } + void SetScopeImpl(ReplaceSymbolEffectPeer* peer, + Ark_EffectScope scope) + { + } + } // ReplaceSymbolEffectAccessor + namespace TabsControllerAccessor { + void DestroyPeerImpl(TabsControllerPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_TabsController CtorImpl() + { + return new TabsControllerPeer(); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void ChangeIndexImpl(TabsControllerPeer* peer, + const Ark_Number* value) + { + } + void PreloadItemsImpl(TabsControllerPeer* peer, + const Opt_Array_Number* indices, + const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) + { + } + void SetTabBarTranslateImpl(TabsControllerPeer* peer, + const Ark_TranslateOptions* translate) { } void SetTabBarOpacityImpl(TabsControllerPeer* peer, @@ -13995,7 +14371,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TabContentTransitionProxy CtorImpl() { return new TabContentTransitionProxyPeer(); } @@ -14008,7 +14384,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetFromImpl(TabContentTransitionProxyPeer* peer) { - return 0; + return {}; } void SetFromImpl(TabContentTransitionProxyPeer* peer, const Ark_Number* from) @@ -14016,7 +14392,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetToImpl(TabContentTransitionProxyPeer* peer) { - return 0; + return {}; } void SetToImpl(TabContentTransitionProxyPeer* peer, const Ark_Number* to) @@ -14031,7 +14407,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextController CtorImpl() { return new TextControllerPeer(); } @@ -14043,12 +14419,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } void SetStyledStringImpl(TextControllerPeer* peer, - const Ark_StyledString* value) + Ark_StyledString value) { } - Ark_NativePointer GetLayoutManagerImpl(TextControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(TextControllerPeer* peer) { - return nullptr; + return {}; } } // TextControllerAccessor namespace TextAreaControllerAccessor { @@ -14059,7 +14435,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextAreaController CtorImpl() { return new TextAreaControllerPeer(); } @@ -14089,7 +14465,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextClockController CtorImpl() { return new TextClockControllerPeer(); } @@ -14112,7 +14488,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextBaseController CtorImpl() { return new TextBaseControllerPeer(); } @@ -14129,9 +14505,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { void CloseSelectionMenuImpl(TextBaseControllerPeer* peer) { } - Ark_NativePointer GetLayoutManagerImpl(TextBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(TextBaseControllerPeer* peer) { - return nullptr; + return {}; } } // TextBaseControllerAccessor namespace TextEditControllerExAccessor { @@ -14142,7 +14518,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextEditControllerEx CtorImpl() { return new TextEditControllerExPeer(); } @@ -14152,7 +14528,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsEditingImpl(TextEditControllerExPeer* peer) { - return 0; + return {}; } void StopEditingImpl(TextEditControllerExPeer* peer) { @@ -14160,15 +14536,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Boolean SetCaretOffsetImpl(TextEditControllerExPeer* peer, const Ark_Number* offset) { - return 0; + return {}; } Ark_Int32 GetCaretOffsetImpl(TextEditControllerExPeer* peer) { - return 0; + return {}; } Ark_NativePointer GetPreviewTextImpl(TextEditControllerExPeer* peer) { - return nullptr; + return {}; } } // TextEditControllerExAccessor namespace StyledStringControllerAccessor { @@ -14179,7 +14555,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_StyledStringController CtorImpl() { return new StyledStringControllerPeer(); } @@ -14188,12 +14564,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(&DestroyPeerImpl); } void SetStyledStringImpl(StyledStringControllerPeer* peer, - const Ark_StyledString* styledString) + Ark_StyledString styledString) { } - Ark_NativePointer GetStyledStringImpl(StyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(StyledStringControllerPeer* peer) { - return nullptr; + return {}; } } // StyledStringControllerAccessor namespace LayoutManagerAccessor { @@ -14204,7 +14580,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_LayoutManager CtorImpl() { return new LayoutManagerPeer(); } @@ -14214,18 +14590,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetLineCountImpl(LayoutManagerPeer* peer) { - return 0; + return {}; } Ark_NativePointer GetGlyphPositionAtCoordinateImpl(LayoutManagerPeer* peer, const Ark_Number* x, const Ark_Number* y) { - return nullptr; + return {}; } Ark_NativePointer GetLineMetricsImpl(LayoutManagerPeer* peer, const Ark_Number* lineNumber) { - return nullptr; + return {}; } void GetRectsForRangeImpl(LayoutManagerPeer* peer, const Ark_TextRange* range, @@ -14242,7 +14618,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextMenuItemId CtorImpl() { return new TextMenuItemIdPeer(); } @@ -14250,14 +14626,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer OfImpl(const Ark_ResourceStr* id) + Ark_TextMenuItemId OfImpl(const Ark_ResourceStr* id) { - return nullptr; + return {}; } Ark_Boolean EqualsImpl(TextMenuItemIdPeer* peer, - const Ark_TextMenuItemId* id) + Ark_TextMenuItemId id) { - return 0; + return {}; } } // TextMenuItemIdAccessor namespace EditMenuOptionsAccessor { @@ -14268,7 +14644,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_EditMenuOptions CtorImpl() { return new EditMenuOptionsPeer(); } @@ -14284,7 +14660,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_TextMenuItem* menuItem, const Ark_TextRange* range) { - return 0; + return {}; } } // EditMenuOptionsAccessor namespace SubmitEventAccessor { @@ -14295,7 +14671,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_SubmitEvent CtorImpl() { return new SubmitEventPeer(); } @@ -14322,7 +14698,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextInputController CtorImpl() { return new TextInputControllerPeer(); } @@ -14352,7 +14728,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextPickerDialog CtorImpl() { return new TextPickerDialogPeer(); } @@ -14372,7 +14748,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextTimerController CtorImpl() { return new TextTimerControllerPeer(); } @@ -14398,7 +14774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TimePickerDialog CtorImpl() { return new TimePickerDialogPeer(); } @@ -14410,6 +14786,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // TimePickerDialogAccessor + namespace ColorFilterAccessor { + void DestroyPeerImpl(ColorFilterPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_ColorFilter CtorImpl(const Array_Number* value) + { + return new ColorFilterPeer(value); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + } // ColorFilterAccessor namespace VideoControllerAccessor { void DestroyPeerImpl(VideoControllerPeer* peer) { @@ -14418,7 +14811,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_VideoController CtorImpl() { return new VideoControllerPeer(); } @@ -14463,7 +14856,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebKeyboardController CtorImpl() { return new WebKeyboardControllerPeer(); } @@ -14499,7 +14892,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_FullScreenExitHandler CtorImpl() { return new FullScreenExitHandlerPeer(); } @@ -14519,7 +14912,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_FileSelectorParam CtorImpl() { return new FileSelectorParamPeer(); } @@ -14532,14 +14925,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetModeImpl(FileSelectorParamPeer* peer) { - return nullptr; + return {}; } void GetAcceptTypeImpl(FileSelectorParamPeer* peer) { } Ark_Boolean IsCaptureImpl(FileSelectorParamPeer* peer) { - return 0; + return {}; } } // FileSelectorParamAccessor namespace JsResultAccessor { @@ -14550,7 +14943,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_JsResult CtorImpl() { return new JsResultPeer(); } @@ -14577,7 +14970,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_FileSelectorResult CtorImpl() { return new FileSelectorResultPeer(); } @@ -14598,7 +14991,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_HttpAuthHandler CtorImpl() { return new HttpAuthHandlerPeer(); } @@ -14610,14 +15003,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_String* userName, const Ark_String* password) { - return 0; + return {}; } void CancelImpl(HttpAuthHandlerPeer* peer) { } Ark_Boolean IsHttpAuthInfoSavedImpl(HttpAuthHandlerPeer* peer) { - return 0; + return {}; } } // HttpAuthHandlerAccessor namespace SslErrorHandlerAccessor { @@ -14628,7 +15021,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_SslErrorHandler CtorImpl() { return new SslErrorHandlerPeer(); } @@ -14651,7 +15044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ClientAuthenticationHandler CtorImpl() { return new ClientAuthenticationHandlerPeer(); } @@ -14683,7 +15076,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_PermissionRequest CtorImpl() { return new PermissionRequestPeer(); } @@ -14713,7 +15106,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ScreenCaptureHandler CtorImpl() { return new ScreenCaptureHandlerPeer(); } @@ -14740,7 +15133,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_DataResubmissionHandler CtorImpl() { return new DataResubmissionHandlerPeer(); } @@ -14763,7 +15156,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_ControllerHandler CtorImpl() { return new ControllerHandlerPeer(); } @@ -14772,7 +15165,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return reinterpret_cast(&DestroyPeerImpl); } void SetWebControllerImpl(ControllerHandlerPeer* peer, - const Ark_WebviewController* controller) + Ark_WebviewController controller) { } } // ControllerHandlerAccessor @@ -14784,7 +15177,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebContextMenuParam CtorImpl() { return new WebContextMenuParamPeer(); } @@ -14794,11 +15187,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 XImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } Ark_Int32 YImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } void GetLinkUrlImpl(WebContextMenuParamPeer* peer) { @@ -14811,38 +15204,38 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean ExistsImageContentsImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } Ark_NativePointer GetMediaTypeImpl(WebContextMenuParamPeer* peer) { - return nullptr; + return {}; } void GetSelectionTextImpl(WebContextMenuParamPeer* peer) { } Ark_NativePointer GetSourceTypeImpl(WebContextMenuParamPeer* peer) { - return nullptr; + return {}; } Ark_NativePointer GetInputFieldTypeImpl(WebContextMenuParamPeer* peer) { - return nullptr; + return {}; } Ark_Boolean IsEditableImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } Ark_Int32 GetEditStateFlagsImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } Ark_Int32 GetPreviewWidthImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } Ark_Int32 GetPreviewHeightImpl(WebContextMenuParamPeer* peer) { - return 0; + return {}; } } // WebContextMenuParamAccessor namespace WebContextMenuResultAccessor { @@ -14853,7 +15246,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebContextMenuResult CtorImpl() { return new WebContextMenuResultPeer(); } @@ -14888,10 +15281,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_String* message, - const Ark_String* sourceId, - const Ark_Number* lineNumber, - Ark_MessageLevel messageLevel) + Ark_ConsoleMessage CtorImpl(const Ark_String* message, + const Ark_String* sourceId, + const Ark_Number* lineNumber, + Ark_MessageLevel messageLevel) { return new ConsoleMessagePeer(message, sourceId, lineNumber, messageLevel); } @@ -14907,11 +15300,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetLineNumberImpl(ConsoleMessagePeer* peer) { - return 0; + return {}; } Ark_NativePointer GetMessageLevelImpl(ConsoleMessagePeer* peer) { - return nullptr; + return {}; } } // ConsoleMessageAccessor namespace WebResourceRequestAccessor { @@ -14922,7 +15315,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebResourceRequest CtorImpl() { return new WebResourceRequestPeer(); } @@ -14938,15 +15331,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean IsRequestGestureImpl(WebResourceRequestPeer* peer) { - return 0; + return {}; } Ark_Boolean IsMainFrameImpl(WebResourceRequestPeer* peer) { - return 0; + return {}; } Ark_Boolean IsRedirectImpl(WebResourceRequestPeer* peer) { - return 0; + return {}; } void GetRequestMethodImpl(WebResourceRequestPeer* peer) { @@ -14960,7 +15353,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebResourceResponse CtorImpl() { return new WebResourceResponsePeer(); } @@ -14973,7 +15366,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetResponseDataExImpl(WebResourceResponsePeer* peer) { - return 0; + return {}; } void GetResponseEncodingImpl(WebResourceResponsePeer* peer) { @@ -14989,7 +15382,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetResponseCodeImpl(WebResourceResponsePeer* peer) { - return 0; + return {}; } void SetResponseDataImpl(WebResourceResponsePeer* peer, const Ark_Union_String_Number_Resource_Buffer* data) @@ -15021,7 +15414,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Boolean GetResponseIsReadyImpl(WebResourceResponsePeer* peer) { - return 0; + return {}; } } // WebResourceResponseAccessor namespace WebResourceErrorAccessor { @@ -15032,7 +15425,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebResourceError CtorImpl() { return new WebResourceErrorPeer(); } @@ -15045,7 +15438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_Int32 GetErrorCodeImpl(WebResourceErrorPeer* peer) { - return 0; + return {}; } } // WebResourceErrorAccessor namespace JsGeolocationAccessor { @@ -15056,7 +15449,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_JsGeolocation CtorImpl() { return new JsGeolocationPeer(); } @@ -15079,7 +15472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebCookie CtorImpl() { return new WebCookiePeer(); } @@ -15102,7 +15495,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_EventResult CtorImpl() { return new EventResultPeer(); } @@ -15123,7 +15516,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_WebController CtorImpl() { return new WebControllerPeer(); } @@ -15172,23 +15565,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetHitTestImpl(WebControllerPeer* peer) { - return nullptr; + return {}; } void RequestFocusImpl(WebControllerPeer* peer) { } Ark_Boolean AccessBackwardImpl(WebControllerPeer* peer) { - return 0; + return {}; } Ark_Boolean AccessForwardImpl(WebControllerPeer* peer) { - return 0; + return {}; } Ark_Boolean AccessStepImpl(WebControllerPeer* peer, const Ark_Number* step) { - return 0; + return {}; } void BackwardImpl(WebControllerPeer* peer) { @@ -15196,9 +15589,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { void ForwardImpl(WebControllerPeer* peer) { } - Ark_NativePointer GetCookieManagerImpl(WebControllerPeer* peer) + Ark_WebCookie GetCookieManagerImpl(WebControllerPeer* peer) { - return nullptr; + return {}; } } // WebControllerAccessor namespace XComponentControllerAccessor { @@ -15209,7 +15602,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_XComponentController CtorImpl() { return new XComponentControllerPeer(); } @@ -15222,190 +15615,418 @@ namespace OHOS::Ace::NG::GeneratedModifier { } Ark_NativePointer GetXComponentContextImpl(XComponentControllerPeer* peer) { - return nullptr; + return {}; } void SetXComponentSurfaceSizeImpl(XComponentControllerPeer* peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value) { } - void SetXComponentSurfaceRectImpl(XComponentControllerPeer* peer, - const Ark_SurfaceRect* rect) + void SetXComponentSurfaceRectImpl(XComponentControllerPeer* peer, + const Ark_SurfaceRect* rect) + { + } + Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) + { + return {}; + } + void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, + const Ark_SurfaceRotationOptions* rotationOptions) + { + } + Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) + { + return {}; + } + void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, + const Ark_String* surfaceId) + { + } + void OnSurfaceChangedImpl(XComponentControllerPeer* peer, + const Ark_String* surfaceId, + const Ark_SurfaceRect* rect) + { + } + void OnSurfaceDestroyedImpl(XComponentControllerPeer* peer, + const Ark_String* surfaceId) + { + } + void StartImageAnalyzerImpl(XComponentControllerPeer* peer, + const Ark_ImageAnalyzerConfig* config, + const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) + { + } + void StopImageAnalyzerImpl(XComponentControllerPeer* peer) + { + } + } // XComponentControllerAccessor + namespace WaterFlowSectionsAccessor { + void DestroyPeerImpl(WaterFlowSectionsPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_WaterFlowSections CtorImpl() + { + return new WaterFlowSectionsPeer(); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_Boolean SpliceImpl(WaterFlowSectionsPeer* peer, + const Ark_Number* start, + const Opt_Number* deleteCount, + const Opt_Array_SectionOptions* sections) + { + return {}; + } + Ark_Boolean PushImpl(WaterFlowSectionsPeer* peer, + const Ark_SectionOptions* section) + { + return {}; + } + Ark_Boolean UpdateImpl(WaterFlowSectionsPeer* peer, + const Ark_Number* sectionIndex, + const Ark_SectionOptions* section) + { + return {}; + } + void ValuesImpl(WaterFlowSectionsPeer* peer) + { + } + Ark_Int32 LengthImpl(WaterFlowSectionsPeer* peer) + { + return {}; + } + } // WaterFlowSectionsAccessor + namespace UIExtensionProxyAccessor { + void DestroyPeerImpl(UIExtensionProxyPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_UIExtensionProxy CtorImpl() + { + return new UIExtensionProxyPeer(); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void SendImpl(UIExtensionProxyPeer* peer, + const Map_String_CustomObject* data) + { + } + Ark_NativePointer SendSyncImpl(UIExtensionProxyPeer* peer, + const Map_String_CustomObject* data) + { + return {}; + } + void OnAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + const Callback_UIExtensionProxy_Void* callback_) + { + } + void OnSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + const Callback_UIExtensionProxy_Void* callback_) + { + } + void OffAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + const Opt_Callback_UIExtensionProxy_Void* callback_) + { + } + void OffSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + const Opt_Callback_UIExtensionProxy_Void* callback_) + { + } + } // UIExtensionProxyAccessor + namespace StyledStringAccessor { + void DestroyPeerImpl(StyledStringPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_StyledString CtorImpl(const Ark_Union_String_ImageAttachment_CustomSpan* value, + const Opt_Array_StyleOptions* styles) + { + return new StyledStringPeer(value, styles); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void GetStringImpl(StyledStringPeer* peer) + { + } + void GetStylesImpl(StyledStringPeer* peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey) + { + } + Ark_Boolean EqualsImpl(StyledStringPeer* peer, + Ark_StyledString other) + { + return {}; + } + Ark_StyledString SubStyledStringImpl(StyledStringPeer* peer, + const Ark_Number* start, + const Opt_Number* length) + { + return {}; + } + void FromHtmlImpl(const Ark_String* html, + const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) + { + } + void ToHtmlImpl(Ark_StyledString styledString) + { + } + void MarshallingImpl(Ark_StyledString styledString) + { + } + void UnmarshallingImpl(const Ark_Buffer* buffer, + const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) + { + } + Ark_Int32 GetLengthImpl(StyledStringPeer* peer) + { + return {}; + } + } // StyledStringAccessor + namespace TextStyle_styled_stringAccessor { + void DestroyPeerImpl(TextStyle_styled_stringPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_TextStyle_styled_string CtorImpl(const Opt_TextStyleInterface* value) + { + return new TextStyle_styled_stringPeer(value); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void GetFontFamilyImpl(TextStyle_styled_stringPeer* peer) { } - Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) + Ark_Int32 GetFontSizeImpl(TextStyle_styled_stringPeer* peer) { - return nullptr; + return {}; } - void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, - const Ark_SurfaceRotationOptions* rotationOptions) + Ark_Int32 GetFontWeightImpl(TextStyle_styled_stringPeer* peer) { + return {}; } - Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) + Ark_NativePointer GetFontStyleImpl(TextStyle_styled_stringPeer* peer) { - return nullptr; + return {}; } - void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, - const Ark_String* surfaceId) + } // TextStyle_styled_stringAccessor + namespace DecorationStyleAccessor { + void DestroyPeerImpl(DecorationStylePeer* peer) { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } } - void OnSurfaceChangedImpl(XComponentControllerPeer* peer, - const Ark_String* surfaceId, - const Ark_SurfaceRect* rect) + Ark_DecorationStyle CtorImpl(const Ark_DecorationStyleInterface* value) { + return new DecorationStylePeer(value); } - void OnSurfaceDestroyedImpl(XComponentControllerPeer* peer, - const Ark_String* surfaceId) + Ark_NativePointer GetFinalizerImpl() { + return reinterpret_cast(&DestroyPeerImpl); } - void StartImageAnalyzerImpl(XComponentControllerPeer* peer, - const Ark_ImageAnalyzerConfig* config, - const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) + Ark_NativePointer GetTypeImpl(DecorationStylePeer* peer) { + return {}; } - void StopImageAnalyzerImpl(XComponentControllerPeer* peer) + Ark_NativePointer GetStyleImpl(DecorationStylePeer* peer) { + return {}; } - } // XComponentControllerAccessor - namespace WaterFlowSectionsAccessor { - void DestroyPeerImpl(WaterFlowSectionsPeer* peer) + } // DecorationStyleAccessor + namespace BaselineOffsetStyleAccessor { + void DestroyPeerImpl(BaselineOffsetStylePeer* peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_BaselineOffsetStyle CtorImpl(Ark_LengthMetrics value) { - return new WaterFlowSectionsPeer(); + return new BaselineOffsetStylePeer(value); } Ark_NativePointer GetFinalizerImpl() { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean SpliceImpl(WaterFlowSectionsPeer* peer, - const Ark_Number* start, - const Opt_Number* deleteCount, - const Opt_Array_SectionOptions* sections) + Ark_Int32 GetBaselineOffsetImpl(BaselineOffsetStylePeer* peer) { - return 0; + return {}; } - Ark_Boolean PushImpl(WaterFlowSectionsPeer* peer, - const Ark_SectionOptions* section) + } // BaselineOffsetStyleAccessor + namespace LetterSpacingStyleAccessor { + void DestroyPeerImpl(LetterSpacingStylePeer* peer) { - return 0; + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } } - Ark_Boolean UpdateImpl(WaterFlowSectionsPeer* peer, - const Ark_Number* sectionIndex, - const Ark_SectionOptions* section) + Ark_LetterSpacingStyle CtorImpl(Ark_LengthMetrics value) { - return 0; + return new LetterSpacingStylePeer(value); } - void ValuesImpl(WaterFlowSectionsPeer* peer) + Ark_NativePointer GetFinalizerImpl() { + return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 LengthImpl(WaterFlowSectionsPeer* peer) + Ark_Int32 GetLetterSpacingImpl(LetterSpacingStylePeer* peer) { - return 0; + return {}; } - } // WaterFlowSectionsAccessor - namespace UIExtensionProxyAccessor { - void DestroyPeerImpl(UIExtensionProxyPeer* peer) + } // LetterSpacingStyleAccessor + namespace TextShadowStyleAccessor { + void DestroyPeerImpl(TextShadowStylePeer* peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_TextShadowStyle CtorImpl(const Ark_Union_ShadowOptions_Array_ShadowOptions* value) { - return new UIExtensionProxyPeer(); + return new TextShadowStylePeer(value); } Ark_NativePointer GetFinalizerImpl() { return reinterpret_cast(&DestroyPeerImpl); } - void SendImpl(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data) + } // TextShadowStyleAccessor + namespace BackgroundColorStyleAccessor { + void DestroyPeerImpl(BackgroundColorStylePeer* peer) { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } } - Ark_NativePointer SendSyncImpl(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data) + Ark_BackgroundColorStyle CtorImpl(const Ark_TextBackgroundStyle* textBackgroundStyle) { - return 0; + return new BackgroundColorStylePeer(textBackgroundStyle); } - void OnAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, - const Callback_UIExtensionProxy_Void* callback_) + Ark_NativePointer GetFinalizerImpl() { + return reinterpret_cast(&DestroyPeerImpl); } - void OnSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, - const Callback_UIExtensionProxy_Void* callback_) + } // BackgroundColorStyleAccessor + namespace GestureStyleAccessor { + void DestroyPeerImpl(GestureStylePeer* peer) { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } } - void OffAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, - const Opt_Callback_UIExtensionProxy_Void* callback_) + Ark_GestureStyle CtorImpl(const Opt_GestureStyleInterface* value) { + return new GestureStylePeer(value); } - void OffSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, - const Opt_Callback_UIExtensionProxy_Void* callback_) + Ark_NativePointer GetFinalizerImpl() { + return reinterpret_cast(&DestroyPeerImpl); } - } // UIExtensionProxyAccessor - namespace StyledStringAccessor { - void DestroyPeerImpl(StyledStringPeer* peer) + } // GestureStyleAccessor + namespace ParagraphStyleAccessor { + void DestroyPeerImpl(ParagraphStylePeer* peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer CtorImpl(const Ark_Union_String_ImageAttachment_CustomSpan* value, - const Opt_Array_StyleOptions* styles) + Ark_ParagraphStyle CtorImpl(const Opt_ParagraphStyleInterface* value) { - return new StyledStringPeer(value, styles); + return new ParagraphStylePeer(value); } Ark_NativePointer GetFinalizerImpl() { return reinterpret_cast(&DestroyPeerImpl); } - void GetStringImpl(StyledStringPeer* peer) + Ark_NativePointer GetTextAlignImpl(ParagraphStylePeer* peer) { + return {}; } - void GetStylesImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey) + Ark_Int32 GetTextIndentImpl(ParagraphStylePeer* peer) { + return {}; } - Ark_Boolean EqualsImpl(StyledStringPeer* peer, - const Ark_StyledString* other) + Ark_Int32 GetMaxLinesImpl(ParagraphStylePeer* peer) { - return 0; + return {}; } - Ark_NativePointer SubStyledStringImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Opt_Number* length) + Ark_NativePointer GetOverflowImpl(ParagraphStylePeer* peer) { - return nullptr; + return {}; } - void FromHtmlImpl(const Ark_String* html, - const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) + Ark_NativePointer GetWordBreakImpl(ParagraphStylePeer* peer) { + return {}; } - void ToHtmlImpl(const Ark_StyledString* styledString) + } // ParagraphStyleAccessor + namespace LineHeightStyleAccessor { + void DestroyPeerImpl(LineHeightStylePeer* peer) { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } } - void MarshallingImpl(const Ark_StyledString* styledString) + Ark_LineHeightStyle CtorImpl(Ark_LengthMetrics lineHeight) { + return new LineHeightStylePeer(lineHeight); } - void UnmarshallingImpl(const Ark_Buffer* buffer, - const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) + Ark_NativePointer GetFinalizerImpl() { + return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLengthImpl(StyledStringPeer* peer) + Ark_Int32 GetLineHeightImpl(LineHeightStylePeer* peer) { - return 0; + return {}; } - } // StyledStringAccessor + } // LineHeightStyleAccessor + namespace UrlStyleAccessor { + void DestroyPeerImpl(UrlStylePeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_UrlStyle CtorImpl(const Ark_String* url) + { + return new UrlStylePeer(url); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void GetUrlImpl(UrlStylePeer* peer) + { + } + } // UrlStyleAccessor namespace MutableStyledStringAccessor { void DestroyPeerImpl(MutableStyledStringPeer* peer) { @@ -15414,7 +16035,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_MutableStyledString CtorImpl() { return new MutableStyledStringPeer(); } @@ -15463,19 +16084,44 @@ namespace OHOS::Ace::NG::GeneratedModifier { void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, const Ark_Number* start, const Ark_Number* length, - const Ark_StyledString* other) + Ark_StyledString other) { } void InsertStyledStringImpl(MutableStyledStringPeer* peer, const Ark_Number* start, - const Ark_StyledString* other) + Ark_StyledString other) { } void AppendStyledStringImpl(MutableStyledStringPeer* peer, - const Ark_StyledString* other) + Ark_StyledString other) { } } // MutableStyledStringAccessor + namespace ImageAttachmentAccessor { + void DestroyPeerImpl(ImageAttachmentPeer* peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_ImageAttachment CtorImpl(const Ark_ImageAttachmentInterface* value) + { + return new ImageAttachmentPeer(value); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer GetVerticalAlignImpl(ImageAttachmentPeer* peer) + { + return {}; + } + Ark_NativePointer GetObjectFitImpl(ImageAttachmentPeer* peer) + { + return {}; + } + } // ImageAttachmentAccessor namespace CustomSpanAccessor { void DestroyPeerImpl(CustomSpanPeer* peer) { @@ -15484,7 +16130,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_CustomSpan CtorImpl() { return new CustomSpanPeer(); } @@ -15495,7 +16141,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer OnMeasureImpl(CustomSpanPeer* peer, const Ark_CustomSpanMeasureInfo* measureInfo) { - return nullptr; + return {}; } void OnDrawImpl(CustomSpanPeer* peer, const Ark_DrawContext* context, @@ -15514,7 +16160,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() + Ark_LinearIndicatorController CtorImpl() { return new LinearIndicatorControllerPeer(); } @@ -15546,21 +16192,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { delete peerImpl; } } - Ark_NativePointer CtorImpl() - { - return new GlobalScope_inspectorPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } Ark_NativePointer GetInspectorNodesImpl() { - return nullptr; + return {}; } Ark_NativePointer GetInspectorNodeByIdImpl(const Ark_Number* id) { - return nullptr; + return {}; } void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) { @@ -15582,6 +16220,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { AnimationExtenderAccessor::OpenImplicitAnimationImpl, AnimationExtenderAccessor::CloseImplicitAnimationImpl, AnimationExtenderAccessor::StartDoubleAnimationImpl, + AnimationExtenderAccessor::AnimationTranslateImpl, }; return &AnimationExtenderAccessorImpl; } @@ -15802,6 +16441,58 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct AlertDialogPeer { virtual ~AlertDialogPeer() = default; }; + const GENERATED_ArkUISpringPropAccessor* GetSpringPropAccessor() + { + static const GENERATED_ArkUISpringPropAccessor SpringPropAccessorImpl { + SpringPropAccessor::DestroyPeerImpl, + SpringPropAccessor::CtorImpl, + SpringPropAccessor::GetFinalizerImpl, + }; + return &SpringPropAccessorImpl; + } + + struct SpringPropPeer { + virtual ~SpringPropPeer() = default; + }; + const GENERATED_ArkUISpringMotionAccessor* GetSpringMotionAccessor() + { + static const GENERATED_ArkUISpringMotionAccessor SpringMotionAccessorImpl { + SpringMotionAccessor::DestroyPeerImpl, + SpringMotionAccessor::CtorImpl, + SpringMotionAccessor::GetFinalizerImpl, + }; + return &SpringMotionAccessorImpl; + } + + struct SpringMotionPeer { + virtual ~SpringMotionPeer() = default; + }; + const GENERATED_ArkUIFrictionMotionAccessor* GetFrictionMotionAccessor() + { + static const GENERATED_ArkUIFrictionMotionAccessor FrictionMotionAccessorImpl { + FrictionMotionAccessor::DestroyPeerImpl, + FrictionMotionAccessor::CtorImpl, + FrictionMotionAccessor::GetFinalizerImpl, + }; + return &FrictionMotionAccessorImpl; + } + + struct FrictionMotionPeer { + virtual ~FrictionMotionPeer() = default; + }; + const GENERATED_ArkUIScrollMotionAccessor* GetScrollMotionAccessor() + { + static const GENERATED_ArkUIScrollMotionAccessor ScrollMotionAccessorImpl { + ScrollMotionAccessor::DestroyPeerImpl, + ScrollMotionAccessor::CtorImpl, + ScrollMotionAccessor::GetFinalizerImpl, + }; + return &ScrollMotionAccessorImpl; + } + + struct ScrollMotionPeer { + virtual ~ScrollMotionPeer() = default; + }; const GENERATED_ArkUICalendarControllerAccessor* GetCalendarControllerAccessor() { static const GENERATED_ArkUICalendarControllerAccessor CalendarControllerAccessorImpl { @@ -15911,6 +16602,36 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct ImageBitmapPeer { virtual ~ImageBitmapPeer() = default; }; + const GENERATED_ArkUIImageDataAccessor* GetImageDataAccessor() + { + static const GENERATED_ArkUIImageDataAccessor ImageDataAccessorImpl { + ImageDataAccessor::DestroyPeerImpl, + ImageDataAccessor::CtorImpl, + ImageDataAccessor::GetFinalizerImpl, + ImageDataAccessor::GetHeightImpl, + ImageDataAccessor::GetWidthImpl, + }; + return &ImageDataAccessorImpl; + } + + struct ImageDataPeer { + virtual ~ImageDataPeer() = default; + }; + const GENERATED_ArkUIRenderingContextSettingsAccessor* GetRenderingContextSettingsAccessor() + { + static const GENERATED_ArkUIRenderingContextSettingsAccessor RenderingContextSettingsAccessorImpl { + RenderingContextSettingsAccessor::DestroyPeerImpl, + RenderingContextSettingsAccessor::CtorImpl, + RenderingContextSettingsAccessor::GetFinalizerImpl, + RenderingContextSettingsAccessor::GetAntialiasImpl, + RenderingContextSettingsAccessor::SetAntialiasImpl, + }; + return &RenderingContextSettingsAccessorImpl; + } + + struct RenderingContextSettingsPeer { + virtual ~RenderingContextSettingsPeer() = default; + }; const GENERATED_ArkUICanvasRendererAccessor* GetCanvasRendererAccessor() { static const GENERATED_ArkUICanvasRendererAccessor CanvasRendererAccessorImpl { @@ -16148,6 +16869,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { ClickEventAccessor::SetXImpl, ClickEventAccessor::GetYImpl, ClickEventAccessor::SetYImpl, + ClickEventAccessor::GetPreventDefaultImpl, ClickEventAccessor::SetPreventDefaultImpl, }; return &ClickEventAccessorImpl; @@ -16162,6 +16884,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { HoverEventAccessor::DestroyPeerImpl, HoverEventAccessor::CtorImpl, HoverEventAccessor::GetFinalizerImpl, + HoverEventAccessor::GetStopPropagationImpl, HoverEventAccessor::SetStopPropagationImpl, }; return &HoverEventAccessorImpl; @@ -16196,6 +16919,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { MouseEventAccessor::SetXImpl, MouseEventAccessor::GetYImpl, MouseEventAccessor::SetYImpl, + MouseEventAccessor::GetStopPropagationImpl, MouseEventAccessor::SetStopPropagationImpl, }; return &MouseEventAccessorImpl; @@ -16242,7 +16966,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { TouchEventAccessor::SetTypeImpl, TouchEventAccessor::SetTouchesImpl, TouchEventAccessor::SetChangedTouchesImpl, + TouchEventAccessor::GetStopPropagationImpl, TouchEventAccessor::SetStopPropagationImpl, + TouchEventAccessor::GetPreventDefaultImpl, TouchEventAccessor::SetPreventDefaultImpl, }; return &TouchEventAccessorImpl; @@ -16319,6 +17045,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { KeyEventAccessor::SetMetaKeyImpl, KeyEventAccessor::GetTimestampImpl, KeyEventAccessor::SetTimestampImpl, + KeyEventAccessor::GetStopPropagationImpl, KeyEventAccessor::SetStopPropagationImpl, KeyEventAccessor::SetIntentionCodeImpl, KeyEventAccessor::GetUnicodeImpl, @@ -16466,8 +17193,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::CtorImpl, - GlobalScope_commonAccessor::GetFinalizerImpl, GlobalScope_commonAccessor::GetContextImpl, GlobalScope_commonAccessor::PostCardActionImpl, GlobalScope_commonAccessor::Dollar_rImpl, @@ -16519,6 +17244,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct CustomDialogControllerPeer { virtual ~CustomDialogControllerPeer() = default; }; + const GENERATED_ArkUILinearGradientAccessor* GetLinearGradientAccessor() + { + static const GENERATED_ArkUILinearGradientAccessor LinearGradientAccessorImpl { + LinearGradientAccessor::DestroyPeerImpl, + LinearGradientAccessor::CtorImpl, + LinearGradientAccessor::GetFinalizerImpl, + }; + return &LinearGradientAccessorImpl; + } + + struct LinearGradientPeer { + virtual ~LinearGradientPeer() = default; + }; const GENERATED_ArkUIDatePickerDialogAccessor* GetDatePickerDialogAccessor() { static const GENERATED_ArkUIDatePickerDialogAccessor DatePickerDialogAccessorImpl { @@ -16847,6 +17585,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct NavDestinationContextPeer { virtual ~NavDestinationContextPeer() = default; }; + const GENERATED_ArkUINavPathInfoAccessor* GetNavPathInfoAccessor() + { + static const GENERATED_ArkUINavPathInfoAccessor NavPathInfoAccessorImpl { + NavPathInfoAccessor::DestroyPeerImpl, + NavPathInfoAccessor::CtorImpl, + NavPathInfoAccessor::GetFinalizerImpl, + NavPathInfoAccessor::GetNameImpl, + NavPathInfoAccessor::SetNameImpl, + NavPathInfoAccessor::SetParamImpl, + NavPathInfoAccessor::GetOnPopImpl, + NavPathInfoAccessor::SetOnPopImpl, + NavPathInfoAccessor::GetIsEntryImpl, + NavPathInfoAccessor::SetIsEntryImpl, + }; + return &NavPathInfoAccessorImpl; + } + + struct NavPathInfoPeer { + virtual ~NavPathInfoPeer() = default; + }; const GENERATED_ArkUINavPathStackAccessor* GetNavPathStackAccessor() { static const GENERATED_ArkUINavPathStackAccessor NavPathStackAccessorImpl { @@ -17087,6 +17845,100 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct IndicatorComponentControllerPeer { virtual ~IndicatorComponentControllerPeer() = default; }; + const GENERATED_ArkUIScaleSymbolEffectAccessor* GetScaleSymbolEffectAccessor() + { + static const GENERATED_ArkUIScaleSymbolEffectAccessor ScaleSymbolEffectAccessorImpl { + ScaleSymbolEffectAccessor::DestroyPeerImpl, + ScaleSymbolEffectAccessor::CtorImpl, + ScaleSymbolEffectAccessor::GetFinalizerImpl, + ScaleSymbolEffectAccessor::GetScopeImpl, + ScaleSymbolEffectAccessor::SetScopeImpl, + ScaleSymbolEffectAccessor::GetDirectionImpl, + ScaleSymbolEffectAccessor::SetDirectionImpl, + }; + return &ScaleSymbolEffectAccessorImpl; + } + + struct ScaleSymbolEffectPeer { + virtual ~ScaleSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIHierarchicalSymbolEffectAccessor* GetHierarchicalSymbolEffectAccessor() + { + static const GENERATED_ArkUIHierarchicalSymbolEffectAccessor HierarchicalSymbolEffectAccessorImpl { + HierarchicalSymbolEffectAccessor::DestroyPeerImpl, + HierarchicalSymbolEffectAccessor::CtorImpl, + HierarchicalSymbolEffectAccessor::GetFinalizerImpl, + HierarchicalSymbolEffectAccessor::GetFillStyleImpl, + HierarchicalSymbolEffectAccessor::SetFillStyleImpl, + }; + return &HierarchicalSymbolEffectAccessorImpl; + } + + struct HierarchicalSymbolEffectPeer { + virtual ~HierarchicalSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIAppearSymbolEffectAccessor* GetAppearSymbolEffectAccessor() + { + static const GENERATED_ArkUIAppearSymbolEffectAccessor AppearSymbolEffectAccessorImpl { + AppearSymbolEffectAccessor::DestroyPeerImpl, + AppearSymbolEffectAccessor::CtorImpl, + AppearSymbolEffectAccessor::GetFinalizerImpl, + AppearSymbolEffectAccessor::GetScopeImpl, + AppearSymbolEffectAccessor::SetScopeImpl, + }; + return &AppearSymbolEffectAccessorImpl; + } + + struct AppearSymbolEffectPeer { + virtual ~AppearSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIDisappearSymbolEffectAccessor* GetDisappearSymbolEffectAccessor() + { + static const GENERATED_ArkUIDisappearSymbolEffectAccessor DisappearSymbolEffectAccessorImpl { + DisappearSymbolEffectAccessor::DestroyPeerImpl, + DisappearSymbolEffectAccessor::CtorImpl, + DisappearSymbolEffectAccessor::GetFinalizerImpl, + DisappearSymbolEffectAccessor::GetScopeImpl, + DisappearSymbolEffectAccessor::SetScopeImpl, + }; + return &DisappearSymbolEffectAccessorImpl; + } + + struct DisappearSymbolEffectPeer { + virtual ~DisappearSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIBounceSymbolEffectAccessor* GetBounceSymbolEffectAccessor() + { + static const GENERATED_ArkUIBounceSymbolEffectAccessor BounceSymbolEffectAccessorImpl { + BounceSymbolEffectAccessor::DestroyPeerImpl, + BounceSymbolEffectAccessor::CtorImpl, + BounceSymbolEffectAccessor::GetFinalizerImpl, + BounceSymbolEffectAccessor::GetScopeImpl, + BounceSymbolEffectAccessor::SetScopeImpl, + BounceSymbolEffectAccessor::GetDirectionImpl, + BounceSymbolEffectAccessor::SetDirectionImpl, + }; + return &BounceSymbolEffectAccessorImpl; + } + + struct BounceSymbolEffectPeer { + virtual ~BounceSymbolEffectPeer() = default; + }; + const GENERATED_ArkUIReplaceSymbolEffectAccessor* GetReplaceSymbolEffectAccessor() + { + static const GENERATED_ArkUIReplaceSymbolEffectAccessor ReplaceSymbolEffectAccessorImpl { + ReplaceSymbolEffectAccessor::DestroyPeerImpl, + ReplaceSymbolEffectAccessor::CtorImpl, + ReplaceSymbolEffectAccessor::GetFinalizerImpl, + ReplaceSymbolEffectAccessor::GetScopeImpl, + ReplaceSymbolEffectAccessor::SetScopeImpl, + }; + return &ReplaceSymbolEffectAccessorImpl; + } + + struct ReplaceSymbolEffectPeer { + virtual ~ReplaceSymbolEffectPeer() = default; + }; const GENERATED_ArkUITabsControllerAccessor* GetTabsControllerAccessor() { static const GENERATED_ArkUITabsControllerAccessor TabsControllerAccessorImpl { @@ -17341,6 +18193,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TimePickerDialogPeer { virtual ~TimePickerDialogPeer() = default; }; + const GENERATED_ArkUIColorFilterAccessor* GetColorFilterAccessor() + { + static const GENERATED_ArkUIColorFilterAccessor ColorFilterAccessorImpl { + ColorFilterAccessor::DestroyPeerImpl, + ColorFilterAccessor::CtorImpl, + ColorFilterAccessor::GetFinalizerImpl, + }; + return &ColorFilterAccessorImpl; + } + + struct ColorFilterPeer { + virtual ~ColorFilterPeer() = default; + }; const GENERATED_ArkUIVideoControllerAccessor* GetVideoControllerAccessor() { static const GENERATED_ArkUIVideoControllerAccessor VideoControllerAccessorImpl { @@ -17835,6 +18700,151 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct StyledStringPeer { virtual ~StyledStringPeer() = default; }; + const GENERATED_ArkUITextStyle_styled_stringAccessor* GetTextStyle_styled_stringAccessor() + { + static const GENERATED_ArkUITextStyle_styled_stringAccessor TextStyle_styled_stringAccessorImpl { + TextStyle_styled_stringAccessor::DestroyPeerImpl, + TextStyle_styled_stringAccessor::CtorImpl, + TextStyle_styled_stringAccessor::GetFinalizerImpl, + TextStyle_styled_stringAccessor::GetFontFamilyImpl, + TextStyle_styled_stringAccessor::GetFontSizeImpl, + TextStyle_styled_stringAccessor::GetFontWeightImpl, + TextStyle_styled_stringAccessor::GetFontStyleImpl, + }; + return &TextStyle_styled_stringAccessorImpl; + } + + struct TextStyle_styled_stringPeer { + virtual ~TextStyle_styled_stringPeer() = default; + }; + const GENERATED_ArkUIDecorationStyleAccessor* GetDecorationStyleAccessor() + { + static const GENERATED_ArkUIDecorationStyleAccessor DecorationStyleAccessorImpl { + DecorationStyleAccessor::DestroyPeerImpl, + DecorationStyleAccessor::CtorImpl, + DecorationStyleAccessor::GetFinalizerImpl, + DecorationStyleAccessor::GetTypeImpl, + DecorationStyleAccessor::GetStyleImpl, + }; + return &DecorationStyleAccessorImpl; + } + + struct DecorationStylePeer { + virtual ~DecorationStylePeer() = default; + }; + const GENERATED_ArkUIBaselineOffsetStyleAccessor* GetBaselineOffsetStyleAccessor() + { + static const GENERATED_ArkUIBaselineOffsetStyleAccessor BaselineOffsetStyleAccessorImpl { + BaselineOffsetStyleAccessor::DestroyPeerImpl, + BaselineOffsetStyleAccessor::CtorImpl, + BaselineOffsetStyleAccessor::GetFinalizerImpl, + BaselineOffsetStyleAccessor::GetBaselineOffsetImpl, + }; + return &BaselineOffsetStyleAccessorImpl; + } + + struct BaselineOffsetStylePeer { + virtual ~BaselineOffsetStylePeer() = default; + }; + const GENERATED_ArkUILetterSpacingStyleAccessor* GetLetterSpacingStyleAccessor() + { + static const GENERATED_ArkUILetterSpacingStyleAccessor LetterSpacingStyleAccessorImpl { + LetterSpacingStyleAccessor::DestroyPeerImpl, + LetterSpacingStyleAccessor::CtorImpl, + LetterSpacingStyleAccessor::GetFinalizerImpl, + LetterSpacingStyleAccessor::GetLetterSpacingImpl, + }; + return &LetterSpacingStyleAccessorImpl; + } + + struct LetterSpacingStylePeer { + virtual ~LetterSpacingStylePeer() = default; + }; + const GENERATED_ArkUITextShadowStyleAccessor* GetTextShadowStyleAccessor() + { + static const GENERATED_ArkUITextShadowStyleAccessor TextShadowStyleAccessorImpl { + TextShadowStyleAccessor::DestroyPeerImpl, + TextShadowStyleAccessor::CtorImpl, + TextShadowStyleAccessor::GetFinalizerImpl, + }; + return &TextShadowStyleAccessorImpl; + } + + struct TextShadowStylePeer { + virtual ~TextShadowStylePeer() = default; + }; + const GENERATED_ArkUIBackgroundColorStyleAccessor* GetBackgroundColorStyleAccessor() + { + static const GENERATED_ArkUIBackgroundColorStyleAccessor BackgroundColorStyleAccessorImpl { + BackgroundColorStyleAccessor::DestroyPeerImpl, + BackgroundColorStyleAccessor::CtorImpl, + BackgroundColorStyleAccessor::GetFinalizerImpl, + }; + return &BackgroundColorStyleAccessorImpl; + } + + struct BackgroundColorStylePeer { + virtual ~BackgroundColorStylePeer() = default; + }; + const GENERATED_ArkUIGestureStyleAccessor* GetGestureStyleAccessor() + { + static const GENERATED_ArkUIGestureStyleAccessor GestureStyleAccessorImpl { + GestureStyleAccessor::DestroyPeerImpl, + GestureStyleAccessor::CtorImpl, + GestureStyleAccessor::GetFinalizerImpl, + }; + return &GestureStyleAccessorImpl; + } + + struct GestureStylePeer { + virtual ~GestureStylePeer() = default; + }; + const GENERATED_ArkUIParagraphStyleAccessor* GetParagraphStyleAccessor() + { + static const GENERATED_ArkUIParagraphStyleAccessor ParagraphStyleAccessorImpl { + ParagraphStyleAccessor::DestroyPeerImpl, + ParagraphStyleAccessor::CtorImpl, + ParagraphStyleAccessor::GetFinalizerImpl, + ParagraphStyleAccessor::GetTextAlignImpl, + ParagraphStyleAccessor::GetTextIndentImpl, + ParagraphStyleAccessor::GetMaxLinesImpl, + ParagraphStyleAccessor::GetOverflowImpl, + ParagraphStyleAccessor::GetWordBreakImpl, + }; + return &ParagraphStyleAccessorImpl; + } + + struct ParagraphStylePeer { + virtual ~ParagraphStylePeer() = default; + }; + const GENERATED_ArkUILineHeightStyleAccessor* GetLineHeightStyleAccessor() + { + static const GENERATED_ArkUILineHeightStyleAccessor LineHeightStyleAccessorImpl { + LineHeightStyleAccessor::DestroyPeerImpl, + LineHeightStyleAccessor::CtorImpl, + LineHeightStyleAccessor::GetFinalizerImpl, + LineHeightStyleAccessor::GetLineHeightImpl, + }; + return &LineHeightStyleAccessorImpl; + } + + struct LineHeightStylePeer { + virtual ~LineHeightStylePeer() = default; + }; + const GENERATED_ArkUIUrlStyleAccessor* GetUrlStyleAccessor() + { + static const GENERATED_ArkUIUrlStyleAccessor UrlStyleAccessorImpl { + UrlStyleAccessor::DestroyPeerImpl, + UrlStyleAccessor::CtorImpl, + UrlStyleAccessor::GetFinalizerImpl, + UrlStyleAccessor::GetUrlImpl, + }; + return &UrlStyleAccessorImpl; + } + + struct UrlStylePeer { + virtual ~UrlStylePeer() = default; + }; const GENERATED_ArkUIMutableStyledStringAccessor* GetMutableStyledStringAccessor() { static const GENERATED_ArkUIMutableStyledStringAccessor MutableStyledStringAccessorImpl { @@ -17859,6 +18869,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct MutableStyledStringPeer { virtual ~MutableStyledStringPeer() = default; }; + const GENERATED_ArkUIImageAttachmentAccessor* GetImageAttachmentAccessor() + { + static const GENERATED_ArkUIImageAttachmentAccessor ImageAttachmentAccessorImpl { + ImageAttachmentAccessor::DestroyPeerImpl, + ImageAttachmentAccessor::CtorImpl, + ImageAttachmentAccessor::GetFinalizerImpl, + ImageAttachmentAccessor::GetVerticalAlignImpl, + ImageAttachmentAccessor::GetObjectFitImpl, + }; + return &ImageAttachmentAccessorImpl; + } + + struct ImageAttachmentPeer { + virtual ~ImageAttachmentPeer() = default; + }; const GENERATED_ArkUICustomSpanAccessor* GetCustomSpanAccessor() { static const GENERATED_ArkUICustomSpanAccessor CustomSpanAccessorImpl { @@ -17896,8 +18921,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::CtorImpl, - GlobalScope_inspectorAccessor::GetFinalizerImpl, GlobalScope_inspectorAccessor::GetInspectorNodesImpl, GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, GlobalScope_inspectorAccessor::RegisterVsyncCallbackImpl, @@ -17927,6 +18950,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetEventEmulatorAccessor, GetActionSheetAccessor, GetAlertDialogAccessor, + GetSpringPropAccessor, + GetSpringMotionAccessor, + GetFrictionMotionAccessor, + GetScrollMotionAccessor, GetCalendarControllerAccessor, GetCalendarPickerDialogAccessor, GetCanvasGradientAccessor, @@ -17934,6 +18961,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetPath2DAccessor, GetCanvasPatternAccessor, GetImageBitmapAccessor, + GetImageDataAccessor, + GetRenderingContextSettingsAccessor, GetCanvasRendererAccessor, GetCanvasRenderingContext2DAccessor, GetDrawingRenderingContextAccessor, @@ -17960,6 +18989,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, + GetLinearGradientAccessor, GetDatePickerDialogAccessor, GetBaseGestureEventAccessor, GetTapGestureEventAccessor, @@ -17978,6 +19008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetListScrollerAccessor, GetMatrix2DAccessor, GetNavDestinationContextAccessor, + GetNavPathInfoAccessor, GetNavPathStackAccessor, GetNavigationTransitionProxyAccessor, GetPatternLockControllerAccessor, @@ -17989,6 +19020,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetSwiperControllerAccessor, GetSwiperContentTransitionProxyAccessor, GetIndicatorComponentControllerAccessor, + GetScaleSymbolEffectAccessor, + GetHierarchicalSymbolEffectAccessor, + GetAppearSymbolEffectAccessor, + GetDisappearSymbolEffectAccessor, + GetBounceSymbolEffectAccessor, + GetReplaceSymbolEffectAccessor, GetTabsControllerAccessor, GetTabContentTransitionProxyAccessor, GetTextControllerAccessor, @@ -18005,6 +19042,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetTextPickerDialogAccessor, GetTextTimerControllerAccessor, GetTimePickerDialogAccessor, + GetColorFilterAccessor, GetVideoControllerAccessor, GetWebKeyboardControllerAccessor, GetFullScreenExitHandlerAccessor, @@ -18032,7 +19070,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetWaterFlowSectionsAccessor, GetUIExtensionProxyAccessor, GetStyledStringAccessor, + GetTextStyle_styled_stringAccessor, + GetDecorationStyleAccessor, + GetBaselineOffsetStyleAccessor, + GetLetterSpacingStyleAccessor, + GetTextShadowStyleAccessor, + GetBackgroundColorStyleAccessor, + GetGestureStyleAccessor, + GetParagraphStyleAccessor, + GetLineHeightStyleAccessor, + GetUrlStyleAccessor, GetMutableStyledStringAccessor, + GetImageAttachmentAccessor, GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, GetGlobalScope_inspectorAccessor, diff --git a/arkoala/framework/src/generated/ArkUINativeModule.ts b/arkoala/framework/src/generated/ArkUINativeModule.ts index 0a369f3d3..fb8ea5c85 100644 --- a/arkoala/framework/src/generated/ArkUINativeModule.ts +++ b/arkoala/framework/src/generated/ArkUINativeModule.ts @@ -118,7 +118,7 @@ export class ArkUINativeModule { } throw new Error("Not implemented") } - static _ConvertLengthMetricsUnit(arg0: number, arg1: int32, arg2: int32): number { + static _ConvertLengthMetricsUnit(arg0: float32, arg1: int32, arg2: int32): float32 { if ((this._LoadOnce()) == (true)) { return this._ConvertLengthMetricsUnit(arg0, arg1, arg2) diff --git a/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts b/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts index 57466b664..13363d19a 100644 --- a/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts @@ -64,7 +64,7 @@ export class ArkUINativeModuleEmpty { console.log("_IsBuilderNode") return 1 } - _ConvertLengthMetricsUnit(arg0: number, arg1: int32, arg2: int32): number { + _ConvertLengthMetricsUnit(arg0: float32, arg1: int32, arg2: int32): float32 { console.log("_ConvertLengthMetricsUnit") return 0 } diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index fe56a688f..ade310f64 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.20", - "api_version": "115", + "idlize_version": "2.0.26", + "api_version": "118", "input_dir": "../../arkui-common/interface_sdk-js/api/@internal/component/ets/,../../arkui-common/interface_sdk-js/api/global" }, "scripts": { @@ -17,7 +17,7 @@ "generate:all:current": "npm run generate:ts:current && npm run generate:arkts:current" }, "dependencies": { - "@koalaui/interop": "^2.0.15", + "@koalaui/interop": "file:../../../../external/interop", "idlizer-current": "file:../../../../arkgen" } } -- Gitee From 305f5016b9fb73f62a84d3f69b6ea54824a2e52f Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 12 Feb 2025 21:09:32 +0000 Subject: [PATCH 06/40] !1818 Fix Java * Fix Java --- interop/src/cpp/jni/convertors-jni.cc | 5 +++-- interop/src/cpp/jni/convertors-jni.h | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/interop/src/cpp/jni/convertors-jni.cc b/interop/src/cpp/jni/convertors-jni.cc index 7e7addf7d..683625b09 100644 --- a/interop/src/cpp/jni/convertors-jni.cc +++ b/interop/src/cpp/jni/convertors-jni.cc @@ -14,10 +14,11 @@ */ -#define KOALA_INTEROP_MODULE +#define KOALA_INTEROP_MODULE #include "convertors-jni.h" #include "signatures.h" #include "interop-logging.h" +#include "interop-types.h" static const char* nativeModule = "org/koalaui/arkoala/InteropNativeModule"; static const char* nativeModulePrefix = "org/koalaui/arkoala/"; @@ -92,7 +93,7 @@ const std::vector>& JniExports::getM auto it = implementations.find(module); if (it == implementations.end()) { LOGE("Module %s is not registered", module.c_str()); - throw "Fatal error"; + INTEROP_FATAL("Fatal error: not registered module %s", module.c_str()); } return it->second; } diff --git a/interop/src/cpp/jni/convertors-jni.h b/interop/src/cpp/jni/convertors-jni.h index 469fb9686..0ff5fd07d 100644 --- a/interop/src/cpp/jni/convertors-jni.h +++ b/interop/src/cpp/jni/convertors-jni.h @@ -300,9 +300,7 @@ struct InteropTypeConverter { return result; } - static InteropType convertTo(JNIEnv* env, KLength value) { - throw "InteropTypeConverter::convertTo not implemented yet"; - } + static InteropType convertTo(JNIEnv* env, KLength value) = delete; static inline void release(JNIEnv* env, InteropType value, KLength converted) {} }; -- Gitee From 304960feec388f4f96b68c68a3ff15aa7edae68d Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Thu, 13 Feb 2025 09:15:20 +0000 Subject: [PATCH 07/40] !1811 Foreign invocation API --- arkoala-arkts/.gitlab-ci.yml | 2 +- arkoala-arkts/arkui/src/Application.ts | 8 ++- .../arkui/src/handwritten/ForeignFunctions.ts | 37 ++++++++++++++ arkoala-arkts/arkui/src/handwritten/index.ts | 1 + arkoala-arkts/loader/src/loader.ts | 11 +++++ arkoala-arkts/package.json | 2 +- arkoala/framework/src/Application.ts | 1 - interop/src/arkts/InteropNativeModule.sts | 49 ++++++++++--------- interop/src/cpp/common-interop.cc | 38 ++++++++++---- interop/src/cpp/napi/convertors-napi.cc | 2 + interop/src/cpp/vmloader.cc | 33 ++++++++----- interop/src/interop/InteropNativeModule.ts | 1 + 12 files changed, 134 insertions(+), 51 deletions(-) create mode 100644 arkoala-arkts/arkui/src/handwritten/ForeignFunctions.ts diff --git a/arkoala-arkts/.gitlab-ci.yml b/arkoala-arkts/.gitlab-ci.yml index 2f836098f..6adcdf502 100644 --- a/arkoala-arkts/.gitlab-ci.yml +++ b/arkoala-arkts/.gitlab-ci.yml @@ -313,7 +313,7 @@ install node modules (arkoala-arkts): - !reference [.setup, script] - npm run panda:sdk:install --prefix arkoala-arkts script: - - npm run har-arm32 --prefix arkoala-arkts/user + - npm run har-arm32 --prefix arkoala-arkts/trivial/user - mv arkoala-arkts/user/app/user/build/default/outputs/default/user.har user-arm32.har artifacts: paths: diff --git a/arkoala-arkts/arkui/src/Application.ts b/arkoala-arkts/arkui/src/Application.ts index 07c54f37e..df0f3e773 100644 --- a/arkoala-arkts/arkui/src/Application.ts +++ b/arkoala-arkts/arkui/src/Application.ts @@ -24,6 +24,7 @@ import { ClickEvent, ClickEventInternal } from "./generated/ArkClickEventMateria import { checkEvents, setCustomEventsChecker } from "./generated/Events" import { checkArkoalaCallbacks } from "./generated/peers/CallbacksChecker" import { setUIDetachedRootCreator } from "./generated/peers/CallbackTransformer" +import { enterForeignContext, leaveForeignContext } from "./handwritten" setCustomEventsChecker(checkArkoalaCallbacks) @@ -255,8 +256,9 @@ export class Application { private render() { if (this.withLog) InteropNativeModule._NativeLog("ARKTS: render") } - - enter(arg0: int32, arg1: int32): boolean { + enter(arg0: int32, arg1: int32, foreignContext: pointer): boolean { + // TODO: maybe + enterForeignContext(foreignContext) if (this.withLog) UserView.startNativeLog(1) if (this.currentCrash) { @@ -269,6 +271,7 @@ export class Application { } catch (error) { if (error instanceof Error) { if (error.stack) { + leaveForeignContext() InteropNativeModule._NativeLog(error.stack!.toString()) return true } @@ -287,6 +290,7 @@ export class Application { } } } + leaveForeignContext() return this.exitApp } diff --git a/arkoala-arkts/arkui/src/handwritten/ForeignFunctions.ts b/arkoala-arkts/arkui/src/handwritten/ForeignFunctions.ts new file mode 100644 index 000000000..eff5fabb0 --- /dev/null +++ b/arkoala-arkts/arkui/src/handwritten/ForeignFunctions.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) 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 { int32 } from "@koalaui/common" +import { pointer, nullptr, InteropNativeModule, SerializerBase } from "@koalaui/interop" + +let foreignContext: pointer = nullptr + +export function enterForeignContext(context: pointer) { + foreignContext = context +} + +export function leaveForeignContext() { + foreignContext = nullptr +} + +export function setTimeoutForeign(code: () => void, delay: int32): int32 { + if (foreignContext == nullptr) throw new Error("null foreign VM context") + let serializer = new SerializerBase() + serializer.writeInt32(1) + serializer.holdAndWriteCallback(code) + serializer.writeInt32(delay) + let rv = InteropNativeModule._CallForeignVM(foreignContext, 3, serializer.asArray(), serializer.length()) + serializer.release() + return rv +} diff --git a/arkoala-arkts/arkui/src/handwritten/index.ts b/arkoala-arkts/arkui/src/handwritten/index.ts index 51e7b1472..bbf766e8f 100644 --- a/arkoala-arkts/arkui/src/handwritten/index.ts +++ b/arkoala-arkts/arkui/src/handwritten/index.ts @@ -1,6 +1,7 @@ export * from "./ArkPageTransition" export * from "./ArkPageTransitionData" export * from "./Router" +export * from "./ForeignFunctions" // TODO: implement this diff --git a/arkoala-arkts/loader/src/loader.ts b/arkoala-arkts/loader/src/loader.ts index c59eab18a..8936e229e 100644 --- a/arkoala-arkts/loader/src/loader.ts +++ b/arkoala-arkts/loader/src/loader.ts @@ -37,6 +37,8 @@ export interface LoaderOps { _LoadVirtualMachine(vmKind: int32, appClassPath: string, appLibPath: string): int32 _StartApplication(appUrl: string, appParams: string): KPointer _RunApplication(arg0: int32, arg1: int32): boolean + _SetCallbackDispatcher(dispather: Object): void + _CallCallbackSync(kind: int32, data: Uint8Array, length: int32): void } export interface NativeControl extends LoaderOps { @@ -47,6 +49,14 @@ export interface NativeControl extends LoaderOps { _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): void } +function callCallback(id: int32, args: KUint8ArrayPtr, length: int32): int32 { + console.log(`callCallback: ${id} data is ${length} bytes`) + if (id == 3) { + // TODO: implement setTimeout here. + } + return 0 +} + let theModule: NativeControl | undefined = undefined declare const LOAD_NATIVE: object @@ -60,6 +70,7 @@ export function nativeModule(): NativeControl { for (const moduleName of Object.keys(modules)) { Object.assign(theModule, modules[moduleName]) // TODO freeze? } + theModule._SetCallbackDispatcher(callCallback) return theModule } diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index 9ffcaff2a..2210b9013 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -82,7 +82,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 --prefix shopping", + "clean:shopping": "npm run clean:all --prefix shopping/user", "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", diff --git a/arkoala/framework/src/Application.ts b/arkoala/framework/src/Application.ts index 85be4230c..07af09551 100644 --- a/arkoala/framework/src/Application.ts +++ b/arkoala/framework/src/Application.ts @@ -21,7 +21,6 @@ import { ArkoalaControlImpl } from "./ArkoalaControl" import { withString, KPointer } from "@koalaui/interop" import { PeerNode } from "./PeerNode" import { int32 } from "@koalaui/common" -import { ArkUINodeId } from "./ArkUINodeType" import { loadNative } from "./load_native" // import { initInteropModule } from "./generated/NativeModule" diff --git a/interop/src/arkts/InteropNativeModule.sts b/interop/src/arkts/InteropNativeModule.sts index 35ddcfb81..9b74e2e83 100644 --- a/interop/src/arkts/InteropNativeModule.sts +++ b/interop/src/arkts/InteropNativeModule.sts @@ -10,32 +10,33 @@ export class InteropNativeModule { static callCallbackFromNative(id: KInt, args: KUint8ArrayPtr, length: KInt): KInt { return callCallback(id, args, length) } - native static _GetGroupedLog(index: int32): KPointer - native static _StartGroupedLog(index: int32): void - native static _StopGroupedLog(index: int32): void - native static _AppendGroupedLog(index: int32, message: string): void - native static _PrintGroupedLog(index: int32): void - native static _GetStringFinalizer(): KPointer - native static _InvokeFinalizer(ptr1: KPointer, ptr2: KPointer): void - native static _GetPtrVectorElement(ptr1: KPointer, arg: int32): KPointer - native static _StringLength(ptr1: KPointer): int32 - native static _StringData(ptr1: KPointer, arr: KUint8ArrayPtr, i: int32): void - native static _StringMake(str1: string): KPointer - native static _GetPtrVectorSize(ptr1: KPointer): int32 - native static _ManagedStringWrite(str1: string, arr: KUint8ArrayPtr, arg: int32): int32 - native static _NativeLog(str1: string): void - native static _Utf8ToString(data: KUint8ArrayPtr, offset: int32, length: int32): string - native static _StdStringToString(cstring: KPointer): string + native static _GetGroupedLog(index: int32): KPointer + native static _StartGroupedLog(index: int32): void + native static _StopGroupedLog(index: int32): void + native static _AppendGroupedLog(index: int32, message: string): void + native static _PrintGroupedLog(index: int32): void + native static _GetStringFinalizer(): KPointer + native static _InvokeFinalizer(ptr1: KPointer, ptr2: KPointer): void + native static _GetPtrVectorElement(ptr1: KPointer, arg: int32): KPointer + native static _StringLength(ptr1: KPointer): int32 + native static _StringData(ptr1: KPointer, arr: KUint8ArrayPtr, i: int32): void + native static _StringMake(str1: string): KPointer + native static _GetPtrVectorSize(ptr1: KPointer): int32 + native static _ManagedStringWrite(str1: string, arr: KUint8ArrayPtr, arg: int32): int32 + native static _NativeLog(str1: string): void + native static _Utf8ToString(data: KUint8ArrayPtr, offset: int32, length: int32): string + native static _StdStringToString(cstring: KPointer): string native static _CheckCallbackEvent(buffer: KUint8ArrayPtr, bufferLength: int32): int32 native static _HoldCallbackResource(resourceId: int32): void native static _ReleaseCallbackResource(resourceId: int32): void - native static _CallCallback(callbackKind: int32, args: KUint8ArrayPtr, argsSize: int32): void - native static _CallCallbackSync(callbackKind: int32, args: KUint8ArrayPtr, argsSize: int32): void - native static _CallCallbackResourceHolder(holder: KPointer, resourceId: int32): void - native static _CallCallbackResourceReleaser(releaser: KPointer, resourceId: int32): void - native static _LoadVirtualMachine(arg0: int32, arg1: string, arg2: string): int32 - native static _RunApplication(arg0: int32, arg1: int32): boolean - native static _StartApplication(appUrl: string, appParams: string): KPointer - native static _EmitEvent(eventType: int32, target: int32, arg0: int32, arg1: int32): void + native static _CallCallback(callbackKind: int32, args: KUint8ArrayPtr, argsSize: int32): void + native static _CallCallbackSync(callbackKind: int32, args: KUint8ArrayPtr, argsSize: int32): void + native static _CallCallbackResourceHolder(holder: KPointer, resourceId: int32): void + native static _CallCallbackResourceReleaser(releaser: KPointer, resourceId: int32): void + native static _LoadVirtualMachine(arg0: int32, arg1: string, arg2: string): int32 + native static _RunApplication(arg0: int32, arg1: int32): boolean + native static _StartApplication(appUrl: string, appParams: string): KPointer + native static _EmitEvent(eventType: int32, target: int32, arg0: int32, arg1: int32): void + native static _CallForeignVM(context:KPointer, callback: int32, data: KUint8ArrayPtr, dataLength: int32): int32 } diff --git a/interop/src/cpp/common-interop.cc b/interop/src/cpp/common-interop.cc index 7c4008643..6a7160f65 100644 --- a/interop/src/cpp/common-interop.cc +++ b/interop/src/cpp/common-interop.cc @@ -244,7 +244,19 @@ void impl_PrintGroupedLog(KInt index) { } KOALA_INTEROP_V1(PrintGroupedLog, KInt) -typedef KInt (*LoadVirtualMachine_t)(KInt vmKind, const char* classPath, const char* libraryPath, void* currentVMContext); +int32_t callCallback(KVMContext context, int32_t methodId, uint8_t* argsData, int32_t argsLength) { +#if KOALA_USE_NODE_VM || KOALA_USE_HZ_VM || KOALA_USE_PANDA_VM || KOALA_USE_JAVA_VM || KOALA_CJ + KOALA_INTEROP_CALL_INT(context, methodId, argsLength, argsData); +#else + return 0; +#endif +} + +struct ForeignVMContext { + KVMContext vmContext; + int32_t (*callSync)(KVMContext vmContext, int32_t callback, uint8_t* data, int32_t length); +}; +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); @@ -276,7 +288,10 @@ KInt impl_LoadVirtualMachine(KVMContext vmContext, KInt vmKind, const KStringPtr static LoadVirtualMachine_t impl = nullptr; if (!impl) impl = reinterpret_cast(getImpl(nativeLibPath, "LoadVirtualMachine")); if (!impl) KOALA_INTEROP_THROW_STRING(vmContext, "Cannot load VM", -1); - return impl(vmKind, appClassPath, nativeLibPath, vmContext); + const ForeignVMContext foreignVM = { + vmContext, &callCallback + }; + return impl(vmKind, appClassPath, nativeLibPath, &foreignVM); } KOALA_INTEROP_CTX_3(LoadVirtualMachine, KInt, KInt, KStringPtr, KStringPtr) @@ -335,6 +350,18 @@ void impl_CallCallbackResourceReleaser(KNativePointer releaser, KInt resourceId) } KOALA_INTEROP_V2(CallCallbackResourceReleaser, KNativePointer, KInt) +KInt impl_CallForeignVM(KNativePointer foreignContextRaw, KInt function, KByte* data, KInt length) { + const ForeignVMContext* foreignContext = (const ForeignVMContext*)foreignContextRaw; + // TODO: set actuall callbacks caller/holder/releaser. + /* + *(int64_t*)(data + 8) = impl_CallCallbackSync; + *(int64_t*)(data + 16) = 0; + *(int64_t*)(data + 24) = 0; */ + return foreignContext->callSync(foreignContext->vmContext, function, data, length); +} +KOALA_INTEROP_4(CallForeignVM, KInt, KNativePointer, KInt, KByte*, KInt) + + #define __QUOTE(x) #x #define QUOTE(x) __QUOTE(x) @@ -349,13 +376,6 @@ void impl_NativeLog(const KStringPtr& str) { KOALA_INTEROP_V1(NativeLog, KStringPtr) -int32_t callCallback(KVMContext context, int32_t methodId, uint8_t* argsData, int32_t argsLength) { -#if KOALA_USE_NODE_VM || KOALA_USE_HZ_VM || KOALA_USE_PANDA_VM || KOALA_USE_JAVA_VM || KOALA_CJ - KOALA_INTEROP_CALL_INT(context, methodId, argsLength, argsData); -#else - return 0; -#endif -} void resolveDeferred(KVMDeferred* deferred, uint8_t* argsData, int32_t argsLength) { #ifdef KOALA_NAPI diff --git a/interop/src/cpp/napi/convertors-napi.cc b/interop/src/cpp/napi/convertors-napi.cc index a9b16c83e..0ae25c213 100644 --- a/interop/src/cpp/napi/convertors-napi.cc +++ b/interop/src/cpp/napi/convertors-napi.cc @@ -305,6 +305,8 @@ static napi_ref g_koalaNapiCallbackDispatcher = nullptr; // TODO: shall we pass name in globalThis instead of object reference? napi_value Node_SetCallbackDispatcher(napi_env env, napi_callback_info cbinfo) { + fprintf(stderr, "Node_SetCallbackDispatcher!\n"); + CallbackInfo info(env, cbinfo); napi_value dispatcher = info[0]; napi_value result = makeVoid(env); diff --git a/interop/src/cpp/vmloader.cc b/interop/src/cpp/vmloader.cc index f35f1fe7d..dcd9bd6e2 100644 --- a/interop/src/cpp/vmloader.cc +++ b/interop/src/cpp/vmloader.cc @@ -129,21 +129,21 @@ struct VMInitArgs { #define PANDA_VM_KIND 2 #define ES2PANDA_KIND 3 +struct ForeignVMContext { + void* currentVMContext; + int32_t (*callSync)(void* vmContext, int32_t callback, int8_t* data, int32_t length); +}; + struct VMEntry { int vmKind; void* env; void* app; void* enter; void* emitEvent; - - VMEntry() { - vmKind = 0; - app = nullptr; - enter = nullptr; - } + ForeignVMContext foreignVMContext; }; -VMEntry g_vmEntry; +VMEntry g_vmEntry = {}; typedef int (*createVM_t)(void** pVM, void** pEnv, void* vmInitArgs); typedef int (*getVMs_t)(void** pVM, int32_t bufLen, int32_t* nVMs); @@ -164,7 +164,7 @@ static int ArkMobileLog(int id, int level, const char *component, const char *fm return 0; } -extern "C" DLL_EXPORT KInt LoadVirtualMachine(KInt vmKind, const char* appClassPath, const char* appLibPath, void* currentVMContext) { +extern "C" DLL_EXPORT KInt LoadVirtualMachine(KInt vmKind, const char* appClassPath, const char* appLibPath, const ForeignVMContext* foreignVMContext) { if (vmKind == ES2PANDA_KIND) { return loadES2Panda(appClassPath, appLibPath); } @@ -281,6 +281,7 @@ extern "C" DLL_EXPORT KInt LoadVirtualMachine(KInt vmKind, const char* appClassP return result; } g_vmEntry.env = env; + g_vmEntry.foreignVMContext = *foreignVMContext; return 0; } @@ -304,7 +305,7 @@ const AppInfo javaAppInfo = { "start", "()J", "enter", - "(II)Z", + "(IIJ)Z", "emitEvent", "(IIII)V", }; @@ -318,7 +319,7 @@ const AppInfo pandaAppInfo = { "start", ":J", "enter", - "II:Z", + "IIJ:Z", "emitEvent", "IIII:V", }; @@ -397,7 +398,11 @@ extern "C" DLL_EXPORT KNativePointer StartApplication(const char* appUrl, const #else auto useNativeLog = false; #endif - auto app = etsEnv->NewGlobalRef(etsEnv->CallStaticObjectMethod(appClass, create, etsEnv->NewStringUTF(appUrl), etsEnv->NewStringUTF(appParams), useNativeLog)); + auto app = etsEnv->NewGlobalRef(etsEnv->CallStaticObjectMethod( + appClass, create, + etsEnv->NewStringUTF(appUrl), etsEnv->NewStringUTF(appParams), + useNativeLog + )); if (!app) { LOGE("createApplication returned null"); if (etsEnv->ErrorCheck()) { @@ -441,7 +446,8 @@ extern "C" DLL_EXPORT KBoolean RunApplication(const KInt arg0, const KInt arg1) (jobject)(g_vmEntry.app), (jmethodID)(g_vmEntry.enter), (jint)arg0, - (jint)arg1 + (jint)arg1, + (int64_t)(intptr_t)(&g_vmEntry.foreignVMContext) ); if (jEnv->ExceptionCheck()) { jEnv->ExceptionDescribe(); @@ -461,7 +467,8 @@ extern "C" DLL_EXPORT KBoolean RunApplication(const KInt arg0, const KInt arg1) (ets_object)(g_vmEntry.app), (ets_method)(g_vmEntry.enter), (ets_int)arg0, - (ets_int)arg1 + (ets_int)arg1, + (int64_t)(intptr_t)(&g_vmEntry.foreignVMContext) ); if (etsEnv->ErrorCheck()) { LOGE("Calling enter() method gave an error"); diff --git a/interop/src/interop/InteropNativeModule.ts b/interop/src/interop/InteropNativeModule.ts index 138d28470..b9b177453 100644 --- a/interop/src/interop/InteropNativeModule.ts +++ b/interop/src/interop/InteropNativeModule.ts @@ -36,6 +36,7 @@ export class InteropNativeModule { public static _RunApplication(arg0: int32, arg1: int32): number { throw "method not loaded" } public static _StartApplication(appUrl: string, appParams: string): KPointer { throw "method not loaded" } public static _EmitEvent(eventType: int32, target: int32, arg0: int32, arg1: int32): void { throw "method not loaded" } + public static _CallForeignVM(foreignContext: KPointer, kind: int32, args: Uint8Array, argsSize: int32): int32 { throw "method not loaded" } } export function loadInteropNativeModule() { -- Gitee From 1f4fcdf5943dda8ac58cf171d95eeafdd18456f0 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Thu, 13 Feb 2025 10:27:08 +0000 Subject: [PATCH 08/40] !1820 Add LocalStrogate for arkts --- arkoala-arkts/.gitlab-ci.yml | 4 +- arkoala/arkui-common/src/arkts/Storage.ts | 141 +++++++++++++++++++++- 2 files changed, 141 insertions(+), 4 deletions(-) diff --git a/arkoala-arkts/.gitlab-ci.yml b/arkoala-arkts/.gitlab-ci.yml index 6adcdf502..8b541459f 100644 --- a/arkoala-arkts/.gitlab-ci.yml +++ b/arkoala-arkts/.gitlab-ci.yml @@ -272,7 +272,7 @@ install node modules (arkoala-arkts): - !reference [.setup, script] - npm run panda:sdk:install --prefix arkoala-arkts script: - - mkdir -p arkoala-arkts/build && cp arkoala-arkts/user/build/user.abc arkoala-arkts/build + - mkdir -p arkoala-arkts/build && cp arkoala-arkts/trivial/user/build/user.abc arkoala-arkts/build - npm run build:loader:node --prefix arkoala-arkts - npm run run:node:ci --prefix arkoala-arkts @@ -314,7 +314,7 @@ install node modules (arkoala-arkts): - npm run panda:sdk:install --prefix arkoala-arkts script: - npm run har-arm32 --prefix arkoala-arkts/trivial/user - - mv arkoala-arkts/user/app/user/build/default/outputs/default/user.har user-arm32.har + - mv arkoala-arkts/trivial/user/app/user/build/default/outputs/default/user.har user-arm32.har artifacts: paths: - user-arm32.har diff --git a/arkoala/arkui-common/src/arkts/Storage.ts b/arkoala/arkui-common/src/arkts/Storage.ts index 252904241..3e2ece094 100644 --- a/arkoala/arkui-common/src/arkts/Storage.ts +++ b/arkoala/arkui-common/src/arkts/Storage.ts @@ -106,6 +106,14 @@ export class StorageMap { return StorageMap._shared as StorageMap } + constructor(initializer?: IterableIterator<[string, Object]>) { + if (initializer) { + for (const entry of initializer) { + this.create(entry[0], entry[1]) + } + } + } + keys(): IterableIterator { return this.map.keys() } @@ -165,7 +173,7 @@ export class StorageMap { return true } - private create(key: string, value: V, mutable?: boolean): StorageEntry { + create(key: string, value: V, mutable?: boolean): StorageEntry { const entry = new StorageEntry(this.manager.mutableState(value, true), mutable ?? true) this.map.set(key, entry) return entry @@ -173,7 +181,136 @@ export class StorageMap { } export class LocalStorage { - // todo + private static shared?: LocalStorage + /** @internal */ + readonly map: StorageMap + + /** + * Constructor. + * @since 9 + */ + constructor(initializingProperties?: IterableIterator<[string, Object]>) { + this.map = new StorageMap(initializingProperties) + } + + /** + * Get current LocalStorage shared from stage. + * @StageModelOnly + * @since 9 + * @deprecated since 10 + */ + static GetShared(): LocalStorage { + return LocalStorage.getShared() + } + /** + * Get current LocalStorage shared from stage. + * @StageModelOnly + * @since 10 + */ + static getShared(): LocalStorage { + if (!LocalStorage.shared) { + LocalStorage.shared = new LocalStorage() + } + return LocalStorage.shared as LocalStorage + } + + /** + * Return true if property with given name exists + * @since 9 + */ + has(propName: string): boolean { + return this.map.has(propName) + } + + /** + * Return a Map Iterator + * @since 9 + */ + keys(): IterableIterator { + return this.map.keys() + } + + /** + * Return number of properties + * @since 9 + */ + size(): number { + return this.map.size + } + + /** + * Return value of given property + * @since 9 + */ + get(propName: string): V | undefined { + return this.map.get(propName) + } + + /** + * Set value of given property + * @since 9 + */ + set(propName: string, newValue: V): boolean { + return this.map.set(propName, newValue, false) + } + + /** + * Add property if not property with given name + * @since 9 + */ + setOrCreate(propName: string, newValue: V): boolean { + this.map.set(propName, newValue, true) + return newValue != undefined + } + + /** + * Create and return a 'link' (two-way sync) to named property + * @since 9 + */ + link(propName: string): SubscribedAbstractProperty { + throw new Error("LocalStorage.link is not implemented") + } + + /** + * Like link(), will create and initialize a new source property in LocalStorge if missing + * @since 9 + */ + setAndLink(propName: string, defaultValue: V): SubscribedAbstractProperty { + throw new Error("LocalStorage.setAndLink is not implemented") + } + + /** + * Create and return a 'prop' (one-way sync) to named property + * @since 9 + */ + prop(propName: string): SubscribedAbstractProperty { + throw new Error("LocalStorage.prop is not implemented") + } + + /** + * Like prop(), will create and initialize a new source property in LocalStorage if missing + * @since 9 + */ + setAndProp(propName: string, defaultValue: S): SubscribedAbstractProperty { + throw new Error("LocalStorage.setAndProp is not implemented") + } + + /** + * Delete property from StorageBase + * @since 9 + * @returns false if method failed + */ + delete(propName: string): boolean { + return this.map.delete(propName) + } + + /** + * Delete all properties from the StorageBase + * @since 9 + */ + clear(): boolean { + return this.map.clear() + } } /** -- Gitee From 150322cc26097d6532e1e1c7611f70d9447af1b0 Mon Sep 17 00:00:00 2001 From: Pozdeev Pavel Date: Thu, 13 Feb 2025 13:12:28 +0000 Subject: [PATCH 09/40] !1823 CJ: runtime compatible with 0.58 compiler --- .../runtime/src/core/CallsiteKey.cj | 2 +- incremental-cj/runtime/src/core/Dependency.cj | 6 +-- incremental-cj/runtime/src/core/ScopeImpl.cj | 4 +- .../runtime/src/core/StateManager.cj | 8 ++-- incremental-cj/runtime/src/memoize/visitor.cj | 42 +++++++++---------- interop/src/cangjie/ResourceManager.cj | 2 +- interop/src/cangjie/SerializerBase.cj | 6 +-- 7 files changed, 35 insertions(+), 35 deletions(-) diff --git a/incremental-cj/runtime/src/core/CallsiteKey.cj b/incremental-cj/runtime/src/core/CallsiteKey.cj index ec02af08e..45de6b1ba 100644 --- a/incremental-cj/runtime/src/core/CallsiteKey.cj +++ b/incremental-cj/runtime/src/core/CallsiteKey.cj @@ -14,7 +14,7 @@ */ package KoalaRuntime.core -import std.format.* +import std.convert.* public type CallsiteKey = UInt64 diff --git a/incremental-cj/runtime/src/core/Dependency.cj b/incremental-cj/runtime/src/core/Dependency.cj index 55b9821ef..fa6e72029 100644 --- a/incremental-cj/runtime/src/core/Dependency.cj +++ b/incremental-cj/runtime/src/core/Dependency.cj @@ -69,11 +69,11 @@ public class Dependencies { return } if (let Some(dependencies) <- this.dependencies) { - dependencies.put(dependency) + dependencies.add(dependency) } else { let set = HashSet() - set.put(latest) - set.put(dependency) + set.add(latest) + set.add(dependency) this.dependencies = set } } diff --git a/incremental-cj/runtime/src/core/ScopeImpl.cj b/incremental-cj/runtime/src/core/ScopeImpl.cj index f9fdada1a..160c3225a 100644 --- a/incremental-cj/runtime/src/core/ScopeImpl.cj +++ b/incremental-cj/runtime/src/core/ScopeImpl.cj @@ -174,7 +174,7 @@ abstract class ManagedScope <: Dependency & TreeNode & Equatable([state]) } @@ -182,7 +182,7 @@ abstract class ManagedScope <: Dependency & TreeNode & Equatable([(name, state)]) } diff --git a/incremental-cj/runtime/src/core/StateManager.cj b/incremental-cj/runtime/src/core/StateManager.cj index a4ad2207e..993b06028 100644 --- a/incremental-cj/runtime/src/core/StateManager.cj +++ b/incremental-cj/runtime/src/core/StateManager.cj @@ -29,7 +29,7 @@ let scheduledCallbacks = ArrayList<() -> Unit>() * @param callback - a function to perform between recompositions */ public func scheduleCallback(callback: () -> Unit): Unit { - scheduledCallbacks.append(callback) + scheduledCallbacks.add(callback) } /** @@ -93,7 +93,7 @@ public class GlobalStateManager { } static func addCreatedState(state: AbstractState): Unit { - createdStates.put(state) + createdStates.add(state) if (!state.global) { currentScope?.addCreatedState(state) } @@ -117,7 +117,7 @@ public class GlobalStateManager { } static func addDirtyScope(scope: ManagedScope): Unit { - dirtyScopes.put(scope) + dirtyScopes.add(scope) } static func checkForStateDisposing(): Unit { @@ -247,7 +247,7 @@ public class GlobalStateManager { stateCreating = None let state = StateImpl(initial, global, tracker, name) if (global) { - namedStates.put(name, state) + namedStates.add(name, state) } else if (let Some(scope) <- currentScope) { scope.setNamedState(name, state) } diff --git a/incremental-cj/runtime/src/memoize/visitor.cj b/incremental-cj/runtime/src/memoize/visitor.cj index 6181167f3..eebbfa23b 100644 --- a/incremental-cj/runtime/src/memoize/visitor.cj +++ b/incremental-cj/runtime/src/memoize/visitor.cj @@ -46,8 +46,8 @@ open class MemoVisitor <: Visitor { let varValue = Token(IDENTIFIER, param.identifier.value) let varDecl = VarDecl(quote(let $(varName) = getParameter(__memo_scope, $(count), $(varValue), $(param.identifier.value)))) - memoizedParamsNames.append(param.identifier.value) - memoizedParams.append(varDecl) + memoizedParamsNames.add(param.identifier.value) + memoizedParams.add(varDecl) count++ } } @@ -61,8 +61,8 @@ open class MemoVisitor <: Visitor { let varValue = Token(IDENTIFIER, param.identifier.value) let varDecl = VarDecl(quote(let $(varName) = getParameter(__memo_scope, $(count), $(varValue), $(param.identifier.value)))) - memoizedParamsNames.append(param.identifier.value) - memoizedParams.append(varDecl) + memoizedParamsNames.add(param.identifier.value) + memoizedParams.add(varDecl) count++ } return memoizedParams @@ -98,22 +98,22 @@ class MemoFuncVisitor <: MemoVisitor { let memoizedParams = memoizeParams(funcDecl) funcDecl.block.nodes = ArrayList() - funcDecl.block.nodes.append(VarDecl(quote(let __memo_key = getCallsiteKey()))) - funcDecl.block.nodes.append( + funcDecl.block.nodes.add(VarDecl(quote(let __memo_key = getCallsiteKey()))) + funcDecl.block.nodes.add( VarDecl( quote(let __memo_scope = getMemoScope < $(funcType) >(__memo_key, $(memoizedParams.size))) )) for (memoizedParam in memoizedParams) { - funcDecl.block.nodes.append(memoizedParam) + funcDecl.block.nodes.add(memoizedParam) } for (param in memoizedParamsNames) { let varGetterName = Token(IDENTIFIER, "__memo_param_value_" + param) let memoParam = Token(IDENTIFIER, "__memo_param_" + param) let varGetter = VarDecl(quote(let $(varGetterName) = $(memoParam).getValue())) - funcDecl.block.nodes.append(varGetter) + funcDecl.block.nodes.add(varGetter) } - funcDecl.block.nodes.append( + funcDecl.block.nodes.add( IfExpr( quote(if (__memo_scope.isUnchanged()) { return __memo_scope.getCached() @@ -124,11 +124,11 @@ class MemoFuncVisitor <: MemoVisitor { blockNode.traverse(LambdaVisitor(this.memoizedParamsNames)) blockNode.traverse(RefExprVisitor(this.memoizedParamsNames)) blockNode.traverse(ReturnVisitor()) - funcDecl.block.nodes.append(blockNode) + funcDecl.block.nodes.add(blockNode) } let lastNode = funcDecl.block.nodes[funcDecl.block.nodes.size - 1] if (!(lastNode is ReturnExpr) && quote($(funcType)).toTokens()[0].kind == Token(UNIT).kind) { - funcDecl.block.nodes.append(parseExpr(quote(return __memo_scope.recache(MEMO_UNIT)))) + funcDecl.block.nodes.add(parseExpr(quote(return __memo_scope.recache(MEMO_UNIT)))) } breakTraverse() } @@ -147,15 +147,15 @@ class LambdaVisitor <: MemoVisitor { let varGetterName = Token(IDENTIFIER, "__memo_param_value_" + param) let memoParam = Token(IDENTIFIER, "__memo_param_" + param) let varGetter = VarDecl(quote(let $(varGetterName) = $(memoParam).getValue())) - lambdaExpr.nodes.append(varGetter) + lambdaExpr.nodes.add(varGetter) } for (blockNode in blockNodes) { blockNode.traverse(RefExprVisitor(memoizedParamsNames)) - lambdaExpr.nodes.append(blockNode) + lambdaExpr.nodes.add(blockNode) } // let lastNode = lambdaExpr.nodes[lambdaExpr.nodes.size - 1] // if (!(lastNode is ReturnExpr)) { - // lambdaExpr.nodes.append(parseExpr(quote(return))) + // lambdaExpr.nodes.add(parseExpr(quote(return))) // } // breakTraverse() } @@ -177,22 +177,22 @@ class MemoLambdaVisitor <: MemoVisitor { let blockNodes = lambdaExpr.nodes lambdaExpr.nodes = ArrayList() - lambdaExpr.nodes.append(VarDecl(quote(let __memo_key = getCallsiteKey()))) - lambdaExpr.nodes.append( + lambdaExpr.nodes.add(VarDecl(quote(let __memo_key = getCallsiteKey()))) + lambdaExpr.nodes.add( VarDecl( quote(let __memo_scope = getMemoScope < Unit >(__memo_key, $(memoizedParams.size))) )) for (memoizedParam in memoizedParams) { - lambdaExpr.nodes.append(memoizedParam) + lambdaExpr.nodes.add(memoizedParam) } for (param in memoizedParamsNames) { let varGetterName = Token(IDENTIFIER, "__memo_param_value_" + param) let memoParam = Token(IDENTIFIER, "__memo_param_" + param) let varGetter = VarDecl(quote(let $(varGetterName) = $(memoParam).getValue())) - lambdaExpr.nodes.append(varGetter) + lambdaExpr.nodes.add(varGetter) } - lambdaExpr.nodes.append( + lambdaExpr.nodes.add( IfExpr( quote(if (__memo_scope.isUnchanged()) { return __memo_scope.getCached() @@ -202,11 +202,11 @@ class MemoLambdaVisitor <: MemoVisitor { blockNode.traverse(LambdaVisitor(this.memoizedParamsNames)) blockNode.traverse(RefExprVisitor(this.memoizedParamsNames)) blockNode.traverse(ReturnVisitor()) - lambdaExpr.nodes.append(blockNode) + lambdaExpr.nodes.add(blockNode) } let lastNode = lambdaExpr.nodes[lambdaExpr.nodes.size - 1] if (!(lastNode is ReturnExpr)) { - lambdaExpr.nodes.append(parseExpr(quote(return __memo_scope.recache(MEMO_UNIT)))) + lambdaExpr.nodes.add(parseExpr(quote(return __memo_scope.recache(MEMO_UNIT)))) } breakTraverse() } diff --git a/interop/src/cangjie/ResourceManager.cj b/interop/src/cangjie/ResourceManager.cj index 666f8564d..d2e589d5f 100644 --- a/interop/src/cangjie/ResourceManager.cj +++ b/interop/src/cangjie/ResourceManager.cj @@ -65,7 +65,7 @@ public class ResourceHolder { public func registerAndHold(resource: Any): ResourceId { ResourceHolder.nextResourceId += 1 let resourceId = ResourceHolder.nextResourceId - this.resources.put(resourceId, ResourceInfo(resource, resourceId)) + this.resources.add(resourceId, ResourceInfo(resource, resourceId)) return resourceId } diff --git a/interop/src/cangjie/SerializerBase.cj b/interop/src/cangjie/SerializerBase.cj index cb8783343..612d63e9a 100644 --- a/interop/src/cangjie/SerializerBase.cj +++ b/interop/src/cangjie/SerializerBase.cj @@ -96,7 +96,7 @@ public open class SerializerBase { let resizedSize = max(minSize, Int64(round(3.0 * Float64(buffSize) / 2.0))) var resizedBuffer = ArrayList(this.buffer) while (resizedBuffer.size < resizedSize) { - resizedBuffer.append(0) + resizedBuffer.add(0) } this.buffer = resizedBuffer } @@ -110,7 +110,7 @@ public open class SerializerBase { private var heldResources: ArrayList = ArrayList() public func holdAndWriteCallback(callback: Any): ResourceId { let resourceId = ResourceHolder.instance().registerAndHold(callback) - this.heldResources.append(resourceId) + this.heldResources.add(resourceId) this.writeInt32(resourceId) this.writePointer(0) this.writePointer(0) @@ -120,7 +120,7 @@ public open class SerializerBase { } public func holdAndWriteCallback(callback: Any, hold: KPointer, release: KPointer, call: KPointer, callSync: KPointer): ResourceId { let resourceId = ResourceHolder.instance().registerAndHold(callback) - this.heldResources.append(resourceId) + this.heldResources.add(resourceId) this.writeInt32(resourceId) this.writePointer(hold) this.writePointer(release) -- Gitee From 840d1795fbe5b4f4f179fb01c22a4d06bbb8cc76 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Thu, 13 Feb 2025 13:27:27 +0000 Subject: [PATCH 10/40] !1826 fix CI (build user.abc + run:node:ci) * update arkoala-arkts/.gitlab-ci.yml. * fix CI --- arkoala-arkts/.gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/.gitlab-ci.yml b/arkoala-arkts/.gitlab-ci.yml index 8b541459f..99eba0be1 100644 --- a/arkoala-arkts/.gitlab-ci.yml +++ b/arkoala-arkts/.gitlab-ci.yml @@ -230,7 +230,7 @@ install node modules (arkoala-arkts): - npm run build:user --prefix arkoala-arkts artifacts: paths: - - arkoala-arkts/user/build/user.abc + - arkoala-arkts/trivial/user/build/user.abc expire_in: 1 day build shopping.abc: -- Gitee From 29613ce5ffb099a2203a996fd7ba5c201f0683d4 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Thu, 13 Feb 2025 15:55:17 +0000 Subject: [PATCH 11/40] !1828 release-1.5.2 * release-1.5.2 --- 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 8e03717dc..a73b43254 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.1 \ No newline at end of file +1.5.2 \ No newline at end of file diff --git a/arkoala/arkui-common/package.json b/arkoala/arkui-common/package.json index 984585939..67ecc3e74 100644 --- a/arkoala/arkui-common/package.json +++ b/arkoala/arkui-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkui-common", - "version": "1.5.1+devel", + "version": "1.5.2+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -53,9 +53,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.1+devel", - "@koalaui/compat": "1.5.1+devel", - "@koalaui/runtime": "1.5.1+devel", + "@koalaui/common": "1.5.2+devel", + "@koalaui/compat": "1.5.2+devel", + "@koalaui/runtime": "1.5.2+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 9c4c44f20..97df59dca 100644 --- a/arkoala/arkui/package.json +++ b/arkoala/arkui/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkoala-arkui", - "version": "1.5.1+devel", + "version": "1.5.2+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -45,10 +45,10 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.1+devel", - "@koalaui/runtime": "1.5.1+devel", + "@koalaui/common": "1.5.2+devel", + "@koalaui/runtime": "1.5.2+devel", "@koalaui/arkoala": "1.4.1+devel", - "@koalaui/arkui-common": "1.5.1+devel", + "@koalaui/arkui-common": "1.5.2+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 88ccac926..97b237c56 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-plugin", - "version": "1.5.1+devel", + "version": "1.5.2+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 aaf1ab090..748b635a9 100644 --- a/incremental/build-common/package.json +++ b/incremental/build-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/build-common", - "version": "1.5.1+devel", + "version": "1.5.2+devel", "description": "", "files": [ "tsconfig.json" diff --git a/incremental/common/package.json b/incremental/common/package.json index 9eea7ed2f..a95616148 100644 --- a/incremental/common/package.json +++ b/incremental/common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/common", - "version": "1.5.1+devel", + "version": "1.5.2+devel", "description": "", "main": "build/lib/src/index.js", "types": "./index.d.ts", @@ -42,7 +42,7 @@ }, "keywords": [], "dependencies": { - "@koalaui/compat": "1.5.1+devel" + "@koalaui/compat": "1.5.2+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/compat/package.json b/incremental/compat/package.json index fb37cff5e..ba7c19d60 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compat", - "version": "1.5.1+devel", + "version": "1.5.2+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 a6fc77a62..29f36ae5b 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compiler-plugin", - "version": "1.5.1+devel", + "version": "1.5.2+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.1+devel" + "@koalaui/common": "1.5.2+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/incremental/harness/package.json b/incremental/harness/package.json index 0570e168d..b90606807 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/harness", - "version": "1.5.1+devel", + "version": "1.5.2+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.1+devel", - "@koalaui/compat": "1.5.1+devel" + "@koalaui/common": "1.5.2+devel", + "@koalaui/compat": "1.5.2+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index 3cae399f6..16e37cdcd 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/runtime", - "version": "1.5.1+devel", + "version": "1.5.2+devel", "description": "", "main": "./build/lib/src/index.js", "types": "./build/lib/src/index.d.ts", @@ -40,9 +40,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.1+devel", - "@koalaui/compat": "1.5.1+devel", - "@koalaui/harness": "1.5.1+devel" + "@koalaui/common": "1.5.2+devel", + "@koalaui/compat": "1.5.2+devel", + "@koalaui/harness": "1.5.2+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/interop/package.json b/interop/package.json index dae22d080..95246e181 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/interop", - "version": "1.5.1+devel", + "version": "1.5.2+devel", "description": "", "workspaces": [ "../incremental/build-common", @@ -57,7 +57,7 @@ "keywords": [], "dependencies": { "@types/node": "^18.0.0", - "@koalaui/common": "1.5.1+devel" + "@koalaui/common": "1.5.2+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", -- Gitee From 28d50d06702123c9cf0b804751189d40a51d29e8 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Thu, 13 Feb 2025 16:29:26 +0000 Subject: [PATCH 12/40] !1831 Fix gitlab path * Fix gitlab path --- arkoala/ohos-sdk/scripts/oh-sdk-utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala/ohos-sdk/scripts/oh-sdk-utils.mjs b/arkoala/ohos-sdk/scripts/oh-sdk-utils.mjs index cbd287c01..1859208a0 100644 --- a/arkoala/ohos-sdk/scripts/oh-sdk-utils.mjs +++ b/arkoala/ohos-sdk/scripts/oh-sdk-utils.mjs @@ -179,7 +179,7 @@ export async function downloadOhSdkPrebuiltEts(dstPath, version) { null ) } else { - const { generic_package_archive_gitlab } = await import("../../../../sdk/scripts/gitlab/gitlab.mjs") + const { generic_package_archive_gitlab } = await import("./gitlab.mjs") await generic_package_archive_gitlab( packageName, packageVersion, -- Gitee From 57bbc638864566ffef5ce070a8900c79523a473c Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Thu, 13 Feb 2025 18:21:49 +0000 Subject: [PATCH 13/40] !1832 libarkts: fix namespace, add creates, fix array, regenerate --- arkoala-arkts/libarkts/native/src/bridges.cc | 21 --- .../libarkts/native/src/generated/bridges.cc | 160 ++++++++++++++++++ arkoala-arkts/libarkts/package.json | 2 +- .../src/generated/Es2pandaNativeModule.ts | 51 ++++++ arkoala-arkts/libarkts/src/generated/index.ts | 5 +- .../src/generated/peers/AnnotatedAstNode.ts | 5 +- .../generated/peers/AnnotatedExpression.ts | 5 +- .../src/generated/peers/AnnotatedStatement.ts | 5 +- .../generated/peers/AnnotationDeclaration.ts | 10 +- .../src/generated/peers/AnnotationUsage.ts | 18 +- .../src/generated/peers/ArrayExpression.ts | 5 +- .../peers/ArrowFunctionExpression.ts | 10 +- .../src/generated/peers/AssertStatement.ts | 10 +- .../generated/peers/AssignmentExpression.ts | 13 +- .../src/generated/peers/AwaitExpression.ts | 10 +- .../src/generated/peers/BigIntLiteral.ts | 10 +- .../src/generated/peers/BinaryExpression.ts | 18 +- .../src/generated/peers/BlockExpression.ts | 7 +- .../src/generated/peers/BlockStatement.ts | 7 +- .../src/generated/peers/BooleanLiteral.ts | 10 +- .../src/generated/peers/BreakStatement.ts | 10 +- .../src/generated/peers/CallExpression.ts | 10 +- .../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 | 19 ++- .../src/generated/peers/ClassElement.ts | 5 +- .../src/generated/peers/ClassExpression.ts | 10 +- .../src/generated/peers/ClassProperty.ts | 7 +- .../src/generated/peers/ClassStaticBlock.ts | 11 +- .../generated/peers/ConditionalExpression.ts | 10 +- .../src/generated/peers/ContinueStatement.ts | 10 +- .../src/generated/peers/DebuggerStatement.ts | 10 +- .../libarkts/src/generated/peers/Decorator.ts | 10 +- .../generated/peers/DirectEvalExpression.ts | 12 +- .../src/generated/peers/DoWhileStatement.ts | 7 +- .../src/generated/peers/ETSClassLiteral.ts | 7 +- .../generated/peers/ETSDynamicFunctionType.ts | 37 ++++ .../src/generated/peers/ETSFunctionType.ts | 31 ++-- .../generated/peers/ETSImportDeclaration.ts | 7 +- .../generated/peers/ETSLaunchExpression.ts | 10 +- .../libarkts/src/generated/peers/ETSModule.ts | 7 +- .../peers/ETSNewArrayInstanceExpression.ts | 7 +- .../peers/ETSNewClassInstanceExpression.ts | 10 +- .../ETSNewMultiDimArrayInstanceExpression.ts | 7 +- .../src/generated/peers/ETSNullType.ts | 10 +- .../generated/peers/ETSPackageDeclaration.ts | 11 +- .../generated/peers/ETSParameterExpression.ts | 7 +- .../src/generated/peers/ETSPrimitiveType.ts | 12 +- .../generated/peers/ETSReExportDeclaration.ts | 7 +- .../generated/peers/ETSStructDeclaration.ts | 11 +- .../libarkts/src/generated/peers/ETSTuple.ts | 10 +- .../src/generated/peers/ETSTypeReference.ts | 10 +- .../generated/peers/ETSTypeReferencePart.ts | 10 +- .../src/generated/peers/ETSUndefinedType.ts | 10 +- .../src/generated/peers/ETSUnionType.ts | 9 +- .../src/generated/peers/ETSWildcardType.ts | 11 +- .../src/generated/peers/EmptyStatement.ts | 10 +- .../generated/peers/ExportAllDeclaration.ts | 10 +- .../peers/ExportDefaultDeclaration.ts | 10 +- .../generated/peers/ExportNamedDeclaration.ts | 10 +- .../src/generated/peers/ExportSpecifier.ts | 10 +- .../src/generated/peers/Expression.ts | 5 +- .../generated/peers/ExpressionStatement.ts | 10 +- .../src/generated/peers/ForInStatement.ts | 7 +- .../src/generated/peers/ForOfStatement.ts | 7 +- .../src/generated/peers/ForUpdateStatement.ts | 7 +- .../peers/{AstNode.ts => FunctionDecl.ts} | 13 +- .../generated/peers/FunctionDeclaration.ts | 11 +- .../src/generated/peers/FunctionExpression.ts | 10 +- .../src/generated/peers/Identifier.ts | 10 +- .../src/generated/peers/IfStatement.ts | 7 +- .../src/generated/peers/ImportDeclaration.ts | 11 +- .../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 | 37 ++++ .../src/generated/peers/LabelledStatement.ts | 7 +- .../libarkts/src/generated/peers/Literal.ts | 5 +- .../src/generated/peers/LoopStatement.ts | 5 +- .../peers/MaybeOptionalExpression.ts | 5 +- .../src/generated/peers/MemberExpression.ts | 12 +- .../src/generated/peers/MetaProperty.ts | 12 +- .../src/generated/peers/MethodDefinition.ts | 14 +- .../libarkts/src/generated/peers/NamedType.ts | 10 +- .../src/generated/peers/NewExpression.ts | 10 +- .../src/generated/peers/NullLiteral.ts | 10 +- .../src/generated/peers/NumberLiteral.ts | 7 +- .../src/generated/peers/ObjectExpression.ts | 5 +- .../src/generated/peers/OmittedExpression.ts | 10 +- .../src/generated/peers/OpaqueTypeNode.ts | 7 +- .../peers/PrefixAssertionExpression.ts | 7 +- .../libarkts/src/generated/peers/Property.ts | 12 +- .../src/generated/peers/RegExpLiteral.ts | 12 +- .../src/generated/peers/ReturnStatement.ts | 10 +- .../src/generated/peers/ScriptFunction.ts | 9 +- .../src/generated/peers/SequenceExpression.ts | 10 +- .../src/generated/peers/SpreadElement.ts | 5 +- .../libarkts/src/generated/peers/Statement.ts | 5 +- .../src/generated/peers/StringLiteral.ts | 7 +- .../src/generated/peers/SuperExpression.ts | 10 +- .../generated/peers/SwitchCaseStatement.ts | 7 +- .../src/generated/peers/SwitchStatement.ts | 10 +- .../src/generated/peers/TSAnyKeyword.ts | 10 +- .../src/generated/peers/TSArrayType.ts | 7 +- .../src/generated/peers/TSAsExpression.ts | 7 +- .../src/generated/peers/TSBigintKeyword.ts | 10 +- .../src/generated/peers/TSBooleanKeyword.ts | 10 +- .../src/generated/peers/TSClassImplements.ts | 10 +- .../src/generated/peers/TSConditionalType.ts | 10 +- .../src/generated/peers/TSConstructorType.ts | 7 +- .../src/generated/peers/TSEnumDeclaration.ts | 10 +- .../src/generated/peers/TSEnumMember.ts | 10 +- .../peers/TSExternalModuleReference.ts | 10 +- .../src/generated/peers/TSFunctionType.ts | 7 +- .../peers/TSImportEqualsDeclaration.ts | 10 +- .../src/generated/peers/TSImportType.ts | 10 +- .../src/generated/peers/TSIndexSignature.ts | 7 +- .../generated/peers/TSIndexedAccessType.ts | 7 +- .../src/generated/peers/TSInferType.ts | 10 +- .../src/generated/peers/TSInterfaceBody.ts | 10 +- .../generated/peers/TSInterfaceDeclaration.ts | 12 +- .../generated/peers/TSInterfaceHeritage.ts | 7 +- .../src/generated/peers/TSIntersectionType.ts | 10 +- .../src/generated/peers/TSLiteralType.ts | 10 +- .../src/generated/peers/TSMappedType.ts | 9 +- .../src/generated/peers/TSMethodSignature.ts | 7 +- .../src/generated/peers/TSModuleBlock.ts | 7 +- .../generated/peers/TSModuleDeclaration.ts | 7 +- .../src/generated/peers/TSNamedTupleMember.ts | 7 +- .../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 | 12 +- .../generated/peers/TSParenthesizedType.ts | 7 +- .../generated/peers/TSPropertySignature.ts | 7 +- .../src/generated/peers/TSQualifiedName.ts | 10 +- .../generated/peers/TSSignatureDeclaration.ts | 9 +- .../src/generated/peers/TSStringKeyword.ts | 10 +- .../src/generated/peers/TSThisType.ts | 10 +- .../src/generated/peers/TSTupleType.ts | 7 +- .../generated/peers/TSTypeAliasDeclaration.ts | 7 +- .../src/generated/peers/TSTypeAssertion.ts | 7 +- .../src/generated/peers/TSTypeLiteral.ts | 10 +- .../src/generated/peers/TSTypeOperator.ts | 7 +- .../src/generated/peers/TSTypeParameter.ts | 7 +- .../peers/TSTypeParameterDeclaration.ts | 10 +- .../peers/TSTypeParameterInstantiation.ts | 7 +- .../src/generated/peers/TSTypePredicate.ts | 7 +- .../src/generated/peers/TSTypeQuery.ts | 10 +- .../src/generated/peers/TSTypeReference.ts | 12 +- .../src/generated/peers/TSUndefinedKeyword.ts | 10 +- .../src/generated/peers/TSUnionType.ts | 7 +- .../src/generated/peers/TSUnknownKeyword.ts | 10 +- .../src/generated/peers/TSVoidKeyword.ts | 10 +- .../peers/TaggedTemplateExpression.ts | 10 +- .../src/generated/peers/TemplateElement.ts | 10 +- .../src/generated/peers/TemplateLiteral.ts | 10 +- .../src/generated/peers/ThisExpression.ts | 10 +- .../src/generated/peers/ThrowStatement.ts | 10 +- .../src/generated/peers/TryStatement.ts | 7 +- .../libarkts/src/generated/peers/TypeNode.ts | 5 +- .../src/generated/peers/TypedAstNode.ts | 5 +- .../src/generated/peers/TypedStatement.ts | 5 +- .../src/generated/peers/TypeofExpression.ts | 10 +- .../src/generated/peers/UnaryExpression.ts | 12 +- .../src/generated/peers/UndefinedLiteral.ts | 10 +- .../src/generated/peers/UpdateExpression.ts | 12 +- .../generated/peers/VariableDeclaration.ts | 12 +- .../src/generated/peers/VariableDeclarator.ts | 12 +- .../src/generated/peers/WhileStatement.ts | 7 +- .../src/generated/peers/YieldExpression.ts | 10 +- .../libarkts/src/reexport-for-generated.ts | 2 +- 177 files changed, 1330 insertions(+), 552 deletions(-) create mode 100644 arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts rename arkoala-arkts/libarkts/src/generated/peers/{AstNode.ts => FunctionDecl.ts} (66%) create mode 100644 arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts diff --git a/arkoala-arkts/libarkts/native/src/bridges.cc b/arkoala-arkts/libarkts/native/src/bridges.cc index 78ad5321f..d7d313b73 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -194,18 +194,6 @@ KNativePointer impl_CreateAstDumper( } KOALA_INTEROP_3(CreateAstDumper, KNativePointer, KNativePointer, KNativePointer, KStringPtr) -KNativePointer impl_CreateETSUnionTypeIr( - KNativePointer contextPtr, - KNativePointerArray typesPtr, - KInt typesLen -) { - auto context = reinterpret_cast(contextPtr); - auto types = reinterpret_cast(typesPtr); - - return GetImpl()->CreateETSUnionTypeIr(context, types, typesLen); -} -KOALA_INTEROP_3(CreateETSUnionTypeIr, KNativePointer, KNativePointer, KNativePointerArray, KInt) - KNativePointer impl_CreateFunctionSignature( KNativePointer contextPtr, KNativePointer typeParamsPtr, @@ -239,15 +227,6 @@ KNativePointer impl_CreateIdentifier2(KNativePointer contextPtr, KStringPtr& nam } KOALA_INTEROP_3(CreateIdentifier2, KNativePointer, KNativePointer, KStringPtr, KNativePointer) -KNativePointer impl_CreateETSFunctionTypeIr(KNativePointer contextPtr, KNativePointer signaturePtr, KInt funcFlagsT) { - auto context = reinterpret_cast(contextPtr); - auto signature = reinterpret_cast(signaturePtr); - auto funcFlags = Es2pandaScriptFunctionFlags(funcFlagsT); - - return GetImpl()->CreateETSFunctionTypeIr(context, signature, funcFlags); -} -KOALA_INTEROP_3(CreateETSFunctionTypeIr, KNativePointer, KNativePointer, KNativePointer, KInt) - KNativePointer impl_CreateNumberLiteral(KNativePointer contextPtr, KDouble value) { auto context = reinterpret_cast(contextPtr); diff --git a/arkoala-arkts/libarkts/native/src/generated/bridges.cc b/arkoala-arkts/libarkts/native/src/generated/bridges.cc index a9faf06d1..2a17ab86d 100644 --- a/arkoala-arkts/libarkts/native/src/generated/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/generated/bridges.cc @@ -163,6 +163,27 @@ KNativePointer impl_UpdateTSVoidKeyword(KNativePointer context, KNativePointer o } KOALA_INTEROP_2(UpdateTSVoidKeyword, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateETSFunctionTypeIr(KNativePointer context, KNativePointer signature, KInt funcFlags) +{ + const auto _context = reinterpret_cast(context); + const auto _signature = reinterpret_cast(signature); + const auto _funcFlags = static_cast(funcFlags); + auto result = GetImpl()->CreateETSFunctionTypeIr(_context, _signature, _funcFlags); + return result; +} +KOALA_INTEROP_3(CreateETSFunctionTypeIr, KNativePointer, KNativePointer, KNativePointer, KInt); + +KNativePointer impl_UpdateETSFunctionTypeIr(KNativePointer context, KNativePointer original, KNativePointer signature, KInt funcFlags) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _signature = reinterpret_cast(signature); + const auto _funcFlags = static_cast(funcFlags); + auto result = GetImpl()->UpdateETSFunctionTypeIr(_context, _original, _signature, _funcFlags); + return result; +} +KOALA_INTEROP_4(UpdateETSFunctionTypeIr, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt); + KNativePointer impl_ETSFunctionTypeIrTypeParamsConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -2176,6 +2197,27 @@ KNativePointer impl_UpdateTSObjectKeyword(KNativePointer context, KNativePointer } KOALA_INTEROP_2(UpdateTSObjectKeyword, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateETSUnionTypeIr(KNativePointer context, KNativePointerArray types, KUInt typesLen) +{ + const auto _context = reinterpret_cast(context); + const auto _types = reinterpret_cast(types); + const auto _typesLen = static_cast(typesLen); + auto result = GetImpl()->CreateETSUnionTypeIr(_context, _types, _typesLen); + return result; +} +KOALA_INTEROP_3(CreateETSUnionTypeIr, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + +KNativePointer impl_UpdateETSUnionTypeIr(KNativePointer context, KNativePointer original, KNativePointerArray types, KUInt typesLen) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _types = reinterpret_cast(types); + const auto _typesLen = static_cast(typesLen); + auto result = GetImpl()->UpdateETSUnionTypeIr(_context, _original, _types, _typesLen); + return result; +} +KOALA_INTEROP_4(UpdateETSUnionTypeIr, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_ETSUnionTypeIrTypesConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -5165,6 +5207,24 @@ KNativePointer impl_BinaryExpressionRight(KNativePointer context, KNativePointer } KOALA_INTEROP_2(BinaryExpressionRight, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_BinaryExpressionResultConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->BinaryExpressionResultConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(BinaryExpressionResultConst, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_BinaryExpressionResult(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->BinaryExpressionResult(_context, _receiver); + return result; +} +KOALA_INTEROP_2(BinaryExpressionResult, KNativePointer, KNativePointer, KNativePointer); + KInt impl_BinaryExpressionOperatorTypeConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -5422,6 +5482,24 @@ void impl_AssignmentExpressionSetLeft(KNativePointer context, KNativePointer rec } KOALA_INTEROP_V3(AssignmentExpressionSetLeft, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_AssignmentExpressionResultConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->AssignmentExpressionResultConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(AssignmentExpressionResultConst, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_AssignmentExpressionResult(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->AssignmentExpressionResult(_context, _receiver); + return result; +} +KOALA_INTEROP_2(AssignmentExpressionResult, KNativePointer, KNativePointer, KNativePointer); + KInt impl_AssignmentExpressionOperatorTypeConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -6506,6 +6584,25 @@ KNativePointer impl_AnnotationDeclarationGetBaseNameConst(KNativePointer context } KOALA_INTEROP_2(AnnotationDeclarationGetBaseNameConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateAnnotationUsageIr(KNativePointer context, KNativePointer expr) +{ + const auto _context = reinterpret_cast(context); + const auto _expr = reinterpret_cast(expr); + auto result = GetImpl()->CreateAnnotationUsageIr(_context, _expr); + return result; +} +KOALA_INTEROP_2(CreateAnnotationUsageIr, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateAnnotationUsageIr(KNativePointer context, KNativePointer original, KNativePointer expr) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _expr = reinterpret_cast(expr); + auto result = GetImpl()->UpdateAnnotationUsageIr(_context, _original, _expr); + return result; +} +KOALA_INTEROP_3(UpdateAnnotationUsageIr, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_AnnotationUsageIrExpr(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -6545,6 +6642,16 @@ KNativePointer impl_AnnotationUsageIrPropertiesPtrConst(KNativePointer context, } KOALA_INTEROP_2(AnnotationUsageIrPropertiesPtrConst, KNativePointer, KNativePointer, KNativePointer); +void impl_AnnotationUsageIrAddProperty(KNativePointer context, KNativePointer receiver, KNativePointer property) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _property = reinterpret_cast(property); + GetImpl()->AnnotationUsageIrAddProperty(_context, _receiver, _property); + return ; +} +KOALA_INTEROP_V3(AnnotationUsageIrAddProperty, KNativePointer, KNativePointer, KNativePointer); + void impl_AnnotationUsageIrSetProperties(KNativePointer context, KNativePointer receiver, KNativePointerArray properties, KUInt propertiesLen) { const auto _context = reinterpret_cast(context); @@ -9424,6 +9531,40 @@ KNativePointer impl_ImportExpressionSourceConst(KNativePointer context, KNativeP } KOALA_INTEROP_2(ImportExpressionSourceConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateETSNullTypeIr(KNativePointer context) +{ + const auto _context = reinterpret_cast(context); + auto result = GetImpl()->CreateETSNullTypeIr(_context); + return result; +} +KOALA_INTEROP_1(CreateETSNullTypeIr, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateETSNullTypeIr(KNativePointer context, KNativePointer original) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + auto result = GetImpl()->UpdateETSNullTypeIr(_context, _original); + return result; +} +KOALA_INTEROP_2(UpdateETSNullTypeIr, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_CreateETSUndefinedTypeIr(KNativePointer context) +{ + const auto _context = reinterpret_cast(context); + auto result = GetImpl()->CreateETSUndefinedTypeIr(_context); + return result; +} +KOALA_INTEROP_1(CreateETSUndefinedTypeIr, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateETSUndefinedTypeIr(KNativePointer context, KNativePointer original) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + auto result = GetImpl()->UpdateETSUndefinedTypeIr(_context, _original); + return result; +} +KOALA_INTEROP_2(UpdateETSUndefinedTypeIr, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateTypeofExpression(KNativePointer context, KNativePointer argument) { const auto _context = reinterpret_cast(context); @@ -10298,3 +10439,22 @@ KNativePointer impl_UpdateTSThisType(KNativePointer context, KNativePointer orig } KOALA_INTEROP_2(UpdateTSThisType, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateInterfaceDecl(KNativePointer context, KStringPtr& name) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + auto result = GetImpl()->CreateInterfaceDecl(_context, _name); + return result; +} +KOALA_INTEROP_2(CreateInterfaceDecl, KNativePointer, KNativePointer, KStringPtr); + +KNativePointer impl_CreateFunctionDecl(KNativePointer context, KStringPtr& name, KNativePointer node) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + const auto _node = reinterpret_cast(node); + auto result = GetImpl()->CreateFunctionDecl(_context, _name, _node); + return result; +} +KOALA_INTEROP_3(CreateFunctionDecl, KNativePointer, KNativePointer, KStringPtr, KNativePointer); + diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index 7aec984c9..c5edbbda6 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,7 +11,7 @@ "./build/*" ], "config": { - "gen_version": "3.0.10", + "gen_version": "3.0.11", "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/src/generated/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts index a807a7416..d0bd3c804 100644 --- a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts @@ -73,6 +73,12 @@ export class Es2pandaNativeModule { _UpdateTSVoidKeyword(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSFunctionTypeIr(context: KNativePointer, signature: KNativePointer, funcFlags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSFunctionTypeIr(context: KNativePointer, original: KNativePointer, signature: KNativePointer, funcFlags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ETSFunctionTypeIrTypeParamsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -697,6 +703,12 @@ export class Es2pandaNativeModule { _UpdateTSObjectKeyword(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSUnionTypeIr(context: KNativePointer, types: BigUint64Array, typesLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSUnionTypeIr(context: KNativePointer, original: KNativePointer, types: BigUint64Array, typesLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ETSUnionTypeIrTypesConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1636,6 +1648,12 @@ export class Es2pandaNativeModule { _BinaryExpressionRight(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _BinaryExpressionResultConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _BinaryExpressionResult(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _BinaryExpressionOperatorTypeConst(context: KNativePointer, receiver: KNativePointer): KInt { throw new Error("This methods was not overloaded by native module initialization") } @@ -1717,6 +1735,12 @@ export class Es2pandaNativeModule { _AssignmentExpressionSetLeft(context: KNativePointer, receiver: KNativePointer, expr: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _AssignmentExpressionResultConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _AssignmentExpressionResult(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _AssignmentExpressionOperatorTypeConst(context: KNativePointer, receiver: KNativePointer): KInt { throw new Error("This methods was not overloaded by native module initialization") } @@ -2053,6 +2077,12 @@ export class Es2pandaNativeModule { _AnnotationDeclarationGetBaseNameConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateAnnotationUsageIr(context: KNativePointer, expr: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateAnnotationUsageIr(context: KNativePointer, original: KNativePointer, expr: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _AnnotationUsageIrExpr(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2065,6 +2095,9 @@ export class Es2pandaNativeModule { _AnnotationUsageIrPropertiesPtrConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _AnnotationUsageIrAddProperty(context: KNativePointer, receiver: KNativePointer, property: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _AnnotationUsageIrSetProperties(context: KNativePointer, receiver: KNativePointer, properties: BigUint64Array, propertiesLen: KUInt): void { throw new Error("This methods was not overloaded by native module initialization") } @@ -2962,6 +2995,18 @@ export class Es2pandaNativeModule { _ImportExpressionSourceConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSNullTypeIr(context: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSNullTypeIr(context: KNativePointer, original: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _CreateETSUndefinedTypeIr(context: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSUndefinedTypeIr(context: KNativePointer, original: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTypeofExpression(context: KNativePointer, argument: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3232,4 +3277,10 @@ export class Es2pandaNativeModule { _UpdateTSThisType(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateInterfaceDecl(context: KNativePointer, name: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _CreateFunctionDecl(context: KNativePointer, name: KStringPtr, node: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/index.ts b/arkoala-arkts/libarkts/src/generated/index.ts index 0c4fb3eb3..a73b4eb87 100644 --- a/arkoala-arkts/libarkts/src/generated/index.ts +++ b/arkoala-arkts/libarkts/src/generated/index.ts @@ -180,4 +180,7 @@ export * from "./peers/TypeNode" export * from "./peers/NewExpression" export * from "./peers/TSParameterProperty" export * from "./peers/ETSWildcardType" -export * from "./peers/TSThisType" \ No newline at end of file +export * from "./peers/TSThisType" +export * from "./peers/ETSDynamicFunctionType" +export * from "./peers/InterfaceDecl" +export * from "./peers/FunctionDecl" \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts index 06b587bdd..70875a74e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,8 +26,8 @@ import { } from "../../reexport-for-generated" export abstract class AnnotatedAstNode extends AstNode { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node AnnotatedAstNode") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts index de14fdb10..243a46204 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Expression } from "./Expression" export abstract class AnnotatedExpression extends Expression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node AnnotatedExpression") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts index 320e90b5d..387cd8557 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Statement } from "./Statement" export abstract class AnnotatedStatement extends Statement { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node AnnotatedStatement") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index 06a0ae785..2951971c4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class AnnotationDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 1) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 1) + super(pointer) console.warn("Warning: stub node AnnotationDeclaration") } + createAnnotationDeclaration(expr: Expression): AnnotationDeclaration { + return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration(global.context, passNode(expr))) + } get internalNameConst(): string { return global.generatedEs2panda._AnnotationDeclarationInternalNameConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index f8782c29a..a5daeeb65 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,21 +28,24 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class AnnotationUsage extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 2) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 2) + super(pointer) console.warn("Warning: stub node AnnotationUsage") } - get irExpr(): Expression { + createAnnotationUsage(expr: Expression): AnnotationUsage { + return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr(global.context, passNode(expr))) + } + get expr(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AnnotationUsageIrExpr(global.context, this.peer)) } - get irProperties(): readonly AstNode[] { + get properties(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrProperties(global.context, this.peer)) } - get irPropertiesConst(): readonly AstNode[] { + get propertiesConst(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrPropertiesConst(global.context, this.peer)) } - get irPropertiesPtrConst(): readonly AstNode[] { + get propertiesPtrConst(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrPropertiesPtrConst(global.context, this.peer)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts index 51bd99b4a..59448bb76 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,8 +29,8 @@ import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" import { Decorator } from "./Decorator" export abstract class ArrayExpression extends AnnotatedExpression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node ArrayExpression") } get elementsConst(): readonly Expression[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 89389b871..0bde39276 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { ScriptFunction } from "./ScriptFunction" export class ArrowFunctionExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 0) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 0) + super(pointer) console.warn("Warning: stub node ArrowFunctionExpression") } + createArrowFunctionExpression(func: ScriptFunction): ArrowFunctionExpression { + return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func))) + } get functionConst(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._ArrowFunctionExpressionFunctionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index ce1476d38..e7496b8f6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class AssertStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 3) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 3) + super(pointer) console.warn("Warning: stub node AssertStatement") } + createAssertStatement(test: Expression, second: Expression): AssertStatement { + return new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second))) + } get testConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AssertStatementTestConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts index f6a034134..4938155ee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,10 +26,10 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaTokenType } from "../Es2pandaEnums" +import { Es2pandaTokenType } from "./../Es2pandaEnums" export abstract class AssignmentExpression extends Expression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node AssignmentExpression") } get leftConst(): Expression { @@ -43,6 +44,12 @@ export abstract class AssignmentExpression extends Expression { get rightConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AssignmentExpressionRightConst(global.context, this.peer)) } + get resultConst(): Expression { + return unpackNonNullableNode(global.generatedEs2panda._AssignmentExpressionResultConst(global.context, this.peer)) + } + get result(): Expression { + return unpackNonNullableNode(global.generatedEs2panda._AssignmentExpressionResult(global.context, this.peer)) + } get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._AssignmentExpressionOperatorTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index 3c3e9d50f..4288b413c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class AwaitExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 4) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 4) + super(pointer) console.warn("Warning: stub node AwaitExpression") } + createAwaitExpression(argument: Expression): AwaitExpression { + return new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument))) + } get argumentConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AwaitExpressionArgumentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index 500cd1731..dbdbfbd81 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Literal } from "./Literal" export class BigIntLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 5) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 5) + super(pointer) console.warn("Warning: stub node BigIntLiteral") } + createBigIntLiteral(src: string): BigIntLiteral { + return new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src)) + } get strConst(): string { return global.generatedEs2panda._BigIntLiteralStrConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index b504f2f9b..5c812488b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaTokenType } from "../Es2pandaEnums" +import { Es2pandaTokenType } from "./../Es2pandaEnums" export class BinaryExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 6) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 6) + super(pointer) console.warn("Warning: stub node BinaryExpression") } + createBinaryExpression(left: Expression, right: Expression, operatorType: Es2pandaTokenType): BinaryExpression { + return new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType)) + } get leftConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._BinaryExpressionLeftConst(global.context, this.peer)) } @@ -44,6 +48,12 @@ export class BinaryExpression extends Expression { get right(): Expression { return unpackNonNullableNode(global.generatedEs2panda._BinaryExpressionRight(global.context, this.peer)) } + get resultConst(): Expression { + return unpackNonNullableNode(global.generatedEs2panda._BinaryExpressionResultConst(global.context, this.peer)) + } + get result(): Expression { + return unpackNonNullableNode(global.generatedEs2panda._BinaryExpressionResult(global.context, this.peer)) + } get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._BinaryExpressionOperatorTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts index fb24816d9..011893654 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { Statement } from "./Statement" export class BlockExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 154) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 154) + super(pointer) console.warn("Warning: stub node BlockExpression") } get statementsConst(): readonly Statement[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts index 1e73be90d..f1ed56f23 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { Statement } from "./Statement" export class BlockStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 7) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 7) + super(pointer) console.warn("Warning: stub node BlockStatement") } get statementsConst(): readonly Statement[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index 0f5f62eb8..d796d1d04 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Literal } from "./Literal" export class BooleanLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 8) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 8) + super(pointer) console.warn("Warning: stub node BooleanLiteral") } + createBooleanLiteral(value: boolean): BooleanLiteral { + return new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value)) + } get valueConst(): boolean { return global.generatedEs2panda._BooleanLiteralValueConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index 8884167e5..e637be489 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class BreakStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 9) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 9) + super(pointer) console.warn("Warning: stub node BreakStatement") } + createBreakStatement(): BreakStatement { + return new BreakStatement(global.generatedEs2panda._CreateBreakStatement(global.context)) + } get identConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._BreakStatementIdentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index f2abbb103..a8d899e3f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -29,11 +30,14 @@ import { Expression } from "./Expression" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" import { BlockStatement } from "./BlockStatement" export class CallExpression extends MaybeOptionalExpression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 10) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 10) + super(pointer) console.warn("Warning: stub node CallExpression") } + createCallExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, optional_arg: boolean, trailingComma: boolean): CallExpression { + return new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, trailingComma)) + } get calleeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._CallExpressionCalleeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index 6a7af6434..ccaa905c3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { TypedStatement } from "./TypedStatement" import { Expression } from "./Expression" import { BlockStatement } from "./BlockStatement" export class CatchClause extends TypedStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 11) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 11) + super(pointer) console.warn("Warning: stub node CatchClause") } + createCatchClause(param: Expression, body: BlockStatement): CatchClause { + return new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body))) + } get param(): Expression { return unpackNonNullableNode(global.generatedEs2panda._CatchClauseParam(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index 95f05d8d7..9f87c3be4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class ChainExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 12) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 12) + super(pointer) console.warn("Warning: stub node ChainExpression") } + createChainExpression(expression: Expression): ChainExpression { + return new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression))) + } get getExpressionConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ChainExpressionGetExpressionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index dd10f3cc1..eae6038b3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Literal } from "./Literal" export class CharLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 13) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 13) + super(pointer) console.warn("Warning: stub node CharLiteral") } + createCharLiteral(): CharLiteral { + return new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context)) + } } export function isCharLiteral(node: AstNode): node is CharLiteral { return node instanceof CharLiteral diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 895f77bb5..616eb5e4b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Statement } from "./Statement" import { ClassDefinition } from "./ClassDefinition" import { Decorator } from "./Decorator" export class ClassDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 15) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 15) + super(pointer) console.warn("Warning: stub node ClassDeclaration") } + createClassDeclaration(def: ClassDefinition): ClassDeclaration { + return new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def))) + } get definition(): ClassDefinition { return unpackNonNullableNode(global.generatedEs2panda._ClassDeclarationDefinition(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index 4ef163a72..001a8e6cb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,20 +27,24 @@ import { import { TypedAstNode } from "./TypedAstNode" import { Identifier } from "./Identifier" -import { Expression } from "./Expression" -import { Es2pandaClassDefinitionModifiers } from "../Es2pandaEnums" -import { MethodDefinition } from "./MethodDefinition" -import { TSClassImplements } from "./TSClassImplements" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" +import { TSClassImplements } from "./TSClassImplements" +import { MethodDefinition } from "./MethodDefinition" +import { Expression } from "./Expression" +import { Es2pandaClassDefinitionModifiers } from "./../Es2pandaEnums" +import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { TSEnumDeclaration } from "./TSEnumDeclaration" import { ClassDeclaration } from "./ClassDeclaration" export class ClassDefinition extends TypedAstNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 14) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 14) + super(pointer) console.warn("Warning: stub node ClassDefinition") } + createClassDefinition(ident: Identifier, typeParams: TSTypeParameterDeclaration, superTypeParams: TSTypeParameterInstantiation, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition, superClass: Expression, 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)) + } get identConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ClassDefinitionIdentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts index d78a8e940..4dc4a2d54 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,8 +29,8 @@ import { TypedStatement } from "./TypedStatement" import { Expression } from "./Expression" import { Decorator } from "./Decorator" export abstract class ClassElement extends TypedStatement { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node ClassElement") } get key(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index 310123432..47ec06b62 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { ClassDefinition } from "./ClassDefinition" export class ClassExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 16) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 16) + super(pointer) console.warn("Warning: stub node ClassExpression") } + createClassExpression(def: ClassDefinition): ClassExpression { + return new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def))) + } get definitionConst(): ClassDefinition { return unpackNonNullableNode(global.generatedEs2panda._ClassExpressionDefinitionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index b856babd5..fe328cf8e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { ClassElement } from "./ClassElement" import { TypeNode } from "./TypeNode" export class ClassProperty extends ClassElement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 17) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 17) + super(pointer) console.warn("Warning: stub node ClassProperty") } get typeAnnotationConst(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index eb2d7f8ee..2e9107871 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,12 +26,16 @@ import { } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" +import { Expression } from "./Expression" export class ClassStaticBlock extends ClassElement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 18) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 18) + super(pointer) console.warn("Warning: stub node ClassStaticBlock") } + createClassStaticBlock(value: Expression): ClassStaticBlock { + return new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value))) + } } export function isClassStaticBlock(node: AstNode): node is ClassStaticBlock { return node instanceof ClassStaticBlock diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index 53a37a16d..8a6e7cf28 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class ConditionalExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 19) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 19) + super(pointer) console.warn("Warning: stub node ConditionalExpression") } + createConditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression { + return new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate))) + } get testConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ConditionalExpressionTestConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index e88aac8aa..d80b60f3b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class ContinueStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 20) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 20) + super(pointer) console.warn("Warning: stub node ContinueStatement") } + createContinueStatement(): ContinueStatement { + return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement(global.context)) + } get identConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ContinueStatementIdentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index 7bcf25da1..9c26521b1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Statement } from "./Statement" export class DebuggerStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 21) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 21) + super(pointer) console.warn("Warning: stub node DebuggerStatement") } + createDebuggerStatement(): DebuggerStatement { + return new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context)) + } } export function isDebuggerStatement(node: AstNode): node is DebuggerStatement { return node instanceof DebuggerStatement diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index 0d2bc56da..c78b3a4f4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class Decorator extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 22) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 22) + super(pointer) console.warn("Warning: stub node Decorator") } + createDecorator(expr: Expression): Decorator { + return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._DecoratorExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index f8fc24ac2..6bbff443c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,12 +26,17 @@ import { } from "../../reexport-for-generated" import { CallExpression } from "./CallExpression" +import { Expression } from "./Expression" +import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class DirectEvalExpression extends CallExpression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 23) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 23) + super(pointer) console.warn("Warning: stub node DirectEvalExpression") } + createDirectEvalExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, optional_arg: boolean, parserStatus: number): DirectEvalExpression { + return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) + } } export function isDirectEvalExpression(node: AstNode): node is DirectEvalExpression { return node instanceof DirectEvalExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts index 6f79904c4..1b6225555 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { LoopStatement } from "./LoopStatement" import { Statement } from "./Statement" import { Expression } from "./Expression" export class DoWhileStatement extends LoopStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 24) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 24) + super(pointer) console.warn("Warning: stub node DoWhileStatement") } get bodyConst(): Statement { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index f6e3a517e..f1f0836e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class ETSClassLiteral extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 70) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 70) + super(pointer) console.warn("Warning: stub node ETSClassLiteral") } get exprConst(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts new file mode 100644 index 000000000..56fe11d77 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2024 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 { + global, + passNode, + passNodeArray, + unpackNonNullableNode, + unpackNodeArray, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +import { ETSFunctionType } from "./ETSFunctionType" +export abstract class ETSDynamicFunctionType extends ETSFunctionType { + constructor(pointer: KNativePointer) { + super(pointer) + console.warn("Warning: stub node ETSDynamicFunctionType") + } +} +export function isETSDynamicFunctionType(node: AstNode): node is ETSDynamicFunctionType { + return node instanceof ETSDynamicFunctionType +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts index 86bc28343..d8fe47ad8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,44 +29,44 @@ import { TypeNode } from "./TypeNode" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Expression } from "./Expression" import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration" -import { Es2pandaScriptFunctionFlags } from "../Es2pandaEnums" +import { Es2pandaScriptFunctionFlags } from "./../Es2pandaEnums" export class ETSFunctionType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 66) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 66) + super(pointer) console.warn("Warning: stub node ETSFunctionType") } - get irTypeParamsConst(): TSTypeParameterDeclaration { + get typeParamsConst(): TSTypeParameterDeclaration { return unpackNonNullableNode(global.generatedEs2panda._ETSFunctionTypeIrTypeParamsConst(global.context, this.peer)) } - get irTypeParams(): TSTypeParameterDeclaration { + get typeParams(): TSTypeParameterDeclaration { return unpackNonNullableNode(global.generatedEs2panda._ETSFunctionTypeIrTypeParams(global.context, this.peer)) } - get irParamsConst(): readonly Expression[] { + get paramsConst(): readonly Expression[] { return unpackNodeArray(global.generatedEs2panda._ETSFunctionTypeIrParamsConst(global.context, this.peer)) } - get irReturnTypeConst(): TypeNode { + get returnTypeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSFunctionTypeIrReturnTypeConst(global.context, this.peer)) } - get irReturnType(): TypeNode { + get returnType(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSFunctionTypeIrReturnType(global.context, this.peer)) } - get irFunctionalInterface(): TSInterfaceDeclaration { + get functionalInterface(): TSInterfaceDeclaration { return unpackNonNullableNode(global.generatedEs2panda._ETSFunctionTypeIrFunctionalInterface(global.context, this.peer)) } - get irFunctionalInterfaceConst(): TSInterfaceDeclaration { + get functionalInterfaceConst(): TSInterfaceDeclaration { return unpackNonNullableNode(global.generatedEs2panda._ETSFunctionTypeIrFunctionalInterfaceConst(global.context, this.peer)) } - get irFlags(): Es2pandaScriptFunctionFlags { + get flags(): Es2pandaScriptFunctionFlags { return global.generatedEs2panda._ETSFunctionTypeIrFlags(global.context, this.peer) } - get irIsThrowingConst(): boolean { + get isThrowingConst(): boolean { return global.generatedEs2panda._ETSFunctionTypeIrIsThrowingConst(global.context, this.peer) } - get irIsRethrowingConst(): boolean { + get isRethrowingConst(): boolean { return global.generatedEs2panda._ETSFunctionTypeIrIsRethrowingConst(global.context, this.peer) } - get irIsExtensionFunctionConst(): boolean { + get isExtensionFunctionConst(): boolean { return global.generatedEs2panda._ETSFunctionTypeIrIsExtensionFunctionConst(global.context, this.peer) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts index 580bab39c..d6c2bea5a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { ImportDeclaration } from "./ImportDeclaration" import { StringLiteral } from "./StringLiteral" export class ETSImportDeclaration extends ImportDeclaration { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 78) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 78) + super(pointer) console.warn("Warning: stub node ETSImportDeclaration") } get hasDeclConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index f3d77f540..a7d84f0ee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { CallExpression } from "./CallExpression" export class ETSLaunchExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 74) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 74) + super(pointer) console.warn("Warning: stub node ETSLaunchExpression") } + createETSLaunchExpression(expr: CallExpression): ETSLaunchExpression { + return new ETSLaunchExpression(global.generatedEs2panda._CreateETSLaunchExpression(global.context, passNode(expr))) + } get callConst(): CallExpression { return unpackNonNullableNode(global.generatedEs2panda._ETSLaunchExpressionCallConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts index 17a26ea20..94ec25eb6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { BlockStatement } from "./BlockStatement" import { Identifier } from "./Identifier" export class ETSModule extends BlockStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 81) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 81) + super(pointer) console.warn("Warning: stub node ETSModule") } get ident(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index ddd9f11cf..f6d6912e6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class ETSNewArrayInstanceExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 75) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 75) + super(pointer) console.warn("Warning: stub node ETSNewArrayInstanceExpression") } get typeReference(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index f31e538ae..d5a48a5d1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class ETSNewClassInstanceExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 77) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 77) + super(pointer) console.warn("Warning: stub node ETSNewClassInstanceExpression") } + createETSNewClassInstanceExpression(typeReference: Expression, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { + return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), argumentsLen)) + } get getTypeRefConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ETSNewClassInstanceExpressionGetTypeRefConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index d09b97de5..f34f7c658 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class ETSNewMultiDimArrayInstanceExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 76) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 76) + super(pointer) console.warn("Warning: stub node ETSNewMultiDimArrayInstanceExpression") } get typeReference(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index f2553c113..ad6ee013e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class ETSNullType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 62) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 62) + super(pointer) console.warn("Warning: stub node ETSNullType") } + createETSNullType(): ETSNullType { + return new ETSNullType(global.generatedEs2panda._CreateETSNullTypeIr(global.context)) + } } export function isETSNullType(node: AstNode): node is ETSNullType { return node instanceof ETSNullType diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index 8c0898b4f..f5c4c45d4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,12 +26,16 @@ import { } from "../../reexport-for-generated" import { Statement } from "./Statement" +import { Expression } from "./Expression" export class ETSPackageDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 69) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 69) + super(pointer) console.warn("Warning: stub node ETSPackageDeclaration") } + createETSPackageDeclaration(name: Expression): ETSPackageDeclaration { + return new ETSPackageDeclaration(global.generatedEs2panda._CreateETSPackageDeclaration(global.context, passNode(name))) + } } export function isETSPackageDeclaration(node: AstNode): node is ETSPackageDeclaration { return node instanceof ETSPackageDeclaration diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index 43cbb3833..92d43d8c3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { Expression } from "./Expression" export class ETSParameterExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 79) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 79) + super(pointer) console.warn("Warning: stub node ETSParameterExpression") } get isDefaultConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index ca5ef8ef9..c771d687e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" -import { Es2pandaPrimitiveType } from "../Es2pandaEnums" +import { Es2pandaPrimitiveType } from "./../Es2pandaEnums" export class ETSPrimitiveType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 68) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 68) + super(pointer) console.warn("Warning: stub node ETSPrimitiveType") } + createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { + return new ETSPrimitiveType(global.generatedEs2panda._CreateETSPrimitiveType(global.context, type)) + } get getPrimitiveTypeConst(): Es2pandaPrimitiveType { return global.generatedEs2panda._ETSPrimitiveTypeGetPrimitiveTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts index 859c84e9f..178ba7df0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Statement } from "./Statement" import { ETSImportDeclaration } from "./ETSImportDeclaration" export class ETSReExportDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 57) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 57) + super(pointer) console.warn("Warning: stub node ETSReExportDeclaration") } get getETSImportDeclarationsConst(): ETSImportDeclaration { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index b5fcfd84d..95c829aa5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,12 +26,16 @@ import { } from "../../reexport-for-generated" import { ClassDeclaration } from "./ClassDeclaration" +import { ClassDefinition } from "./ClassDefinition" export class ETSStructDeclaration extends ClassDeclaration { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 83) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 83) + super(pointer) console.warn("Warning: stub node ETSStructDeclaration") } + createETSStructDeclaration(def: ClassDefinition): ETSStructDeclaration { + return new ETSStructDeclaration(global.generatedEs2panda._CreateETSStructDeclaration(global.context, passNode(def))) + } } export function isETSStructDeclaration(node: AstNode): node is ETSStructDeclaration { return node instanceof ETSStructDeclaration diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index 26b898bde..e5440c96a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class ETSTuple extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 80) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 80) + super(pointer) console.warn("Warning: stub node ETSTuple") } + createETSTuple(): ETSTuple { + return new ETSTuple(global.generatedEs2panda._CreateETSTuple(global.context)) + } get getTupleSizeConst(): number { return global.generatedEs2panda._ETSTupleGetTupleSizeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index bcd626272..42af7432f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { TypeNode } from "./TypeNode" import { ETSTypeReferencePart } from "./ETSTypeReferencePart" export class ETSTypeReference extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 71) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 71) + super(pointer) console.warn("Warning: stub node ETSTypeReference") } + createETSTypeReference(part: ETSTypeReferencePart): ETSTypeReference { + return new ETSTypeReference(global.generatedEs2panda._CreateETSTypeReference(global.context, passNode(part))) + } get part(): ETSTypeReferencePart { return unpackNonNullableNode(global.generatedEs2panda._ETSTypeReferencePart(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index 328b1d3f4..2735585d1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class ETSTypeReferencePart extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 72) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 72) + super(pointer) console.warn("Warning: stub node ETSTypeReferencePart") } + createETSTypeReferencePart(name: Expression, typeParams: TSTypeParameterInstantiation, prev: ETSTypeReferencePart): ETSTypeReferencePart { + return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart(global.context, passNode(name), passNode(typeParams), passNode(prev))) + } get previous(): ETSTypeReferencePart { return unpackNonNullableNode(global.generatedEs2panda._ETSTypeReferencePartPrevious(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index 0bd676408..609c63b89 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class ETSUndefinedType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 63) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 63) + super(pointer) console.warn("Warning: stub node ETSUndefinedType") } + createETSUndefinedType(): ETSUndefinedType { + return new ETSUndefinedType(global.generatedEs2panda._CreateETSUndefinedTypeIr(global.context)) + } } export function isETSUndefinedType(node: AstNode): node is ETSUndefinedType { return node instanceof ETSUndefinedType diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index 8f54c2034..25fea681f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,12 +27,12 @@ import { import { TypeNode } from "./TypeNode" export class ETSUnionType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 73) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 73) + super(pointer) console.warn("Warning: stub node ETSUnionType") } - get irTypesConst(): readonly TypeNode[] { + get typesConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._ETSUnionTypeIrTypesConst(global.context, this.peer)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index 7813c9e37..7d49600bd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,12 +27,16 @@ import { import { TypeNode } from "./TypeNode" import { ETSTypeReference } from "./ETSTypeReference" +import { Es2pandaModifierFlags } from "./../Es2pandaEnums" export class ETSWildcardType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 67) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 67) + super(pointer) console.warn("Warning: stub node ETSWildcardType") } + createETSWildcardType(typeReference: ETSTypeReference, flags: Es2pandaModifierFlags): ETSWildcardType { + return new ETSWildcardType(global.generatedEs2panda._CreateETSWildcardType(global.context, passNode(typeReference), flags)) + } get typeReference(): ETSTypeReference { return unpackNonNullableNode(global.generatedEs2panda._ETSWildcardTypeTypeReference(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index 25256380a..97d9b3f0f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Statement } from "./Statement" export class EmptyStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 25) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 25) + super(pointer) console.warn("Warning: stub node EmptyStatement") } + createEmptyStatement(): EmptyStatement { + return new EmptyStatement(global.generatedEs2panda._CreateEmptyStatement(global.context)) + } } export function isEmptyStatement(node: AstNode): node is EmptyStatement { return node instanceof EmptyStatement diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index e8030b02d..85c0886ec 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Statement } from "./Statement" import { StringLiteral } from "./StringLiteral" import { Identifier } from "./Identifier" export class ExportAllDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 26) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 26) + super(pointer) console.warn("Warning: stub node ExportAllDeclaration") } + createExportAllDeclaration(source: StringLiteral, exported: Identifier): ExportAllDeclaration { + return new ExportAllDeclaration(global.generatedEs2panda._CreateExportAllDeclaration(global.context, passNode(source), passNode(exported))) + } get sourceConst(): StringLiteral { return unpackNonNullableNode(global.generatedEs2panda._ExportAllDeclarationSourceConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 3318ac7ff..9e73c61f3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Statement } from "./Statement" export class ExportDefaultDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 27) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 27) + super(pointer) console.warn("Warning: stub node ExportDefaultDeclaration") } + createExportDefaultDeclaration(decl: AstNode, exportEquals: boolean): ExportDefaultDeclaration { + return new ExportDefaultDeclaration(global.generatedEs2panda._CreateExportDefaultDeclaration(global.context, passNode(decl), exportEquals)) + } get decl(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._ExportDefaultDeclarationDecl(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index b4e8ecd03..2cd3d3ff1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Statement } from "./Statement" import { StringLiteral } from "./StringLiteral" import { ExportSpecifier } from "./ExportSpecifier" export class ExportNamedDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 28) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 28) + super(pointer) console.warn("Warning: stub node ExportNamedDeclaration") } + createExportNamedDeclaration(source: StringLiteral, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { + return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen)) + } get declConst(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._ExportNamedDeclarationDeclConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 3762ef53a..43d3268c0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class ExportSpecifier extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 29) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 29) + super(pointer) console.warn("Warning: stub node ExportSpecifier") } + createExportSpecifier(local: Identifier, exported: Identifier): ExportSpecifier { + return new ExportSpecifier(global.generatedEs2panda._CreateExportSpecifier(global.context, passNode(local), passNode(exported))) + } get localConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ExportSpecifierLocalConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts index a0ed5db6e..3da37221a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { TypedAstNode } from "./TypedAstNode" export abstract class Expression extends TypedAstNode { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node Expression") } get isGroupedConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index 52e3df222..a7a37b351 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class ExpressionStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 30) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 30) + super(pointer) console.warn("Warning: stub node ExpressionStatement") } + createExpressionStatement(expr: Expression): ExpressionStatement { + return new ExpressionStatement(global.generatedEs2panda._CreateExpressionStatement(global.context, passNode(expr))) + } get getExpressionConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ExpressionStatementGetExpressionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts index f87776b5e..dbd948c7e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { LoopStatement } from "./LoopStatement" import { Expression } from "./Expression" import { Statement } from "./Statement" export class ForInStatement extends LoopStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 31) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 31) + super(pointer) console.warn("Warning: stub node ForInStatement") } get left(): AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts index 8623c8ae9..ab86b5e6a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { LoopStatement } from "./LoopStatement" import { Expression } from "./Expression" import { Statement } from "./Statement" export class ForOfStatement extends LoopStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 32) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 32) + super(pointer) console.warn("Warning: stub node ForOfStatement") } get left(): AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts index bf64460bf..3be5ed0ee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { LoopStatement } from "./LoopStatement" import { Expression } from "./Expression" import { Statement } from "./Statement" export class ForUpdateStatement extends LoopStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 33) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 33) + super(pointer) console.warn("Warning: stub node ForUpdateStatement") } get init(): AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts similarity index 66% rename from arkoala-arkts/libarkts/src/generated/peers/AstNode.ts rename to arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts index 25a24324c..ca69f5c8f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts @@ -16,11 +16,22 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, - Es2pandaMemberExpressionKind, + unpackNodeArray, assertValidPeer, AstNode, Es2pandaAstNodeType, KNativePointer } from "../../reexport-for-generated" +import { ScriptFunction } from "./ScriptFunction" +export abstract class FunctionDecl extends ScriptFunction { + constructor(pointer: KNativePointer) { + super(pointer) + console.warn("Warning: stub node FunctionDecl") + } +} +export function isFunctionDecl(node: AstNode): node is FunctionDecl { + return node instanceof FunctionDecl +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index cf3ea6486..fe6b7cc04 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,12 +27,16 @@ import { import { Statement } from "./Statement" import { ScriptFunction } from "./ScriptFunction" +import { AnnotationUsage } from "./AnnotationUsage" export class FunctionDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 34) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 34) + super(pointer) console.warn("Warning: stub node FunctionDeclaration") } + createFunctionDeclaration(func: ScriptFunction, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { + return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration(global.context, passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) + } get function(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._FunctionDeclarationFunction(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index 69871b68e..677729585 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Expression } from "./Expression" import { ScriptFunction } from "./ScriptFunction" import { Identifier } from "./Identifier" export class FunctionExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 35) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 35) + super(pointer) console.warn("Warning: stub node FunctionExpression") } + createFunctionExpression(func: ScriptFunction): FunctionExpression { + return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression(global.context, passNode(func))) + } get functionConst(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._FunctionExpressionFunctionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index b9d3426e3..033bfd35f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Decorator } from "./Decorator" export class Identifier extends AnnotatedExpression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 36) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 36) + super(pointer) console.warn("Warning: stub node Identifier") } + createIdentifier(): Identifier { + return new Identifier(global.generatedEs2panda._CreateIdentifier(global.context)) + } get nameConst(): string { return global.generatedEs2panda._IdentifierNameConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts index 6483899a4..fb22ed9b0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class IfStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 38) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 38) + super(pointer) console.warn("Warning: stub node IfStatement") } get testConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index 8c5151e19..befe5b7c3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,12 +27,16 @@ import { import { Statement } from "./Statement" import { StringLiteral } from "./StringLiteral" +import { Es2pandaImportKinds } from "./../Es2pandaEnums" export class ImportDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 39) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 39) + super(pointer) console.warn("Warning: stub node ImportDeclaration") } + createImportDeclaration(source: StringLiteral, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { + return new ImportDeclaration(global.generatedEs2panda._CreateImportDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) + } get sourceConst(): StringLiteral { return unpackNonNullableNode(global.generatedEs2panda._ImportDeclarationSourceConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index 632768068..04b12af60 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class ImportDefaultSpecifier extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 41) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 41) + super(pointer) console.warn("Warning: stub node ImportDefaultSpecifier") } + createImportDefaultSpecifier(local: Identifier): ImportDefaultSpecifier { + return new ImportDefaultSpecifier(global.generatedEs2panda._CreateImportDefaultSpecifier(global.context, passNode(local))) + } get localConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ImportDefaultSpecifierLocalConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index cb9fadf3f..6dea79c24 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class ImportExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 40) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 40) + super(pointer) console.warn("Warning: stub node ImportExpression") } + createImportExpression(source: Expression): ImportExpression { + return new ImportExpression(global.generatedEs2panda._CreateImportExpression(global.context, passNode(source))) + } get source(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ImportExpressionSource(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index 7091d4e01..369343db1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class ImportNamespaceSpecifier extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 42) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 42) + super(pointer) console.warn("Warning: stub node ImportNamespaceSpecifier") } + createImportNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier { + return new ImportNamespaceSpecifier(global.generatedEs2panda._CreateImportNamespaceSpecifier(global.context, passNode(local))) + } get local(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ImportNamespaceSpecifierLocal(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index 6c99c031a..7f3dc2071 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class ImportSpecifier extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 43) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 43) + super(pointer) console.warn("Warning: stub node ImportSpecifier") } + createImportSpecifier(imported: Identifier, local: Identifier): ImportSpecifier { + return new ImportSpecifier(global.generatedEs2panda._CreateImportSpecifier(global.context, passNode(imported), passNode(local))) + } get imported(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ImportSpecifierImported(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts new file mode 100644 index 000000000..6de644923 --- /dev/null +++ b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2024 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 { + global, + passNode, + passNodeArray, + unpackNonNullableNode, + unpackNodeArray, + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + KNativePointer +} from "../../reexport-for-generated" + +import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration" +export abstract class InterfaceDecl extends TSInterfaceDeclaration { + constructor(pointer: KNativePointer) { + super(pointer) + console.warn("Warning: stub node InterfaceDecl") + } +} +export function isInterfaceDecl(node: AstNode): node is InterfaceDecl { + return node instanceof InterfaceDecl +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts index 5ad53f257..a5e4043c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Statement } from "./Statement" import { Identifier } from "./Identifier" export class LabelledStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 44) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 44) + super(pointer) console.warn("Warning: stub node LabelledStatement") } get bodyConst(): Statement { diff --git a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts index ad0e9d2a2..b1a3ed8b7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Expression } from "./Expression" export abstract class Literal extends Expression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node Literal") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts index ccc2e3707..ece9429a3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Statement } from "./Statement" export abstract class LoopStatement extends Statement { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node LoopStatement") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts index 297ebe534..765543372 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Expression } from "./Expression" export abstract class MaybeOptionalExpression extends Expression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node MaybeOptionalExpression") } get isOptionalConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index 054bab1ae..5a161cfa9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,13 +27,16 @@ import { import { MaybeOptionalExpression } from "./MaybeOptionalExpression" import { Expression } from "./Expression" -import { Es2pandaMemberExpressionKind } from "../Es2pandaEnums" +import { Es2pandaMemberExpressionKind } from "./../Es2pandaEnums" export class MemberExpression extends MaybeOptionalExpression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 45) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 45) + super(pointer) console.warn("Warning: stub node MemberExpression") } + createMemberExpression(object_arg: Expression, property: Expression, 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)) + } get object(): Expression { return unpackNonNullableNode(global.generatedEs2panda._MemberExpressionObject(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index b2ce596de..25f8bdc11 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaMetaPropertyKind } from "../Es2pandaEnums" +import { Es2pandaMetaPropertyKind } from "./../Es2pandaEnums" export class MetaProperty extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 46) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 46) + super(pointer) console.warn("Warning: stub node MetaProperty") } + createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { + return new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind)) + } get kindConst(): Es2pandaMetaPropertyKind { return global.generatedEs2panda._MetaPropertyKindConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index 3d2af3311..041332bbf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,18 @@ import { } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" -import { Es2pandaMethodDefinitionKind } from "../Es2pandaEnums" +import { Es2pandaMethodDefinitionKind } from "./../Es2pandaEnums" +import { Expression } from "./Expression" +import { Es2pandaModifierFlags } from "./../Es2pandaEnums" export class MethodDefinition extends ClassElement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 47) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 47) + super(pointer) console.warn("Warning: stub node MethodDefinition") } + createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression, value: Expression, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { + return new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed)) + } get kindConst(): Es2pandaMethodDefinitionKind { return global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index 770278dc3..9f526ed50 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { TypeNode } from "./TypeNode" import { Identifier } from "./Identifier" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class NamedType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 48) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 48) + super(pointer) console.warn("Warning: stub node NamedType") } + createNamedType(name: Identifier): NamedType { + return new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name))) + } get nameConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._NamedTypeNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index 5f6f0e52b..3b9102f74 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class NewExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 49) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 49) + super(pointer) console.warn("Warning: stub node NewExpression") } + createNewExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number): NewExpression { + return new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen)) + } get calleeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._NewExpressionCalleeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index c5b6aa846..8a5c36e40 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Literal } from "./Literal" export class NullLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 50) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 50) + super(pointer) console.warn("Warning: stub node NullLiteral") } + createNullLiteral(): NullLiteral { + return new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context)) + } } export function isNullLiteral(node: AstNode): node is NullLiteral { return node instanceof NullLiteral diff --git a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts index 1fe84a9a4..ec7bbd5cc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { Literal } from "./Literal" export class NumberLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 52) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 52) + super(pointer) console.warn("Warning: stub node NumberLiteral") } get strConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts index 34ccfe294..36d126ffe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,8 +29,8 @@ import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" import { Decorator } from "./Decorator" export abstract class ObjectExpression extends AnnotatedExpression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node ObjectExpression") } get propertiesConst(): readonly Expression[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index 20e2c5b41..7bbba9607 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class OmittedExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 53) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 53) + super(pointer) console.warn("Warning: stub node OmittedExpression") } + createOmittedExpression(): OmittedExpression { + return new OmittedExpression(global.generatedEs2panda._CreateOmittedExpression(global.context)) + } } export function isOmittedExpression(node: AstNode): node is OmittedExpression { return node instanceof OmittedExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts index 86535e6a6..4567c567e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { TypeNode } from "./TypeNode" export class OpaqueTypeNode extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 153) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 153) + super(pointer) console.warn("Warning: stub node OpaqueTypeNode") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 1ba00f089..ec068ff08 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class PrefixAssertionExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 54) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 54) + super(pointer) console.warn("Warning: stub node PrefixAssertionExpression") } get exprConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index c16fc3614..aad38ada6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaPropertyKind } from "../Es2pandaEnums" +import { Es2pandaPropertyKind } from "./../Es2pandaEnums" export class Property extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 55) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 55) + super(pointer) console.warn("Warning: stub node Property") } + createProperty(key: Expression, value: Expression): Property { + return new Property(global.generatedEs2panda._CreateProperty(global.context, passNode(key), passNode(value))) + } get key(): Expression { return unpackNonNullableNode(global.generatedEs2panda._PropertyKey(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index ee5753986..22541eace 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Literal } from "./Literal" -import { Es2pandaRegExpFlags } from "../Es2pandaEnums" +import { Es2pandaRegExpFlags } from "./../Es2pandaEnums" export class RegExpLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 56) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 56) + super(pointer) console.warn("Warning: stub node RegExpLiteral") } + createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { + return new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr)) + } get patternConst(): string { return global.generatedEs2panda._RegExpLiteralPatternConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index f0066083f..61368fb73 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class ReturnStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 58) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 58) + super(pointer) console.warn("Warning: stub node ReturnStatement") } + createReturnStatement(): ReturnStatement { + return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement(global.context)) + } get argument(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ReturnStatementArgument(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts index 6a592f177..f1e0289b4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -29,11 +30,11 @@ import { Expression } from "./Expression" import { ReturnStatement } from "./ReturnStatement" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { TypeNode } from "./TypeNode" -import { Es2pandaScriptFunctionFlags } from "../Es2pandaEnums" +import { Es2pandaScriptFunctionFlags } from "./../Es2pandaEnums" export class ScriptFunction extends AstNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 59) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 59) + super(pointer) console.warn("Warning: stub node ScriptFunction") } get idConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index 959e627e4..fdf4b7033 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class SequenceExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 60) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 60) + super(pointer) console.warn("Warning: stub node SequenceExpression") } + createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { + return new SequenceExpression(global.generatedEs2panda._CreateSequenceExpression(global.context, passNodeArray(sequence_arg), sequenceLen)) + } get sequenceConst(): readonly Expression[] { return unpackNodeArray(global.generatedEs2panda._SequenceExpressionSequenceConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts index 0b3b311e2..548549815 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,8 +29,8 @@ import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" import { Decorator } from "./Decorator" export abstract class SpreadElement extends AnnotatedExpression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node SpreadElement") } get argumentConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts index 789f3d751..b8d2f6045 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,8 +26,8 @@ import { } from "../../reexport-for-generated" export abstract class Statement extends AstNode { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node Statement") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts index d141688f6..5499a5f49 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { Literal } from "./Literal" export class StringLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 61) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 61) + super(pointer) console.warn("Warning: stub node StringLiteral") } get strConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index 459eaa3f2..dbd1bc85f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class SuperExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 82) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 82) + super(pointer) console.warn("Warning: stub node SuperExpression") } + createSuperExpression(): SuperExpression { + return new SuperExpression(global.generatedEs2panda._CreateSuperExpression(global.context)) + } } export function isSuperExpression(node: AstNode): node is SuperExpression { return node instanceof SuperExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts index 1bc3cad46..2b45262e6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class SwitchCaseStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 84) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 84) + super(pointer) console.warn("Warning: stub node SwitchCaseStatement") } get test(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index c08190d10..679277fa6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Statement } from "./Statement" import { Expression } from "./Expression" import { SwitchCaseStatement } from "./SwitchCaseStatement" export class SwitchStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 85) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 85) + super(pointer) console.warn("Warning: stub node SwitchStatement") } + createSwitchStatement(discriminant: Expression, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { + return new SwitchStatement(global.generatedEs2panda._CreateSwitchStatement(global.context, passNode(discriminant), passNodeArray(cases), casesLen)) + } get discriminantConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._SwitchStatementDiscriminantConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index 987036db3..025f76aa6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSAnyKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 90) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 90) + super(pointer) console.warn("Warning: stub node TSAnyKeyword") } + createTSAnyKeyword(): TSAnyKeyword { + return new TSAnyKeyword(global.generatedEs2panda._CreateTSAnyKeyword(global.context)) + } } export function isTSAnyKeyword(node: AstNode): node is TSAnyKeyword { return node instanceof TSAnyKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index 7ba255ed0..d74eed908 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { TypeNode } from "./TypeNode" export class TSArrayType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 101) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 101) + super(pointer) console.warn("Warning: stub node TSArrayType") } get elementTypeConst(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index bd6fa114f..93ecffd31 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" export class TSAsExpression extends AnnotatedExpression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 137) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 137) + super(pointer) console.warn("Warning: stub node TSAsExpression") } get exprConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 9d42f1a0c..0eb4bc1c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSBigintKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 97) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 97) + super(pointer) console.warn("Warning: stub node TSBigintKeyword") } + createTSBigintKeyword(): TSBigintKeyword { + return new TSBigintKeyword(global.generatedEs2panda._CreateTSBigintKeyword(global.context)) + } } export function isTSBigintKeyword(node: AstNode): node is TSBigintKeyword { return node instanceof TSBigintKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index 2b8e49a60..dbbb2d45b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSBooleanKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 92) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 92) + super(pointer) console.warn("Warning: stub node TSBooleanKeyword") } + createTSBooleanKeyword(): TSBooleanKeyword { + return new TSBooleanKeyword(global.generatedEs2panda._CreateTSBooleanKeyword(global.context)) + } } export function isTSBooleanKeyword(node: AstNode): node is TSBooleanKeyword { return node instanceof TSBooleanKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index 6f30db463..3aa020694 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class TSClassImplements extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 138) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 138) + super(pointer) console.warn("Warning: stub node TSClassImplements") } + createTSClassImplements(expression: Expression, typeParameters: TSTypeParameterInstantiation): TSClassImplements { + return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements(global.context, passNode(expression), passNode(typeParameters))) + } get expr(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSClassImplementsExpr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index 680d13add..1485e8008 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSConditionalType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 110) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 110) + super(pointer) console.warn("Warning: stub node TSConditionalType") } + 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))) + } get checkTypeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSConditionalTypeCheckTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts index c54d3812c..82d27b378 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { TypeNode } from "./TypeNode" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Expression } from "./Expression" export class TSConstructorType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 125) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 125) + super(pointer) console.warn("Warning: stub node TSConstructorType") } get typeParamsConst(): TSTypeParameterDeclaration { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index 66dfd97cc..9efaff623 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -29,11 +30,14 @@ import { Identifier } from "./Identifier" import { ClassDefinition } from "./ClassDefinition" import { Decorator } from "./Decorator" export class TSEnumDeclaration extends TypedStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 86) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 86) + super(pointer) console.warn("Warning: stub node TSEnumDeclaration") } + createTSEnumDeclaration(key: Identifier, 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)) + } get keyConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSEnumDeclarationKeyConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index 82a4e3ae1..d0cd13ab5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class TSEnumMember extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 87) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 87) + super(pointer) console.warn("Warning: stub node TSEnumMember") } + createTSEnumMember(key: Expression, init: Expression): TSEnumMember { + return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember(global.context, passNode(key), passNode(init))) + } get keyConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSEnumMemberKeyConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index f85009f7e..fb2f9566d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class TSExternalModuleReference extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 88) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 88) + super(pointer) console.warn("Warning: stub node TSExternalModuleReference") } + createTSExternalModuleReference(expr: Expression): TSExternalModuleReference { + return new TSExternalModuleReference(global.generatedEs2panda._CreateTSExternalModuleReference(global.context, passNode(expr))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSExternalModuleReferenceExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts index 5010103e6..786f45c08 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { TypeNode } from "./TypeNode" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Expression } from "./Expression" export class TSFunctionType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 124) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 124) + super(pointer) console.warn("Warning: stub node TSFunctionType") } get typeParamsConst(): TSTypeParameterDeclaration { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 56b7905d3..9764c42bd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Statement } from "./Statement" import { Identifier } from "./Identifier" import { Expression } from "./Expression" export class TSImportEqualsDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 123) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 123) + super(pointer) console.warn("Warning: stub node TSImportEqualsDeclaration") } + createTSImportEqualsDeclaration(id: Identifier, moduleReference: Expression, isExport: boolean): TSImportEqualsDeclaration { + return new TSImportEqualsDeclaration(global.generatedEs2panda._CreateTSImportEqualsDeclaration(global.context, passNode(id), passNode(moduleReference), isExport)) + } get idConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSImportEqualsDeclarationIdConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index 0c772bebd..1b3357a6f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class TSImportType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 111) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 111) + super(pointer) console.warn("Warning: stub node TSImportType") } + createTSImportType(param: Expression, typeParams: TSTypeParameterInstantiation, qualifier: Expression, isTypeof: boolean): TSImportType { + return new TSImportType(global.generatedEs2panda._CreateTSImportType(global.context, passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) + } get paramConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSImportTypeParamConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index a9f75f97a..912bf24e4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { TypedAstNode } from "./TypedAstNode" import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class TSIndexSignature extends TypedAstNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 135) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 135) + super(pointer) console.warn("Warning: stub node TSIndexSignature") } get paramConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index 917a622c4..125888f8d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { TypeNode } from "./TypeNode" export class TSIndexedAccessType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 129) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 129) + super(pointer) console.warn("Warning: stub node TSIndexedAccessType") } get objectTypeConst(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index 43d19b2f8..8927d601e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { TypeNode } from "./TypeNode" import { TSTypeParameter } from "./TSTypeParameter" export class TSInferType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 109) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 109) + super(pointer) console.warn("Warning: stub node TSInferType") } + createTSInferType(typeParam: TSTypeParameter): TSInferType { + return new TSInferType(global.generatedEs2panda._CreateTSInferType(global.context, passNode(typeParam))) + } get typeParamConst(): TSTypeParameter { return unpackNonNullableNode(global.generatedEs2panda._TSInferTypeTypeParamConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index c8949565d..cff3cc780 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class TSInterfaceBody extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 131) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 131) + super(pointer) console.warn("Warning: stub node TSInterfaceBody") } + createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { + return new TSInterfaceBody(global.generatedEs2panda._CreateTSInterfaceBody(global.context, passNodeArray(body), bodyLen)) + } get bodyPtr(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._TSInterfaceBodyBodyPtr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index 09c683a9f..3b24730ac 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,18 +26,21 @@ import { } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" +import { TSInterfaceHeritage } from "./TSInterfaceHeritage" import { TSInterfaceBody } from "./TSInterfaceBody" import { Identifier } from "./Identifier" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" -import { TSInterfaceHeritage } from "./TSInterfaceHeritage" import { Decorator } from "./Decorator" import { ClassDeclaration } from "./ClassDeclaration" export class TSInterfaceDeclaration extends TypedStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 130) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 130) + super(pointer) console.warn("Warning: stub node TSInterfaceDeclaration") } + createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode, typeParams: AstNode, body: AstNode, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { + return new TSInterfaceDeclaration(global.generatedEs2panda._CreateTSInterfaceDeclaration(global.context, passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) + } get body(): TSInterfaceBody { return unpackNonNullableNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index 840f55b33..9035c38d7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class TSInterfaceHeritage extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 132) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 132) + super(pointer) console.warn("Warning: stub node TSInterfaceHeritage") } get expr(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index 7aaad2d6b..75f2b5f6b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSIntersectionType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 112) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 112) + super(pointer) console.warn("Warning: stub node TSIntersectionType") } + createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { + return new TSIntersectionType(global.generatedEs2panda._CreateTSIntersectionType(global.context, passNodeArray(types), typesLen)) + } get typesConst(): readonly Expression[] { return unpackNodeArray(global.generatedEs2panda._TSIntersectionTypeTypesConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index b59282ade..9b6ada3ee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSLiteralType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 108) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 108) + super(pointer) console.warn("Warning: stub node TSLiteralType") } + createTSLiteralType(literal: Expression): TSLiteralType { + return new TSLiteralType(global.generatedEs2panda._CreateTSLiteralType(global.context, passNode(literal))) + } get literalConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSLiteralTypeLiteralConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 0b3b84b41..1a03c22e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,11 @@ import { import { TypeNode } from "./TypeNode" import { TSTypeParameter } from "./TSTypeParameter" -import { Es2pandaMappedOption } from "../Es2pandaEnums" +import { Es2pandaMappedOption } from "./../Es2pandaEnums" export class TSMappedType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 113) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 113) + super(pointer) console.warn("Warning: stub node TSMappedType") } get typeParameter(): TSTypeParameter { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts index da161a475..15470f9b5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { Expression } from "./Expression" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { TypeNode } from "./TypeNode" export class TSMethodSignature extends AstNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 105) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 105) + super(pointer) console.warn("Warning: stub node TSMethodSignature") } get keyConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts index 309247011..5039de671 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { Statement } from "./Statement" export class TSModuleBlock extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 114) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 114) + super(pointer) console.warn("Warning: stub node TSModuleBlock") } get statementsConst(): readonly Statement[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts index dd2e26c06..0e1de1933 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class TSModuleDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 122) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 122) + super(pointer) console.warn("Warning: stub node TSModuleDeclaration") } get nameConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index 3c49c7687..fbde47cae 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSNamedTupleMember extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 134) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 134) + super(pointer) console.warn("Warning: stub node TSNamedTupleMember") } get labelConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index 8137f5b8b..8b2ba92b2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSNeverKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 98) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 98) + super(pointer) console.warn("Warning: stub node TSNeverKeyword") } + createTSNeverKeyword(): TSNeverKeyword { + return new TSNeverKeyword(global.generatedEs2panda._CreateTSNeverKeyword(global.context)) + } } export function isTSNeverKeyword(node: AstNode): node is TSNeverKeyword { return node instanceof TSNeverKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index 106c4d03d..38b9b76f2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class TSNonNullExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 99) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 99) + super(pointer) console.warn("Warning: stub node TSNonNullExpression") } + createTSNonNullExpression(expr: Expression): TSNonNullExpression { + return new TSNonNullExpression(global.generatedEs2panda._CreateTSNonNullExpression(global.context, passNode(expr))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSNonNullExpressionExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index 81eeed0f2..9a433b198 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSNullKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 100) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 100) + super(pointer) console.warn("Warning: stub node TSNullKeyword") } + createTSNullKeyword(): TSNullKeyword { + return new TSNullKeyword(global.generatedEs2panda._CreateTSNullKeyword(global.context)) + } } export function isTSNullKeyword(node: AstNode): node is TSNullKeyword { return node instanceof TSNullKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 7f2b430fb..9e2bd3992 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSNumberKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 89) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 89) + super(pointer) console.warn("Warning: stub node TSNumberKeyword") } + createTSNumberKeyword(): TSNumberKeyword { + return new TSNumberKeyword(global.generatedEs2panda._CreateTSNumberKeyword(global.context)) + } } export function isTSNumberKeyword(node: AstNode): node is TSNumberKeyword { return node instanceof TSNumberKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index f8b78ece1..aa088ba6f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSObjectKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 96) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 96) + super(pointer) console.warn("Warning: stub node TSObjectKeyword") } + createTSObjectKeyword(): TSObjectKeyword { + return new TSObjectKeyword(global.generatedEs2panda._CreateTSObjectKeyword(global.context)) + } } export function isTSObjectKeyword(node: AstNode): node is TSObjectKeyword { return node instanceof TSObjectKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index ad9cc4930..e3c78ee5c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaAccessibilityOption } from "../Es2pandaEnums" +import { Es2pandaAccessibilityOption } from "./../Es2pandaEnums" export class TSParameterProperty extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 121) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 121) + super(pointer) console.warn("Warning: stub node TSParameterProperty") } + createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { + return new TSParameterProperty(global.generatedEs2panda._CreateTSParameterProperty(global.context, accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) + } get accessibilityConst(): Es2pandaAccessibilityOption { return global.generatedEs2panda._TSParameterPropertyAccessibilityConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index da3abfc2e..630a0f348 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSParenthesizedType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 107) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 107) + super(pointer) console.warn("Warning: stub node TSParenthesizedType") } get typeConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index 617a8e834..53971e57b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { AnnotatedAstNode } from "./AnnotatedAstNode" import { Expression } from "./Expression" export class TSPropertySignature extends AnnotatedAstNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 104) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 104) + super(pointer) console.warn("Warning: stub node TSPropertySignature") } get keyConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index 807afca92..754a8f5f8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { Identifier } from "./Identifier" export class TSQualifiedName extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 128) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 128) + super(pointer) console.warn("Warning: stub node TSQualifiedName") } + createTSQualifiedName(left: Expression, right: Identifier): TSQualifiedName { + return new TSQualifiedName(global.generatedEs2panda._CreateTSQualifiedName(global.context, passNode(left), passNode(right))) + } get leftConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSQualifiedNameLeftConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts index 2b783ebd4..7ae561905 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,11 @@ import { TypedAstNode } from "./TypedAstNode" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" -import { Es2pandaTSSignatureDeclarationKind } from "../Es2pandaEnums" +import { Es2pandaTSSignatureDeclarationKind } from "./../Es2pandaEnums" export class TSSignatureDeclaration extends TypedAstNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 106) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 106) + super(pointer) console.warn("Warning: stub node TSSignatureDeclaration") } get typeParamsConst(): TSTypeParameterDeclaration { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index c7b5b5606..155d03c9a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSStringKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 91) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 91) + super(pointer) console.warn("Warning: stub node TSStringKeyword") } + createTSStringKeyword(): TSStringKeyword { + return new TSStringKeyword(global.generatedEs2panda._CreateTSStringKeyword(global.context)) + } } export function isTSStringKeyword(node: AstNode): node is TSStringKeyword { return node instanceof TSStringKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index 5da8b8fb6..6ef443d5d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSThisType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 115) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 115) + super(pointer) console.warn("Warning: stub node TSThisType") } + createTSThisType(): TSThisType { + return new TSThisType(global.generatedEs2panda._CreateTSThisType(global.context)) + } } export function isTSThisType(node: AstNode): node is TSThisType { return node instanceof TSThisType diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index ba8463d7b..750e7684f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { TypeNode } from "./TypeNode" export class TSTupleType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 133) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 133) + super(pointer) console.warn("Warning: stub node TSTupleType") } get elementTypeConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index 4979409ff..620cadd48 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -30,9 +31,9 @@ import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Decorator } from "./Decorator" import { AnnotationUsage } from "./AnnotationUsage" export class TSTypeAliasDeclaration extends AnnotatedStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 126) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 126) + super(pointer) console.warn("Warning: stub node TSTypeAliasDeclaration") } get id(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index c271159d6..35116196b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" export class TSTypeAssertion extends AnnotatedExpression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 139) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 139) + super(pointer) console.warn("Warning: stub node TSTypeAssertion") } get getExpressionConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index fe25e06cc..ae2465a62 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSTypeLiteral extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 103) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 103) + super(pointer) console.warn("Warning: stub node TSTypeLiteral") } + createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { + return new TSTypeLiteral(global.generatedEs2panda._CreateTSTypeLiteral(global.context, passNodeArray(members), membersLen)) + } get membersConst(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._TSTypeLiteralMembersConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index b0097fe32..954494178 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { TypeNode } from "./TypeNode" export class TSTypeOperator extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 116) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 116) + super(pointer) console.warn("Warning: stub node TSTypeOperator") } get typeConst(): TypeNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index 88500798d..134adbcd2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { Expression } from "./Expression" import { Identifier } from "./Identifier" import { TypeNode } from "./TypeNode" export class TSTypeParameter extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 117) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 117) + super(pointer) console.warn("Warning: stub node TSTypeParameter") } get nameConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 38e91a413..2d5122c6c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { TSTypeParameter } from "./TSTypeParameter" export class TSTypeParameterDeclaration extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 118) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 118) + super(pointer) console.warn("Warning: stub node TSTypeParameterDeclaration") } + createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { + return new TSTypeParameterDeclaration(global.generatedEs2panda._CreateTSTypeParameterDeclaration(global.context, passNodeArray(params), paramsLen, requiredParams)) + } get paramsConst(): readonly TSTypeParameter[] { return unpackNodeArray(global.generatedEs2panda._TSTypeParameterDeclarationParamsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index cc4165a72..e05cbb825 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" export class TSTypeParameterInstantiation extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 119) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 119) + super(pointer) console.warn("Warning: stub node TSTypeParameterInstantiation") } get paramsConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index 57b1e62d4..7a5e25ad9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,9 +28,9 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSTypePredicate extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 120) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 120) + super(pointer) console.warn("Warning: stub node TSTypePredicate") } get parameterNameConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index fcc741841..dcfd22545 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSTypeQuery extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 136) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 136) + super(pointer) console.warn("Warning: stub node TSTypeQuery") } + createTSTypeQuery(exprName: Expression): TSTypeQuery { + return new TSTypeQuery(global.generatedEs2panda._CreateTSTypeQuery(global.context, passNode(exprName))) + } get exprNameConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSTypeQueryExprNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index 174c128ca..f238c4433 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,14 +26,17 @@ import { } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" -import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" import { Expression } from "./Expression" +import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class TSTypeReference extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 127) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 127) + super(pointer) console.warn("Warning: stub node TSTypeReference") } + createTSTypeReference(typeName: Expression, typeParams: TSTypeParameterInstantiation): TSTypeReference { + return new TSTypeReference(global.generatedEs2panda._CreateTSTypeReference(global.context, passNode(typeName), passNode(typeParams))) + } get typeParamsConst(): TSTypeParameterInstantiation { return unpackNonNullableNode(global.generatedEs2panda._TSTypeReferenceTypeParamsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 10ecd6177..21436bd73 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSUndefinedKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 94) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 94) + super(pointer) console.warn("Warning: stub node TSUndefinedKeyword") } + createTSUndefinedKeyword(): TSUndefinedKeyword { + return new TSUndefinedKeyword(global.generatedEs2panda._CreateTSUndefinedKeyword(global.context)) + } } export function isTSUndefinedKeyword(node: AstNode): node is TSUndefinedKeyword { return node instanceof TSUndefinedKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index 6063abe68..e10a50361 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,9 +27,9 @@ import { import { TypeNode } from "./TypeNode" export class TSUnionType extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 102) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 102) + super(pointer) console.warn("Warning: stub node TSUnionType") } get typesConst(): readonly TypeNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index a61391862..613e0c4f9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSUnknownKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 95) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 95) + super(pointer) console.warn("Warning: stub node TSUnknownKeyword") } + createTSUnknownKeyword(): TSUnknownKeyword { + return new TSUnknownKeyword(global.generatedEs2panda._CreateTSUnknownKeyword(global.context)) + } } export function isTSUnknownKeyword(node: AstNode): node is TSUnknownKeyword { return node instanceof TSUnknownKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 33ab79df5..63d16ac04 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { TypeNode } from "./TypeNode" export class TSVoidKeyword extends TypeNode { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 93) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 93) + super(pointer) console.warn("Warning: stub node TSVoidKeyword") } + createTSVoidKeyword(): TSVoidKeyword { + return new TSVoidKeyword(global.generatedEs2panda._CreateTSVoidKeyword(global.context)) + } } export function isTSVoidKeyword(node: AstNode): node is TSVoidKeyword { return node instanceof TSVoidKeyword diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index 1e4f44870..f80a1bbb4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,11 +29,14 @@ import { Expression } from "./Expression" import { TemplateLiteral } from "./TemplateLiteral" import { TSTypeParameterInstantiation } from "./TSTypeParameterInstantiation" export class TaggedTemplateExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 140) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 140) + super(pointer) console.warn("Warning: stub node TaggedTemplateExpression") } + createTaggedTemplateExpression(tag: Expression, quasi: TemplateLiteral, typeParams: TSTypeParameterInstantiation): TaggedTemplateExpression { + return new TaggedTemplateExpression(global.generatedEs2panda._CreateTaggedTemplateExpression(global.context, passNode(tag), passNode(quasi), passNode(typeParams))) + } get tagConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TaggedTemplateExpressionTagConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index d16fa61ef..ac043b066 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class TemplateElement extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 141) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 141) + super(pointer) console.warn("Warning: stub node TemplateElement") } + createTemplateElement(): TemplateElement { + return new TemplateElement(global.generatedEs2panda._CreateTemplateElement(global.context)) + } get rawConst(): string { return global.generatedEs2panda._TemplateElementRawConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index cdb9c9b4d..8fb612e9d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Expression } from "./Expression" import { TemplateElement } from "./TemplateElement" export class TemplateLiteral extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 142) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 142) + super(pointer) console.warn("Warning: stub node TemplateLiteral") } + 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)) + } get quasisConst(): readonly TemplateElement[] { return unpackNodeArray(global.generatedEs2panda._TemplateLiteralQuasisConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 67e7e0814..32a46cc29 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class ThisExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 143) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 143) + super(pointer) console.warn("Warning: stub node ThisExpression") } + createThisExpression(): ThisExpression { + return new ThisExpression(global.generatedEs2panda._CreateThisExpression(global.context)) + } } export function isThisExpression(node: AstNode): node is ThisExpression { return node instanceof ThisExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index 5ba4424fd..5fbccef94 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -27,11 +28,14 @@ import { import { Statement } from "./Statement" import { Expression } from "./Expression" export class ThrowStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 145) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 145) + super(pointer) console.warn("Warning: stub node ThrowStatement") } + createThrowStatement(argument: Expression): ThrowStatement { + return new ThrowStatement(global.generatedEs2panda._CreateThrowStatement(global.context, passNode(argument))) + } get argumentConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ThrowStatementArgumentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts index 65704e889..3115086be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { Statement } from "./Statement" import { BlockStatement } from "./BlockStatement" import { CatchClause } from "./CatchClause" export class TryStatement extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 146) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 146) + super(pointer) console.warn("Warning: stub node TryStatement") } get finallyBlockConst(): BlockStatement { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts index 736dd98d4..62b019790 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Expression } from "./Expression" export abstract class TypeNode extends Expression { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node TypeNode") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts index 863222e67..09a07affc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,8 +26,8 @@ import { } from "../../reexport-for-generated" export abstract class TypedAstNode extends AstNode { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node TypedAstNode") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts index 5c39cd234..ae56ef749 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,8 +27,8 @@ import { import { Statement } from "./Statement" export abstract class TypedStatement extends Statement { - constructor(peer: KNativePointer) { - super(peer) + constructor(pointer: KNativePointer) { + super(pointer) console.warn("Warning: stub node TypedStatement") } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index 20713dea2..de4136c3f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class TypeofExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 144) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 144) + super(pointer) console.warn("Warning: stub node TypeofExpression") } + createTypeofExpression(argument: Expression): TypeofExpression { + return new TypeofExpression(global.generatedEs2panda._CreateTypeofExpression(global.context, passNode(argument))) + } get argumentConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TypeofExpressionArgumentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index 914942aeb..5276f3034 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaTokenType } from "../Es2pandaEnums" +import { Es2pandaTokenType } from "./../Es2pandaEnums" export class UnaryExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 147) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 147) + super(pointer) console.warn("Warning: stub node UnaryExpression") } + createUnaryExpression(argument: Expression, unaryOperator: Es2pandaTokenType): UnaryExpression { + return new UnaryExpression(global.generatedEs2panda._CreateUnaryExpression(global.context, passNode(argument), unaryOperator)) + } get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._UnaryExpressionOperatorTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index d2c0ec2dd..cd187d5d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Literal } from "./Literal" export class UndefinedLiteral extends Literal { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 51) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 51) + super(pointer) console.warn("Warning: stub node UndefinedLiteral") } + createUndefinedLiteral(): UndefinedLiteral { + return new UndefinedLiteral(global.generatedEs2panda._CreateUndefinedLiteral(global.context)) + } } export function isUndefinedLiteral(node: AstNode): node is UndefinedLiteral { return node instanceof UndefinedLiteral diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index 48279e1b5..2cba43e09 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,13 +26,16 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" -import { Es2pandaTokenType } from "../Es2pandaEnums" +import { Es2pandaTokenType } from "./../Es2pandaEnums" export class UpdateExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 148) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 148) + super(pointer) console.warn("Warning: stub node UpdateExpression") } + createUpdateExpression(argument: Expression, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { + return new UpdateExpression(global.generatedEs2panda._CreateUpdateExpression(global.context, passNode(argument), updateOperator, isPrefix)) + } get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._UpdateExpressionOperatorTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index 118bd9110..87cf0212d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,15 +26,18 @@ import { } from "../../reexport-for-generated" import { Statement } from "./Statement" +import { Es2pandaVariableDeclarationKind } from "./../Es2pandaEnums" import { VariableDeclarator } from "./VariableDeclarator" -import { Es2pandaVariableDeclarationKind } from "../Es2pandaEnums" import { Decorator } from "./Decorator" export class VariableDeclaration extends Statement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 149) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 149) + super(pointer) console.warn("Warning: stub node VariableDeclaration") } + createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { + return new VariableDeclaration(global.generatedEs2panda._CreateVariableDeclaration(global.context, kind, passNodeArray(declarators), declaratorsLen)) + } get declaratorsConst(): readonly VariableDeclarator[] { return unpackNodeArray(global.generatedEs2panda._VariableDeclarationDeclaratorsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index e216e4faf..241c0f9a3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -25,14 +26,17 @@ import { } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" +import { Es2pandaVariableDeclaratorFlag } from "./../Es2pandaEnums" import { Expression } from "./Expression" -import { Es2pandaVariableDeclaratorFlag } from "../Es2pandaEnums" export class VariableDeclarator extends TypedStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 150) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 150) + super(pointer) console.warn("Warning: stub node VariableDeclarator") } + createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident: Expression): VariableDeclarator { + return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator(global.context, flag, passNode(ident))) + } get init(): Expression { return unpackNonNullableNode(global.generatedEs2panda._VariableDeclaratorInit(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts index 930b1669e..119c184f7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -28,9 +29,9 @@ import { LoopStatement } from "./LoopStatement" import { Expression } from "./Expression" import { Statement } from "./Statement" export class WhileStatement extends LoopStatement { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 151) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 151) + super(pointer) console.warn("Warning: stub node WhileStatement") } get testConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index 252abfc16..7180446b7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -16,6 +16,7 @@ import { global, passNode, + passNodeArray, unpackNonNullableNode, unpackNodeArray, assertValidPeer, @@ -26,11 +27,14 @@ import { import { Expression } from "./Expression" export class YieldExpression extends Expression { - constructor(peer: KNativePointer) { - assertValidPeer(peer, 152) - super(peer) + constructor(pointer: KNativePointer) { + assertValidPeer(pointer, 152) + super(pointer) console.warn("Warning: stub node YieldExpression") } + createYieldExpression(argument: Expression, isDelegate: boolean): YieldExpression { + return new YieldExpression(global.generatedEs2panda._CreateYieldExpression(global.context, passNode(argument), isDelegate)) + } get hasDelegateConst(): boolean { return global.generatedEs2panda._YieldExpressionHasDelegateConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index fa96736a1..274fa3391 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -16,7 +16,7 @@ export { KNativePointer } from "@koalaui/interop" export { Es2pandaAstNodeType } from "./Es2pandaEnums" export { assertValidPeer } from "./arkts-api//types" -export { passNode, unpackNonNullableNode, unpackNodeArray } from "./arkts-api/utilities/private" +export { passNode, unpackNonNullableNode, unpackNodeArray, passNodeArray } from "./arkts-api/utilities/private" export { global } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" export { AstNode } from "./arkts-api/peers/AstNode" -- Gitee From 8b22cd398a7a26f15aaaae18afa1495ddd56a770 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Fri, 14 Feb 2025 12:49:00 +0000 Subject: [PATCH 14/40] !1782 Memo plugin demo draft --- arkoala-arkts/libarkts/native/src/bridges.cc | 27 +++++++ .../libarkts/src/Es2pandaNativeModule.ts | 10 +++ .../to-be-generated/MemberExpression.ts | 8 ++ arkoala-arkts/libarkts/src/arkts-api/types.ts | 24 ++++-- .../src/arkts-api/utilities/private.ts | 2 +- .../src/arkts-api/utilities/public.ts | 17 +--- .../libarkts/src/arkts-api/visitor.ts | 34 ++++++++ .../demo/arktsconfig-unmemoized.json | 22 ++++++ .../memo-plugin/demo/arktsconfig.json | 28 +++++++ arkoala-arkts/memo-plugin/demo/demo.sts | 16 ++++ arkoala-arkts/memo-plugin/demo/demo.ts | 18 +++++ arkoala-arkts/memo-plugin/demo/package.json | 19 +++++ arkoala-arkts/memo-plugin/demo/stub.sts | 4 + arkoala-arkts/memo-plugin/demo/stub.ts | 4 + .../memo-plugin/demo/tsconfig-unmemoize.json | 17 ++++ arkoala-arkts/memo-plugin/package.json | 10 +++ .../memo-plugin/runtime-api/common.sts | 1 + .../memo-plugin/runtime-api/index.sts | 10 +++ .../memo-plugin/runtime-api/memo/entry.sts | 4 + .../runtime-api/states/GlobalStateManager.sts | 5 ++ .../memo-plugin/runtime-api/states/State.sts | 13 +++ .../memo-plugin/src/AbstractVisitor.ts | 41 ++++++++++ .../memo-plugin/src/import-transformer.ts | 43 ++++++++++ .../memo-plugin/src/memo-detector.ts | 79 +++++++++++++++++++ .../memo-plugin/src/memo-transformer.ts | 33 ++++++++ arkoala-arkts/memo-plugin/src/utils.ts | 59 ++++++++++++++ arkoala-arkts/memo-plugin/tsconfig.json | 12 +++ 27 files changed, 539 insertions(+), 21 deletions(-) create mode 100644 arkoala-arkts/memo-plugin/demo/arktsconfig-unmemoized.json create mode 100644 arkoala-arkts/memo-plugin/demo/arktsconfig.json create mode 100644 arkoala-arkts/memo-plugin/demo/demo.sts create mode 100644 arkoala-arkts/memo-plugin/demo/demo.ts create mode 100644 arkoala-arkts/memo-plugin/demo/package.json create mode 100644 arkoala-arkts/memo-plugin/demo/stub.sts create mode 100644 arkoala-arkts/memo-plugin/demo/stub.ts create mode 100644 arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json create mode 100644 arkoala-arkts/memo-plugin/package.json create mode 100644 arkoala-arkts/memo-plugin/runtime-api/common.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/index.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/states/State.sts create mode 100644 arkoala-arkts/memo-plugin/src/AbstractVisitor.ts create mode 100644 arkoala-arkts/memo-plugin/src/import-transformer.ts create mode 100644 arkoala-arkts/memo-plugin/src/memo-detector.ts create mode 100644 arkoala-arkts/memo-plugin/src/memo-transformer.ts create mode 100644 arkoala-arkts/memo-plugin/src/utils.ts create mode 100644 arkoala-arkts/memo-plugin/tsconfig.json diff --git a/arkoala-arkts/libarkts/native/src/bridges.cc b/arkoala-arkts/libarkts/native/src/bridges.cc index d7d313b73..6f57ec068 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -329,3 +329,30 @@ KNativePointer impl_CreateClassDefinition1(KNativePointer context, KNativePointe return result; } KOALA_INTEROP_6(CreateClassDefinition1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KInt, KInt); + +KNativePointer impl_CallExpressionSignature(KNativePointer context, KNativePointer classInstance) +{ + const auto _context = reinterpret_cast(context); + const auto _classInstance = reinterpret_cast(classInstance); + const auto result = GetImpl()->CallExpressionSignature(_context, _classInstance); + return result; +} +KOALA_INTEROP_2(CallExpressionSignature, KNativePointer, KNativePointer, KNativePointer) + +KNativePointer impl_SignatureFunction(KNativePointer context, KNativePointer classInstance) +{ + const auto _context = reinterpret_cast(context); + const auto _classInstance = reinterpret_cast(classInstance); + const auto result = GetImpl()->SignatureFunction(_context, _classInstance); + return result; +} +KOALA_INTEROP_2(SignatureFunction, KNativePointer, KNativePointer, KNativePointer) + +KNativePointer impl_DeclarationFromIdentifier(KNativePointer context, KNativePointer identifier) +{ + const auto _context = reinterpret_cast(context); + const auto _identifier = reinterpret_cast(identifier); + const auto result = GetImpl()->DeclarationFromIdentifier(_context, _identifier); + return result; +} +KOALA_INTEROP_2(DeclarationFromIdentifier, KNativePointer, KNativePointer, KNativePointer) diff --git a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts index 78b2555cd..e62809f69 100644 --- a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts @@ -541,6 +541,16 @@ export class Es2pandaNativeModule { _ScopeSetParent(context: KPtr, ast: KPtr, scope: KPtr): void { throw new Error("Not implemented") } + + _CallExpressionSignature(context: KPtr, classInstance: KPtr): KPtr { + throw new Error("Not implemented") + } + _SignatureFunction(context: KPtr, classInstance: KPtr): KPtr { + throw new Error("Not implemented") + } + _DeclarationFromIdentifier(context: KPtr, identifier: KPtr): KPtr { + throw new Error("Not implemented") + } } export function initEs2panda(): Es2pandaNativeModule { 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 790405568..f760db27a 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 @@ -61,4 +61,12 @@ export class MemberExpression extends AstNode { get kind(): Es2pandaMemberExpressionKind { return global.generatedEs2panda._MemberExpressionKindConst(global.context, this.peer) } + + get computed(): boolean { + return global.generatedEs2panda._MemberExpressionIsComputedConst(global.context, this.peer) + } + + get optional(): boolean { + return false // todo: no corresponding method in es2panda + } } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index a9bf80f46..d83d07096 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -45,6 +45,7 @@ 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]) @@ -333,7 +334,7 @@ export class ETSUnionType extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE) super(peer) - this.types = unpackNodeArray(global.generatedEs2panda._ETSUnionTypeIrTypesConst(global.context, this.peer)) + this.types = unpackNodeArray(global.generatedEs2panda._TSUnionTypeTypesConst(global.context, this.peer)) } static create( @@ -504,7 +505,7 @@ export class ScriptFunction extends AstNode { this.parameters = unpackNodeArray(global.generatedEs2panda._ScriptFunctionParams(global.context, this.peer)) this.typeParamsDecl = unpackNode(global.generatedEs2panda._ScriptFunctionTypeParams(global.context, this.peer)) this.body = unpackNode(global.generatedEs2panda._ScriptFunctionBody(global.context, this.peer)) - // this.signature = unpackNonNullableObject(FunctionSignature, nativeModule._ScriptFunctionSignature(global.context, this.peer)) + // this.signature = unpackNode(global.generatedEs2panda._ScriptFunctionSignature(global.context, this.peer)) // this.declare = global.generatedEs2panda._ScriptFunctionDeclareConst(global.context, this.peer) this.ident = unpackNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.peer)) @@ -513,16 +514,21 @@ export class ScriptFunction extends AstNode { static create( body: AstNode | undefined, - signature: FunctionSignature, + signature: FunctionSignature | undefined, functionFlags: Es2pandaScriptFunctionFlags, modifierFlags: Es2pandaModifierFlags, declare: boolean, - ident: Identifier | undefined + ident: Identifier | undefined, + parameters?: ETSParameterExpression[], ): ScriptFunction { const peer = global.generatedEs2panda._CreateScriptFunction( global.context, passNode(body), - signature.peer, + signature?.peer ?? FunctionSignature.create( + undefined, + parameters!, + undefined + ).peer, functionFlags, modifierFlags ) @@ -568,7 +574,7 @@ export class ScriptFunction extends AstNode { return (this.modifiers & Es2pandaModifierFlags.MODIFIER_FLAGS_ASYNC) !== 0 } - readonly parameters: readonly ETSParameterExpression[] + readonly parameters: ETSParameterExpression[] readonly typeParamsDecl?: TSTypeParameterDeclaration readonly body?: BlockStatement // readonly signature: FunctionSignature @@ -1072,7 +1078,9 @@ export class EtsImportDeclaration extends AstNode { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION) super(peer) this.importSource = unpackNonNullableNode(global.generatedEs2panda._ETSImportDeclarationSourceConst(global.context, this.peer)) + this.importSpecifiers = unpackNodeArray(global.generatedEs2panda._ImportDeclarationSpecifiersConst(global.context, this.peer)) this.resolvedSource = unpackNonNullableNode(global.generatedEs2panda._ETSImportDeclarationResolvedSource(global.context, this.peer)) + this.importKind = global.generatedEs2panda._ImportDeclarationIsTypeKindConst(global.context, this.peer) this.hasDecl = global.generatedEs2panda._ETSImportDeclarationHasDeclConst(global.context, this.peer) } @@ -1091,13 +1099,15 @@ export class EtsImportDeclaration extends AstNode { ).peer, passNodeArray(specifiers), specifiers.length, - importKind + +importKind ) ) } readonly importSource: StringLiteral readonly resolvedSource: StringLiteral + readonly importSpecifiers: readonly ImportSpecifier[] + readonly importKind: Es2pandaImportKinds readonly hasDecl: boolean } diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index ea90f7282..c6ec7acdc 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -44,7 +44,7 @@ export function passNode(node: AstNode | undefined): KNativePointer { } // meaning unpackNonNullableNodeArray -export function unpackNodeArray(nodesPtr: KNativePointer): readonly T[] { +export function unpackNodeArray(nodesPtr: KNativePointer): T[] { if (nodesPtr === nullptr) { throwError('nodesPtr is NULLPTR (maybe you should use unpackNodeArray)') } diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index ec5c19bfa..dbc9a8b88 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -16,11 +16,12 @@ import { global } from "../static/global" import { throwError } from "../../utils" import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" -import { AnnotationUsageIr } from "../types" -import { unpackNodeArray, unpackNonNullableNode } from "./private" +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" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { @@ -54,17 +55,7 @@ export function rebindSubtree(node: AstNode): void { } export function getDecl(node: AstNode): AstNode | undefined { - let decl: KNativePointer = node.peer - - decl = global.es2panda._AstNodeVariableConst(global.context, decl) - if (decl === nullptr) { - return undefined - } - decl = global.es2panda._VariableDeclaration(global.context, decl) - if (decl === nullptr) { - return undefined - } - decl = global.es2panda._DeclNode(global.context, decl) + const decl = global.es2panda._DeclarationFromIdentifier(global.context, passNode(node)) if (decl === nullptr) { return undefined } diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 7838dd0dd..7c32de722 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -19,11 +19,13 @@ import { CallExpression, ClassDeclaration, ClassDefinition, + EtsImportDeclaration, EtsScript, ExpressionStatement, FunctionDeclaration, FunctionSignature, MethodDefinition, + ScriptFunction, StructDeclaration } from "./types" import { @@ -33,6 +35,7 @@ import { } from "../generated/Es2pandaEnums" import { nullptr } from "@koalaui/interop" import { AstNode } from "./peers/AstNode" +import { MemberExpression } from "../reexport-for-generated" type Visitor = (node: AstNode) => AstNode @@ -142,6 +145,37 @@ export function visitEachChild( false ) } + if (node instanceof ScriptFunction) { + return factory.updateScriptFunction( + node, + nodeVisitor(node.body, visitor), + nullptr, + node.scriptFunctionFlags, + Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, + false, + nodeVisitor(node.ident, visitor), + nodesVisitor(node.parameters, visitor) + ) + } + if (node instanceof EtsImportDeclaration) { + return factory.updateImportDeclaration( + node, + nodeVisitor(node.importSource, visitor), + nodesVisitor(node.importSpecifiers, visitor), + node.importKind, + node.hasDecl + ) + } + if (node instanceof MemberExpression) { + return factory.updateMemberExpression( + node, + nodeVisitor(node.object, visitor), + nodeVisitor(node.property, visitor), + node.kind, + node.computed, + node.optional + ) + } // TODO return node diff --git a/arkoala-arkts/memo-plugin/demo/arktsconfig-unmemoized.json b/arkoala-arkts/memo-plugin/demo/arktsconfig-unmemoized.json new file mode 100644 index 000000000..6f7c6369b --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/arktsconfig-unmemoized.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "package": "@koalaui/runtime", + "outDir": "build/abc", + "baseUrl": "build/unmemoized", + "paths": { + "@koalaui/compat": [ + "../../../../../incremental/compat/src/arkts" + ], + "@koalaui/common": [ + "../../../../../incremental/common/src" + ], + "@koalaui/runtime": [ + "../../../../../incremental/runtime/build/unmemoized/src" + ], + "@koalaui/interop": [ + "../../../../../interop/src/arkts" + ] + } + }, + "include": ["./build/unmemoized/stub.ts"] +} diff --git a/arkoala-arkts/memo-plugin/demo/arktsconfig.json b/arkoala-arkts/memo-plugin/demo/arktsconfig.json new file mode 100644 index 000000000..24a22d262 --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/arktsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "package": "@koalaui/runtime", + "outDir": "build/abc", + "baseUrl": ".", + "paths": { + "@koalaui/compat": [ + "../../../incremental/compat/src/arkts" + ], + "@koalaui/common": [ + "../../../incremental/common/src" + ], + "@koalaui/runtime": [ + "../runtime-api" + ], + "@koalaui/interop": [ + "../../../interop/src/arkts" + ] + }, + "plugins": [ + { + "transform": "..", + "stage": "checked" + } + ] + }, + "include": ["./demo.sts"] +} diff --git a/arkoala-arkts/memo-plugin/demo/demo.sts b/arkoala-arkts/memo-plugin/demo/demo.sts new file mode 100644 index 000000000..74bb5f28f --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/demo.sts @@ -0,0 +1,16 @@ +import { GlobalStateManager, memoEntry, StateContext, memo } from "@koalaui/runtime" +import { memo_foo } from "./stub" + +@memo +function foo_wrapper() { + memo_foo("hello") +} + +function main() { + const manager = GlobalStateManager.instance + const state = manager.computableState((context: StateContext): Int => { + memoEntry(context, 0, ETSGLOBAL.foo_wrapper) + return 20 + }) + console.log(state.value) +} diff --git a/arkoala-arkts/memo-plugin/demo/demo.ts b/arkoala-arkts/memo-plugin/demo/demo.ts new file mode 100644 index 000000000..a5990afd4 --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/demo.ts @@ -0,0 +1,18 @@ +// This file is needed to check how unmemoized (by ts plugin) should look like +// It is not actually executed + +import { GlobalStateManager, memoEntry, StateContext } from "@koalaui/runtime" +import { memo_foo } from "./stub" + +/** @memo */ +function foo_wrapper() { + memo_foo("hello") +} + +function main() { + const manager = GlobalStateManager.instance + const state = manager.computableState((context: StateContext) => { + memoEntry(context, 0, foo_wrapper) + }) + console.log(state.value) +} diff --git a/arkoala-arkts/memo-plugin/demo/package.json b/arkoala-arkts/memo-plugin/demo/package.json new file mode 100644 index 000000000..863ce6347 --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/package.json @@ -0,0 +1,19 @@ +{ + "name": "@koalaui/sts-memo-plugin", + "version": "", + "description": "", + "scripts": { + "clean": "rimraf build", + "unmemoize": "ets-tsc -p tsconfig-unmemoize.json", + "ts-like:compile": "npm run unmemoize && fast-arktsc --input-files ./arktsconfig-unmemoized.json --output-dir ./build --compiler ../../../incremental/tools/panda/arkts/arktsc --link-name stub && ninja ${NINJA_OPTIONS} -f build/build.ninja", + "arkts-like:compile": "../../../incremental/tools/panda/arkts/arktsc --arktsconfig ./arktsconfig.json --output ./build/demo.abc ./demo.sts", + "arkts-like:compile:capi": "../../../incremental/tools/panda/arkts/arktsc-capi --arktsconfig ./arktsconfig.json --output ./build/demo.abc --file ./demo.sts --dump-plugin-ast", + "run": "../../../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:../../../incremental/runtime/build/incremental.abc:build/stub.abc ./build/demo.abc @koalaui.runtime.demo.ETSGLOBAL::main", + "run:unmemoized": "npm run unmemoize && npm run ts-like:compile && ../../../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:../../../incremental/runtime/build/incremental.abc ./build/stub.abc @koalaui.runtime.demo.ETSGLOBAL::main", + "disasm": "../../../incremental/tools/panda/node_modules/@panda/sdk/linux_host_tools/bin/ark_disasm build/stub.abc build/stub.disasm" + }, + "devDependencies": { + "@koalaui/ets-tsc": "4.9.5-r4", + "@koalaui/fast-arktsc": "next" + } +} \ No newline at end of file diff --git a/arkoala-arkts/memo-plugin/demo/stub.sts b/arkoala-arkts/memo-plugin/demo/stub.sts new file mode 100644 index 000000000..e444446f6 --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/stub.sts @@ -0,0 +1,4 @@ +import { memo, __memo_context_type, __memo_id_type } from "@koalaui/runtime" + +@memo export declare function memo_foo(__memo_context: __memo_context_type, __memo_id: __memo_id_type, s: String): void +@memo export declare function memo_foo(s: String): void diff --git a/arkoala-arkts/memo-plugin/demo/stub.ts b/arkoala-arkts/memo-plugin/demo/stub.ts new file mode 100644 index 000000000..d036fa342 --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/stub.ts @@ -0,0 +1,4 @@ +/** @memo */ +export function memo_foo(s: string) { + console.log(`MEMO FUNCTION FOO CALLED`) +} diff --git a/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json b/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json new file mode 100644 index 000000000..afa892abb --- /dev/null +++ b/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json @@ -0,0 +1,17 @@ +{ + "extends": "@koalaui/build-common/tsconfig.json", + "compilerOptions": { + "outDir": "build/junk", + "rootDir" : ".", + "module": "CommonJS", + "plugins": [ + { + "transform": "@koalaui/compiler-plugin/build/lib/src/koala-transformer.js", + "trace": false, + "only_unmemoize": true, + "unmemoizeDir": "build/unmemoized" + } + ] + }, + "include": ["./demo.ts", "./stub.ts"] +} diff --git a/arkoala-arkts/memo-plugin/package.json b/arkoala-arkts/memo-plugin/package.json new file mode 100644 index 000000000..83de11ca6 --- /dev/null +++ b/arkoala-arkts/memo-plugin/package.json @@ -0,0 +1,10 @@ +{ + "name": "@koalaui/memo-plugin", + "main": "build/src/memo-transformer.js", + "scripts": { + "compile": "tsc -b .", + "compile:libarkts": "npm run compile --prefix ../libarkts", + "demo:run": "npm run clean --prefix demo && npm run compile && npm run ts-like:compile --prefix demo && npm run arkts-like:compile:capi --prefix demo && npm run run --prefix demo", + "demo:disasm": "npm run disasm --prefix demo" + } +} \ No newline at end of file diff --git a/arkoala-arkts/memo-plugin/runtime-api/common.sts b/arkoala-arkts/memo-plugin/runtime-api/common.sts new file mode 100644 index 000000000..f8a1d055d --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/common.sts @@ -0,0 +1 @@ +export type KoalaCallsiteKey = int diff --git a/arkoala-arkts/memo-plugin/runtime-api/index.sts b/arkoala-arkts/memo-plugin/runtime-api/index.sts new file mode 100644 index 000000000..90d3cc3aa --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/index.sts @@ -0,0 +1,10 @@ +import { KoalaCallsiteKey } from "./common" +import { StateContext } from "./states/State" + +export { memoEntry } from "./memo/entry" +export { GlobalStateManager } from "./states/GlobalStateManager" +export { StateManager, State, Disposable, ComputableState, StateContext } from "./states/State" + +export @interface memo {} +export type __memo_context_type = StateContext +export type __memo_id_type = KoalaCallsiteKey diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts new file mode 100644 index 000000000..0c7501465 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts @@ -0,0 +1,4 @@ +import { KoalaCallsiteKey } from "../common" +import { StateContext } from "../states/State" + +export declare function memoEntry(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, entry: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey) => R): R diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts b/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts new file mode 100644 index 000000000..bc62a8992 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts @@ -0,0 +1,5 @@ +import { StateManager } from "./State" + +export declare class GlobalStateManager { + static get instance(): StateManager +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/State.sts b/arkoala-arkts/memo-plugin/runtime-api/states/State.sts new file mode 100644 index 000000000..361be3850 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/states/State.sts @@ -0,0 +1,13 @@ +export declare interface StateManager extends StateContext { } +export declare interface State { + modified: boolean + value: Value +} +export interface Disposable { + disposed: boolean + dispose(): void +} +export declare interface ComputableState extends Disposable, State { } +export declare interface StateContext { + computableState(compute: (context: StateContext) => Value, cleanup?: (context: StateContext, value: Value | undefined) => void): ComputableState +} diff --git a/arkoala-arkts/memo-plugin/src/AbstractVisitor.ts b/arkoala-arkts/memo-plugin/src/AbstractVisitor.ts new file mode 100644 index 000000000..90c6c1665 --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/AbstractVisitor.ts @@ -0,0 +1,41 @@ +/* + * 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" + +export abstract class AbstractVisitor { + constructor( + ) {} + + indentation = 0 + + withIndentation(exec: () => T) { + this.indentation++ + const result = exec() + this.indentation-- + return result + } + + abstract visitor(node: arkts.AstNode): arkts.AstNode + + visitEachChild(node: arkts.AstNode): arkts.AstNode { + return this.withIndentation(() => + arkts.visitEachChild( + node, + it => this.visitor(it) + ) + ) + } +} diff --git a/arkoala-arkts/memo-plugin/src/import-transformer.ts b/arkoala-arkts/memo-plugin/src/import-transformer.ts new file mode 100644 index 000000000..4037bcf65 --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/import-transformer.ts @@ -0,0 +1,43 @@ +/* + * 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 { 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)), + ] + ) + } + return node + } +} diff --git a/arkoala-arkts/memo-plugin/src/memo-detector.ts b/arkoala-arkts/memo-plugin/src/memo-detector.ts new file mode 100644 index 000000000..db447f07c --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/memo-detector.ts @@ -0,0 +1,79 @@ +/* + * 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 { AbstractVisitor } from "./AbstractVisitor" +import { createContextParameter, createIdParameter, RuntimeNames } from "./utils" + +export function hasMemoAnnotation(node: arkts.ScriptFunction) { + return arkts.getAnnotations(node).some((it) => + arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION + ) +} + +export function createHiddenParameters(withType: boolean): arkts.ETSParameterExpression[] { + return [createContextParameter(withType), createIdParameter(withType)] +} + +export class MemoDetector extends AbstractVisitor { + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + // TODO: Remove (currently annotations are lost on visitor) + const methodDefinitionHasMemoAnnotation = + beforeChildren instanceof arkts.MethodDefinition && hasMemoAnnotation(beforeChildren.scriptFunction) + + const node = this.visitEachChild(beforeChildren) + console.log(" ".repeat(this.indentation) + node.constructor.name) + if (node instanceof arkts.MethodDefinition) { + if (methodDefinitionHasMemoAnnotation) { + console.log("MEMO SCRIPT FUNCTION") + // TODO: fix + const updatedNode = arkts.factory.updateMethodDefinition( + node, + 2, + node.name, + arkts.factory.createFunctionExpression( + arkts.factory.updateScriptFunction( + node.scriptFunction, + node.scriptFunction.body, + undefined, + node.scriptFunction.scriptFunctionFlags, + node.scriptFunction.modifiers, + false, + node.scriptFunction.ident, + [...createHiddenParameters(true), ...node.scriptFunction.parameters] + ), + ), + node.modifiers, + false + ) + console.log("END") + return updatedNode + } + } + if (node instanceof arkts.CallExpression) { + const expr = node.expression + const decl = arkts.getDecl(expr) + if (decl instanceof arkts.MethodDefinition && hasMemoAnnotation(decl.scriptFunction)) { + return arkts.factory.updateCallExpression( + node, + node.expression, + undefined, + [...createHiddenParameters(false), ...node.arguments] + ) + } + } + return node + } +} diff --git a/arkoala-arkts/memo-plugin/src/memo-transformer.ts b/arkoala-arkts/memo-plugin/src/memo-transformer.ts new file mode 100644 index 000000000..1975ec2be --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/memo-transformer.ts @@ -0,0 +1,33 @@ +/* + * 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 { MemoDetector } from "./memo-detector" +import { ImportTransformer } from "./import-transformer" + +export interface TransformerOptions { + trace?: boolean, +} + +export default function memoTransformer( + userPluginOptions?: TransformerOptions +) { + return (node: arkts.EtsScript) => { + const memoDetector = new MemoDetector() + memoDetector.visitor(node) + const importTransformer = new ImportTransformer() + return importTransformer.visitor(node) + } +} diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts new file mode 100644 index 000000000..0e3c4b606 --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -0,0 +1,59 @@ +/* + * 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" + +export enum RuntimeNames { + __CONTEXT = "__context", + __ID = "__id", + ANNOTATION = "memo", + CONTEXT = "__memo_context", + CONTEXT_TYPE = "__memo_context_type", + CONTEXT_TYPE_DEFAULT_IMPORT = "@koalaui/runtime", + ID = "__memo_id", + ID_TYPE = "__memo_id_type", +} + +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(withType: boolean): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier(RuntimeNames.CONTEXT, + withType ? arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) : undefined + ), + undefined + ) +} + +export function createIdParameter(withType: boolean): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier(RuntimeNames.ID, + withType ? arkts.factory.createIdentifier(RuntimeNames.ID_TYPE) : undefined + ), + undefined + ) +} diff --git a/arkoala-arkts/memo-plugin/tsconfig.json b/arkoala-arkts/memo-plugin/tsconfig.json new file mode 100644 index 000000000..ef0efa64d --- /dev/null +++ b/arkoala-arkts/memo-plugin/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "@koalaui/build-common/tsconfig.json", + "compilerOptions": { + "rootDir": ".", + "baseUrl": ".", + "outDir": "./build", + "module": "CommonJS" + }, + "include": [ + "./src/**/*.ts", + ] +} -- Gitee From 1d242e9ae402b5aed1560f3dae16790c1958425e Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Fri, 14 Feb 2025 15:29:09 +0000 Subject: [PATCH 15/40] !1825 Handle @BuilderParam properly --- arkoala-arkts/trivial/user/src/ets/page1.ets | 21 + arkoala/ets-plugin/src/ArkExpander.ts | 2 +- arkoala/ets-plugin/src/PropertyTranslators.ts | 82 +- arkoala/ets-plugin/src/StructOptions.ts | 25 +- arkoala/ets-plugin/src/StructTransformer.ts | 12 +- arkoala/ets-plugin/test/ets/PropertyDeps.ets | 168 +-- .../test/golden/arkoala/ets/PropertyDeps.ts | 1041 ++--------------- .../test/golden/arkoala/ets/Rewrite.ts | 5 +- .../user-function-declaration.ts | 5 +- .../test/golden/arkoala/ets/trailing-block.ts | 5 +- .../test/golden/arkoala/spec/@builderParam.ts | 13 +- .../arkoala/spec/test/pages/TestComponent.ts | 5 +- .../test/golden/arkts/ets/PropertyDeps.ts | 1041 ++--------------- .../test/golden/arkts/ets/Rewrite.ts | 5 +- .../user-function-declaration.ts | 5 +- .../test/golden/arkts/ets/trailing-block.ts | 5 +- .../test/golden/arkts/spec/@builderParam.ts | 13 +- .../arkts/spec/test/pages/TestComponent.ts | 5 +- .../test/golden/koala/ets/PropertyDeps.ts | 1041 ++--------------- .../test/golden/koala/ets/Rewrite.ts | 7 +- .../user-function-declaration.ts | 5 +- .../test/golden/koala/ets/trailing-block.ts | 5 +- .../test/golden/koala/spec/@builderParam.ts | 13 +- .../koala/spec/test/pages/TestComponent.ts | 5 +- 24 files changed, 527 insertions(+), 3007 deletions(-) diff --git a/arkoala-arkts/trivial/user/src/ets/page1.ets b/arkoala-arkts/trivial/user/src/ets/page1.ets index 4df805660..c85a9eb52 100644 --- a/arkoala-arkts/trivial/user/src/ets/page1.ets +++ b/arkoala-arkts/trivial/user/src/ets/page1.ets @@ -66,6 +66,26 @@ function makeArray(items: number): Array { return result } +@Component +struct TestBuilderParam { + @Builder builder() { + Button("TestBuilder") + } + @BuilderParam builderParam: () => void = this.builder + @BuilderParam anotherParam: () => void = this.builder + build() { + Column() { + this.builderParam() + this.anotherParam() + } + } +} + +@Builder +function globalBuilder() { + Text("AnotherBuilder") +} + @Component struct Page1 { @State color1: string = '#ff0000' @@ -98,6 +118,7 @@ struct Page1 { .width(200).height(100) TestProvide() TestStructBuilder().width('100%') + TestBuilderParam({anotherParam: globalBuilder}) } .width('100%').height('100%') .backgroundColor(Color.Gray) diff --git a/arkoala/ets-plugin/src/ArkExpander.ts b/arkoala/ets-plugin/src/ArkExpander.ts index 8441239c3..d45369d72 100644 --- a/arkoala/ets-plugin/src/ArkExpander.ts +++ b/arkoala/ets-plugin/src/ArkExpander.ts @@ -118,7 +118,7 @@ export function arkExpandFile( // const debug = new DebugVisitor(sourceFile, ctx) // debug.visitor(sourceFile) - // resolve identifiers automatically imported from index-full.d.ts + // resolve identifiers automatically imported from index-full.d.ts new EtsIdentifierResolver(sourceFile, ctx, typeChecker, importer) .visitor(sourceFile) diff --git a/arkoala/ets-plugin/src/PropertyTranslators.ts b/arkoala/ets-plugin/src/PropertyTranslators.ts index 543fbbf26..f8b00b57b 100644 --- a/arkoala/ets-plugin/src/PropertyTranslators.ts +++ b/arkoala/ets-plugin/src/PropertyTranslators.ts @@ -74,6 +74,7 @@ import { WatchDecorator, } from "./utils" import { MessageCode, reportError } from "./diagnostics" +import { OptionDescriptor } from "./StructOptions" export class PropertyTranslatorContext { constructor( @@ -329,6 +330,12 @@ export abstract class PropertyTranslator { memo: boolean = false, isOptional: boolean = false ): ts.GetAccessorDeclaration { + let returnValue: ts.Expression = createThisFieldAccess(newName) + if (isOptional) { + returnValue = memo + ? ts.factory.createNonNullExpression(returnValue) + : ts.factory.createAsExpression(returnValue, type) + } const getter = ts.factory.createGetAccessorDeclaration( [Private()], id(originalName), @@ -336,12 +343,7 @@ export abstract class PropertyTranslator { this.propertyType, createBlock( ts.factory.createReturnStatement( - isOptional - ? ts.factory.createAsExpression( - createThisFieldAccess(newName), - type - ) - : createThisFieldAccess(newName) + returnValue ) ) ) @@ -423,9 +425,9 @@ export abstract class PropertyTranslator { ) } - public abstract implField(): { name: ts.Identifier; type: ts.TypeNode }[] + public abstract implField(): OptionDescriptor[] - protected stateImplField(impl: StateImplementation): { name: ts.Identifier; type: ts.TypeNode }[] { + protected stateImplField(impl: StateImplementation): OptionDescriptor[] { const originalName = asIdentifier(this.property.name) if (!this.property.type) { reportError( @@ -446,16 +448,16 @@ export abstract class PropertyTranslator { [originalType] ) return [ - { name: backingName, type: backingType }, - { name: originalName, type: originalType }, + new OptionDescriptor(backingName, backingType), + new OptionDescriptor(originalName, originalType) ] } - protected plainImplField(): { name: ts.Identifier; type: ts.TypeNode }[] { + protected plainImplField(needsMemo: boolean): OptionDescriptor[] { const name = asIdentifier(this.property.name) const type = this.typeOrErrorType(this.property, this.property.type) - return [{ name, type }] + return [new OptionDescriptor( name, type, needsMemo)] } } @@ -470,7 +472,7 @@ export function createStateOf(importer: Importer, type: ts.TypeNode | undefined, } class State extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): { name: ts.Identifier; type: ts.TypeNode, isBuilderParam: boolean }[] { return this.stateImplField(StateImplementation.MutableState) } override toInitialization(initializers: ts.Identifier) { @@ -498,7 +500,7 @@ class State extends PropertyTranslator { } export class ClassState extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.MutableState) } @@ -517,7 +519,7 @@ export class ClassState extends PropertyTranslator { } class Prop extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.SyncedProperty) } @@ -542,7 +544,7 @@ class Prop extends PropertyTranslator { } class Link extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.MutableState) } @@ -559,7 +561,7 @@ class Link extends PropertyTranslator { } class ObjectLink extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.SyncedProperty) } @@ -584,7 +586,7 @@ class ObjectLink extends PropertyTranslator { } class Provide extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.MutableState) } @@ -604,7 +606,7 @@ class Provide extends PropertyTranslator { } class Consume extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.MutableState) } @@ -624,7 +626,7 @@ class Consume extends PropertyTranslator { } class StorageLink extends PropertyTranslator { - public implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + public implField(): OptionDescriptor[] { const name = backingFieldName(asIdentifier(this.property.name)) const type = ts.factory.createTypeReferenceNode( this.context.importer.withRuntimeImport("MutableState"), @@ -633,7 +635,10 @@ class StorageLink extends PropertyTranslator { const name1 = asIdentifier(this.property.name) const type1 = this.typeOrErrorType(this.property, this.property.type) - return [{ name, type }, { name: name1, type: type1 }] + return [ + new OptionDescriptor(name, type), + new OptionDescriptor(name1,type1) + ] } override toInitialization(initializers: ts.Identifier) { @@ -650,7 +655,7 @@ class StorageLink extends PropertyTranslator { } class LocalStorageLink extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.MutableState) } @@ -668,7 +673,7 @@ class LocalStorageLink extends PropertyTranslator { } class StorageProp extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.SyncedProperty) } @@ -693,7 +698,7 @@ class StorageProp extends PropertyTranslator { } class LocalStorageProp extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { + override implField(): OptionDescriptor[] { return this.stateImplField(StateImplementation.SyncedProperty) } @@ -718,8 +723,8 @@ class LocalStorageProp extends PropertyTranslator { } export class BuilderParam extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { - return this.plainImplField() + override implField(): OptionDescriptor[] { + return this.plainImplField(true) } override toInitialization(initializers: ts.Identifier) { @@ -739,13 +744,32 @@ export class BuilderParam extends PropertyTranslator { ) } translateToInitialization(): ts.Statement | undefined { - return initializePlainProperty(this.propertyName, this.property.initializer) + let initializer = this.property.initializer + if (initializer) { + initializer = prependDoubleLineMemoComment( + ts.factory.createArrowFunction( + undefined, + undefined, + [], + undefined, + ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), + createBlock( + ts.factory.createExpressionStatement( + ts.factory.createCallExpression( + initializer, + undefined, + [] + ))) + ) + ) + } + return initializePlainProperty(this.propertyName, initializer) } } class PlainProperty extends PropertyTranslator { - override implField(): { name: ts.Identifier; type: ts.TypeNode }[] { - return this.plainImplField() + override implField(): OptionDescriptor[] { + return this.plainImplField(false) } override toInitialization(initializers: ts.Identifier) { diff --git a/arkoala/ets-plugin/src/StructOptions.ts b/arkoala/ets-plugin/src/StructOptions.ts index 957b9e868..1706ddf68 100644 --- a/arkoala/ets-plugin/src/StructOptions.ts +++ b/arkoala/ets-plugin/src/StructOptions.ts @@ -1,10 +1,18 @@ import * as ts from "@koalaui/ets-tsc" import { sourceStructName } from "./ApiUtils" -import { adaptorClassName, isDefined, throwError } from "./utils" +import { adaptorClassName, isDefined, prependMemoComment, throwError } from "./utils" import { PropertyTranslatorContext, classifyProperty } from "./PropertyTranslators" import { Importer } from "./Importer" import { ImportExport } from "./import-export"; +export class OptionDescriptor { + constructor( + public name: ts.Identifier, + public type: ts.TypeNode, + public isBuilderParam: boolean = false + ) {} +} + export class StructOptions { private importExport: ImportExport constructor( @@ -14,7 +22,7 @@ export class StructOptions { this.importExport = new ImportExport(this.typechecker) } - private implProperties(node: ts.StructDeclaration): { name: ts.Identifier, type: ts.TypeNode }[] { + private implProperties(node: ts.StructDeclaration): OptionDescriptor[] { return node.members .map(it => classifyProperty(it, this.context)) .filter(isDefined) @@ -39,13 +47,18 @@ export class StructOptions { [], [], this.implProperties(node) - .map(({ name, type }) => { - return ts.factory.createPropertySignature( + .map(descriptor => { + const property = ts.factory.createPropertySignature( undefined, - ts.idText(name), + ts.idText(descriptor.name), ts.factory.createToken(ts.SyntaxKind.QuestionToken), - type + descriptor.type ) + if (descriptor.isBuilderParam) { + return prependMemoComment(property) + } else { + return property + } }) ) } diff --git a/arkoala/ets-plugin/src/StructTransformer.ts b/arkoala/ets-plugin/src/StructTransformer.ts index 03a67906f..289e041a3 100644 --- a/arkoala/ets-plugin/src/StructTransformer.ts +++ b/arkoala/ets-plugin/src/StructTransformer.ts @@ -727,9 +727,17 @@ export class StructTransformer extends AbstractVisitor { const field = createThisFieldAccess(backingField(buildParams[0].propertyName)) initializations.push(ts.factory.createIfStatement( ts.factory.createBinaryExpression( - ts.factory.createPrefixUnaryExpression(ts.SyntaxKind.ExclamationToken, field), + ts.factory.createBinaryExpression( + field, + ts.factory.createToken(ts.SyntaxKind.EqualsEqualsEqualsToken), + undefinedValue() + ), ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersandToken), - id("content") + ts.factory.createBinaryExpression( + id("content"), + ts.factory.createToken(ts.SyntaxKind.ExclamationEqualsEqualsToken), + undefinedValue() + ), ), assignment(field, id("content")) )) diff --git a/arkoala/ets-plugin/test/ets/PropertyDeps.ets b/arkoala/ets-plugin/test/ets/PropertyDeps.ets index dbca82780..cc6ba9dda 100644 --- a/arkoala/ets-plugin/test/ets/PropertyDeps.ets +++ b/arkoala/ets-plugin/test/ets/PropertyDeps.ets @@ -85,16 +85,6 @@ struct StateToLocalStorageProp { } } -@Component -struct StateToBuilderParam { - @State state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct StateToPlain { @State state: string = 'Hello World' @@ -177,16 +167,6 @@ struct PropToLocalStorageProp { } } -@Component -struct PropToBuilderParam { - @Prop state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct PropToPlain { @Prop state: string = 'Hello World' @@ -269,16 +249,6 @@ struct ProvideToLocalStorageProp { } } -@Component -struct ProvideToBuilderParam { - @Provide state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct ProvideToPlain { @Provide state: string = 'Hello World' @@ -361,16 +331,6 @@ struct StorageLinkToLocalStorageProp { } } -@Component -struct StorageLinkToBuilderParam { - @StorageLink("key") state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct StorageLinkToPlain { @StorageLink("key") state: string = 'Hello World' @@ -453,16 +413,6 @@ struct LocalStorageLinkToLocalStorageProp { } } -@Component -struct LocalStorageLinkToBuilderParam { - @LocalStorageLink("key") state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct LocalStorageLinkToPlain { @LocalStorageLink("key") state: string = 'Hello World' @@ -545,16 +495,6 @@ struct StoragePropToLocalStorageProp { } } -@Component -struct StoragePropToBuilderParam { - @StorageProp("key") state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct StoragePropToPlain { @StorageProp("key") state: string = 'Hello World' @@ -637,16 +577,6 @@ struct LocalStoragePropToLocalStorageProp { } } -@Component -struct LocalStoragePropToBuilderParam { - @LocalStorageProp("key") state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct LocalStoragePropToPlain { @LocalStorageProp("key") state: string = 'Hello World' @@ -660,92 +590,26 @@ struct LocalStoragePropToPlain { // @BuilderParam @Component -struct BuilderParamToState { - @BuilderParam state: string = 'Hello World' - @State test: string = this.state + "!" +struct BuilderToBuilderParam { + @Builder builder() {} + @BuilderParam builderParam: () => void = this.builder + @BuilderParam anotherParam: () => void = this.builder build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToProp { - @BuilderParam state: string = 'Hello World' - @Prop test: string = this.state + "!" - - build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToProvide { - @BuilderParam state: string = 'Hello World' - @Provide test: string = this.state + "!" - - build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToStorageLink { - @BuilderParam state: string = 'Hello World' - @StorageLink("test") test: string = this.state + "!" - - build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToLocalStorageLink { - @BuilderParam state: string = 'Hello World' - @LocalStorageLink("test") test: string = this.state + "!" - - build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToStorageProp { - @BuilderParam state: string = 'Hello World' - @StorageProp("test") test: string = this.state + "!" - - build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToLocalStorageProp { - @BuilderParam state: string = 'Hello World' - @LocalStorageProp("test") test: string = this.state + "!" - - build() { - Text(this.test) + this.builderParam() + BuilderToBuilderParam({builderParam: this.anotherParam}) } } @Component struct BuilderParamToBuilderParam { - @BuilderParam state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - -@Component -struct BuilderParamToPlain { - @BuilderParam state: string = 'Hello World' - test: string = this.state + "!" + @Builder builder() {} + @BuilderParam builderParam: () => void = this.builder + @BuilderParam anotherParam: () => void = this.builderParam build() { - Text(this.test) + this.anotherBuilderParam() + BuilderToBuilderParam({anotherParam: this.anotherParam}) } } @@ -821,16 +685,6 @@ struct PlainToLocalStorageProp { } } -@Component -struct PlainToBuilderParam { - state: string = 'Hello World' - @BuilderParam test: string = this.state + "!" - - build() { - Text(this.test) - } -} - @Component struct PlainToPlain { state: string = 'Hello World' diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts index 4e0aacb41..14f33e15c 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts @@ -228,43 +228,6 @@ class ArkStateToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StateToBuilderParamOptions): void { - this.__backing_state = stateOf(initializers?.state ?? ('Hello World'), this); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StateToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStateToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -544,47 +507,6 @@ class ArkPropToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PropToBuilderParamOptions): void { - this.__backing_state = propState('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __updateStruct(initializers: PropToBuilderParamOptions | undefined): void { - this.__backing_state?.update(initializers?.state); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PropToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkPropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -849,43 +771,6 @@ class ArkProvideToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: ProvideToBuilderParamOptions): void { - this.__backing_state = initializers!.__backing_state!; - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: ProvideToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkProvideToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1146,43 +1031,6 @@ class ArkStorageLinkToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StorageLinkToBuilderParamOptions): void { - this.__backing_state = AppStorageLinkState("key", 'Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StorageLinkToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStorageLinkToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1443,43 +1291,6 @@ class ArkLocalStorageLinkToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions): void { - this.__backing_state = StorageLinkState(this._entry_local_storage_, "key", 'Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkLocalStorageLinkToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1759,47 +1570,6 @@ class ArkStoragePropToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StoragePropToBuilderParamOptions): void { - this.__backing_state = propState(AppStorageLinkState("key", 'Hello World').value); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __updateStruct(initializers: StoragePropToBuilderParamOptions | undefined): void { - this.__backing_state?.update(AppStorageLinkState("key", 'Hello World').value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StoragePropToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStoragePropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -2083,15 +1853,13 @@ class ArkLocalStoragePropToLocalStoragePropComponent extends ArkStructBase { +class ArkLocalStoragePropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions): void { + content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { this.__backing_state = propState(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; } private __backing_state?: SyncedProperty; private get state(): string { @@ -2100,19 +1868,15 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase(this._entry_local_storage_, "key", 'Hello World').value); } /** @memo */ @@ -2120,64 +1884,127 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions) { + content?: () => void, initializers?: LocalStoragePropToPlainOptions) { ArkText(__builder, undefined, this.test); } } -class ArkLocalStoragePropToPlainComponent extends ArkStructBase { +class ArkBuilderToBuilderParamComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { - this.__backing_state = propState(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); - this.__backing_test = initializers?.test ?? (this.state + "!"); + content?: () => void, initializers?: BuilderToBuilderParamOptions): void { + this.__backing_builderParam = initializers?.builderParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + this.__backing_anotherParam = initializers?.anotherParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + if (this.__backing_builderParam === undefined && content !== undefined) + this.__backing_builderParam = content; } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; + /** @memo */ + private __backing_builderParam?: () => void; + /** @memo */ + private get builderParam(): () => void { + return this.__backing_builderParam!; } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); + private set builderParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_builderParam = value; } - private __backing_test?: string; - private get test(): string { - return this.__backing_test as string; + /** @memo */ + private __backing_anotherParam?: () => void; + /** @memo */ + private get anotherParam(): () => void { + return this.__backing_anotherParam!; } - private set test(value: string) { - this.__backing_test = value; + private set anotherParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_anotherParam = value; } /** @memo */ - __updateStruct(initializers: LocalStoragePropToPlainOptions | undefined): void { - this.__backing_state?.update(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); + builder() { } + /** @memo */ + __build(/**/ + /** @memo */ + __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: BuilderToBuilderParamOptions) { + this.builderParam(); + BuilderToBuilderParam(undefined, undefined, { builderParam: this.anotherParam } as BuilderToBuilderParamOptions); + } +} +class ArkBuilderParamToBuilderParamComponent extends ArkStructBase { + private _entry_local_storage_ = new LocalStorage(); + __initializeStruct(/**/ + /** @memo */ + content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { + this.__backing_builderParam = initializers?.builderParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + this.__backing_anotherParam = initializers?.anotherParam ?? (/**/ + /** @memo */ + () => { + this.builderParam(); + }); + if (this.__backing_builderParam === undefined && content !== undefined) + this.__backing_builderParam = content; + } + /** @memo */ + private __backing_builderParam?: () => void; + /** @memo */ + private get builderParam(): () => void { + return this.__backing_builderParam!; + } + private set builderParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_builderParam = value; + } + /** @memo */ + private __backing_anotherParam?: () => void; + /** @memo */ + private get anotherParam(): () => void { + return this.__backing_anotherParam!; } + private set anotherParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_anotherParam = value; + } + /** @memo */ + builder() { } /** @memo */ __build(/**/ /** @memo */ __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToPlainOptions) { - ArkText(__builder, undefined, this.test); + content?: () => void, initializers?: BuilderParamToBuilderParamOptions) { + this.anotherBuilderParam(); + BuilderToBuilderParam(undefined, undefined, { anotherParam: this.anotherParam } as BuilderToBuilderParamOptions); } } -class ArkBuilderParamToStateComponent extends ArkStructBase { +class ArkPlainToStateComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToStateOptions): void { + content?: () => void, initializers?: PlainToStateOptions): void { this.__backing_state = initializers?.state ?? ('Hello World'); this.__backing_test = stateOf(initializers?.test ?? (this.state + "!"), this); - if (!this.__backing_state && content) - this.__backing_state = content; } - /** @memo */ private __backing_state?: string; - /** @memo */ private get state(): string { return this.__backing_state as string; } - private set state(/**/ - /** @memo */ - value: string) { + private set state(value: string) { this.__backing_state = value; } private __backing_test?: MutableState; @@ -2192,29 +2019,23 @@ class ArkBuilderParamToStateComponent extends ArkStructBase void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToStateOptions) { + content?: () => void, initializers?: PlainToStateOptions) { ArkText(__builder, undefined, this.test); } } -class ArkBuilderParamToPropComponent extends ArkStructBase { +class ArkPlainToPropComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToPropOptions): void { + content?: () => void, initializers?: PlainToPropOptions): void { this.__backing_state = initializers?.state ?? ('Hello World'); this.__backing_test = propState(this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; } - /** @memo */ private __backing_state?: string; - /** @memo */ private get state(): string { return this.__backing_state as string; } - private set state(/**/ - /** @memo */ - value: string) { + private set state(value: string) { this.__backing_state = value; } private __backing_test?: SyncedProperty; @@ -2225,344 +2046,7 @@ class ArkBuilderParamToPropComponent extends ArkStructBase void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToProvideComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToProvideOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers!.__backing_test!; - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToProvideOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToStorageLinkComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStorageLinkOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = AppStorageLinkState("test", this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStorageLinkOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToLocalStorageLinkComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = StorageLinkState(this._entry_local_storage_, "test", this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStoragePropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(AppStorageLinkState("test", this.state + "!").value); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: BuilderParamToStoragePropOptions | undefined): void { - this.__backing_test?.update(AppStorageLinkState("test", this.state + "!").value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStoragePropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(StorageLinkState(this._entry_local_storage_, "test", this.state + "!").value); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: BuilderParamToLocalStoragePropOptions | undefined): void { - this.__backing_test?.update(StorageLinkState(this._entry_local_storage_, "test", this.state + "!").value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToBuilderParamComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToPlainComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPlainOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: string; - private get test(): string { - return this.__backing_test as string; - } - private set test(value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPlainOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkPlainToStateComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToStateOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = stateOf(initializers?.test ?? (this.state + "!"), this); - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PlainToStateOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkPlainToPropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToPropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(this.state + "!"); - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: PlainToPropOptions | undefined): void { + __updateStruct(initializers: PlainToPropOptions | undefined): void { this.__backing_test?.update(initializers?.test); } /** @memo */ @@ -2737,43 +2221,6 @@ class ArkPlainToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToBuilderParamOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PlainToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkPlainToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -2892,18 +2339,6 @@ content?: () => void, initializers?: StateToLocalStoragePropOptions): void { ArkStateToLocalStoragePropComponent._instantiate(style, () => new ArkStateToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StateToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StateToBuilderParamOptions): void { - const updatedInitializers: StateToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStateToBuilderParamComponent._instantiate(style, () => new ArkStateToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StateToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3009,19 +2444,6 @@ content?: () => void, initializers?: PropToLocalStoragePropOptions): void { ArkPropToLocalStoragePropComponent._instantiate(style, () => new ArkPropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function PropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: PropToBuilderParamOptions): void { - const updatedInitializers: PropToBuilderParamOptions = { - state: initializers?.state, - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkPropToBuilderParamComponent._instantiate(style, () => new ArkPropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function PropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3128,19 +2550,6 @@ content?: () => void, initializers?: ProvideToLocalStoragePropOptions): void { ArkProvideToLocalStoragePropComponent._instantiate(style, () => new ArkProvideToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function ProvideToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: ProvideToBuilderParamOptions): void { - const __provide_state = contextLocalStateOf("state", () => 'Hello World'); - const updatedInitializers: ProvideToBuilderParamOptions = { - __backing_state: __provide_state, - test: initializers?.test - }; - ArkProvideToBuilderParamComponent._instantiate(style, () => new ArkProvideToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function ProvideToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3240,18 +2649,6 @@ content?: () => void, initializers?: StorageLinkToLocalStoragePropOptions): void ArkStorageLinkToLocalStoragePropComponent._instantiate(style, () => new ArkStorageLinkToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StorageLinkToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StorageLinkToBuilderParamOptions): void { - const updatedInitializers: StorageLinkToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStorageLinkToBuilderParamComponent._instantiate(style, () => new ArkStorageLinkToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StorageLinkToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3350,18 +2747,6 @@ content?: () => void, initializers?: LocalStorageLinkToLocalStoragePropOptions): ArkLocalStorageLinkToLocalStoragePropComponent._instantiate(style, () => new ArkLocalStorageLinkToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function LocalStorageLinkToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions): void { - const updatedInitializers: LocalStorageLinkToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkLocalStorageLinkToBuilderParamComponent._instantiate(style, () => new ArkLocalStorageLinkToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function LocalStorageLinkToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3460,18 +2845,6 @@ content?: () => void, initializers?: StoragePropToLocalStoragePropOptions): void ArkStoragePropToLocalStoragePropComponent._instantiate(style, () => new ArkStoragePropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StoragePropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StoragePropToBuilderParamOptions): void { - const updatedInitializers: StoragePropToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStoragePropToBuilderParamComponent._instantiate(style, () => new ArkStoragePropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StoragePropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3570,18 +2943,6 @@ content?: () => void, initializers?: LocalStoragePropToLocalStoragePropOptions): ArkLocalStoragePropToLocalStoragePropComponent._instantiate(style, () => new ArkLocalStoragePropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function LocalStoragePropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions): void { - const updatedInitializers: LocalStoragePropToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkLocalStoragePropToBuilderParamComponent._instantiate(style, () => new ArkLocalStoragePropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function LocalStoragePropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3594,90 +2955,16 @@ content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { ArkLocalStoragePropToPlainComponent._instantiate(style, () => new ArkLocalStoragePropToPlainComponent, content, updatedInitializers); } /** @memo */ -export function BuilderParamToState(/**/ +export function BuilderToBuilderParam(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ /** @memo */ -content?: () => void, initializers?: BuilderParamToStateOptions): void { - const updatedInitializers: BuilderParamToStateOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test +content?: () => void, initializers?: BuilderToBuilderParamOptions): void { + const updatedInitializers: BuilderToBuilderParamOptions = { + builderParam: initializers?.builderParam, + anotherParam: initializers?.anotherParam }; - ArkBuilderParamToStateComponent._instantiate(style, () => new ArkBuilderParamToStateComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToPropOptions): void { - const updatedInitializers: BuilderParamToPropOptions = { - state: initializers?.state, - test: initializers?.test, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToPropComponent._instantiate(style, () => new ArkBuilderParamToPropComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToProvide(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToProvideOptions): void { - const __provide_test = contextLocalStateOf("test", () => this.state + "!"); - const updatedInitializers: BuilderParamToProvideOptions = { - state: initializers?.state, - __backing_test: __provide_test - }; - ArkBuilderParamToProvideComponent._instantiate(style, () => new ArkBuilderParamToProvideComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToStorageLink(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToStorageLinkOptions): void { - const updatedInitializers: BuilderParamToStorageLinkOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToStorageLinkComponent._instantiate(style, () => new ArkBuilderParamToStorageLinkComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToLocalStorageLink(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions): void { - const updatedInitializers: BuilderParamToLocalStorageLinkOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToLocalStorageLinkComponent._instantiate(style, () => new ArkBuilderParamToLocalStorageLinkComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToStorageProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToStoragePropOptions): void { - const updatedInitializers: BuilderParamToStoragePropOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToStoragePropComponent._instantiate(style, () => new ArkBuilderParamToStoragePropComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToLocalStorageProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions): void { - const updatedInitializers: BuilderParamToLocalStoragePropOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToLocalStoragePropComponent._instantiate(style, () => new ArkBuilderParamToLocalStoragePropComponent, content, updatedInitializers); + ArkBuilderToBuilderParamComponent._instantiate(style, () => new ArkBuilderToBuilderParamComponent, content, updatedInitializers); } /** @memo */ export function BuilderParamToBuilderParam(/**/ @@ -3686,24 +2973,12 @@ style?: (__instance: ArkCommonMethodComponent) => void, /**/ /** @memo */ content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { const updatedInitializers: BuilderParamToBuilderParamOptions = { - state: initializers?.state, - test: initializers?.test + builderParam: initializers?.builderParam, + anotherParam: initializers?.anotherParam }; ArkBuilderParamToBuilderParamComponent._instantiate(style, () => new ArkBuilderParamToBuilderParamComponent, content, updatedInitializers); } /** @memo */ -export function BuilderParamToPlain(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToPlainOptions): void { - const updatedInitializers: BuilderParamToPlainOptions = { - state: initializers?.state, - test: initializers?.test - }; - ArkBuilderParamToPlainComponent._instantiate(style, () => new ArkBuilderParamToPlainComponent, content, updatedInitializers); -} -/** @memo */ export function PlainToState(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3790,18 +3065,6 @@ content?: () => void, initializers?: PlainToLocalStoragePropOptions): void { ArkPlainToLocalStoragePropComponent._instantiate(style, () => new ArkPlainToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function PlainToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: PlainToBuilderParamOptions): void { - const updatedInitializers: PlainToBuilderParamOptions = { - state: initializers?.state, - test: initializers?.test - }; - ArkPlainToBuilderParamComponent._instantiate(style, () => new ArkPlainToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function PlainToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3855,11 +3118,6 @@ export interface StateToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StateToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface StateToPlainOptions { __backing_state?: MutableState; state?: string; @@ -3907,11 +3165,6 @@ export interface PropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface PropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface PropToPlainOptions { __backing_state?: SyncedProperty; state?: string; @@ -3959,11 +3212,6 @@ export interface ProvideToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface ProvideToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface ProvideToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4011,11 +3259,6 @@ export interface StorageLinkToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StorageLinkToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface StorageLinkToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4063,11 +3306,6 @@ export interface LocalStorageLinkToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface LocalStorageLinkToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface LocalStorageLinkToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4115,11 +3353,6 @@ export interface StoragePropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StoragePropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface StoragePropToPlainOptions { __backing_state?: SyncedProperty; state?: string; @@ -4167,58 +3400,22 @@ export interface LocalStoragePropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface LocalStoragePropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface LocalStoragePropToPlainOptions { __backing_state?: SyncedProperty; state?: string; test?: string; } -export interface BuilderParamToStateOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToPropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; -} -export interface BuilderParamToProvideOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToStorageLinkOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToLocalStorageLinkOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToStoragePropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; -} -export interface BuilderParamToLocalStoragePropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; +export interface BuilderToBuilderParamOptions { + /** @memo */ + builderParam?: () => void; + /** @memo */ + anotherParam?: () => void; } export interface BuilderParamToBuilderParamOptions { - state?: string; - test?: string; -} -export interface BuilderParamToPlainOptions { - state?: string; - test?: string; + /** @memo */ + builderParam?: () => void; + /** @memo */ + anotherParam?: () => void; } export interface PlainToStateOptions { state?: string; @@ -4255,10 +3452,6 @@ export interface PlainToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface PlainToBuilderParamOptions { - state?: string; - test?: string; -} export interface PlainToPlainOptions { state?: string; test?: string; diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts index 418d16573..3e171348b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts @@ -239,14 +239,14 @@ class ArkBuilderParamExampleComponent extends ArkStructBase {}; /** @memo */ private get foo(): () => {} { - return this.__backing_foo as () => {}; + return this.__backing_foo!; } private set foo(/**/ /** @memo */ @@ -1009,6 +1009,7 @@ export interface BuilderExampleOptions { export interface GlobalBuilderExampleOptions { } export interface BuilderParamExampleOptions { + /** @memo */ foo?: () => {}; } export interface StylesExampleOptions { diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts index 857db147c..d4a937ecd 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts @@ -49,7 +49,7 @@ export class ArkStructWithContentComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -107,5 +107,6 @@ export interface StructOptions { } export interface StructWithContentOptions { param?: number; + /** @memo */ content?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts index 983d10672..457d0bc5f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts @@ -26,14 +26,14 @@ class ArkChildStructComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -72,5 +72,6 @@ content?: () => void, initializers?: ChildStructOptions): void { export interface ParentStructOptions { } export interface ChildStructOptions { + /** @memo */ content?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts index 850861b7a..f176b327c 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts @@ -14,7 +14,7 @@ class ArkCustomContainerComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -39,7 +39,7 @@ class ArkCustomContainerComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -237,12 +237,15 @@ content?: () => void, initializers?: CustomContainerUserOptions): void { } export interface CustomContainerOptions { header?: string; + /** @memo */ content?: () => void; + /** @memo */ callContent?: any; footer?: string; } export interface CustomContainer2Options { header?: string; + /** @memo */ content?: () => void; } export interface CustomContainerUserOptions { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts index f625c0f4e..35db9d51b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts @@ -35,7 +35,7 @@ export class ArkCustomContainerExportComponent extends ArkStructBase void; /** @memo */ private get closer(): () => void { - return this.__backing_closer as () => void; + return this.__backing_closer!; } private set closer(/**/ /** @memo */ @@ -99,5 +99,6 @@ export interface TestComponentOptions { } export interface CustomContainerExportOptions { header?: string; + /** @memo */ closer?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/PropertyDeps.ts b/arkoala/ets-plugin/test/golden/arkts/ets/PropertyDeps.ts index 1eb4f0f68..7329befba 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/PropertyDeps.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/PropertyDeps.ts @@ -231,43 +231,6 @@ class ArkStateToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StateToBuilderParamOptions): void { - this.__backing_state = stateOf(initializers?.state ?? ('Hello World'), this); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StateToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStateToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -547,47 +510,6 @@ class ArkPropToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PropToBuilderParamOptions): void { - this.__backing_state = propState('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __updateStruct(initializers: PropToBuilderParamOptions | undefined): void { - this.__backing_state?.update(initializers?.state); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PropToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkPropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -852,43 +774,6 @@ class ArkProvideToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: ProvideToBuilderParamOptions): void { - this.__backing_state = initializers!.__backing_state!; - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: ProvideToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkProvideToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1149,43 +1034,6 @@ class ArkStorageLinkToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StorageLinkToBuilderParamOptions): void { - this.__backing_state = AppStorageLinkState("key", 'Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StorageLinkToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStorageLinkToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1446,43 +1294,6 @@ class ArkLocalStorageLinkToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions): void { - this.__backing_state = StorageLinkState(this._entry_local_storage_, "key", 'Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkLocalStorageLinkToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1762,47 +1573,6 @@ class ArkStoragePropToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StoragePropToBuilderParamOptions): void { - this.__backing_state = propState(AppStorageLinkState("key", 'Hello World').value); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __updateStruct(initializers: StoragePropToBuilderParamOptions | undefined): void { - this.__backing_state?.update(AppStorageLinkState("key", 'Hello World').value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StoragePropToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStoragePropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -2086,15 +1856,13 @@ class ArkLocalStoragePropToLocalStoragePropComponent extends ArkStructBase { +class ArkLocalStoragePropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions): void { + content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { this.__backing_state = propState(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; } private __backing_state?: SyncedProperty; private get state(): string { @@ -2103,19 +1871,15 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase(this._entry_local_storage_, "key", 'Hello World').value); } /** @memo */ @@ -2123,64 +1887,127 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions) { + content?: () => void, initializers?: LocalStoragePropToPlainOptions) { ArkText(__builder, undefined, this.test); } } -class ArkLocalStoragePropToPlainComponent extends ArkStructBase { +class ArkBuilderToBuilderParamComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { - this.__backing_state = propState(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); - this.__backing_test = initializers?.test ?? (this.state + "!"); + content?: () => void, initializers?: BuilderToBuilderParamOptions): void { + this.__backing_builderParam = initializers?.builderParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + this.__backing_anotherParam = initializers?.anotherParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + if (this.__backing_builderParam === undefined && content !== undefined) + this.__backing_builderParam = content; } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; + /** @memo */ + private __backing_builderParam?: () => void; + /** @memo */ + private get builderParam(): () => void { + return this.__backing_builderParam!; } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); + private set builderParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_builderParam = value; } - private __backing_test?: string; - private get test(): string { - return this.__backing_test as string; + /** @memo */ + private __backing_anotherParam?: () => void; + /** @memo */ + private get anotherParam(): () => void { + return this.__backing_anotherParam!; } - private set test(value: string) { - this.__backing_test = value; + private set anotherParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_anotherParam = value; } /** @memo */ - __updateStruct(initializers: LocalStoragePropToPlainOptions | undefined): void { - this.__backing_state?.update(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); + builder() { } + /** @memo */ + __build(/**/ + /** @memo */ + __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: BuilderToBuilderParamOptions) { + this.builderParam(); + BuilderToBuilderParam(undefined, undefined, { builderParam: this.anotherParam } as BuilderToBuilderParamOptions); + } +} +class ArkBuilderParamToBuilderParamComponent extends ArkStructBase { + private _entry_local_storage_ = new LocalStorage(); + __initializeStruct(/**/ + /** @memo */ + content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { + this.__backing_builderParam = initializers?.builderParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + this.__backing_anotherParam = initializers?.anotherParam ?? (/**/ + /** @memo */ + () => { + this.builderParam(); + }); + if (this.__backing_builderParam === undefined && content !== undefined) + this.__backing_builderParam = content; + } + /** @memo */ + private __backing_builderParam?: () => void; + /** @memo */ + private get builderParam(): () => void { + return this.__backing_builderParam!; + } + private set builderParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_builderParam = value; + } + /** @memo */ + private __backing_anotherParam?: () => void; + /** @memo */ + private get anotherParam(): () => void { + return this.__backing_anotherParam!; } + private set anotherParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_anotherParam = value; + } + /** @memo */ + builder() { } /** @memo */ __build(/**/ /** @memo */ __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToPlainOptions) { - ArkText(__builder, undefined, this.test); + content?: () => void, initializers?: BuilderParamToBuilderParamOptions) { + this.anotherBuilderParam(); + BuilderToBuilderParam(undefined, undefined, { anotherParam: this.anotherParam } as BuilderToBuilderParamOptions); } } -class ArkBuilderParamToStateComponent extends ArkStructBase { +class ArkPlainToStateComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToStateOptions): void { + content?: () => void, initializers?: PlainToStateOptions): void { this.__backing_state = initializers?.state ?? ('Hello World'); this.__backing_test = stateOf(initializers?.test ?? (this.state + "!"), this); - if (!this.__backing_state && content) - this.__backing_state = content; } - /** @memo */ private __backing_state?: string; - /** @memo */ private get state(): string { return this.__backing_state as string; } - private set state(/**/ - /** @memo */ - value: string) { + private set state(value: string) { this.__backing_state = value; } private __backing_test?: MutableState; @@ -2195,29 +2022,23 @@ class ArkBuilderParamToStateComponent extends ArkStructBase void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToStateOptions) { + content?: () => void, initializers?: PlainToStateOptions) { ArkText(__builder, undefined, this.test); } } -class ArkBuilderParamToPropComponent extends ArkStructBase { +class ArkPlainToPropComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToPropOptions): void { + content?: () => void, initializers?: PlainToPropOptions): void { this.__backing_state = initializers?.state ?? ('Hello World'); this.__backing_test = propState(this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; } - /** @memo */ private __backing_state?: string; - /** @memo */ private get state(): string { return this.__backing_state as string; } - private set state(/**/ - /** @memo */ - value: string) { + private set state(value: string) { this.__backing_state = value; } private __backing_test?: SyncedProperty; @@ -2228,344 +2049,7 @@ class ArkBuilderParamToPropComponent extends ArkStructBase void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToProvideComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToProvideOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers!.__backing_test!; - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToProvideOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToStorageLinkComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStorageLinkOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = AppStorageLinkState("test", this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStorageLinkOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToLocalStorageLinkComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = StorageLinkState(this._entry_local_storage_, "test", this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStoragePropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(AppStorageLinkState("test", this.state + "!").value); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: BuilderParamToStoragePropOptions | undefined): void { - this.__backing_test?.update(AppStorageLinkState("test", this.state + "!").value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStoragePropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(StorageLinkState(this._entry_local_storage_, "test", this.state + "!").value); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: BuilderParamToLocalStoragePropOptions | undefined): void { - this.__backing_test?.update(StorageLinkState(this._entry_local_storage_, "test", this.state + "!").value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToBuilderParamComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToPlainComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPlainOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: string; - private get test(): string { - return this.__backing_test as string; - } - private set test(value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPlainOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkPlainToStateComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToStateOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = stateOf(initializers?.test ?? (this.state + "!"), this); - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PlainToStateOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkPlainToPropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToPropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(this.state + "!"); - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: PlainToPropOptions | undefined): void { + __updateStruct(initializers: PlainToPropOptions | undefined): void { this.__backing_test?.update(initializers?.test); } /** @memo */ @@ -2740,43 +2224,6 @@ class ArkPlainToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToBuilderParamOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PlainToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkPlainToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -2895,18 +2342,6 @@ content?: () => void, initializers?: StateToLocalStoragePropOptions): void { ArkStateToLocalStoragePropComponent._instantiate(style, () => new ArkStateToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StateToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StateToBuilderParamOptions): void { - const updatedInitializers: StateToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStateToBuilderParamComponent._instantiate(style, () => new ArkStateToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StateToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3012,19 +2447,6 @@ content?: () => void, initializers?: PropToLocalStoragePropOptions): void { ArkPropToLocalStoragePropComponent._instantiate(style, () => new ArkPropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function PropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: PropToBuilderParamOptions): void { - const updatedInitializers: PropToBuilderParamOptions = { - state: initializers?.state, - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkPropToBuilderParamComponent._instantiate(style, () => new ArkPropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function PropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3131,19 +2553,6 @@ content?: () => void, initializers?: ProvideToLocalStoragePropOptions): void { ArkProvideToLocalStoragePropComponent._instantiate(style, () => new ArkProvideToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function ProvideToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: ProvideToBuilderParamOptions): void { - const __provide_state = contextLocalStateOf("state", () => 'Hello World'); - const updatedInitializers: ProvideToBuilderParamOptions = { - __backing_state: __provide_state, - test: initializers?.test - }; - ArkProvideToBuilderParamComponent._instantiate(style, () => new ArkProvideToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function ProvideToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3243,18 +2652,6 @@ content?: () => void, initializers?: StorageLinkToLocalStoragePropOptions): void ArkStorageLinkToLocalStoragePropComponent._instantiate(style, () => new ArkStorageLinkToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StorageLinkToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StorageLinkToBuilderParamOptions): void { - const updatedInitializers: StorageLinkToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStorageLinkToBuilderParamComponent._instantiate(style, () => new ArkStorageLinkToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StorageLinkToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3353,18 +2750,6 @@ content?: () => void, initializers?: LocalStorageLinkToLocalStoragePropOptions): ArkLocalStorageLinkToLocalStoragePropComponent._instantiate(style, () => new ArkLocalStorageLinkToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function LocalStorageLinkToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions): void { - const updatedInitializers: LocalStorageLinkToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkLocalStorageLinkToBuilderParamComponent._instantiate(style, () => new ArkLocalStorageLinkToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function LocalStorageLinkToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3463,18 +2848,6 @@ content?: () => void, initializers?: StoragePropToLocalStoragePropOptions): void ArkStoragePropToLocalStoragePropComponent._instantiate(style, () => new ArkStoragePropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StoragePropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StoragePropToBuilderParamOptions): void { - const updatedInitializers: StoragePropToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStoragePropToBuilderParamComponent._instantiate(style, () => new ArkStoragePropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StoragePropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3573,18 +2946,6 @@ content?: () => void, initializers?: LocalStoragePropToLocalStoragePropOptions): ArkLocalStoragePropToLocalStoragePropComponent._instantiate(style, () => new ArkLocalStoragePropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function LocalStoragePropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions): void { - const updatedInitializers: LocalStoragePropToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkLocalStoragePropToBuilderParamComponent._instantiate(style, () => new ArkLocalStoragePropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function LocalStoragePropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3597,90 +2958,16 @@ content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { ArkLocalStoragePropToPlainComponent._instantiate(style, () => new ArkLocalStoragePropToPlainComponent, content, updatedInitializers); } /** @memo */ -export function BuilderParamToState(/**/ +export function BuilderToBuilderParam(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ /** @memo */ -content?: () => void, initializers?: BuilderParamToStateOptions): void { - const updatedInitializers: BuilderParamToStateOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test +content?: () => void, initializers?: BuilderToBuilderParamOptions): void { + const updatedInitializers: BuilderToBuilderParamOptions = { + builderParam: initializers?.builderParam, + anotherParam: initializers?.anotherParam }; - ArkBuilderParamToStateComponent._instantiate(style, () => new ArkBuilderParamToStateComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToPropOptions): void { - const updatedInitializers: BuilderParamToPropOptions = { - state: initializers?.state, - test: initializers?.test, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToPropComponent._instantiate(style, () => new ArkBuilderParamToPropComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToProvide(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToProvideOptions): void { - const __provide_test = contextLocalStateOf("test", () => this.state + "!"); - const updatedInitializers: BuilderParamToProvideOptions = { - state: initializers?.state, - __backing_test: __provide_test - }; - ArkBuilderParamToProvideComponent._instantiate(style, () => new ArkBuilderParamToProvideComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToStorageLink(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToStorageLinkOptions): void { - const updatedInitializers: BuilderParamToStorageLinkOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToStorageLinkComponent._instantiate(style, () => new ArkBuilderParamToStorageLinkComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToLocalStorageLink(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions): void { - const updatedInitializers: BuilderParamToLocalStorageLinkOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToLocalStorageLinkComponent._instantiate(style, () => new ArkBuilderParamToLocalStorageLinkComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToStorageProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToStoragePropOptions): void { - const updatedInitializers: BuilderParamToStoragePropOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToStoragePropComponent._instantiate(style, () => new ArkBuilderParamToStoragePropComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToLocalStorageProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions): void { - const updatedInitializers: BuilderParamToLocalStoragePropOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToLocalStoragePropComponent._instantiate(style, () => new ArkBuilderParamToLocalStoragePropComponent, content, updatedInitializers); + ArkBuilderToBuilderParamComponent._instantiate(style, () => new ArkBuilderToBuilderParamComponent, content, updatedInitializers); } /** @memo */ export function BuilderParamToBuilderParam(/**/ @@ -3689,24 +2976,12 @@ style?: (__instance: ArkCommonMethodComponent) => void, /**/ /** @memo */ content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { const updatedInitializers: BuilderParamToBuilderParamOptions = { - state: initializers?.state, - test: initializers?.test + builderParam: initializers?.builderParam, + anotherParam: initializers?.anotherParam }; ArkBuilderParamToBuilderParamComponent._instantiate(style, () => new ArkBuilderParamToBuilderParamComponent, content, updatedInitializers); } /** @memo */ -export function BuilderParamToPlain(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToPlainOptions): void { - const updatedInitializers: BuilderParamToPlainOptions = { - state: initializers?.state, - test: initializers?.test - }; - ArkBuilderParamToPlainComponent._instantiate(style, () => new ArkBuilderParamToPlainComponent, content, updatedInitializers); -} -/** @memo */ export function PlainToState(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3793,18 +3068,6 @@ content?: () => void, initializers?: PlainToLocalStoragePropOptions): void { ArkPlainToLocalStoragePropComponent._instantiate(style, () => new ArkPlainToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function PlainToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: PlainToBuilderParamOptions): void { - const updatedInitializers: PlainToBuilderParamOptions = { - state: initializers?.state, - test: initializers?.test - }; - ArkPlainToBuilderParamComponent._instantiate(style, () => new ArkPlainToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function PlainToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3858,11 +3121,6 @@ export interface StateToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StateToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface StateToPlainOptions { __backing_state?: MutableState; state?: string; @@ -3910,11 +3168,6 @@ export interface PropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface PropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface PropToPlainOptions { __backing_state?: SyncedProperty; state?: string; @@ -3962,11 +3215,6 @@ export interface ProvideToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface ProvideToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface ProvideToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4014,11 +3262,6 @@ export interface StorageLinkToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StorageLinkToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface StorageLinkToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4066,11 +3309,6 @@ export interface LocalStorageLinkToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface LocalStorageLinkToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface LocalStorageLinkToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4118,11 +3356,6 @@ export interface StoragePropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StoragePropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface StoragePropToPlainOptions { __backing_state?: SyncedProperty; state?: string; @@ -4170,58 +3403,22 @@ export interface LocalStoragePropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface LocalStoragePropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface LocalStoragePropToPlainOptions { __backing_state?: SyncedProperty; state?: string; test?: string; } -export interface BuilderParamToStateOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToPropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; -} -export interface BuilderParamToProvideOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToStorageLinkOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToLocalStorageLinkOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToStoragePropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; -} -export interface BuilderParamToLocalStoragePropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; +export interface BuilderToBuilderParamOptions { + /** @memo */ + builderParam?: () => void; + /** @memo */ + anotherParam?: () => void; } export interface BuilderParamToBuilderParamOptions { - state?: string; - test?: string; -} -export interface BuilderParamToPlainOptions { - state?: string; - test?: string; + /** @memo */ + builderParam?: () => void; + /** @memo */ + anotherParam?: () => void; } export interface PlainToStateOptions { state?: string; @@ -4258,10 +3455,6 @@ export interface PlainToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface PlainToBuilderParamOptions { - state?: string; - test?: string; -} export interface PlainToPlainOptions { state?: string; test?: string; diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts index 49733cdc3..093fc0dce 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts @@ -241,14 +241,14 @@ class ArkBuilderParamExampleComponent extends ArkStructBase {}; /** @memo */ private get foo(): () => {} { - return this.__backing_foo as () => {}; + return this.__backing_foo!; } private set foo(/**/ /** @memo */ @@ -1008,6 +1008,7 @@ export interface BuilderExampleOptions { export interface GlobalBuilderExampleOptions { } export interface BuilderParamExampleOptions { + /** @memo */ foo?: () => {}; } export interface StylesExampleOptions { diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/ets-component-call/user-function-declaration.ts b/arkoala/ets-plugin/test/golden/arkts/ets/ets-component-call/user-function-declaration.ts index 4cc2bc3c0..bd3e1aaac 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/ets-component-call/user-function-declaration.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/ets-component-call/user-function-declaration.ts @@ -50,7 +50,7 @@ export class ArkStructWithContentComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -108,5 +108,6 @@ export interface StructOptions { } export interface StructWithContentOptions { param?: number; + /** @memo */ content?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/trailing-block.ts b/arkoala/ets-plugin/test/golden/arkts/ets/trailing-block.ts index ce44a95a0..c5700e3b7 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/trailing-block.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/trailing-block.ts @@ -27,14 +27,14 @@ class ArkChildStructComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -73,5 +73,6 @@ content?: () => void, initializers?: ChildStructOptions): void { export interface ParentStructOptions { } export interface ChildStructOptions { + /** @memo */ content?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/arkts/spec/@builderParam.ts b/arkoala/ets-plugin/test/golden/arkts/spec/@builderParam.ts index 039117e9a..e8655bdeb 100644 --- a/arkoala/ets-plugin/test/golden/arkts/spec/@builderParam.ts +++ b/arkoala/ets-plugin/test/golden/arkts/spec/@builderParam.ts @@ -16,7 +16,7 @@ class ArkCustomContainerComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -41,7 +41,7 @@ class ArkCustomContainerComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -239,12 +239,15 @@ content?: () => void, initializers?: CustomContainerUserOptions): void { } export interface CustomContainerOptions { header?: string; + /** @memo */ content?: () => void; + /** @memo */ callContent?: any; footer?: string; } export interface CustomContainer2Options { header?: string; + /** @memo */ content?: () => void; } export interface CustomContainerUserOptions { diff --git a/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/TestComponent.ts b/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/TestComponent.ts index d3095acd6..f91b1eec5 100644 --- a/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/TestComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/TestComponent.ts @@ -36,7 +36,7 @@ export class ArkCustomContainerExportComponent extends ArkStructBase void; /** @memo */ private get closer(): () => void { - return this.__backing_closer as () => void; + return this.__backing_closer!; } private set closer(/**/ /** @memo */ @@ -100,5 +100,6 @@ export interface TestComponentOptions { } export interface CustomContainerExportOptions { header?: string; + /** @memo */ closer?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/PropertyDeps.ts b/arkoala/ets-plugin/test/golden/koala/ets/PropertyDeps.ts index 4d9471ab3..ccf7c4664 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/PropertyDeps.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/PropertyDeps.ts @@ -230,43 +230,6 @@ class ArkStateToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StateToBuilderParamOptions): void { - this.__backing_state = stateOf(initializers?.state ?? ('Hello World'), this); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StateToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStateToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -546,47 +509,6 @@ class ArkPropToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PropToBuilderParamOptions): void { - this.__backing_state = propState('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __updateStruct(initializers: PropToBuilderParamOptions | undefined): void { - this.__backing_state?.update(initializers?.state); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PropToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkPropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -851,43 +773,6 @@ class ArkProvideToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: ProvideToBuilderParamOptions): void { - this.__backing_state = initializers!.__backing_state!; - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: ProvideToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkProvideToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1148,43 +1033,6 @@ class ArkStorageLinkToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StorageLinkToBuilderParamOptions): void { - this.__backing_state = AppStorageLinkState("key", 'Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StorageLinkToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStorageLinkToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1445,43 +1293,6 @@ class ArkLocalStorageLinkToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions): void { - this.__backing_state = StorageLinkState(this._entry_local_storage_, "key", 'Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: MutableState; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkLocalStorageLinkToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -1761,47 +1572,6 @@ class ArkStoragePropToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: StoragePropToBuilderParamOptions): void { - this.__backing_state = propState(AppStorageLinkState("key", 'Hello World').value); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; - } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __updateStruct(initializers: StoragePropToBuilderParamOptions | undefined): void { - this.__backing_state?.update(AppStorageLinkState("key", 'Hello World').value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: StoragePropToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkStoragePropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -2085,15 +1855,13 @@ class ArkLocalStoragePropToLocalStoragePropComponent extends ArkStructBase { +class ArkLocalStoragePropToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions): void { + content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { this.__backing_state = propState(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; } private __backing_state?: SyncedProperty; private get state(): string { @@ -2102,19 +1870,15 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase(this._entry_local_storage_, "key", 'Hello World').value); } /** @memo */ @@ -2122,64 +1886,127 @@ class ArkLocalStoragePropToBuilderParamComponent extends ArkStructBase void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions) { + content?: () => void, initializers?: LocalStoragePropToPlainOptions) { ArkText(__builder, undefined, this.test); } } -class ArkLocalStoragePropToPlainComponent extends ArkStructBase { +class ArkBuilderToBuilderParamComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { - this.__backing_state = propState(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); - this.__backing_test = initializers?.test ?? (this.state + "!"); + content?: () => void, initializers?: BuilderToBuilderParamOptions): void { + this.__backing_builderParam = initializers?.builderParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + this.__backing_anotherParam = initializers?.anotherParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + if (this.__backing_builderParam === undefined && content !== undefined) + this.__backing_builderParam = content; } - private __backing_state?: SyncedProperty; - private get state(): string { - return this.__backing_state!.value; + /** @memo */ + private __backing_builderParam?: () => void; + /** @memo */ + private get builderParam(): () => void { + return this.__backing_builderParam!; } - private set state(value: string) { - this.__backing_state!.value = observableProxy(value); + private set builderParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_builderParam = value; } - private __backing_test?: string; - private get test(): string { - return this.__backing_test as string; + /** @memo */ + private __backing_anotherParam?: () => void; + /** @memo */ + private get anotherParam(): () => void { + return this.__backing_anotherParam!; } - private set test(value: string) { - this.__backing_test = value; + private set anotherParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_anotherParam = value; } /** @memo */ - __updateStruct(initializers: LocalStoragePropToPlainOptions | undefined): void { - this.__backing_state?.update(StorageLinkState(this._entry_local_storage_, "key", 'Hello World').value); + builder() { } + /** @memo */ + __build(/**/ + /** @memo */ + __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: BuilderToBuilderParamOptions) { + this.builderParam(); + BuilderToBuilderParam(undefined, undefined, { builderParam: this.anotherParam } as BuilderToBuilderParamOptions); + } +} +class ArkBuilderParamToBuilderParamComponent extends ArkStructBase { + private _entry_local_storage_ = new LocalStorage(); + __initializeStruct(/**/ + /** @memo */ + content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { + this.__backing_builderParam = initializers?.builderParam ?? (/**/ + /** @memo */ + () => { + this.builder(); + }); + this.__backing_anotherParam = initializers?.anotherParam ?? (/**/ + /** @memo */ + () => { + this.builderParam(); + }); + if (this.__backing_builderParam === undefined && content !== undefined) + this.__backing_builderParam = content; + } + /** @memo */ + private __backing_builderParam?: () => void; + /** @memo */ + private get builderParam(): () => void { + return this.__backing_builderParam!; + } + private set builderParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_builderParam = value; + } + /** @memo */ + private __backing_anotherParam?: () => void; + /** @memo */ + private get anotherParam(): () => void { + return this.__backing_anotherParam!; } + private set anotherParam(/**/ + /** @memo */ + value: () => void) { + this.__backing_anotherParam = value; + } + /** @memo */ + builder() { } /** @memo */ __build(/**/ /** @memo */ __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: LocalStoragePropToPlainOptions) { - ArkText(__builder, undefined, this.test); + content?: () => void, initializers?: BuilderParamToBuilderParamOptions) { + this.anotherBuilderParam(); + BuilderToBuilderParam(undefined, undefined, { anotherParam: this.anotherParam } as BuilderToBuilderParamOptions); } } -class ArkBuilderParamToStateComponent extends ArkStructBase { +class ArkPlainToStateComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToStateOptions): void { + content?: () => void, initializers?: PlainToStateOptions): void { this.__backing_state = initializers?.state ?? ('Hello World'); this.__backing_test = stateOf(initializers?.test ?? (this.state + "!"), this); - if (!this.__backing_state && content) - this.__backing_state = content; } - /** @memo */ private __backing_state?: string; - /** @memo */ private get state(): string { return this.__backing_state as string; } - private set state(/**/ - /** @memo */ - value: string) { + private set state(value: string) { this.__backing_state = value; } private __backing_test?: MutableState; @@ -2194,29 +2021,23 @@ class ArkBuilderParamToStateComponent extends ArkStructBase void) | undefined, /**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToStateOptions) { + content?: () => void, initializers?: PlainToStateOptions) { ArkText(__builder, undefined, this.test); } } -class ArkBuilderParamToPropComponent extends ArkStructBase { +class ArkPlainToPropComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ /** @memo */ - content?: () => void, initializers?: BuilderParamToPropOptions): void { + content?: () => void, initializers?: PlainToPropOptions): void { this.__backing_state = initializers?.state ?? ('Hello World'); this.__backing_test = propState(this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; } - /** @memo */ private __backing_state?: string; - /** @memo */ private get state(): string { return this.__backing_state as string; } - private set state(/**/ - /** @memo */ - value: string) { + private set state(value: string) { this.__backing_state = value; } private __backing_test?: SyncedProperty; @@ -2227,344 +2048,7 @@ class ArkBuilderParamToPropComponent extends ArkStructBase void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToProvideComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToProvideOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers!.__backing_test!; - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToProvideOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToStorageLinkComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStorageLinkOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = AppStorageLinkState("test", this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStorageLinkOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToLocalStorageLinkComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = StorageLinkState(this._entry_local_storage_, "test", this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStoragePropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(AppStorageLinkState("test", this.state + "!").value); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: BuilderParamToStoragePropOptions | undefined): void { - this.__backing_test?.update(AppStorageLinkState("test", this.state + "!").value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToStoragePropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(StorageLinkState(this._entry_local_storage_, "test", this.state + "!").value); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: BuilderParamToLocalStoragePropOptions | undefined): void { - this.__backing_test?.update(StorageLinkState(this._entry_local_storage_, "test", this.state + "!").value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToBuilderParamComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkBuilderParamToPlainComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPlainOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_state && content) - this.__backing_state = content; - } - /** @memo */ - private __backing_state?: string; - /** @memo */ - private get state(): string { - return this.__backing_state as string; - } - private set state(/**/ - /** @memo */ - value: string) { - this.__backing_state = value; - } - private __backing_test?: string; - private get test(): string { - return this.__backing_test as string; - } - private set test(value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: BuilderParamToPlainOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkPlainToStateComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToStateOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = stateOf(initializers?.test ?? (this.state + "!"), this); - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - private __backing_test?: MutableState; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PlainToStateOptions) { - ArkText(__builder, undefined, this.test); - } -} -class ArkPlainToPropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToPropOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = propState(this.state + "!"); - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - private __backing_test?: SyncedProperty; - private get test(): string { - return this.__backing_test!.value; - } - private set test(value: string) { - this.__backing_test!.value = observableProxy(value); - } - /** @memo */ - __updateStruct(initializers: PlainToPropOptions | undefined): void { + __updateStruct(initializers: PlainToPropOptions | undefined): void { this.__backing_test?.update(initializers?.test); } /** @memo */ @@ -2739,43 +2223,6 @@ class ArkPlainToLocalStoragePropComponent extends ArkStructBase { - private _entry_local_storage_ = new LocalStorage(); - __initializeStruct(/**/ - /** @memo */ - content?: () => void, initializers?: PlainToBuilderParamOptions): void { - this.__backing_state = initializers?.state ?? ('Hello World'); - this.__backing_test = initializers?.test ?? (this.state + "!"); - if (!this.__backing_test && content) - this.__backing_test = content; - } - private __backing_state?: string; - private get state(): string { - return this.__backing_state as string; - } - private set state(value: string) { - this.__backing_state = value; - } - /** @memo */ - private __backing_test?: string; - /** @memo */ - private get test(): string { - return this.__backing_test as string; - } - private set test(/**/ - /** @memo */ - value: string) { - this.__backing_test = value; - } - /** @memo */ - __build(/**/ - /** @memo */ - __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ - /** @memo */ - content?: () => void, initializers?: PlainToBuilderParamOptions) { - ArkText(__builder, undefined, this.test); - } -} class ArkPlainToPlainComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -2894,18 +2341,6 @@ content?: () => void, initializers?: StateToLocalStoragePropOptions): void { ArkStateToLocalStoragePropComponent._instantiate(style, () => new ArkStateToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StateToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StateToBuilderParamOptions): void { - const updatedInitializers: StateToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStateToBuilderParamComponent._instantiate(style, () => new ArkStateToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StateToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3011,19 +2446,6 @@ content?: () => void, initializers?: PropToLocalStoragePropOptions): void { ArkPropToLocalStoragePropComponent._instantiate(style, () => new ArkPropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function PropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: PropToBuilderParamOptions): void { - const updatedInitializers: PropToBuilderParamOptions = { - state: initializers?.state, - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkPropToBuilderParamComponent._instantiate(style, () => new ArkPropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function PropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3130,19 +2552,6 @@ content?: () => void, initializers?: ProvideToLocalStoragePropOptions): void { ArkProvideToLocalStoragePropComponent._instantiate(style, () => new ArkProvideToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function ProvideToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: ProvideToBuilderParamOptions): void { - const __provide_state = contextLocalStateOf("state", () => 'Hello World'); - const updatedInitializers: ProvideToBuilderParamOptions = { - __backing_state: __provide_state, - test: initializers?.test - }; - ArkProvideToBuilderParamComponent._instantiate(style, () => new ArkProvideToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function ProvideToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3242,18 +2651,6 @@ content?: () => void, initializers?: StorageLinkToLocalStoragePropOptions): void ArkStorageLinkToLocalStoragePropComponent._instantiate(style, () => new ArkStorageLinkToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StorageLinkToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StorageLinkToBuilderParamOptions): void { - const updatedInitializers: StorageLinkToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStorageLinkToBuilderParamComponent._instantiate(style, () => new ArkStorageLinkToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StorageLinkToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3352,18 +2749,6 @@ content?: () => void, initializers?: LocalStorageLinkToLocalStoragePropOptions): ArkLocalStorageLinkToLocalStoragePropComponent._instantiate(style, () => new ArkLocalStorageLinkToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function LocalStorageLinkToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: LocalStorageLinkToBuilderParamOptions): void { - const updatedInitializers: LocalStorageLinkToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkLocalStorageLinkToBuilderParamComponent._instantiate(style, () => new ArkLocalStorageLinkToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function LocalStorageLinkToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3462,18 +2847,6 @@ content?: () => void, initializers?: StoragePropToLocalStoragePropOptions): void ArkStoragePropToLocalStoragePropComponent._instantiate(style, () => new ArkStoragePropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function StoragePropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: StoragePropToBuilderParamOptions): void { - const updatedInitializers: StoragePropToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkStoragePropToBuilderParamComponent._instantiate(style, () => new ArkStoragePropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function StoragePropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3572,18 +2945,6 @@ content?: () => void, initializers?: LocalStoragePropToLocalStoragePropOptions): ArkLocalStoragePropToLocalStoragePropComponent._instantiate(style, () => new ArkLocalStoragePropToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function LocalStoragePropToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: LocalStoragePropToBuilderParamOptions): void { - const updatedInitializers: LocalStoragePropToBuilderParamOptions = { - __backing_state: initializers?.__backing_state, - test: initializers?.test - }; - ArkLocalStoragePropToBuilderParamComponent._instantiate(style, () => new ArkLocalStoragePropToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function LocalStoragePropToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3596,90 +2957,16 @@ content?: () => void, initializers?: LocalStoragePropToPlainOptions): void { ArkLocalStoragePropToPlainComponent._instantiate(style, () => new ArkLocalStoragePropToPlainComponent, content, updatedInitializers); } /** @memo */ -export function BuilderParamToState(/**/ +export function BuilderToBuilderParam(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ /** @memo */ -content?: () => void, initializers?: BuilderParamToStateOptions): void { - const updatedInitializers: BuilderParamToStateOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test +content?: () => void, initializers?: BuilderToBuilderParamOptions): void { + const updatedInitializers: BuilderToBuilderParamOptions = { + builderParam: initializers?.builderParam, + anotherParam: initializers?.anotherParam }; - ArkBuilderParamToStateComponent._instantiate(style, () => new ArkBuilderParamToStateComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToPropOptions): void { - const updatedInitializers: BuilderParamToPropOptions = { - state: initializers?.state, - test: initializers?.test, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToPropComponent._instantiate(style, () => new ArkBuilderParamToPropComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToProvide(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToProvideOptions): void { - const __provide_test = contextLocalStateOf("test", () => this.state + "!"); - const updatedInitializers: BuilderParamToProvideOptions = { - state: initializers?.state, - __backing_test: __provide_test - }; - ArkBuilderParamToProvideComponent._instantiate(style, () => new ArkBuilderParamToProvideComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToStorageLink(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToStorageLinkOptions): void { - const updatedInitializers: BuilderParamToStorageLinkOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToStorageLinkComponent._instantiate(style, () => new ArkBuilderParamToStorageLinkComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToLocalStorageLink(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToLocalStorageLinkOptions): void { - const updatedInitializers: BuilderParamToLocalStorageLinkOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToLocalStorageLinkComponent._instantiate(style, () => new ArkBuilderParamToLocalStorageLinkComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToStorageProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToStoragePropOptions): void { - const updatedInitializers: BuilderParamToStoragePropOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToStoragePropComponent._instantiate(style, () => new ArkBuilderParamToStoragePropComponent, content, updatedInitializers); -} -/** @memo */ -export function BuilderParamToLocalStorageProp(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToLocalStoragePropOptions): void { - const updatedInitializers: BuilderParamToLocalStoragePropOptions = { - state: initializers?.state, - __backing_test: initializers?.__backing_test - }; - ArkBuilderParamToLocalStoragePropComponent._instantiate(style, () => new ArkBuilderParamToLocalStoragePropComponent, content, updatedInitializers); + ArkBuilderToBuilderParamComponent._instantiate(style, () => new ArkBuilderToBuilderParamComponent, content, updatedInitializers); } /** @memo */ export function BuilderParamToBuilderParam(/**/ @@ -3688,24 +2975,12 @@ style?: (__instance: ArkCommonMethodComponent) => void, /**/ /** @memo */ content?: () => void, initializers?: BuilderParamToBuilderParamOptions): void { const updatedInitializers: BuilderParamToBuilderParamOptions = { - state: initializers?.state, - test: initializers?.test + builderParam: initializers?.builderParam, + anotherParam: initializers?.anotherParam }; ArkBuilderParamToBuilderParamComponent._instantiate(style, () => new ArkBuilderParamToBuilderParamComponent, content, updatedInitializers); } /** @memo */ -export function BuilderParamToPlain(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: BuilderParamToPlainOptions): void { - const updatedInitializers: BuilderParamToPlainOptions = { - state: initializers?.state, - test: initializers?.test - }; - ArkBuilderParamToPlainComponent._instantiate(style, () => new ArkBuilderParamToPlainComponent, content, updatedInitializers); -} -/** @memo */ export function PlainToState(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3792,18 +3067,6 @@ content?: () => void, initializers?: PlainToLocalStoragePropOptions): void { ArkPlainToLocalStoragePropComponent._instantiate(style, () => new ArkPlainToLocalStoragePropComponent, content, updatedInitializers); } /** @memo */ -export function PlainToBuilderParam(/**/ -/** @memo */ -style?: (__instance: ArkCommonMethodComponent) => void, /**/ -/** @memo */ -content?: () => void, initializers?: PlainToBuilderParamOptions): void { - const updatedInitializers: PlainToBuilderParamOptions = { - state: initializers?.state, - test: initializers?.test - }; - ArkPlainToBuilderParamComponent._instantiate(style, () => new ArkPlainToBuilderParamComponent, content, updatedInitializers); -} -/** @memo */ export function PlainToPlain(/**/ /** @memo */ style?: (__instance: ArkCommonMethodComponent) => void, /**/ @@ -3857,11 +3120,6 @@ export interface StateToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StateToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface StateToPlainOptions { __backing_state?: MutableState; state?: string; @@ -3909,11 +3167,6 @@ export interface PropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface PropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface PropToPlainOptions { __backing_state?: SyncedProperty; state?: string; @@ -3961,11 +3214,6 @@ export interface ProvideToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface ProvideToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface ProvideToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4013,11 +3261,6 @@ export interface StorageLinkToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StorageLinkToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface StorageLinkToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4065,11 +3308,6 @@ export interface LocalStorageLinkToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface LocalStorageLinkToBuilderParamOptions { - __backing_state?: MutableState; - state?: string; - test?: string; -} export interface LocalStorageLinkToPlainOptions { __backing_state?: MutableState; state?: string; @@ -4117,11 +3355,6 @@ export interface StoragePropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface StoragePropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface StoragePropToPlainOptions { __backing_state?: SyncedProperty; state?: string; @@ -4169,58 +3402,22 @@ export interface LocalStoragePropToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface LocalStoragePropToBuilderParamOptions { - __backing_state?: SyncedProperty; - state?: string; - test?: string; -} export interface LocalStoragePropToPlainOptions { __backing_state?: SyncedProperty; state?: string; test?: string; } -export interface BuilderParamToStateOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToPropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; -} -export interface BuilderParamToProvideOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToStorageLinkOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToLocalStorageLinkOptions { - state?: string; - __backing_test?: MutableState; - test?: string; -} -export interface BuilderParamToStoragePropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; -} -export interface BuilderParamToLocalStoragePropOptions { - state?: string; - __backing_test?: SyncedProperty; - test?: string; +export interface BuilderToBuilderParamOptions { + /** @memo */ + builderParam?: () => void; + /** @memo */ + anotherParam?: () => void; } export interface BuilderParamToBuilderParamOptions { - state?: string; - test?: string; -} -export interface BuilderParamToPlainOptions { - state?: string; - test?: string; + /** @memo */ + builderParam?: () => void; + /** @memo */ + anotherParam?: () => void; } export interface PlainToStateOptions { state?: string; @@ -4257,10 +3454,6 @@ export interface PlainToLocalStoragePropOptions { __backing_test?: SyncedProperty; test?: string; } -export interface PlainToBuilderParamOptions { - state?: string; - test?: string; -} export interface PlainToPlainOptions { state?: string; test?: string; diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts index 3a3d275ca..c05169dbb 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts @@ -1,7 +1,7 @@ import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; -import { Observed, observableProxy } from "@koalaui/common"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { MutableState, OnChange, contextLocal } from "@koalaui/runtime"; +import { Observed, observableProxy } from "@koalaui/common"; export class ArkEntryExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ @@ -241,14 +241,14 @@ class ArkBuilderParamExampleComponent extends ArkStructBase {}; /** @memo */ private get foo(): () => {} { - return this.__backing_foo as () => {}; + return this.__backing_foo!; } private set foo(/**/ /** @memo */ @@ -1007,6 +1007,7 @@ export interface BuilderExampleOptions { export interface GlobalBuilderExampleOptions { } export interface BuilderParamExampleOptions { + /** @memo */ foo?: () => {}; } export interface StylesExampleOptions { diff --git a/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts b/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts index f89ee50b4..930636e1e 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/ets-component-call/user-function-declaration.ts @@ -49,7 +49,7 @@ export class ArkStructWithContentComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -107,5 +107,6 @@ export interface StructOptions { } export interface StructWithContentOptions { param?: number; + /** @memo */ content?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts b/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts index 3bf945d18..15a2960dd 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/trailing-block.ts @@ -26,14 +26,14 @@ class ArkChildStructComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -72,5 +72,6 @@ content?: () => void, initializers?: ChildStructOptions): void { export interface ParentStructOptions { } export interface ChildStructOptions { + /** @memo */ content?: () => void; } diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts index c388b318a..fe3d6a4ab 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builderParam.ts @@ -16,7 +16,7 @@ class ArkCustomContainerComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -41,7 +41,7 @@ class ArkCustomContainerComponent extends ArkStructBase void; /** @memo */ private get content(): () => void { - return this.__backing_content as () => void; + return this.__backing_content!; } private set content(/**/ /** @memo */ @@ -239,12 +239,15 @@ content?: () => void, initializers?: CustomContainerUserOptions): void { } export interface CustomContainerOptions { header?: string; + /** @memo */ content?: () => void; + /** @memo */ callContent?: any; footer?: string; } export interface CustomContainer2Options { header?: string; + /** @memo */ content?: () => void; } export interface CustomContainerUserOptions { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts index 41c526c22..b3c4f5f03 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/TestComponent.ts @@ -35,7 +35,7 @@ export class ArkCustomContainerExportComponent extends ArkStructBase void; /** @memo */ private get closer(): () => void { - return this.__backing_closer as () => void; + return this.__backing_closer!; } private set closer(/**/ /** @memo */ @@ -99,5 +99,6 @@ export interface TestComponentOptions { } export interface CustomContainerExportOptions { header?: string; + /** @memo */ closer?: () => void; } -- Gitee From 3587a5ad0776238af1351490dbbe7ba63680261c Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Fri, 14 Feb 2025 17:27:15 +0000 Subject: [PATCH 16/40] !1837 libarkts: static create --- arkoala-arkts/libarkts/package.json | 2 +- .../libarkts/src/generated/peers/AnnotationDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts | 2 +- .../libarkts/src/generated/peers/ArrowFunctionExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts | 2 +- .../libarkts/src/generated/peers/ConditionalExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/Decorator.ts | 2 +- .../libarkts/src/generated/peers/DirectEvalExpression.ts | 2 +- .../libarkts/src/generated/peers/ETSLaunchExpression.ts | 2 +- .../src/generated/peers/ETSNewClassInstanceExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts | 2 +- .../libarkts/src/generated/peers/ETSPackageDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts | 2 +- .../libarkts/src/generated/peers/ETSStructDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts | 2 +- .../libarkts/src/generated/peers/ETSTypeReferencePart.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts | 2 +- .../libarkts/src/generated/peers/ExportAllDeclaration.ts | 2 +- .../libarkts/src/generated/peers/ExportDefaultDeclaration.ts | 2 +- .../libarkts/src/generated/peers/ExportNamedDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts | 2 +- .../libarkts/src/generated/peers/ExpressionStatement.ts | 2 +- .../libarkts/src/generated/peers/FunctionDeclaration.ts | 2 +- .../libarkts/src/generated/peers/FunctionExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/Identifier.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts | 2 +- .../libarkts/src/generated/peers/ImportDefaultSpecifier.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts | 2 +- .../libarkts/src/generated/peers/ImportNamespaceSpecifier.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/NamedType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/Property.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts | 2 +- .../libarkts/src/generated/peers/SequenceExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts | 2 +- .../libarkts/src/generated/peers/TSExternalModuleReference.ts | 2 +- .../libarkts/src/generated/peers/TSImportEqualsDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts | 2 +- .../libarkts/src/generated/peers/TSInterfaceDeclaration.ts | 2 +- .../libarkts/src/generated/peers/TSIntersectionType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts | 2 +- .../libarkts/src/generated/peers/TSNonNullExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts | 2 +- .../libarkts/src/generated/peers/TSParameterProperty.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts | 2 +- .../libarkts/src/generated/peers/TSTypeParameterDeclaration.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts | 2 +- .../libarkts/src/generated/peers/TSUndefinedKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts | 2 +- .../libarkts/src/generated/peers/TaggedTemplateExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts | 2 +- .../libarkts/src/generated/peers/VariableDeclaration.ts | 2 +- .../libarkts/src/generated/peers/VariableDeclarator.ts | 2 +- arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts | 2 +- 104 files changed, 104 insertions(+), 104 deletions(-) diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index c5edbbda6..85e51119f 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,7 +11,7 @@ "./build/*" ], "config": { - "gen_version": "3.0.11", + "gen_version": "3.0.15", "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/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index 2951971c4..4b7023061 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -33,7 +33,7 @@ export class AnnotationDeclaration extends Statement { super(pointer) console.warn("Warning: stub node AnnotationDeclaration") } - createAnnotationDeclaration(expr: Expression): AnnotationDeclaration { + static createAnnotationDeclaration(expr: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration(global.context, passNode(expr))) } get internalNameConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index a5daeeb65..2388e4afa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -33,7 +33,7 @@ export class AnnotationUsage extends Statement { super(pointer) console.warn("Warning: stub node AnnotationUsage") } - createAnnotationUsage(expr: Expression): AnnotationUsage { + static createAnnotationUsage(expr: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr(global.context, passNode(expr))) } get expr(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 0bde39276..03b58f7c0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -33,7 +33,7 @@ export class ArrowFunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node ArrowFunctionExpression") } - createArrowFunctionExpression(func: ScriptFunction): ArrowFunctionExpression { + static createArrowFunctionExpression(func: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func))) } get functionConst(): ScriptFunction { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index e7496b8f6..828b19735 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -33,7 +33,7 @@ export class AssertStatement extends Statement { super(pointer) console.warn("Warning: stub node AssertStatement") } - createAssertStatement(test: Expression, second: Expression): AssertStatement { + static createAssertStatement(test: Expression, second: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second))) } get testConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index 4288b413c..d8edc4708 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -32,7 +32,7 @@ export class AwaitExpression extends Expression { super(pointer) console.warn("Warning: stub node AwaitExpression") } - createAwaitExpression(argument: Expression): AwaitExpression { + static createAwaitExpression(argument: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument))) } get argumentConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index dbdbfbd81..3cc4e2b3d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -32,7 +32,7 @@ export class BigIntLiteral extends Literal { super(pointer) console.warn("Warning: stub node BigIntLiteral") } - createBigIntLiteral(src: string): BigIntLiteral { + static createBigIntLiteral(src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src)) } get strConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index 5c812488b..4fa0f31d7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -33,7 +33,7 @@ export class BinaryExpression extends Expression { super(pointer) console.warn("Warning: stub node BinaryExpression") } - createBinaryExpression(left: Expression, right: Expression, operatorType: Es2pandaTokenType): BinaryExpression { + static createBinaryExpression(left: Expression, right: Expression, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType)) } get leftConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index d796d1d04..114865635 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -32,7 +32,7 @@ export class BooleanLiteral extends Literal { super(pointer) console.warn("Warning: stub node BooleanLiteral") } - createBooleanLiteral(value: boolean): BooleanLiteral { + static createBooleanLiteral(value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value)) } get valueConst(): boolean { diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index e637be489..d66f4ccd4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -33,7 +33,7 @@ export class BreakStatement extends Statement { super(pointer) console.warn("Warning: stub node BreakStatement") } - createBreakStatement(): BreakStatement { + static createBreakStatement(): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement(global.context)) } get identConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index a8d899e3f..fd6025514 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -35,7 +35,7 @@ export class CallExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node CallExpression") } - createCallExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, optional_arg: boolean, trailingComma: boolean): CallExpression { + static createCallExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, optional_arg: boolean, trailingComma: boolean): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, trailingComma)) } get calleeConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index ccaa905c3..c50d4e896 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -34,7 +34,7 @@ export class CatchClause extends TypedStatement { super(pointer) console.warn("Warning: stub node CatchClause") } - createCatchClause(param: Expression, body: BlockStatement): CatchClause { + static createCatchClause(param: Expression, body: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body))) } get param(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index 9f87c3be4..319a5a38a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -32,7 +32,7 @@ export class ChainExpression extends Expression { super(pointer) console.warn("Warning: stub node ChainExpression") } - createChainExpression(expression: Expression): ChainExpression { + static createChainExpression(expression: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression))) } get getExpressionConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index eae6038b3..3b7818a1a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -32,7 +32,7 @@ export class CharLiteral extends Literal { super(pointer) console.warn("Warning: stub node CharLiteral") } - createCharLiteral(): CharLiteral { + static createCharLiteral(): CharLiteral { return new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 616eb5e4b..335c9cca3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -34,7 +34,7 @@ export class ClassDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ClassDeclaration") } - createClassDeclaration(def: ClassDefinition): ClassDeclaration { + static createClassDeclaration(def: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def))) } get definition(): ClassDefinition { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index 001a8e6cb..4c353237f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -42,7 +42,7 @@ export class ClassDefinition extends TypedAstNode { super(pointer) console.warn("Warning: stub node ClassDefinition") } - createClassDefinition(ident: Identifier, typeParams: TSTypeParameterDeclaration, superTypeParams: TSTypeParameterInstantiation, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition, superClass: Expression, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { + static createClassDefinition(ident: Identifier, typeParams: TSTypeParameterDeclaration, superTypeParams: TSTypeParameterInstantiation, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition, superClass: Expression, 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)) } get identConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index 47ec06b62..fefb50575 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -33,7 +33,7 @@ export class ClassExpression extends Expression { super(pointer) console.warn("Warning: stub node ClassExpression") } - createClassExpression(def: ClassDefinition): ClassExpression { + static createClassExpression(def: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def))) } get definitionConst(): ClassDefinition { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index 2e9107871..79e41caaf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -33,7 +33,7 @@ export class ClassStaticBlock extends ClassElement { super(pointer) console.warn("Warning: stub node ClassStaticBlock") } - createClassStaticBlock(value: Expression): ClassStaticBlock { + static createClassStaticBlock(value: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index 8a6e7cf28..925b9c672 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -32,7 +32,7 @@ export class ConditionalExpression extends Expression { super(pointer) console.warn("Warning: stub node ConditionalExpression") } - createConditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression { + static createConditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate))) } get testConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index d80b60f3b..8e3c9ce6d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -33,7 +33,7 @@ export class ContinueStatement extends Statement { super(pointer) console.warn("Warning: stub node ContinueStatement") } - createContinueStatement(): ContinueStatement { + static createContinueStatement(): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement(global.context)) } get identConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index 9c26521b1..53da51881 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -32,7 +32,7 @@ export class DebuggerStatement extends Statement { super(pointer) console.warn("Warning: stub node DebuggerStatement") } - createDebuggerStatement(): DebuggerStatement { + static createDebuggerStatement(): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index c78b3a4f4..5c986b1f7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -33,7 +33,7 @@ export class Decorator extends Statement { super(pointer) console.warn("Warning: stub node Decorator") } - createDecorator(expr: Expression): Decorator { + static createDecorator(expr: Expression): Decorator { return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))) } get exprConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index 6bbff443c..558c1285f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -34,7 +34,7 @@ export class DirectEvalExpression extends CallExpression { super(pointer) console.warn("Warning: stub node DirectEvalExpression") } - createDirectEvalExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, optional_arg: boolean, parserStatus: number): DirectEvalExpression { + static createDirectEvalExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index a7d84f0ee..f883843e6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -33,7 +33,7 @@ export class ETSLaunchExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSLaunchExpression") } - createETSLaunchExpression(expr: CallExpression): ETSLaunchExpression { + static createETSLaunchExpression(expr: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._CreateETSLaunchExpression(global.context, passNode(expr))) } get callConst(): CallExpression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index d5a48a5d1..5f97e1417 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -32,7 +32,7 @@ export class ETSNewClassInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewClassInstanceExpression") } - createETSNewClassInstanceExpression(typeReference: Expression, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { + static createETSNewClassInstanceExpression(typeReference: Expression, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } get getTypeRefConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index ad6ee013e..978a1e539 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -32,7 +32,7 @@ export class ETSNullType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSNullType") } - createETSNullType(): ETSNullType { + static createETSNullType(): ETSNullType { return new ETSNullType(global.generatedEs2panda._CreateETSNullTypeIr(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index f5c4c45d4..4ad0d38a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -33,7 +33,7 @@ export class ETSPackageDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ETSPackageDeclaration") } - createETSPackageDeclaration(name: Expression): ETSPackageDeclaration { + static createETSPackageDeclaration(name: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._CreateETSPackageDeclaration(global.context, passNode(name))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index c771d687e..b38e567cc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -33,7 +33,7 @@ export class ETSPrimitiveType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSPrimitiveType") } - createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { + static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._CreateETSPrimitiveType(global.context, type)) } get getPrimitiveTypeConst(): Es2pandaPrimitiveType { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index 95c829aa5..dd0a04ca1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -33,7 +33,7 @@ export class ETSStructDeclaration extends ClassDeclaration { super(pointer) console.warn("Warning: stub node ETSStructDeclaration") } - createETSStructDeclaration(def: ClassDefinition): ETSStructDeclaration { + static createETSStructDeclaration(def: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._CreateETSStructDeclaration(global.context, passNode(def))) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index e5440c96a..067f892c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -32,7 +32,7 @@ export class ETSTuple extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTuple") } - createETSTuple(): ETSTuple { + static createETSTuple(): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple(global.context)) } get getTupleSizeConst(): number { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index 42af7432f..726c5accf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -33,7 +33,7 @@ export class ETSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReference") } - createETSTypeReference(part: ETSTypeReferencePart): ETSTypeReference { + static createETSTypeReference(part: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._CreateETSTypeReference(global.context, passNode(part))) } get part(): ETSTypeReferencePart { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index 2735585d1..4db47d37f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -34,7 +34,7 @@ export class ETSTypeReferencePart extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReferencePart") } - createETSTypeReferencePart(name: Expression, typeParams: TSTypeParameterInstantiation, prev: ETSTypeReferencePart): ETSTypeReferencePart { + static createETSTypeReferencePart(name: Expression, typeParams: TSTypeParameterInstantiation, prev: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart(global.context, passNode(name), passNode(typeParams), passNode(prev))) } get previous(): ETSTypeReferencePart { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index 609c63b89..d3474d6e3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -32,7 +32,7 @@ export class ETSUndefinedType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUndefinedType") } - createETSUndefinedType(): ETSUndefinedType { + static createETSUndefinedType(): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._CreateETSUndefinedTypeIr(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index 7d49600bd..34386fb64 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -34,7 +34,7 @@ export class ETSWildcardType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSWildcardType") } - createETSWildcardType(typeReference: ETSTypeReference, flags: Es2pandaModifierFlags): ETSWildcardType { + static createETSWildcardType(typeReference: ETSTypeReference, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._CreateETSWildcardType(global.context, passNode(typeReference), flags)) } get typeReference(): ETSTypeReference { diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index 97d9b3f0f..c870b20f9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -32,7 +32,7 @@ export class EmptyStatement extends Statement { super(pointer) console.warn("Warning: stub node EmptyStatement") } - createEmptyStatement(): EmptyStatement { + static createEmptyStatement(): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._CreateEmptyStatement(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index 85c0886ec..2048971ac 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -34,7 +34,7 @@ export class ExportAllDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportAllDeclaration") } - createExportAllDeclaration(source: StringLiteral, exported: Identifier): ExportAllDeclaration { + static createExportAllDeclaration(source: StringLiteral, exported: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._CreateExportAllDeclaration(global.context, passNode(source), passNode(exported))) } get sourceConst(): StringLiteral { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 9e73c61f3..c8a2e3c4b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -32,7 +32,7 @@ export class ExportDefaultDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportDefaultDeclaration") } - createExportDefaultDeclaration(decl: AstNode, exportEquals: boolean): ExportDefaultDeclaration { + static createExportDefaultDeclaration(decl: AstNode, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._CreateExportDefaultDeclaration(global.context, passNode(decl), exportEquals)) } get decl(): AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index 2cd3d3ff1..959e58005 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -34,7 +34,7 @@ export class ExportNamedDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportNamedDeclaration") } - createExportNamedDeclaration(source: StringLiteral, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { + static createExportNamedDeclaration(source: StringLiteral, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen)) } get declConst(): AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 43d3268c0..64c95c0ab 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -33,7 +33,7 @@ export class ExportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ExportSpecifier") } - createExportSpecifier(local: Identifier, exported: Identifier): ExportSpecifier { + static createExportSpecifier(local: Identifier, exported: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._CreateExportSpecifier(global.context, passNode(local), passNode(exported))) } get localConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index a7a37b351..23352c7c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -33,7 +33,7 @@ export class ExpressionStatement extends Statement { super(pointer) console.warn("Warning: stub node ExpressionStatement") } - createExpressionStatement(expr: Expression): ExpressionStatement { + static createExpressionStatement(expr: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._CreateExpressionStatement(global.context, passNode(expr))) } get getExpressionConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index fe6b7cc04..d6c2f5a09 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -34,7 +34,7 @@ export class FunctionDeclaration extends Statement { super(pointer) console.warn("Warning: stub node FunctionDeclaration") } - createFunctionDeclaration(func: ScriptFunction, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { + static createFunctionDeclaration(func: ScriptFunction, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration(global.context, passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } get function(): ScriptFunction { diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index 677729585..eab65b518 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -34,7 +34,7 @@ export class FunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node FunctionExpression") } - createFunctionExpression(func: ScriptFunction): FunctionExpression { + static createFunctionExpression(func: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression(global.context, passNode(func))) } get functionConst(): ScriptFunction { diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 033bfd35f..02c124ed1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -33,7 +33,7 @@ export class Identifier extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node Identifier") } - createIdentifier(): Identifier { + static createIdentifier(): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier(global.context)) } get nameConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index befe5b7c3..dbbf4a175 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -34,7 +34,7 @@ export class ImportDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ImportDeclaration") } - createImportDeclaration(source: StringLiteral, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { + static createImportDeclaration(source: StringLiteral, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._CreateImportDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } get sourceConst(): StringLiteral { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index 04b12af60..d0e45d18f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -33,7 +33,7 @@ export class ImportDefaultSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportDefaultSpecifier") } - createImportDefaultSpecifier(local: Identifier): ImportDefaultSpecifier { + static createImportDefaultSpecifier(local: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._CreateImportDefaultSpecifier(global.context, passNode(local))) } get localConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index 6dea79c24..6a234d919 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -32,7 +32,7 @@ export class ImportExpression extends Expression { super(pointer) console.warn("Warning: stub node ImportExpression") } - createImportExpression(source: Expression): ImportExpression { + static createImportExpression(source: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._CreateImportExpression(global.context, passNode(source))) } get source(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index 369343db1..c873b9d87 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -33,7 +33,7 @@ export class ImportNamespaceSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportNamespaceSpecifier") } - createImportNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier { + static createImportNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._CreateImportNamespaceSpecifier(global.context, passNode(local))) } get local(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index 7f3dc2071..a79839cc0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -33,7 +33,7 @@ export class ImportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportSpecifier") } - createImportSpecifier(imported: Identifier, local: Identifier): ImportSpecifier { + static createImportSpecifier(imported: Identifier, local: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._CreateImportSpecifier(global.context, passNode(imported), passNode(local))) } get imported(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index 5a161cfa9..1feb7ff56 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -34,7 +34,7 @@ export class MemberExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node MemberExpression") } - createMemberExpression(object_arg: Expression, property: Expression, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { + static createMemberExpression(object_arg: Expression, property: Expression, 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)) } get object(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index 25f8bdc11..2f82be27d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -33,7 +33,7 @@ export class MetaProperty extends Expression { super(pointer) console.warn("Warning: stub node MetaProperty") } - createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { + static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind)) } get kindConst(): Es2pandaMetaPropertyKind { diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index 041332bbf..c290c9e73 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -35,7 +35,7 @@ export class MethodDefinition extends ClassElement { super(pointer) console.warn("Warning: stub node MethodDefinition") } - createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression, value: Expression, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { + static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression, value: Expression, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed)) } get kindConst(): Es2pandaMethodDefinitionKind { diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index 9f526ed50..848b613a9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -34,7 +34,7 @@ export class NamedType extends TypeNode { super(pointer) console.warn("Warning: stub node NamedType") } - createNamedType(name: Identifier): NamedType { + static createNamedType(name: Identifier): NamedType { return new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name))) } get nameConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index 3b9102f74..c664749dd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -32,7 +32,7 @@ export class NewExpression extends Expression { super(pointer) console.warn("Warning: stub node NewExpression") } - createNewExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number): NewExpression { + static createNewExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen)) } get calleeConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index 8a5c36e40..48586853b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -32,7 +32,7 @@ export class NullLiteral extends Literal { super(pointer) console.warn("Warning: stub node NullLiteral") } - createNullLiteral(): NullLiteral { + static createNullLiteral(): NullLiteral { return new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index 7bbba9607..871bfe2be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -32,7 +32,7 @@ export class OmittedExpression extends Expression { super(pointer) console.warn("Warning: stub node OmittedExpression") } - createOmittedExpression(): OmittedExpression { + static createOmittedExpression(): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._CreateOmittedExpression(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index aad38ada6..f6f3362bc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -33,7 +33,7 @@ export class Property extends Expression { super(pointer) console.warn("Warning: stub node Property") } - createProperty(key: Expression, value: Expression): Property { + static createProperty(key: Expression, value: Expression): Property { return new Property(global.generatedEs2panda._CreateProperty(global.context, passNode(key), passNode(value))) } get key(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index 22541eace..5c6035be5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -33,7 +33,7 @@ export class RegExpLiteral extends Literal { super(pointer) console.warn("Warning: stub node RegExpLiteral") } - createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { + static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr)) } get patternConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index 61368fb73..211db2dbd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -33,7 +33,7 @@ export class ReturnStatement extends Statement { super(pointer) console.warn("Warning: stub node ReturnStatement") } - createReturnStatement(): ReturnStatement { + static createReturnStatement(): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement(global.context)) } get argument(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index fdf4b7033..72257e6cb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -32,7 +32,7 @@ export class SequenceExpression extends Expression { super(pointer) console.warn("Warning: stub node SequenceExpression") } - createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { + static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._CreateSequenceExpression(global.context, passNodeArray(sequence_arg), sequenceLen)) } get sequenceConst(): readonly Expression[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index dbd1bc85f..3696d9b4c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -32,7 +32,7 @@ export class SuperExpression extends Expression { super(pointer) console.warn("Warning: stub node SuperExpression") } - createSuperExpression(): SuperExpression { + static createSuperExpression(): SuperExpression { return new SuperExpression(global.generatedEs2panda._CreateSuperExpression(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index 679277fa6..aa34506ad 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -34,7 +34,7 @@ export class SwitchStatement extends Statement { super(pointer) console.warn("Warning: stub node SwitchStatement") } - createSwitchStatement(discriminant: Expression, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { + static createSwitchStatement(discriminant: Expression, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._CreateSwitchStatement(global.context, passNode(discriminant), passNodeArray(cases), casesLen)) } get discriminantConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index 025f76aa6..cfa3ac23d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -32,7 +32,7 @@ export class TSAnyKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSAnyKeyword") } - createTSAnyKeyword(): TSAnyKeyword { + static createTSAnyKeyword(): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._CreateTSAnyKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 0eb4bc1c2..14281301c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -32,7 +32,7 @@ export class TSBigintKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBigintKeyword") } - createTSBigintKeyword(): TSBigintKeyword { + static createTSBigintKeyword(): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._CreateTSBigintKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index dbbb2d45b..2662702ca 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -32,7 +32,7 @@ export class TSBooleanKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBooleanKeyword") } - createTSBooleanKeyword(): TSBooleanKeyword { + static createTSBooleanKeyword(): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._CreateTSBooleanKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index 3aa020694..b470cabeb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -33,7 +33,7 @@ export class TSClassImplements extends Expression { super(pointer) console.warn("Warning: stub node TSClassImplements") } - createTSClassImplements(expression: Expression, typeParameters: TSTypeParameterInstantiation): TSClassImplements { + static createTSClassImplements(expression: Expression, typeParameters: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements(global.context, passNode(expression), passNode(typeParameters))) } get expr(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index 1485e8008..c26defdf3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -33,7 +33,7 @@ export class TSConditionalType extends TypeNode { super(pointer) console.warn("Warning: stub node TSConditionalType") } - createTSConditionalType(checkType: Expression, extendsType: Expression, trueType: Expression, falseType: Expression): TSConditionalType { + 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))) } get checkTypeConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index 9efaff623..7aa229944 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -35,7 +35,7 @@ export class TSEnumDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSEnumDeclaration") } - createTSEnumDeclaration(key: Identifier, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { + static createTSEnumDeclaration(key: Identifier, 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)) } get keyConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index d0cd13ab5..60aa08047 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -33,7 +33,7 @@ export class TSEnumMember extends Statement { super(pointer) console.warn("Warning: stub node TSEnumMember") } - createTSEnumMember(key: Expression, init: Expression): TSEnumMember { + static createTSEnumMember(key: Expression, init: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember(global.context, passNode(key), passNode(init))) } get keyConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index fb2f9566d..9a7288770 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -32,7 +32,7 @@ export class TSExternalModuleReference extends Expression { super(pointer) console.warn("Warning: stub node TSExternalModuleReference") } - createTSExternalModuleReference(expr: Expression): TSExternalModuleReference { + static createTSExternalModuleReference(expr: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._CreateTSExternalModuleReference(global.context, passNode(expr))) } get exprConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 9764c42bd..894ffcebf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -34,7 +34,7 @@ export class TSImportEqualsDeclaration extends Statement { super(pointer) console.warn("Warning: stub node TSImportEqualsDeclaration") } - createTSImportEqualsDeclaration(id: Identifier, moduleReference: Expression, isExport: boolean): TSImportEqualsDeclaration { + static createTSImportEqualsDeclaration(id: Identifier, moduleReference: Expression, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._CreateTSImportEqualsDeclaration(global.context, passNode(id), passNode(moduleReference), isExport)) } get idConst(): Identifier { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index 1b3357a6f..a50a46f60 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -34,7 +34,7 @@ export class TSImportType extends TypeNode { super(pointer) console.warn("Warning: stub node TSImportType") } - createTSImportType(param: Expression, typeParams: TSTypeParameterInstantiation, qualifier: Expression, isTypeof: boolean): TSImportType { + static createTSImportType(param: Expression, typeParams: TSTypeParameterInstantiation, qualifier: Expression, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._CreateTSImportType(global.context, passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } get paramConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index 8927d601e..2ab8dcc52 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -33,7 +33,7 @@ export class TSInferType extends TypeNode { super(pointer) console.warn("Warning: stub node TSInferType") } - createTSInferType(typeParam: TSTypeParameter): TSInferType { + static createTSInferType(typeParam: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._CreateTSInferType(global.context, passNode(typeParam))) } get typeParamConst(): TSTypeParameter { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index cff3cc780..ac7610a88 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -32,7 +32,7 @@ export class TSInterfaceBody extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceBody") } - createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { + static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._CreateTSInterfaceBody(global.context, passNodeArray(body), bodyLen)) } get bodyPtr(): readonly AstNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index 3b24730ac..47b745aff 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -38,7 +38,7 @@ export class TSInterfaceDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSInterfaceDeclaration") } - createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode, typeParams: AstNode, body: AstNode, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { + static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode, typeParams: AstNode, body: AstNode, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._CreateTSInterfaceDeclaration(global.context, passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } get body(): TSInterfaceBody { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index 75f2b5f6b..31f318547 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -33,7 +33,7 @@ export class TSIntersectionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIntersectionType") } - createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { + static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._CreateTSIntersectionType(global.context, passNodeArray(types), typesLen)) } get typesConst(): readonly Expression[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index 9b6ada3ee..480fd3f48 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -33,7 +33,7 @@ export class TSLiteralType extends TypeNode { super(pointer) console.warn("Warning: stub node TSLiteralType") } - createTSLiteralType(literal: Expression): TSLiteralType { + static createTSLiteralType(literal: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._CreateTSLiteralType(global.context, passNode(literal))) } get literalConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index 8b2ba92b2..c7a41a5b9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -32,7 +32,7 @@ export class TSNeverKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNeverKeyword") } - createTSNeverKeyword(): TSNeverKeyword { + static createTSNeverKeyword(): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._CreateTSNeverKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index 38b9b76f2..8482215fc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -32,7 +32,7 @@ export class TSNonNullExpression extends Expression { super(pointer) console.warn("Warning: stub node TSNonNullExpression") } - createTSNonNullExpression(expr: Expression): TSNonNullExpression { + static createTSNonNullExpression(expr: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._CreateTSNonNullExpression(global.context, passNode(expr))) } get exprConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index 9a433b198..5f46bbe04 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -32,7 +32,7 @@ export class TSNullKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNullKeyword") } - createTSNullKeyword(): TSNullKeyword { + static createTSNullKeyword(): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._CreateTSNullKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 9e2bd3992..5e4ca1900 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -32,7 +32,7 @@ export class TSNumberKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNumberKeyword") } - createTSNumberKeyword(): TSNumberKeyword { + static createTSNumberKeyword(): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._CreateTSNumberKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index aa088ba6f..196d428c9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -32,7 +32,7 @@ export class TSObjectKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSObjectKeyword") } - createTSObjectKeyword(): TSObjectKeyword { + static createTSObjectKeyword(): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._CreateTSObjectKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index e3c78ee5c..ac29fd421 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -33,7 +33,7 @@ export class TSParameterProperty extends Expression { super(pointer) console.warn("Warning: stub node TSParameterProperty") } - createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { + static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._CreateTSParameterProperty(global.context, accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } get accessibilityConst(): Es2pandaAccessibilityOption { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index 754a8f5f8..127450726 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -33,7 +33,7 @@ export class TSQualifiedName extends Expression { super(pointer) console.warn("Warning: stub node TSQualifiedName") } - createTSQualifiedName(left: Expression, right: Identifier): TSQualifiedName { + static createTSQualifiedName(left: Expression, right: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._CreateTSQualifiedName(global.context, passNode(left), passNode(right))) } get leftConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index 155d03c9a..2bf112d87 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -32,7 +32,7 @@ export class TSStringKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSStringKeyword") } - createTSStringKeyword(): TSStringKeyword { + static createTSStringKeyword(): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._CreateTSStringKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index 6ef443d5d..cfc74214a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -32,7 +32,7 @@ export class TSThisType extends TypeNode { super(pointer) console.warn("Warning: stub node TSThisType") } - createTSThisType(): TSThisType { + static createTSThisType(): TSThisType { return new TSThisType(global.generatedEs2panda._CreateTSThisType(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index ae2465a62..4a6d6712e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -32,7 +32,7 @@ export class TSTypeLiteral extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeLiteral") } - createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { + static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._CreateTSTypeLiteral(global.context, passNodeArray(members), membersLen)) } get membersConst(): readonly AstNode[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 2d5122c6c..7eab9848d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -33,7 +33,7 @@ export class TSTypeParameterDeclaration extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterDeclaration") } - createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { + static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._CreateTSTypeParameterDeclaration(global.context, passNodeArray(params), paramsLen, requiredParams)) } get paramsConst(): readonly TSTypeParameter[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index dcfd22545..41f275d63 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -33,7 +33,7 @@ export class TSTypeQuery extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeQuery") } - createTSTypeQuery(exprName: Expression): TSTypeQuery { + static createTSTypeQuery(exprName: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._CreateTSTypeQuery(global.context, passNode(exprName))) } get exprNameConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index f238c4433..bccb5c595 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -34,7 +34,7 @@ export class TSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeReference") } - createTSTypeReference(typeName: Expression, typeParams: TSTypeParameterInstantiation): TSTypeReference { + static createTSTypeReference(typeName: Expression, typeParams: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._CreateTSTypeReference(global.context, passNode(typeName), passNode(typeParams))) } get typeParamsConst(): TSTypeParameterInstantiation { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 21436bd73..9017d5f33 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -32,7 +32,7 @@ export class TSUndefinedKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUndefinedKeyword") } - createTSUndefinedKeyword(): TSUndefinedKeyword { + static createTSUndefinedKeyword(): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._CreateTSUndefinedKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index 613e0c4f9..640aeb1d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -32,7 +32,7 @@ export class TSUnknownKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnknownKeyword") } - createTSUnknownKeyword(): TSUnknownKeyword { + static createTSUnknownKeyword(): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._CreateTSUnknownKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 63d16ac04..8f0124ff6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -32,7 +32,7 @@ export class TSVoidKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSVoidKeyword") } - createTSVoidKeyword(): TSVoidKeyword { + static createTSVoidKeyword(): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._CreateTSVoidKeyword(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index f80a1bbb4..9813b23a9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -34,7 +34,7 @@ export class TaggedTemplateExpression extends Expression { super(pointer) console.warn("Warning: stub node TaggedTemplateExpression") } - createTaggedTemplateExpression(tag: Expression, quasi: TemplateLiteral, typeParams: TSTypeParameterInstantiation): TaggedTemplateExpression { + static createTaggedTemplateExpression(tag: Expression, quasi: TemplateLiteral, typeParams: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._CreateTaggedTemplateExpression(global.context, passNode(tag), passNode(quasi), passNode(typeParams))) } get tagConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index ac043b066..fea49271a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -32,7 +32,7 @@ export class TemplateElement extends Expression { super(pointer) console.warn("Warning: stub node TemplateElement") } - createTemplateElement(): TemplateElement { + static createTemplateElement(): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement(global.context)) } get rawConst(): string { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index 8fb612e9d..d5e4403d6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -33,7 +33,7 @@ export class TemplateLiteral extends Expression { super(pointer) console.warn("Warning: stub node TemplateLiteral") } - createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { + 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)) } get quasisConst(): readonly TemplateElement[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 32a46cc29..0b401a72f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -32,7 +32,7 @@ export class ThisExpression extends Expression { super(pointer) console.warn("Warning: stub node ThisExpression") } - createThisExpression(): ThisExpression { + static createThisExpression(): ThisExpression { return new ThisExpression(global.generatedEs2panda._CreateThisExpression(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index 5fbccef94..696a83527 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -33,7 +33,7 @@ export class ThrowStatement extends Statement { super(pointer) console.warn("Warning: stub node ThrowStatement") } - createThrowStatement(argument: Expression): ThrowStatement { + static createThrowStatement(argument: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._CreateThrowStatement(global.context, passNode(argument))) } get argumentConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index de4136c3f..fcf8e8cb5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -32,7 +32,7 @@ export class TypeofExpression extends Expression { super(pointer) console.warn("Warning: stub node TypeofExpression") } - createTypeofExpression(argument: Expression): TypeofExpression { + static createTypeofExpression(argument: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._CreateTypeofExpression(global.context, passNode(argument))) } get argumentConst(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index 5276f3034..aac86e02a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -33,7 +33,7 @@ export class UnaryExpression extends Expression { super(pointer) console.warn("Warning: stub node UnaryExpression") } - createUnaryExpression(argument: Expression, unaryOperator: Es2pandaTokenType): UnaryExpression { + static createUnaryExpression(argument: Expression, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._CreateUnaryExpression(global.context, passNode(argument), unaryOperator)) } get operatorTypeConst(): Es2pandaTokenType { diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index cd187d5d8..f386a8c2f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -32,7 +32,7 @@ export class UndefinedLiteral extends Literal { super(pointer) console.warn("Warning: stub node UndefinedLiteral") } - createUndefinedLiteral(): UndefinedLiteral { + static createUndefinedLiteral(): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._CreateUndefinedLiteral(global.context)) } } diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index 2cba43e09..51fa99c10 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -33,7 +33,7 @@ export class UpdateExpression extends Expression { super(pointer) console.warn("Warning: stub node UpdateExpression") } - createUpdateExpression(argument: Expression, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { + static createUpdateExpression(argument: Expression, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._CreateUpdateExpression(global.context, passNode(argument), updateOperator, isPrefix)) } get operatorTypeConst(): Es2pandaTokenType { diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index 87cf0212d..133d7f341 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -35,7 +35,7 @@ export class VariableDeclaration extends Statement { super(pointer) console.warn("Warning: stub node VariableDeclaration") } - createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { + static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._CreateVariableDeclaration(global.context, kind, passNodeArray(declarators), declaratorsLen)) } get declaratorsConst(): readonly VariableDeclarator[] { diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index 241c0f9a3..a6a61f43c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -34,7 +34,7 @@ export class VariableDeclarator extends TypedStatement { super(pointer) console.warn("Warning: stub node VariableDeclarator") } - createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident: Expression): VariableDeclarator { + static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator(global.context, flag, passNode(ident))) } get init(): Expression { diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index 7180446b7..f829a016a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -32,7 +32,7 @@ export class YieldExpression extends Expression { super(pointer) console.warn("Warning: stub node YieldExpression") } - createYieldExpression(argument: Expression, isDelegate: boolean): YieldExpression { + static createYieldExpression(argument: Expression, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._CreateYieldExpression(global.context, passNode(argument), isDelegate)) } get hasDelegateConst(): boolean { -- Gitee From 343fe0df307429c66035fd105a35f3a1a7b0f548 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Sat, 15 Feb 2025 01:03:34 +0000 Subject: [PATCH 17/40] !1839 Memo function transformation draft --- .gitlab-ci.yml | 1 + arkoala-arkts/libarkts/src/arkts-api/types.ts | 9 +- .../src/arkts-api/utilities/public.ts | 4 + arkoala-arkts/memo-plugin/.gitlab-ci.yml | 40 ++++++++ arkoala-arkts/memo-plugin/demo/demo.ts | 1 + arkoala-arkts/memo-plugin/demo/package.json | 6 +- .../memo-plugin/demo/tsconfig-unmemoize.json | 2 +- arkoala-arkts/memo-plugin/package.json | 2 +- .../memo-plugin/runtime-api/states/State.sts | 6 ++ ...mo-detector.ts => function-transformer.ts} | 97 ++++++++++++++++--- .../memo-plugin/src/memo-transformer.ts | 10 +- arkoala-arkts/memo-plugin/src/utils.ts | 71 +++++++++++++- arkoala-arkts/memo-plugin/tsconfig.json | 10 +- 13 files changed, 233 insertions(+), 26 deletions(-) create mode 100644 arkoala-arkts/memo-plugin/.gitlab-ci.yml rename arkoala-arkts/memo-plugin/src/{memo-detector.ts => function-transformer.ts} (40%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16a301038..25899d68a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,4 +34,5 @@ include: - arkoala/loader/.gitlab-ci.yml - arkoala-arkts/.gitlab-ci.yml - arkoala-arkts/libarkts/.gitlab-ci.yml + - arkoala-arkts/memo-plugin/.gitlab-ci.yml - interop/.gitlab-ci.yml diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index d83d07096..7be8fafd1 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -771,8 +771,15 @@ export class ReturnStatement extends AstNode { } static create( - argument: AstNode, + argument?: AstNode, ): ReturnStatement { + if (argument === undefined) { + return new ReturnStatement( + global.generatedEs2panda._CreateReturnStatement( + global.context + ) + ) + } return new ReturnStatement( global.es2panda._CreateReturnStatement1( global.context, diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index dbc9a8b88..dbea933f3 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -79,3 +79,7 @@ export function getOriginalNode(node: AstNode): AstNode { } return unpackNonNullableNode(node.originalPeer) } + +export function getFileName(): string { + return global.filePath +} diff --git a/arkoala-arkts/memo-plugin/.gitlab-ci.yml b/arkoala-arkts/memo-plugin/.gitlab-ci.yml new file mode 100644 index 000000000..51db6fa47 --- /dev/null +++ b/arkoala-arkts/memo-plugin/.gitlab-ci.yml @@ -0,0 +1,40 @@ +build memo-plugin: + stage: build + interruptible: true + extends: + - .linux-vm-shell-task + needs: + - install node modules (arkoala) + - install node modules (arkoala-arkts) + - install node modules (incremental) + - install node modules (interop) + before_script: + - !reference [.setup, script] + - npm run panda:sdk:install --prefix arkoala-arkts/libarkts + - npm run compile --prefix arkoala-arkts/libarkts + script: + - npm run compile --prefix arkoala-arkts/memo-plugin + +test memo-plugin: + stage: test + interruptible: true + extends: + - .linux-vm-shell-task + needs: + - install node modules (arkoala) + - install node modules (arkoala-arkts) + - install node modules (incremental) + - install node modules (interop) + - build incremental.abc + before_script: + - !reference [.setup, script] + - npm run compile:all --prefix incremental/compat + - npm run compile --prefix incremental/common + - npm run compile --prefix incremental/compiler-plugin + - npm run compile --prefix incremental/runtime + - npm run unmemoize --prefix incremental/runtime + - npm run panda:sdk:install --prefix arkoala-arkts/libarkts + - npm run compile --prefix arkoala-arkts/libarkts + - npm run compile --prefix arkoala-arkts/memo-plugin + script: + - npm run demo:run --prefix arkoala-arkts/memo-plugin diff --git a/arkoala-arkts/memo-plugin/demo/demo.ts b/arkoala-arkts/memo-plugin/demo/demo.ts index a5990afd4..989a003bf 100644 --- a/arkoala-arkts/memo-plugin/demo/demo.ts +++ b/arkoala-arkts/memo-plugin/demo/demo.ts @@ -13,6 +13,7 @@ function main() { const manager = GlobalStateManager.instance const state = manager.computableState((context: StateContext) => { memoEntry(context, 0, foo_wrapper) + return 20 }) console.log(state.value) } diff --git a/arkoala-arkts/memo-plugin/demo/package.json b/arkoala-arkts/memo-plugin/demo/package.json index 863ce6347..0c938a24b 100644 --- a/arkoala-arkts/memo-plugin/demo/package.json +++ b/arkoala-arkts/memo-plugin/demo/package.json @@ -8,9 +8,9 @@ "ts-like:compile": "npm run unmemoize && fast-arktsc --input-files ./arktsconfig-unmemoized.json --output-dir ./build --compiler ../../../incremental/tools/panda/arkts/arktsc --link-name stub && ninja ${NINJA_OPTIONS} -f build/build.ninja", "arkts-like:compile": "../../../incremental/tools/panda/arkts/arktsc --arktsconfig ./arktsconfig.json --output ./build/demo.abc ./demo.sts", "arkts-like:compile:capi": "../../../incremental/tools/panda/arkts/arktsc-capi --arktsconfig ./arktsconfig.json --output ./build/demo.abc --file ./demo.sts --dump-plugin-ast", - "run": "../../../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:../../../incremental/runtime/build/incremental.abc:build/stub.abc ./build/demo.abc @koalaui.runtime.demo.ETSGLOBAL::main", - "run:unmemoized": "npm run unmemoize && npm run ts-like:compile && ../../../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:../../../incremental/runtime/build/incremental.abc ./build/stub.abc @koalaui.runtime.demo.ETSGLOBAL::main", - "disasm": "../../../incremental/tools/panda/node_modules/@panda/sdk/linux_host_tools/bin/ark_disasm build/stub.abc build/stub.disasm" + "run": "../../../incremental/tools/panda/arkts/ark ./build/demo.abc --ark-boot-files ../../../incremental/runtime/build/incremental.abc:build/stub.abc --ark-entry-point @koalaui.runtime.demo.ETSGLOBAL::main", + "run:unmemoized": "npm run unmemoize && npm run ts-like:compile && ../../../incremental/tools/panda/arkts/ark ./build/demo.abc --ark-boot-files ../../../incremental/runtime/build/incremental.abc --ark-entry-point @koalaui.runtime.demo.ETSGLOBAL::main", + "disasm": "../../../incremental/tools/panda/arkts/arkdisasm build/stub.abc build/stub.disasm" }, "devDependencies": { "@koalaui/ets-tsc": "4.9.5-r4", diff --git a/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json b/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json index afa892abb..c76ebb21f 100644 --- a/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json +++ b/arkoala-arkts/memo-plugin/demo/tsconfig-unmemoize.json @@ -9,7 +9,7 @@ "transform": "@koalaui/compiler-plugin/build/lib/src/koala-transformer.js", "trace": false, "only_unmemoize": true, - "unmemoizeDir": "build/unmemoized" + "unmemoizeDir": "build/unmemoized", } ] }, diff --git a/arkoala-arkts/memo-plugin/package.json b/arkoala-arkts/memo-plugin/package.json index 83de11ca6..875b28ee7 100644 --- a/arkoala-arkts/memo-plugin/package.json +++ b/arkoala-arkts/memo-plugin/package.json @@ -4,7 +4,7 @@ "scripts": { "compile": "tsc -b .", "compile:libarkts": "npm run compile --prefix ../libarkts", - "demo:run": "npm run clean --prefix demo && npm run compile && npm run ts-like:compile --prefix demo && npm run arkts-like:compile:capi --prefix demo && npm run run --prefix demo", + "demo:run": "npm run compile && npm run ts-like:compile --prefix demo && npm run arkts-like:compile:capi --prefix demo && npm run run --prefix demo", "demo:disasm": "npm run disasm --prefix demo" } } \ No newline at end of file diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/State.sts b/arkoala-arkts/memo-plugin/runtime-api/states/State.sts index 361be3850..afd523fe6 100644 --- a/arkoala-arkts/memo-plugin/runtime-api/states/State.sts +++ b/arkoala-arkts/memo-plugin/runtime-api/states/State.sts @@ -7,7 +7,13 @@ export interface Disposable { disposed: boolean dispose(): void } +export interface InternalScope { + readonly unchanged: boolean + readonly cached: Value + recache(newValue?: Value): Value +} export declare interface ComputableState extends Disposable, State { } export declare interface StateContext { computableState(compute: (context: StateContext) => Value, cleanup?: (context: StateContext, value: Value | undefined) => void): ComputableState + scope(id: int): InternalScope } diff --git a/arkoala-arkts/memo-plugin/src/memo-detector.ts b/arkoala-arkts/memo-plugin/src/function-transformer.ts similarity index 40% rename from arkoala-arkts/memo-plugin/src/memo-detector.ts rename to arkoala-arkts/memo-plugin/src/function-transformer.ts index db447f07c..0c86fe39a 100644 --- a/arkoala-arkts/memo-plugin/src/memo-detector.ts +++ b/arkoala-arkts/memo-plugin/src/function-transformer.ts @@ -15,29 +15,105 @@ import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor" -import { createContextParameter, createIdParameter, RuntimeNames } from "./utils" +import { createContextParameter, createIdParameter, createContextArgument, createIdArgument, RuntimeNames, PositionalIdTracker } from "./utils" -export function hasMemoAnnotation(node: arkts.ScriptFunction) { +function hasMemoAnnotation(node: arkts.ScriptFunction) { return arkts.getAnnotations(node).some((it) => arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION ) } -export function createHiddenParameters(withType: boolean): arkts.ETSParameterExpression[] { - return [createContextParameter(withType), createIdParameter(withType)] +function createHiddenParameters(): arkts.ETSParameterExpression[] { + return [createContextParameter(), createIdParameter()] } -export class MemoDetector extends AbstractVisitor { +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 + const scopeDeclaraion = arkts.factory.createVariableDeclaration( + 0, + arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, + [ + arkts.factory.createVariableDeclarator( + arkts.Es2pandaVariableDeclaratorFlag.VARIABLE_DECLARATOR_FLAG_CONST, + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.CONTEXT), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_SCOPE), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), + arkts.factory.createTypeParameterDeclaration( + [arkts.factory.createIdentifier("")] + ), + [ + createIdArgument(hash) + ] + ) + ) + ] + ) + const unchangedCheck = arkts.factory.createIfStatement( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_OK), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, + 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 + ) + ) + ) + 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, + [] + ) + ) + return arkts.factory.updateBlock( + node, + [ + scopeDeclaraion, + unchangedCheck, + ...node.statements, + recache + ] + ) +} + +export class FunctionTransformer extends AbstractVisitor { + constructor(private positionalIdTracker: PositionalIdTracker) { + super() + } + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { // TODO: Remove (currently annotations are lost on visitor) const methodDefinitionHasMemoAnnotation = beforeChildren instanceof arkts.MethodDefinition && hasMemoAnnotation(beforeChildren.scriptFunction) const node = this.visitEachChild(beforeChildren) - console.log(" ".repeat(this.indentation) + node.constructor.name) if (node instanceof arkts.MethodDefinition) { if (methodDefinitionHasMemoAnnotation) { - console.log("MEMO SCRIPT FUNCTION") // TODO: fix const updatedNode = arkts.factory.updateMethodDefinition( node, @@ -46,19 +122,18 @@ export class MemoDetector extends AbstractVisitor { arkts.factory.createFunctionExpression( arkts.factory.updateScriptFunction( node.scriptFunction, - node.scriptFunction.body, + updateFunctionBody(node.scriptFunction.body, this.positionalIdTracker.id(node.name.name)), undefined, node.scriptFunction.scriptFunctionFlags, node.scriptFunction.modifiers, false, node.scriptFunction.ident, - [...createHiddenParameters(true), ...node.scriptFunction.parameters] + [...createHiddenParameters(), ...node.scriptFunction.parameters] ), ), node.modifiers, false ) - console.log("END") return updatedNode } } @@ -70,7 +145,7 @@ export class MemoDetector extends AbstractVisitor { node, node.expression, undefined, - [...createHiddenParameters(false), ...node.arguments] + [...createHiddenArguments(this.positionalIdTracker.id(decl.name.name)), ...node.arguments] ) } } diff --git a/arkoala-arkts/memo-plugin/src/memo-transformer.ts b/arkoala-arkts/memo-plugin/src/memo-transformer.ts index 1975ec2be..02c8d3a6a 100644 --- a/arkoala-arkts/memo-plugin/src/memo-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/memo-transformer.ts @@ -14,8 +14,9 @@ */ import * as arkts from "@koalaui/libarkts" -import { MemoDetector } from "./memo-detector" +import { FunctionTransformer } from "./function-transformer" import { ImportTransformer } from "./import-transformer" +import { PositionalIdTracker } from "./utils" export interface TransformerOptions { trace?: boolean, @@ -25,9 +26,10 @@ export default function memoTransformer( userPluginOptions?: TransformerOptions ) { return (node: arkts.EtsScript) => { - const memoDetector = new MemoDetector() - memoDetector.visitor(node) + const positionalIdTracker = new PositionalIdTracker(arkts.getFileName(), false) const importTransformer = new ImportTransformer() - return importTransformer.visitor(node) + const functionTransformer = new FunctionTransformer(positionalIdTracker) + importTransformer.visitor(node) + return functionTransformer.visitor(node) } } diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts index 0e3c4b606..e78b22ef4 100644 --- a/arkoala-arkts/memo-plugin/src/utils.ts +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -13,6 +13,7 @@ * limitations under the License. */ +import { parseNumber, UniqueId } from "@koalaui/common" import * as arkts from "@koalaui/libarkts" export enum RuntimeNames { @@ -24,6 +25,11 @@ export enum RuntimeNames { CONTEXT_TYPE_DEFAULT_IMPORT = "@koalaui/runtime", ID = "__memo_id", ID_TYPE = "__memo_id_type", + INTERNAL_SCOPE = "scope", + INTERNAL_VALUE = "cached", + INTERNAL_VALUE_NEW = "recache", + INTERNAL_VALUE_OK = "unchanged", + SCOPE = "__memo_scope", } export function createContextTypeImportSpecifier(): arkts.ImportSpecifier { @@ -40,20 +46,77 @@ export function createIdTypeImportSpecifier(): arkts.ImportSpecifier { ) } -export function createContextParameter(withType: boolean): arkts.ETSParameterExpression { +export function createContextParameter(): arkts.ETSParameterExpression { return arkts.factory.createParameterDeclaration( arkts.factory.createIdentifier(RuntimeNames.CONTEXT, - withType ? arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) : undefined + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) ), undefined ) } -export function createIdParameter(withType: boolean): arkts.ETSParameterExpression { +export function createIdParameter(): arkts.ETSParameterExpression { return arkts.factory.createParameterDeclaration( arkts.factory.createIdentifier(RuntimeNames.ID, - withType ? arkts.factory.createIdentifier(RuntimeNames.ID_TYPE) : undefined + 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") +} + +export class PositionalIdTracker { + // Global for the whole program. + static callCount: number = 0 + + // Set `stable` to true if you want to have more predictable values. + // For example for tests. + // Don't use it in production! + constructor(public filename: string, public stableForTests: boolean = false) { + if (stableForTests) PositionalIdTracker.callCount = 0 + } + + sha1Id(callName: string, fileName: string): string { + const uniqId = new UniqueId() + uniqId.addString("memo call uniqid") + uniqId.addString(fileName) + uniqId.addString(callName) + uniqId.addI32(PositionalIdTracker.callCount++) + return uniqId.compute().substring(0, 7) + } + + stringId(callName: string, fileName: string): string { + return `${PositionalIdTracker.callCount++}_${callName}_id_DIRNAME/${fileName}` + } + + id(callName: string): arkts.NumberLiteral | arkts.StringLiteral { + + const fileName = this.stableForTests ? + baseName(this.filename) : + this.filename + + const positionId = (this.stableForTests) ? + this.stringId(callName, fileName) : + this.sha1Id(callName, fileName) + + + return this.stableForTests + ? arkts.factory.createStringLiteral(positionId) + : arkts.factory.createNumericLiteral(parseInt(positionId, 16)) + } +} diff --git a/arkoala-arkts/memo-plugin/tsconfig.json b/arkoala-arkts/memo-plugin/tsconfig.json index ef0efa64d..a21696d98 100644 --- a/arkoala-arkts/memo-plugin/tsconfig.json +++ b/arkoala-arkts/memo-plugin/tsconfig.json @@ -4,7 +4,15 @@ "rootDir": ".", "baseUrl": ".", "outDir": "./build", - "module": "CommonJS" + "module": "CommonJS", + "paths": { + "@koalaui/compat": [ + "../../../incremental/compat/src/arkts" + ], + "@koalaui/common": [ + "../../../incremental/common/src" + ] + }, }, "include": [ "./src/**/*.ts", -- Gitee From 82d25394f0c2f8e8c68e5bde903f6a17e4cb1e9b Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Sat, 15 Feb 2025 20:01:01 +0000 Subject: [PATCH 18/40] !1843 PrinterVisitor cleanup --- .../libarkts/plugins/src/print-visitor.ts | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/arkoala-arkts/libarkts/plugins/src/print-visitor.ts b/arkoala-arkts/libarkts/plugins/src/print-visitor.ts index 50be42fc2..d49bbfd7d 100644 --- a/arkoala-arkts/libarkts/plugins/src/print-visitor.ts +++ b/arkoala-arkts/libarkts/plugins/src/print-visitor.ts @@ -1,22 +1,19 @@ -import * as ts from "@koalaui/libarkts" +import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor"; export class PrintVisitor extends AbstractVisitor { private result = "" - private print(s: string) { - this.result += " ".repeat(4 * this.indentation) + s + '\n' + private printNode(node: arkts.AstNode) { + return `${" ".repeat(4 * this.indentation) + node.constructor.name} ${this.nameIfIdentifier(node)}` } - visitor(node: ts.AstNode): ts.AstNode { - console.log(`${" ".repeat(4 * this.indentation) + node.constructor.name}`) - this.print(`${node.constructor.name}`) - return this.visitEachChild(node) + private nameIfIdentifier(node: arkts.AstNode): string { + return arkts.isIdentifier(node) ? `'${node.name}'` : "" } - astToString(node: ts.AstNode): string { - this.result = "" - this.visitor(node) - return this.result.trim() + visitor(node: arkts.AstNode): arkts.AstNode { + console.log(this.printNode(node)) + return this.visitEachChild(node) } } -- Gitee From 050c9b68fb7249375e3e3bab15a41d5a1d23e720 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Sun, 16 Feb 2025 16:10:42 +0000 Subject: [PATCH 19/40] !1848 Regenerated to @panda/sdk 1.5.0-dev.18643 --- .../libarkts/native/src/generated/bridges.cc | 512 +++++++++++++++ .../libarkts/src/generated/Es2pandaEnums.ts | 619 +++++++++--------- .../src/generated/Es2pandaNativeModule.ts | 153 +++++ arkoala-arkts/libarkts/src/generated/index.ts | 8 +- .../generated/peers/AnnotatedExpression.ts | 4 + .../src/generated/peers/ArrayExpression.ts | 4 + .../peers/ArrowFunctionExpression.ts | 7 + .../src/generated/peers/ClassDefinition.ts | 7 + .../src/generated/peers/ClassProperty.ts | 12 + .../src/generated/peers/ETSClassLiteral.ts | 3 + .../libarkts/src/generated/peers/ETSModule.ts | 7 + .../peers/ETSNewArrayInstanceExpression.ts | 3 + .../ETSNewMultiDimArrayInstanceExpression.ts | 3 + .../generated/peers/ETSParameterExpression.ts | 11 + .../src/generated/peers/ETSUnionType.ts | 3 + .../generated/peers/FunctionDeclaration.ts | 6 + .../src/generated/peers/Identifier.ts | 4 + .../src/generated/peers/ObjectExpression.ts | 4 + .../peers/PrefixAssertionExpression.ts | 3 + .../src/generated/peers/ScriptFunction.ts | 7 + .../src/generated/peers/SpreadElement.ts | 4 + .../src/generated/peers/TSArrayType.ts | 3 + .../src/generated/peers/TSAsExpression.ts | 7 + .../src/generated/peers/TSIndexSignature.ts | 3 + .../generated/peers/TSIndexedAccessType.ts | 3 + .../generated/peers/TSInterfaceDeclaration.ts | 7 + .../generated/peers/TSInterfaceHeritage.ts | 3 + .../src/generated/peers/TSMappedType.ts | 3 + .../src/generated/peers/TSNamedTupleMember.ts | 3 + .../generated/peers/TSParenthesizedType.ts | 3 + .../generated/peers/TSPropertySignature.ts | 7 + .../src/generated/peers/TSTupleType.ts | 3 + .../generated/peers/TSTypeAliasDeclaration.ts | 7 + .../src/generated/peers/TSTypeAssertion.ts | 7 + .../src/generated/peers/TSTypeOperator.ts | 4 + .../src/generated/peers/TSTypeParameter.ts | 10 + .../peers/TSTypeParameterInstantiation.ts | 3 + .../src/generated/peers/TSTypePredicate.ts | 3 + .../src/generated/peers/TSUnionType.ts | 3 + .../libarkts/src/generated/peers/TypeNode.ts | 7 + .../generated/peers/VariableDeclaration.ts | 7 + 41 files changed, 1172 insertions(+), 308 deletions(-) diff --git a/arkoala-arkts/libarkts/native/src/generated/bridges.cc b/arkoala-arkts/libarkts/native/src/generated/bridges.cc index 2a17ab86d..8aaff46e2 100644 --- a/arkoala-arkts/libarkts/native/src/generated/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/generated/bridges.cc @@ -146,6 +146,37 @@ void impl_ClassPropertySetTypeAnnotation(KNativePointer context, KNativePointer } KOALA_INTEROP_V3(ClassPropertySetTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ClassPropertyAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassPropertyAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(ClassPropertyAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ClassPropertyAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassPropertyAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(ClassPropertyAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ClassPropertySetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->ClassPropertySetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(ClassPropertySetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateTSVoidKeyword(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -800,6 +831,25 @@ void impl_ObjectExpressionSetOptional(KNativePointer context, KNativePointer rec } KOALA_INTEROP_V3(ObjectExpressionSetOptional, KNativePointer, KNativePointer, KBoolean); +KNativePointer impl_ObjectExpressionTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->ObjectExpressionTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(ObjectExpressionTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ObjectExpressionSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->ObjectExpressionSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(ObjectExpressionSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateImportSpecifier(KNativePointer context, KNativePointer imported, KNativePointer local) { const auto _context = reinterpret_cast(context); @@ -1413,6 +1463,37 @@ KNativePointer impl_FunctionDeclarationFunctionConst(KNativePointer context, KNa } KOALA_INTEROP_2(FunctionDeclarationFunctionConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_FunctionDeclarationAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->FunctionDeclarationAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(FunctionDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_FunctionDeclarationAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->FunctionDeclarationAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(FunctionDeclarationAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_FunctionDeclarationSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->FunctionDeclarationSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(FunctionDeclarationSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateETSTypeReference(KNativePointer context, KNativePointer part) { const auto _context = reinterpret_cast(context); @@ -1882,6 +1963,37 @@ void impl_TSInterfaceDeclarationSetAnonClass(KNativePointer context, KNativePoin } KOALA_INTEROP_V3(TSInterfaceDeclarationSetAnonClass, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_TSInterfaceDeclarationAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSInterfaceDeclarationAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(TSInterfaceDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_TSInterfaceDeclarationAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSInterfaceDeclarationAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(TSInterfaceDeclarationAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSInterfaceDeclarationSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->TSInterfaceDeclarationSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(TSInterfaceDeclarationSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateVariableDeclaration(KNativePointer context, KInt kind, KNativePointerArray declarators, KUInt declaratorsLen) { const auto _context = reinterpret_cast(context); @@ -1934,6 +2046,37 @@ KNativePointer impl_VariableDeclarationDecoratorsConst(KNativePointer context, K } KOALA_INTEROP_2(VariableDeclarationDecoratorsConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_VariableDeclarationAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->VariableDeclarationAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(VariableDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_VariableDeclarationAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->VariableDeclarationAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(VariableDeclarationAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_VariableDeclarationSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->VariableDeclarationSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(VariableDeclarationSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateUndefinedLiteral(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -2300,6 +2443,25 @@ KBoolean impl_TSPropertySignatureReadonlyConst(KNativePointer context, KNativePo } KOALA_INTEROP_2(TSPropertySignatureReadonlyConst, KBoolean, KNativePointer, KNativePointer); +KNativePointer impl_TSPropertySignatureTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->TSPropertySignatureTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(TSPropertySignatureTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSPropertySignatureSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->TSPropertySignatureSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(TSPropertySignatureSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateTSConditionalType(KNativePointer context, KNativePointer checkType, KNativePointer extendsType, KNativePointer trueType, KNativePointer falseType) { const auto _context = reinterpret_cast(context); @@ -2490,6 +2652,25 @@ void impl_TSTypeAliasDeclarationSetAnnotations(KNativePointer context, KNativePo } KOALA_INTEROP_V4(TSTypeAliasDeclarationSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); +KNativePointer impl_TSTypeAliasDeclarationTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->TSTypeAliasDeclarationTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(TSTypeAliasDeclarationTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSTypeAliasDeclarationSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->TSTypeAliasDeclarationSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(TSTypeAliasDeclarationSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateDebuggerStatement(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -3058,6 +3239,37 @@ KUInt impl_ScriptFunctionFormalParamsLengthConst(KNativePointer context, KNative } KOALA_INTEROP_2(ScriptFunctionFormalParamsLengthConst, KUInt, KNativePointer, KNativePointer); +KNativePointer impl_ScriptFunctionAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ScriptFunctionAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(ScriptFunctionAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ScriptFunctionAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ScriptFunctionAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(ScriptFunctionAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ScriptFunctionSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->ScriptFunctionSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(ScriptFunctionSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateClassDefinition(KNativePointer context, KNativePointer ident, KNativePointer typeParams, KNativePointer superTypeParams, KNativePointerArray _implements, KUInt implementsLen, KNativePointer ctor, KNativePointer superClass, KNativePointerArray body, KUInt bodyLen, KInt modifiers, KInt flags) { const auto _context = reinterpret_cast(context); @@ -3544,6 +3756,37 @@ KBoolean impl_ClassDefinitionHasMatchingPrivateKeyConst(KNativePointer context, } KOALA_INTEROP_3(ClassDefinitionHasMatchingPrivateKeyConst, KBoolean, KNativePointer, KNativePointer, KStringPtr); +KNativePointer impl_ClassDefinitionAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassDefinitionAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(ClassDefinitionAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ClassDefinitionAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ClassDefinitionAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(ClassDefinitionAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ClassDefinitionSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->ClassDefinitionSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(ClassDefinitionSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateArrayExpression(KNativePointer context, KNativePointerArray elements, KUInt elementsLen) { const auto _context = reinterpret_cast(context); @@ -3673,6 +3916,25 @@ KBoolean impl_ArrayExpressionHandleNestedArrayExpression(KNativePointer context, } KOALA_INTEROP_5(ArrayExpressionHandleNestedArrayExpression, KBoolean, KNativePointer, KNativePointer, KNativePointer, KBoolean, KUInt); +KNativePointer impl_ArrayExpressionTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->ArrayExpressionTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(ArrayExpressionTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ArrayExpressionSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->ArrayExpressionSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(ArrayExpressionSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateTSInterfaceBody(KNativePointer context, KNativePointerArray body, KUInt bodyLen) { const auto _context = reinterpret_cast(context); @@ -4023,6 +4285,25 @@ KNativePointer impl_TSTypeAssertionGetExpressionConst(KNativePointer context, KN } KOALA_INTEROP_2(TSTypeAssertionGetExpressionConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_TSTypeAssertionTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->TSTypeAssertionTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(TSTypeAssertionTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSTypeAssertionSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->TSTypeAssertionSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(TSTypeAssertionSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateTSExternalModuleReference(KNativePointer context, KNativePointer expr) { const auto _context = reinterpret_cast(context); @@ -5721,6 +6002,37 @@ void impl_ETSModuleSetNamespaceChainLastNode(KNativePointer context, KNativePoin } KOALA_INTEROP_V2(ETSModuleSetNamespaceChainLastNode, KNativePointer, KNativePointer); +KNativePointer impl_ETSModuleAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ETSModuleAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(ETSModuleAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ETSModuleAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ETSModuleAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(ETSModuleAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ETSModuleSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->ETSModuleSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(ETSModuleSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateMetaProperty(KNativePointer context, KInt kind) { const auto _context = reinterpret_cast(context); @@ -7102,6 +7414,37 @@ void impl_TSTypeParameterSetDefaultType(KNativePointer context, KNativePointer r } KOALA_INTEROP_V3(TSTypeParameterSetDefaultType, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_TSTypeParameterAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSTypeParameterAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(TSTypeParameterAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_TSTypeParameterAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TSTypeParameterAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(TSTypeParameterAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSTypeParameterSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->TSTypeParameterSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(TSTypeParameterSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateTSBooleanKeyword(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -7207,6 +7550,25 @@ KBoolean impl_SpreadElementConvertibleToRest(KNativePointer context, KNativePoin } KOALA_INTEROP_4(SpreadElementConvertibleToRest, KBoolean, KNativePointer, KNativePointer, KBoolean, KBoolean); +KNativePointer impl_SpreadElementTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->SpreadElementTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(SpreadElementTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_SpreadElementSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->SpreadElementSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(SpreadElementSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateTSTypePredicate(KNativePointer context, KNativePointer parameterName, KNativePointer typeAnnotation, KBoolean asserts) { const auto _context = reinterpret_cast(context); @@ -7523,6 +7885,37 @@ void impl_ETSParameterExpressionSetInitializer(KNativePointer context, KNativePo } KOALA_INTEROP_V3(ETSParameterExpressionSetInitializer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ETSParameterExpressionAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ETSParameterExpressionAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(ETSParameterExpressionAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ETSParameterExpressionAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ETSParameterExpressionAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(ETSParameterExpressionAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ETSParameterExpressionSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->ETSParameterExpressionSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(ETSParameterExpressionSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateTSTypeParameterInstantiation(KNativePointer context, KNativePointerArray params, KUInt paramsLen) { const auto _context = reinterpret_cast(context); @@ -8410,6 +8803,25 @@ KNativePointer impl_IdentifierValidateExpression(KNativePointer context, KNative } KOALA_INTEROP_2(IdentifierValidateExpression, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_IdentifierTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->IdentifierTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(IdentifierTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_IdentifierSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->IdentifierSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(IdentifierSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateBlockStatement(KNativePointer context, KNativePointerArray statementList, KUInt statementListLen) { const auto _context = reinterpret_cast(context); @@ -8903,6 +9315,25 @@ KNativePointer impl_ExpressionToStringConst(KNativePointer context, KNativePoint } KOALA_INTEROP_2(ExpressionToStringConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_AnnotatedExpressionTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->AnnotatedExpressionTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(AnnotatedExpressionTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_AnnotatedExpressionSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->AnnotatedExpressionSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(AnnotatedExpressionSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KBoolean impl_MaybeOptionalExpressionIsOptionalConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -9930,6 +10361,37 @@ KNativePointer impl_ArrowFunctionExpressionFunction(KNativePointer context, KNat } KOALA_INTEROP_2(ArrowFunctionExpressionFunction, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ArrowFunctionExpressionAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ArrowFunctionExpressionAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(ArrowFunctionExpressionAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_ArrowFunctionExpressionAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->ArrowFunctionExpressionAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(ArrowFunctionExpressionAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_ArrowFunctionExpressionSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->ArrowFunctionExpressionSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(ArrowFunctionExpressionSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateOmittedExpression(KNativePointer context) { const auto _context = reinterpret_cast(context); @@ -10080,6 +10542,25 @@ void impl_TSAsExpressionSetUncheckedCast(KNativePointer context, KNativePointer } KOALA_INTEROP_V3(TSAsExpressionSetUncheckedCast, KNativePointer, KNativePointer, KBoolean); +KNativePointer impl_TSAsExpressionTypeAnnotationConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->TSAsExpressionTypeAnnotationConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(TSAsExpressionTypeAnnotationConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TSAsExpressionSetTsTypeAnnotation(KNativePointer context, KNativePointer receiver, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + GetImpl()->TSAsExpressionSetTsTypeAnnotation(_context, _receiver, _typeAnnotation); + return ; +} +KOALA_INTEROP_V3(TSAsExpressionSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateForUpdateStatement(KNativePointer context, KNativePointer init, KNativePointer test, KNativePointer update, KNativePointer body) { const auto _context = reinterpret_cast(context); @@ -10269,6 +10750,37 @@ KInt impl_ETSPrimitiveTypeGetPrimitiveTypeConst(KNativePointer context, KNativeP } KOALA_INTEROP_2(ETSPrimitiveTypeGetPrimitiveTypeConst, KInt, KNativePointer, KNativePointer); +KNativePointer impl_TypeNodeAnnotations(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TypeNodeAnnotations(_context, _receiver, &length); + return new std::vector(result, result + length); +} +KOALA_INTEROP_2(TypeNodeAnnotations, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_TypeNodeAnnotationsConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + std::size_t length; + auto result = GetImpl()->TypeNodeAnnotationsConst(_context, _receiver, &length); + return (void*)new std::vector(result, result + length); +} +KOALA_INTEROP_2(TypeNodeAnnotationsConst, KNativePointer, KNativePointer, KNativePointer); + +void impl_TypeNodeSetAnnotations(KNativePointer context, KNativePointer receiver, KNativePointerArray annotations, KUInt annotationsLen) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + const auto _annotations = reinterpret_cast(annotations); + const auto _annotationsLen = static_cast(annotationsLen); + GetImpl()->TypeNodeSetAnnotations(_context, _receiver, _annotations, _annotationsLen); + return ; +} +KOALA_INTEROP_V4(TypeNodeSetAnnotations, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_CreateNewExpression(KNativePointer context, KNativePointer callee, KNativePointerArray _arguments, KUInt argumentsLen) { const auto _context = reinterpret_cast(context); diff --git a/arkoala-arkts/libarkts/src/generated/Es2pandaEnums.ts b/arkoala-arkts/libarkts/src/generated/Es2pandaEnums.ts index e90441f5c..68a10ba9d 100644 --- a/arkoala-arkts/libarkts/src/generated/Es2pandaEnums.ts +++ b/arkoala-arkts/libarkts/src/generated/Es2pandaEnums.ts @@ -285,29 +285,35 @@ export enum Es2pandaEnum { ENUM_NODE_HAS_SOURCE_RANGE = 1, ENUM_EVERY_CHILD_HAS_VALID_PARENT = 2, ENUM_EVERY_CHILD_IN_PARENT_RANGE = 3, - ENUM_VARIABLE_HAS_SCOPE = 4, - ENUM_NODE_HAS_TYPE = 5, - ENUM_IDENTIFIER_HAS_VARIABLE = 6, - ENUM_REFERENCE_TYPE_ANNOTATION_IS_NULL = 7, - ENUM_ARITHMETIC_OPERATION_VALID = 8, - ENUM_SEQUENCE_EXPRESSION_HAS_LAST_TYPE = 9, - ENUM_CHECK_INFINITE_LOOP = 10, - ENUM_FOR_LOOP_CORRECTLY_INITIALIZED = 11, - ENUM_VARIABLE_HAS_ENCLOSING_SCOPE = 12, - ENUM_MODIFIER_ACCESS_VALID = 13, - ENUM_VARIABLE_NAME_IDENTIFIER_NAME_SAME = 14, - ENUM_CHECK_ABSTRACT_METHOD = 15, - ENUM_GETTER_SETTER_VALIDATION = 16, - ENUM_CHECK_SCOPE_DECLARATION = 17, - ENUM_CHECK_CONST_PROPERTIES = 18, - ENUM_COUNT = 19, - ENUM_AFTER_SCOPES_INIT_PHASE_FIRST = 0, - ENUM_AFTER_SCOPES_INIT_PHASE_LAST = 4, - ENUM_AFTER_CHECKER_PHASE_FIRST = 5, - ENUM_AFTER_CHECKER_PHASE_LAST = 18, + ENUM_CHECK_STRUCT_DECLARATION = 4, + ENUM_VARIABLE_HAS_SCOPE = 5, + ENUM_NODE_HAS_TYPE = 6, + ENUM_NO_PRIMITIVE_TYPES = 7, + ENUM_IDENTIFIER_HAS_VARIABLE = 8, + ENUM_REFERENCE_TYPE_ANNOTATION_IS_NULL = 9, + ENUM_ARITHMETIC_OPERATION_VALID = 10, + ENUM_SEQUENCE_EXPRESSION_HAS_LAST_TYPE = 11, + ENUM_CHECK_INFINITE_LOOP = 12, + ENUM_FOR_LOOP_CORRECTLY_INITIALIZED = 13, + ENUM_VARIABLE_HAS_ENCLOSING_SCOPE = 14, + ENUM_MODIFIER_ACCESS_VALID = 15, + ENUM_VARIABLE_NAME_IDENTIFIER_NAME_SAME = 16, + ENUM_CHECK_ABSTRACT_METHOD = 17, + ENUM_GETTER_SETTER_VALIDATION = 18, + ENUM_CHECK_SCOPE_DECLARATION = 19, + ENUM_CHECK_CONST_PROPERTIES = 20, + ENUM_COUNT = 21, + ENUM_BASE_FIRST = 0, + ENUM_BASE_LAST = 3, + ENUM_AFTER_PLUGINS_AFTER_PARSE_FIRST = 4, + ENUM_AFTER_PLUGINS_AFTER_PARSE_LAST = 4, + ENUM_AFTER_SCOPES_INIT_PHASE_FIRST = 5, + ENUM_AFTER_SCOPES_INIT_PHASE_LAST = 5, + ENUM_AFTER_CHECKER_PHASE_FIRST = 6, + ENUM_AFTER_CHECKER_PHASE_LAST = 20, ENUM_FIRST = 0, - ENUM_LAST = 18, - ENUM_INVALID = 19 + ENUM_LAST = 20, + ENUM_INVALID = 21 } export enum Es2pandaRegExpFlags { REG_EXP_FLAGS_EMPTY = 0, @@ -332,186 +338,184 @@ export enum Es2pandaTokenType { TOKEN_TYPE_LITERAL_CHAR = 3, TOKEN_TYPE_LITERAL_NUMBER = 4, TOKEN_TYPE_LITERAL_REGEXP = 5, - TOKEN_TYPE_LITERAL_TRUE = 6, - TOKEN_TYPE_LITERAL_FALSE = 7, - TOKEN_TYPE_LITERAL_NULL = 8, - TOKEN_TYPE_PUNCTUATOR_NULLISH_COALESCING = 9, - TOKEN_TYPE_PUNCTUATOR_LOGICAL_OR = 10, - TOKEN_TYPE_PUNCTUATOR_LOGICAL_AND = 11, - TOKEN_TYPE_PUNCTUATOR_BITWISE_OR = 12, - TOKEN_TYPE_PUNCTUATOR_BITWISE_XOR = 13, - TOKEN_TYPE_PUNCTUATOR_BITWISE_AND = 14, - TOKEN_TYPE_PUNCTUATOR_EQUAL = 15, - TOKEN_TYPE_PUNCTUATOR_NOT_EQUAL = 16, - TOKEN_TYPE_PUNCTUATOR_STRICT_EQUAL = 17, - TOKEN_TYPE_PUNCTUATOR_NOT_STRICT_EQUAL = 18, - TOKEN_TYPE_PUNCTUATOR_LESS_THAN = 19, - TOKEN_TYPE_PUNCTUATOR_LESS_THAN_EQUAL = 20, - TOKEN_TYPE_PUNCTUATOR_GREATER_THAN = 21, - TOKEN_TYPE_PUNCTUATOR_GREATER_THAN_EQUAL = 22, - TOKEN_TYPE_PUNCTUATOR_LEFT_SHIFT = 23, - TOKEN_TYPE_PUNCTUATOR_RIGHT_SHIFT = 24, - TOKEN_TYPE_PUNCTUATOR_UNSIGNED_RIGHT_SHIFT = 25, - TOKEN_TYPE_PUNCTUATOR_PLUS = 26, - TOKEN_TYPE_PUNCTUATOR_MINUS = 27, - TOKEN_TYPE_PUNCTUATOR_MULTIPLY = 28, - TOKEN_TYPE_PUNCTUATOR_DIVIDE = 29, - TOKEN_TYPE_PUNCTUATOR_MOD = 30, - TOKEN_TYPE_KEYW_IN = 31, - TOKEN_TYPE_KEYW_INSTANCEOF = 32, - TOKEN_TYPE_PUNCTUATOR_EXPONENTIATION = 33, - TOKEN_TYPE_PUNCTUATOR_LEFT_PARENTHESIS = 34, - TOKEN_TYPE_PUNCTUATOR_RIGHT_PARENTHESIS = 35, - TOKEN_TYPE_PUNCTUATOR_LEFT_BRACE = 36, - TOKEN_TYPE_PUNCTUATOR_RIGHT_BRACE = 37, - TOKEN_TYPE_PUNCTUATOR_PERIOD = 38, - TOKEN_TYPE_PUNCTUATOR_PERIOD_PERIOD_PERIOD = 39, - TOKEN_TYPE_PUNCTUATOR_PERIOD_QUESTION = 40, - TOKEN_TYPE_PUNCTUATOR_COMMA = 41, - TOKEN_TYPE_PUNCTUATOR_COLON = 42, - TOKEN_TYPE_PUNCTUATOR_SEMI_COLON = 43, - TOKEN_TYPE_PUNCTUATOR_LEFT_SQUARE_BRACKET = 44, - TOKEN_TYPE_PUNCTUATOR_RIGHT_SQUARE_BRACKET = 45, - TOKEN_TYPE_PUNCTUATOR_QUESTION_MARK = 46, - TOKEN_TYPE_PUNCTUATOR_QUESTION_DOT = 47, - TOKEN_TYPE_PUNCTUATOR_TILDE = 48, - TOKEN_TYPE_PUNCTUATOR_EXCLAMATION_MARK = 49, - TOKEN_TYPE_PUNCTUATOR_PLUS_PLUS = 50, - TOKEN_TYPE_PUNCTUATOR_MINUS_MINUS = 51, - TOKEN_TYPE_PUNCTUATOR_SUBSTITUTION = 52, - TOKEN_TYPE_PUNCTUATOR_UNSIGNED_RIGHT_SHIFT_EQUAL = 53, - TOKEN_TYPE_PUNCTUATOR_RIGHT_SHIFT_EQUAL = 54, - TOKEN_TYPE_PUNCTUATOR_LEFT_SHIFT_EQUAL = 55, - TOKEN_TYPE_PUNCTUATOR_PLUS_EQUAL = 56, - TOKEN_TYPE_PUNCTUATOR_MINUS_EQUAL = 57, - TOKEN_TYPE_PUNCTUATOR_MULTIPLY_EQUAL = 58, - TOKEN_TYPE_PUNCTUATOR_DIVIDE_EQUAL = 59, - TOKEN_TYPE_PUNCTUATOR_MOD_EQUAL = 60, - TOKEN_TYPE_PUNCTUATOR_BITWISE_AND_EQUAL = 61, - TOKEN_TYPE_PUNCTUATOR_BITWISE_OR_EQUAL = 62, - TOKEN_TYPE_PUNCTUATOR_BITWISE_XOR_EQUAL = 63, - TOKEN_TYPE_PUNCTUATOR_LOGICAL_AND_EQUAL = 64, - TOKEN_TYPE_PUNCTUATOR_LOGICAL_OR_EQUAL = 65, - TOKEN_TYPE_PUNCTUATOR_LOGICAL_NULLISH_EQUAL = 66, - TOKEN_TYPE_PUNCTUATOR_EXPONENTIATION_EQUAL = 67, - TOKEN_TYPE_PUNCTUATOR_ARROW = 68, - TOKEN_TYPE_PUNCTUATOR_BACK_TICK = 69, - TOKEN_TYPE_PUNCTUATOR_HASH_MARK = 70, - TOKEN_TYPE_PUNCTUATOR_AT = 71, - TOKEN_TYPE_PUNCTUATOR_FORMAT = 72, - TOKEN_TYPE_PUNCTUATOR_DOLLAR_DOLLAR = 73, - TOKEN_TYPE_KEYW_GET = 74, - TOKEN_TYPE_KEYW_SET = 75, - TOKEN_TYPE_KEYW_OF = 76, - TOKEN_TYPE_KEYW_FROM = 77, - TOKEN_TYPE_KEYW_AS = 78, - TOKEN_TYPE_KEYW_META = 79, - TOKEN_TYPE_KEYW_REQUIRE = 80, - TOKEN_TYPE_KEYW_ABSTRACT = 81, - TOKEN_TYPE_KEYW_TARGET = 82, - TOKEN_TYPE_KEYW_OUT = 83, - TOKEN_TYPE_FIRST_KEYW = 84, - TOKEN_TYPE_KEYW_AWAIT = 85, - TOKEN_TYPE_KEYW_BIGINT = 86, - TOKEN_TYPE_KEYW_BOOLEAN = 87, - TOKEN_TYPE_KEYW_BYTE = 88, - TOKEN_TYPE_KEYW_BREAK = 89, - TOKEN_TYPE_KEYW_CASE = 90, - TOKEN_TYPE_KEYW_CATCH = 91, - TOKEN_TYPE_KEYW_CHAR = 92, - TOKEN_TYPE_KEYW_CLASS = 93, - TOKEN_TYPE_KEYW_CONST = 94, - TOKEN_TYPE_KEYW_CONSTRUCTOR = 95, - TOKEN_TYPE_KEYW_CONTINUE = 96, - TOKEN_TYPE_KEYW_DEBUGGER = 97, - TOKEN_TYPE_KEYW_DEFAULT = 98, - TOKEN_TYPE_KEYW_DELETE = 99, - TOKEN_TYPE_KEYW_DO = 100, - TOKEN_TYPE_KEYW_DOUBLE = 101, - TOKEN_TYPE_KEYW_ELSE = 102, - TOKEN_TYPE_KEYW_ENUM = 103, - TOKEN_TYPE_KEYW_EXPORT = 104, - TOKEN_TYPE_KEYW_EXTENDS = 105, - TOKEN_TYPE_KEYW_FINALLY = 106, - TOKEN_TYPE_KEYW_FLOAT = 107, - TOKEN_TYPE_KEYW_FOR = 108, - TOKEN_TYPE_KEYW_FUNCTION = 109, - TOKEN_TYPE_KEYW_IF = 110, - TOKEN_TYPE_KEYW_IMPORT = 111, - TOKEN_TYPE_KEYW_INT = 112, - TOKEN_TYPE_KEYW_LAUNCH = 113, - TOKEN_TYPE_KEYW_LONG = 114, - TOKEN_TYPE_KEYW_NATIVE = 115, - TOKEN_TYPE_KEYW_NEVER = 116, - TOKEN_TYPE_KEYW_NEW = 117, - TOKEN_TYPE_KEYW_NUMBER = 118, - TOKEN_TYPE_KEYW_OBJECT = 119, - TOKEN_TYPE_KEYW_FINAL = 120, - TOKEN_TYPE_KEYW_OVERRIDE = 121, - TOKEN_TYPE_KEYW_REGEXP = 122, - TOKEN_TYPE_KEYW_RETHROWS = 123, - TOKEN_TYPE_KEYW_RETURN = 124, - TOKEN_TYPE_KEYW_SHORT = 125, - TOKEN_TYPE_KEYW_STRING = 126, - TOKEN_TYPE_KEYW_STRUCT = 127, - TOKEN_TYPE_KEYW_SUPER = 128, - TOKEN_TYPE_KEYW_SWITCH = 129, - TOKEN_TYPE_KEYW_THIS = 130, - TOKEN_TYPE_KEYW_THROW = 131, - TOKEN_TYPE_KEYW_THROWS = 132, - TOKEN_TYPE_KEYW_TYPE = 133, - TOKEN_TYPE_KEYW_TRY = 134, - TOKEN_TYPE_KEYW_TYPEOF = 135, - TOKEN_TYPE_KEYW_UNDEFINED = 136, - TOKEN_TYPE_KEYW_UNKNOWN = 137, - TOKEN_TYPE_KEYW_VAR = 138, - TOKEN_TYPE_KEYW_VOID = 139, - TOKEN_TYPE_KEYW_WHILE = 140, - TOKEN_TYPE_KEYW_WITH = 141, - TOKEN_TYPE_KEYW_I8 = 142, - TOKEN_TYPE_KEYW_I16 = 143, - TOKEN_TYPE_KEYW_I32 = 144, - TOKEN_TYPE_KEYW_I64 = 145, - TOKEN_TYPE_KEYW_ISIZE = 146, - TOKEN_TYPE_KEYW_U8 = 147, - TOKEN_TYPE_KEYW_U16 = 148, - TOKEN_TYPE_KEYW_U32 = 149, - TOKEN_TYPE_KEYW_U64 = 150, - TOKEN_TYPE_KEYW_USIZE = 151, - TOKEN_TYPE_KEYW_F32 = 152, - TOKEN_TYPE_KEYW_F64 = 153, - TOKEN_TYPE_KEYW_V128 = 154, - TOKEN_TYPE_KEYW_FUNCREF = 155, - TOKEN_TYPE_KEYW_EXTERNREF = 156, - TOKEN_TYPE_KEYW_ANYREF = 157, - TOKEN_TYPE_KEYW_EQREF = 158, - TOKEN_TYPE_KEYW_I31REF = 159, - TOKEN_TYPE_KEYW_DATAREF = 160, - TOKEN_TYPE_KEYW_ASYNC = 161, - TOKEN_TYPE_KEYW_READONLY = 162, - TOKEN_TYPE_KEYW_KEYOF = 163, - TOKEN_TYPE_KEYW_MODULE = 164, - TOKEN_TYPE_KEYW_NAMESPACE = 165, - TOKEN_TYPE_KEYW_INFER = 166, - TOKEN_TYPE_KEYW_DECLARE = 167, - TOKEN_TYPE_KEYW_ARGUMENTS = 168, - TOKEN_TYPE_KEYW_EVAL = 169, - TOKEN_TYPE_KEYW_STATIC = 170, - TOKEN_TYPE_KEYW_GLOBAL = 171, - TOKEN_TYPE_KEYW_IS = 172, - TOKEN_TYPE_KEYW_ASSERTS = 173, - TOKEN_TYPE_KEYW_ASSERT = 174, - TOKEN_TYPE_KEYW_TRAP = 175, - TOKEN_TYPE_KEYW_PRIVATE = 176, - TOKEN_TYPE_KEYW_PROTECTED = 177, - TOKEN_TYPE_KEYW_PUBLIC = 178, - TOKEN_TYPE_KEYW_INTERNAL = 179, - TOKEN_TYPE_KEYW_IMPLEMENTS = 180, - TOKEN_TYPE_KEYW_INTERFACE = 181, - TOKEN_TYPE_KEYW_PACKAGE = 182, - TOKEN_TYPE_KEYW_LET = 183, - TOKEN_TYPE_KEYW_YIELD = 184, - TOKEN_TYPE_KEYW_ANY = 84 + TOKEN_TYPE_PUNCTUATOR_BITWISE_AND = 6, + TOKEN_TYPE_PUNCTUATOR_BITWISE_OR = 7, + TOKEN_TYPE_PUNCTUATOR_MULTIPLY = 8, + TOKEN_TYPE_PUNCTUATOR_DIVIDE = 9, + TOKEN_TYPE_PUNCTUATOR_MINUS = 10, + TOKEN_TYPE_PUNCTUATOR_EXCLAMATION_MARK = 11, + TOKEN_TYPE_PUNCTUATOR_TILDE = 12, + TOKEN_TYPE_PUNCTUATOR_MINUS_MINUS = 13, + TOKEN_TYPE_PUNCTUATOR_LEFT_SHIFT = 14, + TOKEN_TYPE_PUNCTUATOR_RIGHT_SHIFT = 15, + TOKEN_TYPE_PUNCTUATOR_LESS_THAN_EQUAL = 16, + TOKEN_TYPE_PUNCTUATOR_GREATER_THAN_EQUAL = 17, + TOKEN_TYPE_PUNCTUATOR_MOD = 18, + TOKEN_TYPE_PUNCTUATOR_BITWISE_XOR = 19, + TOKEN_TYPE_PUNCTUATOR_EXPONENTIATION = 20, + TOKEN_TYPE_PUNCTUATOR_MULTIPLY_EQUAL = 21, + TOKEN_TYPE_PUNCTUATOR_EXPONENTIATION_EQUAL = 22, + TOKEN_TYPE_PUNCTUATOR_ARROW = 23, + TOKEN_TYPE_PUNCTUATOR_BACK_TICK = 24, + TOKEN_TYPE_PUNCTUATOR_HASH_MARK = 25, + TOKEN_TYPE_PUNCTUATOR_DIVIDE_EQUAL = 26, + TOKEN_TYPE_PUNCTUATOR_MOD_EQUAL = 27, + TOKEN_TYPE_PUNCTUATOR_MINUS_EQUAL = 28, + TOKEN_TYPE_PUNCTUATOR_LEFT_SHIFT_EQUAL = 29, + TOKEN_TYPE_PUNCTUATOR_RIGHT_SHIFT_EQUAL = 30, + TOKEN_TYPE_PUNCTUATOR_UNSIGNED_RIGHT_SHIFT = 31, + TOKEN_TYPE_PUNCTUATOR_UNSIGNED_RIGHT_SHIFT_EQUAL = 32, + TOKEN_TYPE_PUNCTUATOR_BITWISE_AND_EQUAL = 33, + TOKEN_TYPE_PUNCTUATOR_BITWISE_OR_EQUAL = 34, + TOKEN_TYPE_PUNCTUATOR_LOGICAL_AND_EQUAL = 35, + TOKEN_TYPE_PUNCTUATOR_NULLISH_COALESCING = 36, + TOKEN_TYPE_PUNCTUATOR_LOGICAL_OR_EQUAL = 37, + TOKEN_TYPE_PUNCTUATOR_LOGICAL_NULLISH_EQUAL = 38, + TOKEN_TYPE_PUNCTUATOR_BITWISE_XOR_EQUAL = 39, + TOKEN_TYPE_PUNCTUATOR_PLUS = 40, + TOKEN_TYPE_PUNCTUATOR_PLUS_PLUS = 41, + TOKEN_TYPE_PUNCTUATOR_PLUS_EQUAL = 42, + TOKEN_TYPE_PUNCTUATOR_LESS_THAN = 43, + TOKEN_TYPE_PUNCTUATOR_GREATER_THAN = 44, + TOKEN_TYPE_PUNCTUATOR_EQUAL = 45, + TOKEN_TYPE_PUNCTUATOR_NOT_EQUAL = 46, + TOKEN_TYPE_PUNCTUATOR_STRICT_EQUAL = 47, + TOKEN_TYPE_PUNCTUATOR_NOT_STRICT_EQUAL = 48, + TOKEN_TYPE_PUNCTUATOR_LOGICAL_AND = 49, + TOKEN_TYPE_PUNCTUATOR_LOGICAL_OR = 50, + TOKEN_TYPE_PUNCTUATOR_SUBSTITUTION = 51, + TOKEN_TYPE_PUNCTUATOR_QUESTION_MARK = 52, + TOKEN_TYPE_PUNCTUATOR_QUESTION_DOT = 53, + TOKEN_TYPE_PUNCTUATOR_AT = 54, + TOKEN_TYPE_PUNCTUATOR_FORMAT = 55, + TOKEN_TYPE_PUNCTUATOR_RIGHT_PARENTHESIS = 56, + TOKEN_TYPE_PUNCTUATOR_LEFT_PARENTHESIS = 57, + TOKEN_TYPE_PUNCTUATOR_RIGHT_SQUARE_BRACKET = 58, + TOKEN_TYPE_PUNCTUATOR_LEFT_SQUARE_BRACKET = 59, + TOKEN_TYPE_PUNCTUATOR_RIGHT_BRACE = 60, + TOKEN_TYPE_PUNCTUATOR_PERIOD = 61, + TOKEN_TYPE_PUNCTUATOR_PERIOD_PERIOD_PERIOD = 62, + TOKEN_TYPE_PUNCTUATOR_PERIOD_QUESTION = 63, + TOKEN_TYPE_PUNCTUATOR_LEFT_BRACE = 64, + TOKEN_TYPE_PUNCTUATOR_SEMI_COLON = 65, + TOKEN_TYPE_PUNCTUATOR_COLON = 66, + TOKEN_TYPE_PUNCTUATOR_COMMA = 67, + TOKEN_TYPE_KEYW_ABSTRACT = 68, + TOKEN_TYPE_KEYW_ANY = 69, + TOKEN_TYPE_KEYW_ANYREF = 70, + TOKEN_TYPE_KEYW_ARGUMENTS = 71, + TOKEN_TYPE_KEYW_AS = 72, + TOKEN_TYPE_KEYW_ASSERT = 73, + TOKEN_TYPE_KEYW_ASSERTS = 74, + TOKEN_TYPE_KEYW_ASYNC = 75, + TOKEN_TYPE_KEYW_AWAIT = 76, + TOKEN_TYPE_KEYW_BIGINT = 77, + TOKEN_TYPE_KEYW_BOOLEAN = 78, + TOKEN_TYPE_KEYW_BREAK = 79, + TOKEN_TYPE_KEYW_BYTE = 80, + TOKEN_TYPE_KEYW_CASE = 81, + TOKEN_TYPE_KEYW_CATCH = 82, + TOKEN_TYPE_KEYW_CHAR = 83, + TOKEN_TYPE_KEYW_CLASS = 84, + TOKEN_TYPE_KEYW_CONST = 85, + TOKEN_TYPE_KEYW_CONSTRUCTOR = 86, + TOKEN_TYPE_KEYW_CONTINUE = 87, + TOKEN_TYPE_KEYW_DATAREF = 88, + TOKEN_TYPE_KEYW_DEBUGGER = 89, + TOKEN_TYPE_KEYW_DECLARE = 90, + TOKEN_TYPE_KEYW_DEFAULT = 91, + TOKEN_TYPE_KEYW_DELETE = 92, + TOKEN_TYPE_KEYW_DO = 93, + TOKEN_TYPE_KEYW_DOUBLE = 94, + TOKEN_TYPE_KEYW_ELSE = 95, + TOKEN_TYPE_KEYW_ENUM = 96, + TOKEN_TYPE_KEYW_EQREF = 97, + TOKEN_TYPE_KEYW_EVAL = 98, + TOKEN_TYPE_KEYW_EXPORT = 99, + TOKEN_TYPE_KEYW_EXTENDS = 100, + TOKEN_TYPE_KEYW_EXTERNREF = 101, + TOKEN_TYPE_KEYW_F32 = 102, + TOKEN_TYPE_KEYW_F64 = 103, + TOKEN_TYPE_LITERAL_FALSE = 104, + TOKEN_TYPE_KEYW_FINALLY = 105, + TOKEN_TYPE_KEYW_FLOAT = 106, + TOKEN_TYPE_KEYW_FOR = 107, + TOKEN_TYPE_KEYW_FROM = 108, + TOKEN_TYPE_KEYW_FUNCREF = 109, + TOKEN_TYPE_KEYW_FUNCTION = 110, + TOKEN_TYPE_KEYW_GET = 111, + TOKEN_TYPE_KEYW_GLOBAL = 112, + TOKEN_TYPE_KEYW_I8 = 113, + TOKEN_TYPE_KEYW_I16 = 114, + TOKEN_TYPE_KEYW_I31REF = 115, + TOKEN_TYPE_KEYW_I32 = 116, + TOKEN_TYPE_KEYW_I64 = 117, + TOKEN_TYPE_KEYW_IF = 118, + TOKEN_TYPE_KEYW_IMPLEMENTS = 119, + TOKEN_TYPE_KEYW_IMPORT = 120, + TOKEN_TYPE_KEYW_IN = 121, + TOKEN_TYPE_KEYW_INFER = 122, + TOKEN_TYPE_KEYW_INSTANCEOF = 123, + TOKEN_TYPE_KEYW_INT = 124, + TOKEN_TYPE_KEYW_INTERFACE = 125, + TOKEN_TYPE_KEYW_IS = 126, + TOKEN_TYPE_KEYW_ISIZE = 127, + TOKEN_TYPE_KEYW_KEYOF = 128, + TOKEN_TYPE_KEYW_LET = 129, + TOKEN_TYPE_KEYW_LAUNCH = 130, + TOKEN_TYPE_KEYW_LONG = 131, + TOKEN_TYPE_KEYW_META = 132, + TOKEN_TYPE_KEYW_MODULE = 133, + TOKEN_TYPE_KEYW_NAMESPACE = 134, + TOKEN_TYPE_KEYW_NATIVE = 135, + TOKEN_TYPE_KEYW_NEVER = 136, + TOKEN_TYPE_KEYW_NEW = 137, + TOKEN_TYPE_LITERAL_NULL = 138, + TOKEN_TYPE_KEYW_NUMBER = 139, + TOKEN_TYPE_KEYW_OBJECT = 140, + TOKEN_TYPE_KEYW_OF = 141, + TOKEN_TYPE_KEYW_FINAL = 142, + TOKEN_TYPE_KEYW_OUT = 143, + TOKEN_TYPE_KEYW_OVERRIDE = 144, + TOKEN_TYPE_KEYW_PACKAGE = 145, + TOKEN_TYPE_KEYW_INTERNAL = 146, + TOKEN_TYPE_KEYW_PRIVATE = 147, + TOKEN_TYPE_KEYW_PROTECTED = 148, + TOKEN_TYPE_KEYW_PUBLIC = 149, + TOKEN_TYPE_KEYW_READONLY = 150, + TOKEN_TYPE_KEYW_RETHROWS = 151, + TOKEN_TYPE_KEYW_RETURN = 152, + TOKEN_TYPE_KEYW_REQUIRE = 153, + TOKEN_TYPE_KEYW_SET = 154, + TOKEN_TYPE_KEYW_SHORT = 155, + TOKEN_TYPE_KEYW_STATIC = 156, + TOKEN_TYPE_KEYW_STRING = 157, + TOKEN_TYPE_KEYW_STRUCT = 158, + TOKEN_TYPE_KEYW_SUPER = 159, + TOKEN_TYPE_KEYW_SWITCH = 160, + TOKEN_TYPE_KEYW_TARGET = 161, + TOKEN_TYPE_KEYW_THIS = 162, + TOKEN_TYPE_KEYW_THROW = 163, + TOKEN_TYPE_KEYW_THROWS = 164, + TOKEN_TYPE_LITERAL_TRUE = 165, + TOKEN_TYPE_KEYW_TRY = 166, + TOKEN_TYPE_KEYW_TYPE = 167, + TOKEN_TYPE_KEYW_TYPEOF = 168, + TOKEN_TYPE_KEYW_U8 = 169, + TOKEN_TYPE_KEYW_U16 = 170, + TOKEN_TYPE_KEYW_U32 = 171, + TOKEN_TYPE_KEYW_U64 = 172, + TOKEN_TYPE_KEYW_UNDEFINED = 173, + TOKEN_TYPE_KEYW_UNKNOWN = 174, + TOKEN_TYPE_KEYW_USIZE = 175, + TOKEN_TYPE_KEYW_V128 = 176, + TOKEN_TYPE_KEYW_VAR = 177, + TOKEN_TYPE_KEYW_VOID = 178, + TOKEN_TYPE_KEYW_WHILE = 179, + TOKEN_TYPE_KEYW_WITH = 180, + TOKEN_TYPE_KEYW_YIELD = 181, + TOKEN_TYPE_FIRST_PUNCTUATOR = 6, + TOKEN_TYPE_FIRST_KEYW = 68 } export enum Es2pandaAstNodeFlags { AST_NODE_FLAGS_NO_OPTS = 0, @@ -646,7 +650,9 @@ export enum Es2pandaClassDefinitionModifiers { CLASS_DEFINITION_MODIFIERS_FROM_EXTERNAL = 1024, CLASS_DEFINITION_MODIFIERS_LOCAL = 2048, CLASS_DEFINITION_MODIFIERS_CLASSDEFINITION_CHECKED = 4096, - CLASS_DEFINITION_MODIFIERS_DECLARATION_ID_REQUIRED = 3 + CLASS_DEFINITION_MODIFIERS_NAMESPACE_TRANSFORMED = 8192, + CLASS_DEFINITION_MODIFIERS_DECLARATION_ID_REQUIRED = 3, + CLASS_DEFINITION_MODIFIERS_ETS_MODULE = 8196 } export enum Es2pandaOperandKind { OPERAND_KIND_SRC_VREG = 0, @@ -749,14 +755,16 @@ export enum Es2pandaIdentifierFlags { IDENTIFIER_FLAGS_IGNORE_BOX = 32, IDENTIFIER_FLAGS_ANNOTATIONDECL = 64, IDENTIFIER_FLAGS_ANNOTATIONUSAGE = 128, - IDENTIFIER_FLAGS_ERROR_PLACEHOLDER = 256 + IDENTIFIER_FLAGS_ERROR_PLACEHOLDER = 256, + IDENTIFIER_FLAGS_IMPLICIT_THIS = 512 } export enum Es2pandaMemberExpressionKind { MEMBER_EXPRESSION_KIND_NONE = 0, MEMBER_EXPRESSION_KIND_ELEMENT_ACCESS = 1, MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS = 2, MEMBER_EXPRESSION_KIND_GETTER = 4, - MEMBER_EXPRESSION_KIND_SETTER = 8 + MEMBER_EXPRESSION_KIND_SETTER = 8, + MEMBER_EXPRESSION_KIND_EXTENSION_ACCESSOR = 16 } export enum Es2pandaTSTupleKind { TS_TUPLE_KIND_NONE = 0, @@ -767,6 +775,12 @@ export enum Es2pandaMetaPropertyKind { META_PROPERTY_KIND_NEW_TARGET = 0, META_PROPERTY_KIND_IMPORT_META = 1 } +export enum Es2pandaModuleFlag { + MODULE_FLAG_NONE = 0, + MODULE_FLAG_ETSSCRIPT = 1, + MODULE_FLAG_NAMESPACE = 2, + MODULE_FLAG_NAMESPACE_CHAIN_LAST_NODE = 4 +} export enum Es2pandaElementFlags { ELEMENT_FLAGS_NO_OPTS = 0, ELEMENT_FLAGS_REQUIRED = 1, @@ -800,8 +814,10 @@ export enum Es2pandaSignatureFlags { SIGNATURE_FLAGS_SETTER = 131072, SIGNATURE_FLAGS_THROWS = 262144, SIGNATURE_FLAGS_RETHROWS = 524288, + SIGNATURE_FLAGS_EXTENSION_FUNCTION_RETURN_THIS = 1048576, SIGNATURE_FLAGS_INTERNAL_PROTECTED = 4128, SIGNATURE_FLAGS_GETTER_OR_SETTER = 196608, + SIGNATURE_FLAGS_THROWING = 786432, SIGNATURE_FLAGS_FUNCTIONAL_INTERFACE_SIGNATURE = 1047 } export enum Es2pandaPrimitiveType { @@ -958,93 +974,89 @@ export enum Es2pandaGlobalTypeId { GLOBAL_TYPE_ID_ETS_SHORT_BUILTIN = 58, GLOBAL_TYPE_ID_ETS_STACK_TRACE_ELEMENT_BUILTIN = 59, GLOBAL_TYPE_ID_ETS_STACK_TRACE_BUILTIN = 60, - GLOBAL_TYPE_ID_ETS_NULL_POINTER_EXCEPTION_BUILTIN = 61, - GLOBAL_TYPE_ID_ETS_ARRAY_INDEX_OUT_OF_BOUNDS_ERROR_BUILTIN = 62, - GLOBAL_TYPE_ID_ETS_ARITHMETIC_ERROR_BUILTIN = 63, - GLOBAL_TYPE_ID_ETS_CLASS_NOT_FOUND_EXCEPTION_BUILTIN = 64, - GLOBAL_TYPE_ID_ETS_CLASS_CAST_ERROR_BUILTIN = 65, - GLOBAL_TYPE_ID_ETS_OUT_OF_MEMORY_ERROR_BUILTIN = 66, - GLOBAL_TYPE_ID_ETS_NO_SUCH_METHOD_ERROR_BUILTIN = 67, - GLOBAL_TYPE_ID_ETS_ASSERTION_ERROR_BUILTIN = 68, - GLOBAL_TYPE_ID_ETS_DIVIDE_BY_ZERO_ERROR_BUILTIN = 69, - GLOBAL_TYPE_ID_ETS_NULL_POINTER_ERROR_BUILTIN = 70, - GLOBAL_TYPE_ID_ETS_UNCAUGHT_EXCEPTION_ERROR_BUILTIN = 71, - GLOBAL_TYPE_ID_ETS_STRING_BUILTIN = 72, - GLOBAL_TYPE_ID_ETS_STRING_BUILDER_BUILTIN = 73, - GLOBAL_TYPE_ID_ETS_TYPE_BUILTIN = 74, - GLOBAL_TYPE_ID_ETS_TYPES_BUILTIN = 75, - GLOBAL_TYPE_ID_ETS_PROMISE_BUILTIN = 76, - GLOBAL_TYPE_ID_ETS_REGEXP_BUILTIN = 77, - GLOBAL_TYPE_ID_ETS_ARRAY_BUILTIN = 78, - GLOBAL_TYPE_ID_ETS_INTEROP_JSRUNTIME_BUILTIN = 79, - GLOBAL_TYPE_ID_ETS_INTEROP_JSVALUE_BUILTIN = 80, - GLOBAL_TYPE_ID_ETS_BOX_BUILTIN = 81, - GLOBAL_TYPE_ID_ETS_BOOLEAN_BOX_BUILTIN = 82, - GLOBAL_TYPE_ID_ETS_BYTE_BOX_BUILTIN = 83, - GLOBAL_TYPE_ID_ETS_CHAR_BOX_BUILTIN = 84, - GLOBAL_TYPE_ID_ETS_SHORT_BOX_BUILTIN = 85, - GLOBAL_TYPE_ID_ETS_INT_BOX_BUILTIN = 86, - GLOBAL_TYPE_ID_ETS_LONG_BOX_BUILTIN = 87, - GLOBAL_TYPE_ID_ETS_FLOAT_BOX_BUILTIN = 88, - GLOBAL_TYPE_ID_ETS_DOUBLE_BOX_BUILTIN = 89, - GLOBAL_TYPE_ID_ETS_BIG_INT_BUILTIN = 90, - GLOBAL_TYPE_ID_ETS_BIG_INT = 91, - GLOBAL_TYPE_ID_ETS_FUNCTION0_CLASS = 92, - GLOBAL_TYPE_ID_ETS_FUNCTION1_CLASS = 93, - GLOBAL_TYPE_ID_ETS_FUNCTION2_CLASS = 94, - GLOBAL_TYPE_ID_ETS_FUNCTION3_CLASS = 95, - GLOBAL_TYPE_ID_ETS_FUNCTION4_CLASS = 96, - GLOBAL_TYPE_ID_ETS_FUNCTION5_CLASS = 97, - GLOBAL_TYPE_ID_ETS_FUNCTION6_CLASS = 98, - GLOBAL_TYPE_ID_ETS_FUNCTION7_CLASS = 99, - GLOBAL_TYPE_ID_ETS_FUNCTION8_CLASS = 100, - GLOBAL_TYPE_ID_ETS_FUNCTION9_CLASS = 101, - GLOBAL_TYPE_ID_ETS_FUNCTION10_CLASS = 102, - GLOBAL_TYPE_ID_ETS_FUNCTION11_CLASS = 103, - GLOBAL_TYPE_ID_ETS_FUNCTION12_CLASS = 104, - GLOBAL_TYPE_ID_ETS_FUNCTION13_CLASS = 105, - GLOBAL_TYPE_ID_ETS_FUNCTION14_CLASS = 106, - GLOBAL_TYPE_ID_ETS_FUNCTION15_CLASS = 107, - GLOBAL_TYPE_ID_ETS_FUNCTION16_CLASS = 108, - GLOBAL_TYPE_ID_ETS_FUNCTIONN_CLASS = 109, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION0_CLASS = 110, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION1_CLASS = 111, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION2_CLASS = 112, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION3_CLASS = 113, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION4_CLASS = 114, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION5_CLASS = 115, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION6_CLASS = 116, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION7_CLASS = 117, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION8_CLASS = 118, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION9_CLASS = 119, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION10_CLASS = 120, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION11_CLASS = 121, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION12_CLASS = 122, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION13_CLASS = 123, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION14_CLASS = 124, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION15_CLASS = 125, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION16_CLASS = 126, - GLOBAL_TYPE_ID_ETS_THROWING_FUNCTIONN_CLASS = 127, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION0_CLASS = 128, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION1_CLASS = 129, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION2_CLASS = 130, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION3_CLASS = 131, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION4_CLASS = 132, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION5_CLASS = 133, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION6_CLASS = 134, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION7_CLASS = 135, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION8_CLASS = 136, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION9_CLASS = 137, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION10_CLASS = 138, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION11_CLASS = 139, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION12_CLASS = 140, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION13_CLASS = 141, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION14_CLASS = 142, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION15_CLASS = 143, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION16_CLASS = 144, - GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTIONN_CLASS = 145, - GLOBAL_TYPE_ID_TYPE_ERROR = 146, - GLOBAL_TYPE_ID_COUNT = 147 + GLOBAL_TYPE_ID_ETS_ARRAY_INDEX_OUT_OF_BOUNDS_ERROR_BUILTIN = 61, + GLOBAL_TYPE_ID_ETS_ARITHMETIC_ERROR_BUILTIN = 62, + GLOBAL_TYPE_ID_ETS_CLASS_CAST_ERROR_BUILTIN = 63, + GLOBAL_TYPE_ID_ETS_ASSERTION_ERROR_BUILTIN = 64, + GLOBAL_TYPE_ID_ETS_DIVIDE_BY_ZERO_ERROR_BUILTIN = 65, + GLOBAL_TYPE_ID_ETS_NULL_POINTER_ERROR_BUILTIN = 66, + GLOBAL_TYPE_ID_ETS_UNCAUGHT_EXCEPTION_ERROR_BUILTIN = 67, + GLOBAL_TYPE_ID_ETS_STRING_BUILTIN = 68, + GLOBAL_TYPE_ID_ETS_STRING_BUILDER_BUILTIN = 69, + GLOBAL_TYPE_ID_ETS_TYPE_BUILTIN = 70, + GLOBAL_TYPE_ID_ETS_TYPES_BUILTIN = 71, + GLOBAL_TYPE_ID_ETS_PROMISE_BUILTIN = 72, + GLOBAL_TYPE_ID_ETS_REGEXP_BUILTIN = 73, + GLOBAL_TYPE_ID_ETS_ARRAY_BUILTIN = 74, + GLOBAL_TYPE_ID_ETS_INTEROP_JSRUNTIME_BUILTIN = 75, + GLOBAL_TYPE_ID_ETS_INTEROP_JSVALUE_BUILTIN = 76, + GLOBAL_TYPE_ID_ETS_BOX_BUILTIN = 77, + GLOBAL_TYPE_ID_ETS_BOOLEAN_BOX_BUILTIN = 78, + GLOBAL_TYPE_ID_ETS_BYTE_BOX_BUILTIN = 79, + GLOBAL_TYPE_ID_ETS_CHAR_BOX_BUILTIN = 80, + GLOBAL_TYPE_ID_ETS_SHORT_BOX_BUILTIN = 81, + GLOBAL_TYPE_ID_ETS_INT_BOX_BUILTIN = 82, + GLOBAL_TYPE_ID_ETS_LONG_BOX_BUILTIN = 83, + GLOBAL_TYPE_ID_ETS_FLOAT_BOX_BUILTIN = 84, + GLOBAL_TYPE_ID_ETS_DOUBLE_BOX_BUILTIN = 85, + GLOBAL_TYPE_ID_ETS_BIG_INT_BUILTIN = 86, + GLOBAL_TYPE_ID_ETS_BIG_INT = 87, + GLOBAL_TYPE_ID_ETS_FUNCTION0_CLASS = 88, + GLOBAL_TYPE_ID_ETS_FUNCTION1_CLASS = 89, + GLOBAL_TYPE_ID_ETS_FUNCTION2_CLASS = 90, + GLOBAL_TYPE_ID_ETS_FUNCTION3_CLASS = 91, + GLOBAL_TYPE_ID_ETS_FUNCTION4_CLASS = 92, + GLOBAL_TYPE_ID_ETS_FUNCTION5_CLASS = 93, + GLOBAL_TYPE_ID_ETS_FUNCTION6_CLASS = 94, + GLOBAL_TYPE_ID_ETS_FUNCTION7_CLASS = 95, + GLOBAL_TYPE_ID_ETS_FUNCTION8_CLASS = 96, + GLOBAL_TYPE_ID_ETS_FUNCTION9_CLASS = 97, + GLOBAL_TYPE_ID_ETS_FUNCTION10_CLASS = 98, + GLOBAL_TYPE_ID_ETS_FUNCTION11_CLASS = 99, + GLOBAL_TYPE_ID_ETS_FUNCTION12_CLASS = 100, + GLOBAL_TYPE_ID_ETS_FUNCTION13_CLASS = 101, + GLOBAL_TYPE_ID_ETS_FUNCTION14_CLASS = 102, + GLOBAL_TYPE_ID_ETS_FUNCTION15_CLASS = 103, + GLOBAL_TYPE_ID_ETS_FUNCTION16_CLASS = 104, + GLOBAL_TYPE_ID_ETS_FUNCTIONN_CLASS = 105, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION0_CLASS = 106, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION1_CLASS = 107, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION2_CLASS = 108, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION3_CLASS = 109, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION4_CLASS = 110, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION5_CLASS = 111, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION6_CLASS = 112, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION7_CLASS = 113, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION8_CLASS = 114, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION9_CLASS = 115, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION10_CLASS = 116, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION11_CLASS = 117, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION12_CLASS = 118, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION13_CLASS = 119, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION14_CLASS = 120, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION15_CLASS = 121, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTION16_CLASS = 122, + GLOBAL_TYPE_ID_ETS_THROWING_FUNCTIONN_CLASS = 123, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION0_CLASS = 124, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION1_CLASS = 125, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION2_CLASS = 126, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION3_CLASS = 127, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION4_CLASS = 128, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION5_CLASS = 129, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION6_CLASS = 130, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION7_CLASS = 131, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION8_CLASS = 132, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION9_CLASS = 133, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION10_CLASS = 134, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION11_CLASS = 135, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION12_CLASS = 136, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION13_CLASS = 137, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION14_CLASS = 138, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION15_CLASS = 139, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTION16_CLASS = 140, + GLOBAL_TYPE_ID_ETS_RETHROWING_FUNCTIONN_CLASS = 141, + GLOBAL_TYPE_ID_TYPE_ERROR = 142, + GLOBAL_TYPE_ID_COUNT = 143 } export enum Es2pandaMethodDefinitionKind { METHOD_DEFINITION_KIND_NONE = 0, @@ -1052,7 +1064,9 @@ export enum Es2pandaMethodDefinitionKind { METHOD_DEFINITION_KIND_METHOD = 2, METHOD_DEFINITION_KIND_EXTENSION_METHOD = 3, METHOD_DEFINITION_KIND_GET = 4, - METHOD_DEFINITION_KIND_SET = 5 + METHOD_DEFINITION_KIND_SET = 5, + METHOD_DEFINITION_KIND_EXTENSION_GET = 6, + METHOD_DEFINITION_KIND_EXTENSION_SET = 7 } export enum Es2pandaETSObjectFlags { ETS_OBJECT_FLAGS_NO_OPTS = 0, @@ -1086,6 +1100,7 @@ export enum Es2pandaETSObjectFlags { ETS_OBJECT_FLAGS_BUILTIN_FLOAT = 134217728, ETS_OBJECT_FLAGS_BUILTIN_DOUBLE = 268435456, ETS_OBJECT_FLAGS_BOXED_ENUM = 536870912, + ETS_OBJECT_FLAGS_EXTENSION_FUNCTION = 1073741824, ETS_OBJECT_FLAGS_BUILTIN_NUMERIC = 524288000, ETS_OBJECT_FLAGS_VALUE_TYPED = 535300096, ETS_OBJECT_FLAGS_UNBOXABLE_TYPE = 1071644672, @@ -1158,7 +1173,7 @@ export enum Es2pandaCheckerStatus { CHECKER_STATUS_BUILTINS_INITIALIZED = 4096, CHECKER_STATUS_IN_LAMBDA = 8192, CHECKER_STATUS_IGNORE_VISIBILITY = 16384, - CHECKER_STATUS_IN_INSTANCE_EXTENSION_METHOD = 32768, + CHECKER_STATUS_IN_EXTENSION_METHOD = 32768, CHECKER_STATUS_IN_LOCAL_CLASS = 65536, CHECKER_STATUS_IN_INSTANCEOF_CONTEXT = 131072, CHECKER_STATUS_IN_TEST_EXPRESSION = 262144, @@ -1170,17 +1185,20 @@ export enum Es2pandaCheckerStatus { CHECKER_STATUS_IN_EXTERNAL = 16777216, CHECKER_STATUS_IN_BRIDGE_TEST = 33554432, CHECKER_STATUS_IN_GETTER = 67108864, - CHECKER_STATUS_IN_SETTER = 134217728 + CHECKER_STATUS_IN_SETTER = 134217728, + CHECKER_STATUS_IN_EXTENSION_ACCESSOR_CHECK = 268435456 } export enum Es2pandaOverrideErrorCode { OVERRIDE_ERROR_CODE_NO_ERROR = 0, OVERRIDE_ERROR_CODE_OVERRIDDEN_FINAL = 1, OVERRIDE_ERROR_CODE_INCOMPATIBLE_RETURN = 2, - OVERRIDE_ERROR_CODE_OVERRIDDEN_WEAKER = 3 + OVERRIDE_ERROR_CODE_INCOMPATIBLE_TYPEPARAM = 3, + OVERRIDE_ERROR_CODE_OVERRIDDEN_WEAKER = 4 } export enum Es2pandaResolvedKind { RESOLVED_KIND_PROPERTY = 0, - RESOLVED_KIND_INSTANCE_EXTENSION_FUNCTION = 1 + RESOLVED_KIND_EXTENSION_FUNCTION = 1, + RESOLVED_KIND_EXTENSION_ACCESSOR = 2 } export enum Es2pandaLexicalScopeType { LEXICAL_SCOPE_TYPE_BLOCK = 0, @@ -1238,13 +1256,6 @@ export enum Es2pandaCompilationMode { COMPILATION_MODE_PROJECT = 1, COMPILATION_MODE_SINGLE_FILE = 2 } -export enum Es2pandaErrorType { - ERROR_TYPE_INVALID = 0, - ERROR_TYPE_GENERIC = 1, - ERROR_TYPE_SYNTAX = 2, - ERROR_TYPE_TYPE = 3, - ERROR_TYPE_ETS_WARNING = 4 -} export enum Es2pandaCheckDecision { CHECK_DECISION_CORRECT = 0, CHECK_DECISION_INCORRECT = 1 diff --git a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts index d0bd3c804..f41d26e19 100644 --- a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts @@ -67,6 +67,15 @@ export class Es2pandaNativeModule { _ClassPropertySetTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ClassPropertyAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassPropertyAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassPropertySetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSVoidKeyword(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -271,6 +280,12 @@ export class Es2pandaNativeModule { _ObjectExpressionSetOptional(context: KNativePointer, receiver: KNativePointer, optional_arg: KBoolean): void { throw new Error("This methods was not overloaded by native module initialization") } + _ObjectExpressionTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ObjectExpressionSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateImportSpecifier(context: KNativePointer, imported: KNativePointer, local: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -460,6 +475,15 @@ export class Es2pandaNativeModule { _FunctionDeclarationFunctionConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _FunctionDeclarationAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _FunctionDeclarationAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _FunctionDeclarationSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateETSTypeReference(context: KNativePointer, part: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -607,6 +631,15 @@ export class Es2pandaNativeModule { _TSInterfaceDeclarationSetAnonClass(context: KNativePointer, receiver: KNativePointer, anonClass: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _TSInterfaceDeclarationAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSInterfaceDeclarationAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSInterfaceDeclarationSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateVariableDeclaration(context: KNativePointer, kind: KInt, declarators: BigUint64Array, declaratorsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -622,6 +655,15 @@ export class Es2pandaNativeModule { _VariableDeclarationDecoratorsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _VariableDeclarationAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _VariableDeclarationAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _VariableDeclarationSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateUndefinedLiteral(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -733,6 +775,12 @@ export class Es2pandaNativeModule { _TSPropertySignatureReadonlyConst(context: KNativePointer, receiver: KNativePointer): KBoolean { throw new Error("This methods was not overloaded by native module initialization") } + _TSPropertySignatureTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSPropertySignatureSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSConditionalType(context: KNativePointer, checkType: KNativePointer, extendsType: KNativePointer, trueType: KNativePointer, falseType: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -790,6 +838,12 @@ export class Es2pandaNativeModule { _TSTypeAliasDeclarationSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { throw new Error("This methods was not overloaded by native module initialization") } + _TSTypeAliasDeclarationTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSTypeAliasDeclarationSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateDebuggerStatement(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -973,6 +1027,15 @@ export class Es2pandaNativeModule { _ScriptFunctionFormalParamsLengthConst(context: KNativePointer, receiver: KNativePointer): KUInt { throw new Error("This methods was not overloaded by native module initialization") } + _ScriptFunctionAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ScriptFunctionAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ScriptFunctionSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateClassDefinition(context: KNativePointer, ident: KNativePointer, typeParams: KNativePointer, superTypeParams: KNativePointer, _implements: BigUint64Array, implementsLen: KUInt, ctor: KNativePointer, superClass: KNativePointer, body: BigUint64Array, bodyLen: KUInt, modifiers: KInt, flags: KInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1123,6 +1186,15 @@ export class Es2pandaNativeModule { _ClassDefinitionHasMatchingPrivateKeyConst(context: KNativePointer, receiver: KNativePointer, name: KStringPtr): KBoolean { throw new Error("This methods was not overloaded by native module initialization") } + _ClassDefinitionAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassDefinitionAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ClassDefinitionSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateArrayExpression(context: KNativePointer, elements: BigUint64Array, elementsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1162,6 +1234,12 @@ export class Es2pandaNativeModule { _ArrayExpressionHandleNestedArrayExpression(context: KNativePointer, receiver: KNativePointer, currentElement: KNativePointer, isPreferredTuple: KBoolean, idx: KUInt): KBoolean { throw new Error("This methods was not overloaded by native module initialization") } + _ArrayExpressionTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ArrayExpressionSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSInterfaceBody(context: KNativePointer, body: BigUint64Array, bodyLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1273,6 +1351,12 @@ export class Es2pandaNativeModule { _TSTypeAssertionGetExpressionConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _TSTypeAssertionTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSTypeAssertionSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSExternalModuleReference(context: KNativePointer, expr: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1810,6 +1894,15 @@ export class Es2pandaNativeModule { _ETSModuleSetNamespaceChainLastNode(context: KNativePointer, receiver: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ETSModuleAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ETSModuleAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ETSModuleSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateMetaProperty(context: KNativePointer, kind: KInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2236,6 +2329,15 @@ export class Es2pandaNativeModule { _TSTypeParameterSetDefaultType(context: KNativePointer, receiver: KNativePointer, defaultType: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _TSTypeParameterAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSTypeParameterAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSTypeParameterSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSBooleanKeyword(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2269,6 +2371,12 @@ export class Es2pandaNativeModule { _SpreadElementConvertibleToRest(context: KNativePointer, receiver: KNativePointer, isDeclaration: KBoolean, allowPattern: KBoolean): KBoolean { throw new Error("This methods was not overloaded by native module initialization") } + _SpreadElementTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _SpreadElementSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSTypePredicate(context: KNativePointer, parameterName: KNativePointer, typeAnnotation: KNativePointer, asserts: KBoolean): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2368,6 +2476,15 @@ export class Es2pandaNativeModule { _ETSParameterExpressionSetInitializer(context: KNativePointer, receiver: KNativePointer, initExpr: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _ETSParameterExpressionAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ETSParameterExpressionAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ETSParameterExpressionSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateTSTypeParameterInstantiation(context: KNativePointer, params: BigUint64Array, paramsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2647,6 +2764,12 @@ export class Es2pandaNativeModule { _IdentifierValidateExpression(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _IdentifierTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _IdentifierSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateBlockStatement(context: KNativePointer, statementList: BigUint64Array, statementListLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2797,6 +2920,12 @@ export class Es2pandaNativeModule { _ExpressionToStringConst(context: KNativePointer, receiver: KNativePointer): KStringPtr { throw new Error("This methods was not overloaded by native module initialization") } + _AnnotatedExpressionTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _AnnotatedExpressionSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _MaybeOptionalExpressionIsOptionalConst(context: KNativePointer, receiver: KNativePointer): KBoolean { throw new Error("This methods was not overloaded by native module initialization") } @@ -3121,6 +3250,15 @@ export class Es2pandaNativeModule { _ArrowFunctionExpressionFunction(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _ArrowFunctionExpressionAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ArrowFunctionExpressionAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _ArrowFunctionExpressionSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateOmittedExpression(context: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3166,6 +3304,12 @@ export class Es2pandaNativeModule { _TSAsExpressionSetUncheckedCast(context: KNativePointer, receiver: KNativePointer, isUncheckedCast: KBoolean): void { throw new Error("This methods was not overloaded by native module initialization") } + _TSAsExpressionTypeAnnotationConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TSAsExpressionSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateForUpdateStatement(context: KNativePointer, init: KNativePointer, test: KNativePointer, update: KNativePointer, body: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3226,6 +3370,15 @@ export class Es2pandaNativeModule { _ETSPrimitiveTypeGetPrimitiveTypeConst(context: KNativePointer, receiver: KNativePointer): KInt { throw new Error("This methods was not overloaded by native module initialization") } + _TypeNodeAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TypeNodeAnnotationsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _TypeNodeSetAnnotations(context: KNativePointer, receiver: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt): void { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateNewExpression(context: KNativePointer, callee: KNativePointer, _arguments: BigUint64Array, argumentsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } diff --git a/arkoala-arkts/libarkts/src/generated/index.ts b/arkoala-arkts/libarkts/src/generated/index.ts index a73b4eb87..deb5215a5 100644 --- a/arkoala-arkts/libarkts/src/generated/index.ts +++ b/arkoala-arkts/libarkts/src/generated/index.ts @@ -13,6 +13,10 @@ * limitations under the License. */ +export * from "./peers/TypedAstNode" +export * from "./peers/AnnotatedAstNode" +export * from "./peers/TypedStatement" +export * from "./peers/AnnotatedStatement" export * from "./peers/LabelledStatement" export * from "./peers/ThrowStatement" export * from "./peers/ClassProperty" @@ -68,10 +72,6 @@ export * from "./peers/TSExternalModuleReference" export * from "./peers/TSUndefinedKeyword" export * from "./peers/ETSTuple" export * from "./peers/TryStatement" -export * from "./peers/TypedAstNode" -export * from "./peers/AnnotatedAstNode" -export * from "./peers/TypedStatement" -export * from "./peers/AnnotatedStatement" export * from "./peers/UnaryExpression" export * from "./peers/ForInStatement" export * from "./peers/ThisExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts index 243a46204..10fc1fc5f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -26,11 +26,15 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" +import { TypeNode } from "./TypeNode" export abstract class AnnotatedExpression extends Expression { constructor(pointer: KNativePointer) { super(pointer) console.warn("Warning: stub node AnnotatedExpression") } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._AnnotatedExpressionTypeAnnotationConst(global.context, this.peer)) + } } export function isAnnotatedExpression(node: AstNode): node is AnnotatedExpression { return node instanceof AnnotatedExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts index 59448bb76..c796cec81 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts @@ -28,6 +28,7 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" import { Decorator } from "./Decorator" +import { TypeNode } from "./TypeNode" export abstract class ArrayExpression extends AnnotatedExpression { constructor(pointer: KNativePointer) { super(pointer) @@ -48,6 +49,9 @@ export abstract class ArrayExpression extends AnnotatedExpression { get decoratorsConst(): readonly Decorator[] { return unpackNodeArray(global.generatedEs2panda._ArrayExpressionDecoratorsConst(global.context, this.peer)) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._ArrayExpressionTypeAnnotationConst(global.context, this.peer)) + } } export function isArrayExpression(node: AstNode): node is ArrayExpression { return node instanceof ArrayExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 03b58f7c0..eeef78202 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -27,6 +27,7 @@ import { import { Expression } from "./Expression" import { ScriptFunction } from "./ScriptFunction" +import { AnnotationUsage } from "./AnnotationUsage" export class ArrowFunctionExpression extends Expression { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 0) @@ -42,6 +43,12 @@ export class ArrowFunctionExpression extends Expression { get function(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._ArrowFunctionExpressionFunction(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ArrowFunctionExpressionAnnotationsConst(global.context, this.peer)) + } } export function isArrowFunctionExpression(node: AstNode): node is ArrowFunctionExpression { return node instanceof ArrowFunctionExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index 4c353237f..d657fb0d3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -36,6 +36,7 @@ import { Es2pandaClassDefinitionModifiers } from "./../Es2pandaEnums" import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { TSEnumDeclaration } from "./TSEnumDeclaration" import { ClassDeclaration } from "./ClassDeclaration" +import { AnnotationUsage } from "./AnnotationUsage" export class ClassDefinition extends TypedAstNode { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 14) @@ -135,6 +136,12 @@ export class ClassDefinition extends TypedAstNode { get getAnonClass(): ClassDeclaration { return unpackNonNullableNode(global.generatedEs2panda._ClassDefinitionGetAnonClass(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ClassDefinitionAnnotationsConst(global.context, this.peer)) + } } export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index fe328cf8e..81870ef65 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -26,16 +26,28 @@ import { } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" +import { Expression } from "./Expression" import { TypeNode } from "./TypeNode" +import { Es2pandaModifierFlags } from "./../Es2pandaEnums" +import { AnnotationUsage } from "./AnnotationUsage" export class ClassProperty extends ClassElement { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 17) super(pointer) console.warn("Warning: stub node ClassProperty") } + static createClassProperty(key: Expression, value: Expression, typeAnnotation: TypeNode, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { + return new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) + } get typeAnnotationConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ClassPropertyTypeAnnotationConst(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ClassPropertyAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ClassPropertyAnnotationsConst(global.context, this.peer)) + } } export function isClassProperty(node: AstNode): node is ClassProperty { return node instanceof ClassProperty diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index f1f0836e0..cccdd0a19 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -33,6 +33,9 @@ export class ETSClassLiteral extends Expression { super(pointer) console.warn("Warning: stub node ETSClassLiteral") } + static createETSClassLiteral(expr: TypeNode): ETSClassLiteral { + return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr))) + } get exprConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSClassLiteralExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts index 94ec25eb6..0dc848a73 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts @@ -27,6 +27,7 @@ import { import { BlockStatement } from "./BlockStatement" import { Identifier } from "./Identifier" +import { AnnotationUsage } from "./AnnotationUsage" export class ETSModule extends BlockStatement { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 81) @@ -48,6 +49,12 @@ export class ETSModule extends BlockStatement { get isNamespaceChainLastNodeConst(): boolean { return global.generatedEs2panda._ETSModuleIsNamespaceChainLastNodeConst(global.context, this.peer) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ETSModuleAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ETSModuleAnnotationsConst(global.context, this.peer)) + } } export function isETSModule(node: AstNode): node is ETSModule { return node instanceof ETSModule diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index f6d6912e6..eea4388b4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -33,6 +33,9 @@ export class ETSNewArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewArrayInstanceExpression") } + static createETSNewArrayInstanceExpression(typeReference: TypeNode, dimension: Expression): ETSNewArrayInstanceExpression { + return new ETSNewArrayInstanceExpression(global.generatedEs2panda._CreateETSNewArrayInstanceExpression(global.context, passNode(typeReference), passNode(dimension))) + } get typeReference(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSNewArrayInstanceExpressionTypeReference(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index f34f7c658..b5099f6f0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -33,6 +33,9 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewMultiDimArrayInstanceExpression") } + static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { + return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) + } get typeReference(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSNewMultiDimArrayInstanceExpressionTypeReference(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index 92d43d8c3..e83c32c6e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -26,12 +26,17 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" +import { AnnotatedExpression } from "./AnnotatedExpression" +import { AnnotationUsage } from "./AnnotationUsage" export class ETSParameterExpression extends Expression { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 79) super(pointer) console.warn("Warning: stub node ETSParameterExpression") } + static createETSParameterExpression(identOrSpread: AnnotatedExpression, initializer: Expression): ETSParameterExpression { + return new ETSParameterExpression(global.generatedEs2panda._CreateETSParameterExpression(global.context, passNode(identOrSpread), passNode(initializer))) + } get isDefaultConst(): boolean { return global.generatedEs2panda._ETSParameterExpressionIsDefaultConst(global.context, this.peer) } @@ -41,6 +46,12 @@ export class ETSParameterExpression extends Expression { get getRequiredParamsConst(): number { return global.generatedEs2panda._ETSParameterExpressionGetRequiredParamsConst(global.context, this.peer) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ETSParameterExpressionAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ETSParameterExpressionAnnotationsConst(global.context, this.peer)) + } } export function isETSParameterExpression(node: AstNode): node is ETSParameterExpression { return node instanceof ETSParameterExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index 25fea681f..2f722fd52 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -32,6 +32,9 @@ export class ETSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUnionType") } + static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType { + return new ETSUnionType(global.generatedEs2panda._CreateETSUnionTypeIr(global.context, passNodeArray(types), typesLen)) + } get typesConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._ETSUnionTypeIrTypesConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index d6c2f5a09..e2305d83d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -46,6 +46,12 @@ export class FunctionDeclaration extends Statement { get functionConst(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._FunctionDeclarationFunctionConst(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._FunctionDeclarationAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._FunctionDeclarationAnnotationsConst(global.context, this.peer)) + } } export function isFunctionDeclaration(node: AstNode): node is FunctionDeclaration { return node instanceof FunctionDeclaration diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 02c124ed1..cd71334a0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -27,6 +27,7 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Decorator } from "./Decorator" +import { TypeNode } from "./TypeNode" export class Identifier extends AnnotatedExpression { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 36) @@ -81,6 +82,9 @@ export class Identifier extends AnnotatedExpression { get isImplicitThisConst(): boolean { return global.generatedEs2panda._IdentifierIsImplicitThisConst(global.context, this.peer) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._IdentifierTypeAnnotationConst(global.context, this.peer)) + } } export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier diff --git a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts index 36d126ffe..ebc151cfd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts @@ -28,6 +28,7 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" import { Decorator } from "./Decorator" +import { TypeNode } from "./TypeNode" export abstract class ObjectExpression extends AnnotatedExpression { constructor(pointer: KNativePointer) { super(pointer) @@ -45,6 +46,9 @@ export abstract class ObjectExpression extends AnnotatedExpression { get decoratorsConst(): readonly Decorator[] { return unpackNodeArray(global.generatedEs2panda._ObjectExpressionDecoratorsConst(global.context, this.peer)) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._ObjectExpressionTypeAnnotationConst(global.context, this.peer)) + } } export function isObjectExpression(node: AstNode): node is ObjectExpression { return node instanceof ObjectExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index ec068ff08..991cd3d27 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -33,6 +33,9 @@ export class PrefixAssertionExpression extends Expression { super(pointer) console.warn("Warning: stub node PrefixAssertionExpression") } + static createPrefixAssertionExpression(expr: Expression, type: TypeNode): PrefixAssertionExpression { + return new PrefixAssertionExpression(global.generatedEs2panda._CreatePrefixAssertionExpression(global.context, passNode(expr), passNode(type))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._PrefixAssertionExpressionExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts index f1e0289b4..a5d59e8ce 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -31,6 +31,7 @@ import { ReturnStatement } from "./ReturnStatement" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { TypeNode } from "./TypeNode" import { Es2pandaScriptFunctionFlags } from "./../Es2pandaEnums" +import { AnnotationUsage } from "./AnnotationUsage" export class ScriptFunction extends AstNode { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 59) @@ -160,6 +161,12 @@ export class ScriptFunction extends AstNode { get hasReceiverConst(): boolean { return global.generatedEs2panda._ScriptFunctionHasReceiverConst(global.context, this.peer) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ScriptFunctionAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._ScriptFunctionAnnotationsConst(global.context, this.peer)) + } } export function isScriptFunction(node: AstNode): node is ScriptFunction { return node instanceof ScriptFunction diff --git a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts index 548549815..97c264b9e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts @@ -28,6 +28,7 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" import { Decorator } from "./Decorator" +import { TypeNode } from "./TypeNode" export abstract class SpreadElement extends AnnotatedExpression { constructor(pointer: KNativePointer) { super(pointer) @@ -45,6 +46,9 @@ export abstract class SpreadElement extends AnnotatedExpression { get decoratorsConst(): readonly Decorator[] { return unpackNodeArray(global.generatedEs2panda._SpreadElementDecoratorsConst(global.context, this.peer)) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._SpreadElementTypeAnnotationConst(global.context, this.peer)) + } } export function isSpreadElement(node: AstNode): node is SpreadElement { return node instanceof SpreadElement diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index d74eed908..782b07c4c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -32,6 +32,9 @@ export class TSArrayType extends TypeNode { super(pointer) console.warn("Warning: stub node TSArrayType") } + static createTSArrayType(elementType: TypeNode): TSArrayType { + return new TSArrayType(global.generatedEs2panda._CreateTSArrayType(global.context, passNode(elementType))) + } get elementTypeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSArrayTypeElementTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index 93ecffd31..4eefc06fd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -27,18 +27,25 @@ import { import { AnnotatedExpression } from "./AnnotatedExpression" import { Expression } from "./Expression" +import { TypeNode } from "./TypeNode" export class TSAsExpression extends AnnotatedExpression { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 137) super(pointer) console.warn("Warning: stub node TSAsExpression") } + static createTSAsExpression(expression: Expression, typeAnnotation: TypeNode, isConst: boolean): TSAsExpression { + return new TSAsExpression(global.generatedEs2panda._CreateTSAsExpression(global.context, passNode(expression), passNode(typeAnnotation), isConst)) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSAsExpressionExprConst(global.context, this.peer)) } get isConstConst(): boolean { return global.generatedEs2panda._TSAsExpressionIsConstConst(global.context, this.peer) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._TSAsExpressionTypeAnnotationConst(global.context, this.peer)) + } } export function isTSAsExpression(node: AstNode): node is TSAsExpression { return node instanceof TSAsExpression diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index 912bf24e4..6dc0dba17 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -34,6 +34,9 @@ export class TSIndexSignature extends TypedAstNode { super(pointer) console.warn("Warning: stub node TSIndexSignature") } + static createTSIndexSignature(param: Expression, typeAnnotation: TypeNode, readonly_arg: boolean): TSIndexSignature { + return new TSIndexSignature(global.generatedEs2panda._CreateTSIndexSignature(global.context, passNode(param), passNode(typeAnnotation), readonly_arg)) + } get paramConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSIndexSignatureParamConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index 125888f8d..ee2f48f45 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -32,6 +32,9 @@ export class TSIndexedAccessType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIndexedAccessType") } + static createTSIndexedAccessType(objectType: TypeNode, indexType: TypeNode): TSIndexedAccessType { + return new TSIndexedAccessType(global.generatedEs2panda._CreateTSIndexedAccessType(global.context, passNode(objectType), passNode(indexType))) + } get objectTypeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSIndexedAccessTypeObjectTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index 47b745aff..d2e2be74c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -32,6 +32,7 @@ import { Identifier } from "./Identifier" 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) @@ -83,6 +84,12 @@ export class TSInterfaceDeclaration extends TypedStatement { get getAnonClassConst(): ClassDeclaration { return unpackNonNullableNode(global.generatedEs2panda._TSInterfaceDeclarationGetAnonClassConst(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._TSInterfaceDeclarationAnnotationsConst(global.context, this.peer)) + } } export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { return node instanceof TSInterfaceDeclaration diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index 9035c38d7..fbbf2065d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -33,6 +33,9 @@ export class TSInterfaceHeritage extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceHeritage") } + static createTSInterfaceHeritage(expr: TypeNode): TSInterfaceHeritage { + return new TSInterfaceHeritage(global.generatedEs2panda._CreateTSInterfaceHeritage(global.context, passNode(expr))) + } get expr(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSInterfaceHeritageExpr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 1a03c22e0..1fe5e6529 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -34,6 +34,9 @@ export class TSMappedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSMappedType") } + static createTSMappedType(typeParameter: TSTypeParameter, typeAnnotation: TypeNode, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { + return new TSMappedType(global.generatedEs2panda._CreateTSMappedType(global.context, passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) + } get typeParameter(): TSTypeParameter { return unpackNonNullableNode(global.generatedEs2panda._TSMappedTypeTypeParameter(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index fbde47cae..63bbcd5e7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -33,6 +33,9 @@ export class TSNamedTupleMember extends TypeNode { super(pointer) console.warn("Warning: stub node TSNamedTupleMember") } + static createTSNamedTupleMember(label: Expression, elementType: TypeNode, optional_arg: boolean): TSNamedTupleMember { + return new TSNamedTupleMember(global.generatedEs2panda._CreateTSNamedTupleMember(global.context, passNode(label), passNode(elementType), optional_arg)) + } get labelConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSNamedTupleMemberLabelConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index 630a0f348..2353059ae 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -33,6 +33,9 @@ export class TSParenthesizedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSParenthesizedType") } + static createTSParenthesizedType(type: TypeNode): TSParenthesizedType { + return new TSParenthesizedType(global.generatedEs2panda._CreateTSParenthesizedType(global.context, passNode(type))) + } get typeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSParenthesizedTypeTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index 53971e57b..217f6bbaa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -27,12 +27,16 @@ import { import { AnnotatedAstNode } from "./AnnotatedAstNode" import { Expression } from "./Expression" +import { TypeNode } from "./TypeNode" export class TSPropertySignature extends AnnotatedAstNode { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 104) super(pointer) console.warn("Warning: stub node TSPropertySignature") } + static createTSPropertySignature(key: Expression, typeAnnotation: TypeNode, 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)) + } get keyConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSPropertySignatureKeyConst(global.context, this.peer)) } @@ -48,6 +52,9 @@ export class TSPropertySignature extends AnnotatedAstNode { get readonlyConst(): boolean { return global.generatedEs2panda._TSPropertySignatureReadonlyConst(global.context, this.peer) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._TSPropertySignatureTypeAnnotationConst(global.context, this.peer)) + } } export function isTSPropertySignature(node: AstNode): node is TSPropertySignature { return node instanceof TSPropertySignature diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index 750e7684f..95cd6bffe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -32,6 +32,9 @@ export class TSTupleType extends TypeNode { super(pointer) console.warn("Warning: stub node TSTupleType") } + static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { + return new TSTupleType(global.generatedEs2panda._CreateTSTupleType(global.context, passNodeArray(elementTypes), elementTypesLen)) + } get elementTypeConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._TSTupleTypeElementTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index 620cadd48..99ad78198 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -28,6 +28,7 @@ import { import { AnnotatedStatement } from "./AnnotatedStatement" import { Identifier } from "./Identifier" import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" +import { TypeNode } from "./TypeNode" import { Decorator } from "./Decorator" import { AnnotationUsage } from "./AnnotationUsage" export class TSTypeAliasDeclaration extends AnnotatedStatement { @@ -36,6 +37,9 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { super(pointer) console.warn("Warning: stub node TSTypeAliasDeclaration") } + static createTSTypeAliasDeclaration(id: Identifier, typeParams: TSTypeParameterDeclaration, typeAnnotation: TypeNode): TSTypeAliasDeclaration { + return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration(global.context, passNode(id), passNode(typeParams), passNode(typeAnnotation))) + } get id(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationId(global.context, this.peer)) } @@ -54,6 +58,9 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { get annotationsConst(): readonly AnnotationUsage[] { return unpackNodeArray(global.generatedEs2panda._TSTypeAliasDeclarationAnnotationsConst(global.context, this.peer)) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationTypeAnnotationConst(global.context, this.peer)) + } } export function isTSTypeAliasDeclaration(node: AstNode): node is TSTypeAliasDeclaration { return node instanceof TSTypeAliasDeclaration diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index 35116196b..8e39d6e24 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -26,6 +26,7 @@ import { } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" +import { TypeNode } from "./TypeNode" import { Expression } from "./Expression" export class TSTypeAssertion extends AnnotatedExpression { constructor(pointer: KNativePointer) { @@ -33,9 +34,15 @@ export class TSTypeAssertion extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSTypeAssertion") } + static createTSTypeAssertion(typeAnnotation: TypeNode, expression: Expression): TSTypeAssertion { + return new TSTypeAssertion(global.generatedEs2panda._CreateTSTypeAssertion(global.context, passNode(typeAnnotation), passNode(expression))) + } get getExpressionConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSTypeAssertionGetExpressionConst(global.context, this.peer)) } + get typeAnnotationConst(): TypeNode { + return unpackNonNullableNode(global.generatedEs2panda._TSTypeAssertionTypeAnnotationConst(global.context, this.peer)) + } } export function isTSTypeAssertion(node: AstNode): node is TSTypeAssertion { return node instanceof TSTypeAssertion diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index 954494178..81686ed28 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -26,12 +26,16 @@ import { } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" +import { Es2pandaTSOperatorType } from "./../Es2pandaEnums" export class TSTypeOperator extends TypeNode { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 116) super(pointer) console.warn("Warning: stub node TSTypeOperator") } + static createTSTypeOperator(type: TypeNode, operatorType: Es2pandaTSOperatorType): TSTypeOperator { + return new TSTypeOperator(global.generatedEs2panda._CreateTSTypeOperator(global.context, passNode(type), operatorType)) + } get typeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSTypeOperatorTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index 134adbcd2..cf6f6e1ed 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -28,12 +28,16 @@ import { import { Expression } from "./Expression" import { Identifier } from "./Identifier" import { TypeNode } from "./TypeNode" +import { AnnotationUsage } from "./AnnotationUsage" export class TSTypeParameter extends Expression { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 117) super(pointer) console.warn("Warning: stub node TSTypeParameter") } + static createTSTypeParameter(name: Identifier, constraint: TypeNode, defaultType: TypeNode): TSTypeParameter { + return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter(global.context, passNode(name), passNode(constraint), passNode(defaultType))) + } get nameConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSTypeParameterNameConst(global.context, this.peer)) } @@ -49,6 +53,12 @@ export class TSTypeParameter extends Expression { get defaultTypeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSTypeParameterDefaultTypeConst(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._TSTypeParameterAnnotationsConst(global.context, this.peer)) + } } export function isTSTypeParameter(node: AstNode): node is TSTypeParameter { return node instanceof TSTypeParameter diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index e05cbb825..8be111f7a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -33,6 +33,9 @@ export class TSTypeParameterInstantiation extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterInstantiation") } + static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { + return new TSTypeParameterInstantiation(global.generatedEs2panda._CreateTSTypeParameterInstantiation(global.context, passNodeArray(params), paramsLen)) + } get paramsConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._TSTypeParameterInstantiationParamsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index 7a5e25ad9..82a90a16a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -33,6 +33,9 @@ export class TSTypePredicate extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypePredicate") } + static createTSTypePredicate(parameterName: Expression, typeAnnotation: TypeNode, asserts: boolean): TSTypePredicate { + return new TSTypePredicate(global.generatedEs2panda._CreateTSTypePredicate(global.context, passNode(parameterName), passNode(typeAnnotation), asserts)) + } get parameterNameConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSTypePredicateParameterNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index e10a50361..31838cff8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -32,6 +32,9 @@ export class TSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnionType") } + static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType { + return new TSUnionType(global.generatedEs2panda._CreateTSUnionType(global.context, passNodeArray(types), typesLen)) + } get typesConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._TSUnionTypeTypesConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts index 62b019790..8232dc0fc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts @@ -26,11 +26,18 @@ import { } from "../../reexport-for-generated" import { Expression } from "./Expression" +import { AnnotationUsage } from "./AnnotationUsage" export abstract class TypeNode extends Expression { constructor(pointer: KNativePointer) { super(pointer) console.warn("Warning: stub node TypeNode") } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._TypeNodeAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._TypeNodeAnnotationsConst(global.context, this.peer)) + } } export function isTypeNode(node: AstNode): node is TypeNode { return node instanceof TypeNode diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index 133d7f341..bd9acbd9f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -29,6 +29,7 @@ import { Statement } from "./Statement" import { Es2pandaVariableDeclarationKind } from "./../Es2pandaEnums" import { VariableDeclarator } from "./VariableDeclarator" import { Decorator } from "./Decorator" +import { AnnotationUsage } from "./AnnotationUsage" export class VariableDeclaration extends Statement { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 149) @@ -47,6 +48,12 @@ export class VariableDeclaration extends Statement { get decoratorsConst(): readonly Decorator[] { return unpackNodeArray(global.generatedEs2panda._VariableDeclarationDecoratorsConst(global.context, this.peer)) } + get annotations(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._VariableDeclarationAnnotations(global.context, this.peer)) + } + get annotationsConst(): readonly AnnotationUsage[] { + return unpackNodeArray(global.generatedEs2panda._VariableDeclarationAnnotationsConst(global.context, this.peer)) + } } export function isVariableDeclaration(node: AstNode): node is VariableDeclaration { return node instanceof VariableDeclaration -- Gitee From 4dcf9fab1bd17cfeaa2ecf4b4c850c617b693728 Mon Sep 17 00:00:00 2001 From: Aleksandr Veselov Date: Sun, 16 Feb 2025 18:59:42 +0000 Subject: [PATCH 20/40] !1827 Serializer.toReturnBuffer impl --- interop/src/cpp/SerializerBase.h | 16 +++++++++++++++- interop/src/interop/InteropTypes.ts | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/interop/src/cpp/SerializerBase.h b/interop/src/cpp/SerializerBase.h index d631a0a2a..e81e9f16b 100644 --- a/interop/src/cpp/SerializerBase.h +++ b/interop/src/cpp/SerializerBase.h @@ -27,6 +27,7 @@ #include "callback-resource.h" #include "interop-types.h" +#include "koala-types.h" #ifdef __arm__ #define KOALA_NO_UNALIGNED_ACCESS 1 @@ -89,12 +90,15 @@ public: data(data), dataLength(dataLength), position(0), ownData(false), resourceHolder(resourceHolder) { } - ~SerializerBase() { + virtual ~SerializerBase() { if (ownData) { free(data); } } + SerializerBase(const SerializerBase&) = delete; + SerializerBase& operator=(const SerializerBase&) = delete; + void* release() { ownData = false; return data; @@ -245,6 +249,16 @@ public: writePointer((void*)buffer.data); writeInt64(buffer.length); } + + KInteropReturnBuffer toReturnBuffer() { + if (this->ownData) { + KInteropReturnBuffer buffer {this->length(), this->release(), [](KNativePointer data, KInt length) { free(data); }}; + // TODO fix memory issues + return buffer; + } else { + return {this->length(), this->data, nullptr}; + } + } }; #endif // _SERIALIZER_BASE_H \ No newline at end of file diff --git a/interop/src/interop/InteropTypes.ts b/interop/src/interop/InteropTypes.ts index af04a1c55..0324145d8 100644 --- a/interop/src/interop/InteropTypes.ts +++ b/interop/src/interop/InteropTypes.ts @@ -28,3 +28,4 @@ export type KBoolean = int32 export type KPointer = number | bigint export type pointer = KPointer export type KNativePointer = KPointer +export type KInteropReturnBuffer = Uint8Array \ No newline at end of file -- Gitee From 0522d5033bd1a7e2a6f2cce0544170d9565369db Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Sun, 16 Feb 2025 20:14:10 +0000 Subject: [PATCH 21/40] !1846 Provide a flag to differentiate restarting stages and direct proceed --- .../libarkts/arktsconfig-print-only.json | 21 +++++++++++ arkoala-arkts/libarkts/package.json | 5 ++- .../plugins/input/no-import-no-struct.sts | 32 ++++++++++++++++ .../plugins/src/component-transformer.ts | 15 ++++---- arkoala-arkts/libarkts/src/arkts-api/types.ts | 4 ++ .../libarkts/src/arkts-api/visitor.ts | 8 ++-- arkoala-arkts/libarkts/src/es2panda.ts | 37 ++++++++++++++----- arkoala-arkts/memo-plugin/demo/package.json | 2 +- arkoala-arkts/trivial/user/package.json | 2 +- 9 files changed, 100 insertions(+), 26 deletions(-) create mode 100644 arkoala-arkts/libarkts/arktsconfig-print-only.json create mode 100644 arkoala-arkts/libarkts/plugins/input/no-import-no-struct.sts diff --git a/arkoala-arkts/libarkts/arktsconfig-print-only.json b/arkoala-arkts/libarkts/arktsconfig-print-only.json new file mode 100644 index 000000000..2a4e2059c --- /dev/null +++ b/arkoala-arkts/libarkts/arktsconfig-print-only.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "outDir": "./abc", + "baseUrl": ".", + "comment": "This is a simplest config to run visitors on both stages", + "plugins": [ + { + "transform": "./plugins/build/src/printer-plugin.js", + "stage": "parsed" + }, + { + "transform": "./plugins/build/src/parsed-stage-plugin.js", + "stage": "parsed" + }, + { + "transform": "./plugins/build/src/checked-stage-plugin.js", + "stage": "checked" + } + ] + } +} diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index 85e51119f..2f6fe617e 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -25,8 +25,9 @@ "compile:src": "npx ets-tsc -p ./tsconfig.json", "compile": "npm run compile:native && npm run compile:src", "compile:plugins": "npx ets-tsc -p plugins/tsconfig.json", - "run:js": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/main.sts --arktsconfig ./arktsconfig.json --output ./build/abc/main.abc --dump-plugin-ast", - "run": "npm run compile && npm run compile:plugins && npm run run:js", + "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", + "run": "npm run compile && npm run compile:plugins && npm run restart", "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/no-import-no-struct.sts b/arkoala-arkts/libarkts/plugins/input/no-import-no-struct.sts new file mode 100644 index 000000000..26c558e04 --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/input/no-import-no-struct.sts @@ -0,0 +1,32 @@ +@interface Component{} + +@interface BuilderLambda { + value: string +} + +@Component +class MyComponent { + @BuilderLambda("instantiateImpl") + static $_instantiate(factory: () => MyComponent): MyComponent { + const instance = factory() + return instance + } + + static instantiateImpl(builder: (instance: MyComponent)=>MyComponent, factory: () => MyComponent): void { + const instance = factory() + builder(instance) + } + + width(value: number): MyComponent { return this } + build() {} +} + + +@Component +class AnotherComponent { + + build() { + MyComponent() + .width(17.0) + } +} diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index 28a48ec8e..eb9dea774 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -77,10 +77,8 @@ export class ComponentTransformer extends AbstractVisitor { node.definition, node.definition.name, node.definition.members, - // passModifiers(modifiers) | es2panda_ModifierFlags.MODIFIER_FLAGS_PUBLIC | es2panda_ModifierFlags.MODIFIER_FLAGS_STATIC, - arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, - // TODO: pass through modifiers - arkts.Es2pandaClassDefinitionModifiers.CLASS_DEFINITION_MODIFIERS_NONE, + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_FINAL, + arkts.Es2pandaClassDefinitionModifiers.CLASS_DEFINITION_MODIFIERS_CLASS_DECL, node.definition.typeParamsDecl, arkts.factory.createTypeReference( arkts.factory.createTypeReferencePart( @@ -99,15 +97,16 @@ export class ComponentTransformer extends AbstractVisitor { ) ) - if (arkts.isClassDeclaration(node)) { + if (arkts.isStructDeclaration(node)) { + return arkts.factory.createClassDeclaration( + newDefinition + ) + } else { return arkts.factory.updateClassDeclaration( node, newDefinition ) } - return arkts.factory.createClassDeclaration( - newDefinition - ) } visitor(node: arkts.AstNode): arkts.AstNode { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 7be8fafd1..d926708bc 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -17,6 +17,7 @@ import { global } from "./static/global" import { throwError } from "../utils" import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { + Es2pandaClassDefinitionModifiers, Es2pandaContextState, Es2pandaIdentifierFlags, Es2pandaImportKinds, @@ -865,6 +866,7 @@ export class ClassDefinition extends AstNode { this.members = unpackNodeArray(global.generatedEs2panda._ClassDefinitionBody(global.context, this.peer)) this.typeParamsDecl = unpackNode(global.generatedEs2panda._ClassDefinitionTypeParamsConst(global.context, this.peer)) this.superClass = unpackNode(global.generatedEs2panda._ClassDefinitionSuper(global.context, this.peer)) + this.modifiers = global.generatedEs2panda._ClassDefinitionModifiersConst(global.context, this.peer) } static create( @@ -921,6 +923,7 @@ export class MethodDefinition extends AstNode { super(peer) this.scriptFunction = unpackNonNullableNode(global.generatedEs2panda._MethodDefinitionFunction(global.context, this.peer)) this.name = unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.scriptFunction.peer)) + this.kind = global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer) } static create( @@ -944,6 +947,7 @@ export class MethodDefinition extends AstNode { readonly scriptFunction: ScriptFunction readonly name: Identifier + readonly kind: Es2pandaMethodDefinitionKind } export class ClassElement extends AstNode { diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 7c32de722..c7816ef61 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -30,7 +30,6 @@ import { } from "./types" import { Es2pandaClassDefinitionModifiers, - Es2pandaMethodDefinitionKind, Es2pandaModifierFlags } from "../generated/Es2pandaEnums" import { nullptr } from "@koalaui/interop" @@ -111,9 +110,10 @@ export function visitEachChild( nodeVisitor(node.name, visitor), nodesVisitor(node.members, visitor), // passModifiers(modifiers) | es2panda_ModifierFlags.MODIFIER_FLAGS_PUBLIC | es2panda_ModifierFlags.MODIFIER_FLAGS_STATIC, - Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, + node.modifiers, // TODO: pass through modifiers - Es2pandaClassDefinitionModifiers.CLASS_DEFINITION_MODIFIERS_NONE, + // Passing NONE causes failure when proceeding to CHECKED. + Es2pandaClassDefinitionModifiers.CLASS_DEFINITION_MODIFIERS_CLASS_DECL, nodeVisitor(node.typeParamsDecl, visitor), nodeVisitor(node.superClass, visitor), ) @@ -122,7 +122,7 @@ export function visitEachChild( // TODO: fix return factory.updateMethodDefinition( node, - Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, + node.kind, node.name, factory.createFunctionExpression( // TODO: maybe fix diff --git a/arkoala-arkts/libarkts/src/es2panda.ts b/arkoala-arkts/libarkts/src/es2panda.ts index 2b2743e48..1f1abd6d7 100644 --- a/arkoala-arkts/libarkts/src/es2panda.ts +++ b/arkoala-arkts/libarkts/src/es2panda.ts @@ -28,6 +28,7 @@ function parseCommandLineArgs() { .option('--ets-module', 'Do nothing, legacy compatibility') .option('--output, ', 'The name of result file') .option('--dump-plugin-ast', 'Dump ast before and after each plugin') + .option('--restart-stages', 'Restart the compiler to proceeed to next stage') .parse(process.argv) .opts() @@ -44,8 +45,9 @@ function parseCommandLineArgs() { } const dumpAst = commander.dumpPluginAst ?? false + const restartStages = commander.restartStages ?? false - return { filePath, configPath, outputPath, dumpAst } + return { filePath, configPath, outputPath, dumpAst, restartStages } } function insertPlugin(pluginsByState: Map void>, state: Es2pandaContextState, dumpAst: boolean): AstNode { @@ -71,15 +73,24 @@ function insertPlugin(pluginsByState: Map void>, dumpAst: boolean ): void { +function invokeWithPlugins( + configPath: string, + filePath: string, + outputPath: string, + pluginsByState: Map void>, + dumpAst: boolean, + restart: boolean +): void { const source = fs.readFileSync(filePath).toString() const sdk = process.env.PANDA_SDK_PATH ?? withWarning( defaultPandaSdk, @@ -112,13 +123,19 @@ function invokeWithPlugins(configPath: string, filePath: string, outputPath: str // ComponentTransformer const parsedTransform = insertPlugin(pluginsByState, Es2pandaContextState.ES2PANDA_STATE_PARSED, dumpAst) + setAllParents(parsedTransform) // TODO: Normally we need just to proceed to a given state, // but the compiler crashes now, so we restart - restartCompilerUptoState(parsedTransform, Es2pandaContextState.ES2PANDA_STATE_CHECKED) + restartCompilerUptoState(parsedTransform, Es2pandaContextState.ES2PANDA_STATE_CHECKED, restart) // BuilderLambdaTransformer const checkedTransform = insertPlugin(pluginsByState, Es2pandaContextState.ES2PANDA_STATE_CHECKED, dumpAst) - restartCompilerUptoState(checkedTransform, Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) + setAllParents(checkedTransform) + restartCompilerUptoState(checkedTransform, Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED, restart) +} + +function setAllParents(ast: AstNode) { + global.es2panda._AstNodeUpdateAll(global.context, ast.peer) } function loadPlugin(configDir: string, jsonPlugin: any) { @@ -165,7 +182,7 @@ function readAndSortPlugins(configDir: string, plugins: any[]) { } export function main() { - const { filePath, configPath, outputPath, dumpAst } = parseCommandLineArgs() + const { filePath, configPath, outputPath, dumpAst, restartStages } = parseCommandLineArgs() const arktsconfig = JSON.parse(fs.readFileSync(configPath).toString()) const configDir = path.dirname(configPath) const compilerOptions = arktsconfig.compilerOptions ?? throwError(`arktsconfig should specify compilerOptions`) @@ -173,7 +190,7 @@ export function main() { const pluginsByState = readAndSortPlugins(configDir, plugins) - invokeWithPlugins(configPath, filePath, outputPath, pluginsByState, dumpAst) + invokeWithPlugins(configPath, filePath, outputPath, pluginsByState, dumpAst, restartStages) } main() diff --git a/arkoala-arkts/memo-plugin/demo/package.json b/arkoala-arkts/memo-plugin/demo/package.json index 0c938a24b..570031e0f 100644 --- a/arkoala-arkts/memo-plugin/demo/package.json +++ b/arkoala-arkts/memo-plugin/demo/package.json @@ -7,7 +7,7 @@ "unmemoize": "ets-tsc -p tsconfig-unmemoize.json", "ts-like:compile": "npm run unmemoize && fast-arktsc --input-files ./arktsconfig-unmemoized.json --output-dir ./build --compiler ../../../incremental/tools/panda/arkts/arktsc --link-name stub && ninja ${NINJA_OPTIONS} -f build/build.ninja", "arkts-like:compile": "../../../incremental/tools/panda/arkts/arktsc --arktsconfig ./arktsconfig.json --output ./build/demo.abc ./demo.sts", - "arkts-like:compile:capi": "../../../incremental/tools/panda/arkts/arktsc-capi --arktsconfig ./arktsconfig.json --output ./build/demo.abc --file ./demo.sts --dump-plugin-ast", + "arkts-like:compile:capi": "../../../incremental/tools/panda/arkts/arktsc-capi --arktsconfig ./arktsconfig.json --output ./build/demo.abc --file ./demo.sts --dump-plugin-ast --restart-stages", "run": "../../../incremental/tools/panda/arkts/ark ./build/demo.abc --ark-boot-files ../../../incremental/runtime/build/incremental.abc:build/stub.abc --ark-entry-point @koalaui.runtime.demo.ETSGLOBAL::main", "run:unmemoized": "npm run unmemoize && npm run ts-like:compile && ../../../incremental/tools/panda/arkts/ark ./build/demo.abc --ark-boot-files ../../../incremental/runtime/build/incremental.abc --ark-entry-point @koalaui.runtime.demo.ETSGLOBAL::main", "disasm": "../../../incremental/tools/panda/arkts/arkdisasm build/stub.abc build/stub.disasm" diff --git a/arkoala-arkts/trivial/user/package.json b/arkoala-arkts/trivial/user/package.json index 88584266e..bbcaf0561 100644 --- a/arkoala-arkts/trivial/user/package.json +++ b/arkoala-arkts/trivial/user/package.json @@ -13,7 +13,7 @@ "unmemoize:all": "npm run unmemoize:runtime && npm run unmemoize:arkui-no-common && npm run unmemoize:arkui-common && npm run unmemoize", "build:user": "npm run unmemoize:all && npm run build:user:inc", "build:user:inc": "fast-arktsc --input-files ./arktsconfig-run-unmemoized.json --output-dir ./build --compiler ../../../incremental/tools/panda/arkts/arktsc --link-name user && ninja ${NINJA_OPTIONS} -f build/build.ninja", - "build:user:pure-sts": "npm run build:arkui:pure-sts --prefix ../../arkui && ../../../incremental/tools/panda/arkts/arktsc-capi --file src/sts/hello.sts --arktsconfig arktsconfig-pure-sts.json --output build/sts/abc/hello.abc --dump-plugin-ast", + "build:user:pure-sts": "npm run build:arkui:pure-sts --prefix ../../arkui && ../../../incremental/tools/panda/arkts/arktsc-capi --file src/sts/hello.sts --arktsconfig arktsconfig-pure-sts.json --output build/sts/abc/hello.abc --dump-plugin-ast --restart-stages", "run:user:pure-sts": "npm run build:user:pure-sts && ../../../incremental/tools/panda/arkts/ark build/sts/abc/hello.abc --ark-boot-files ../../arkui/build/sts/abc/src/sts/arkui.abc:build/sts/abc/hello.abc --ark-entry-point @ohos.example.src.sts.hello.ArkUIEntry::run", "pack": "npm run cli-tools:check && cd app && DEVECO_SDK_HOME=../../../../arkoala/ohos-sdk/ohos-sdk ../../../command-line-tools/hvigor/bin/hvigorw --no-daemon --mode module -p product=default -p module=user@default assembleHar", "har-arm32": "npm run build:user && npm run --prefix ../../../arkoala/ohos-sdk download && node scripts/build-har.mjs --name user --arch arm32 && npm run pack", -- Gitee From 4dfd2d4029e69f9fa2ab7b79c5bdc64d86e04c9d Mon Sep 17 00:00:00 2001 From: kolegovilya Date: Mon, 17 Feb 2025 08:45:21 +0000 Subject: [PATCH 22/40] !1836 Moved MaterializedBase to interop * moved unsafeCast to compat * moved --- incremental/common/src/index.ts | 1 + incremental/compat/src/arkts/index.ts | 1 + incremental/compat/src/arkts/utils.ts | 18 ++++++++++++++++++ incremental/compat/src/index.ts | 1 + incremental/compat/src/ohos/index.ts | 3 ++- incremental/compat/src/typescript/index.ts | 1 + incremental/compat/src/typescript/utils.ts | 18 ++++++++++++++++++ interop/src/arkts/MaterializedBase.sts | 21 +++++++++++++++++++++ interop/src/arkts/index.sts | 1 + interop/src/interop/MaterializedBase.ts | 20 ++++++++++++++++++++ interop/src/interop/index.ts | 1 + 11 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 incremental/compat/src/arkts/utils.ts create mode 100644 incremental/compat/src/typescript/utils.ts create mode 100644 interop/src/arkts/MaterializedBase.sts create mode 100644 interop/src/interop/MaterializedBase.ts diff --git a/incremental/common/src/index.ts b/incremental/common/src/index.ts index 7d500898c..0e47fd138 100644 --- a/incremental/common/src/index.ts +++ b/incremental/common/src/index.ts @@ -37,6 +37,7 @@ export { propDeepCopy, refEqual, int8Array, + unsafeCast } from "@koalaui/compat" export { clamp, lerp, modulo, parseNumber, isFiniteNumber, getDistancePx } from "./math" export { hashCodeFromString } from "./stringUtils" diff --git a/incremental/compat/src/arkts/index.ts b/incremental/compat/src/arkts/index.ts index 898e2d891..95ec1799f 100644 --- a/incremental/compat/src/arkts/index.ts +++ b/incremental/compat/src/arkts/index.ts @@ -24,3 +24,4 @@ export * from "./reflection" export * from "./strings" export * from "./ts-reflection" export * from "./types" +export * from "./utils" diff --git a/incremental/compat/src/arkts/utils.ts b/incremental/compat/src/arkts/utils.ts new file mode 100644 index 000000000..0061d5752 --- /dev/null +++ b/incremental/compat/src/arkts/utils.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2024 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. + */ + +export function unsafeCast(value: Object): T { + return value as T +} diff --git a/incremental/compat/src/index.ts b/incremental/compat/src/index.ts index 6976bcb33..5a05c8ee6 100644 --- a/incremental/compat/src/index.ts +++ b/incremental/compat/src/index.ts @@ -52,4 +52,5 @@ export { float32, float64, int8Array, + unsafeCast, } from "#platform" diff --git a/incremental/compat/src/ohos/index.ts b/incremental/compat/src/ohos/index.ts index e59193deb..285981699 100644 --- a/incremental/compat/src/ohos/index.ts +++ b/incremental/compat/src/ohos/index.ts @@ -49,7 +49,8 @@ export { uint64, float32, float64, - int8Array + int8Array, + unsafeCast, } from "../typescript" export { diff --git a/incremental/compat/src/typescript/index.ts b/incremental/compat/src/typescript/index.ts index 220a13b41..03bb4fbdd 100644 --- a/incremental/compat/src/typescript/index.ts +++ b/incremental/compat/src/typescript/index.ts @@ -24,3 +24,4 @@ export * from "./reflection" export * from "./strings" export * from "./ts-reflection" export * from "./types" +export * from "./utils" diff --git a/incremental/compat/src/typescript/utils.ts b/incremental/compat/src/typescript/utils.ts new file mode 100644 index 000000000..2c08785fb --- /dev/null +++ b/incremental/compat/src/typescript/utils.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2024 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. + */ + +export function unsafeCast(value: unknown): T { + return value as unknown as T +} diff --git a/interop/src/arkts/MaterializedBase.sts b/interop/src/arkts/MaterializedBase.sts new file mode 100644 index 000000000..3f26a861e --- /dev/null +++ b/interop/src/arkts/MaterializedBase.sts @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2024 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 { Finalizable } from "./Finalizable" + +export interface MaterializedBase { + getPeer(): Finalizable | undefined +} + diff --git a/interop/src/arkts/index.sts b/interop/src/arkts/index.sts index 9fb970d80..7b8f23670 100644 --- a/interop/src/arkts/index.sts +++ b/interop/src/arkts/index.sts @@ -23,3 +23,4 @@ export * from "./SerializerBase" export * from "./DeserializerBase" export * from "./Finalizable" export * from "./loadLibraries" +export * from "./MaterializedBase" diff --git a/interop/src/interop/MaterializedBase.ts b/interop/src/interop/MaterializedBase.ts new file mode 100644 index 000000000..51135fbaa --- /dev/null +++ b/interop/src/interop/MaterializedBase.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2024 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 { Finalizable } from "./Finalizable" + +export interface MaterializedBase { + getPeer(): Finalizable | undefined +} diff --git a/interop/src/interop/index.ts b/interop/src/interop/index.ts index f61254d5a..354f21254 100644 --- a/interop/src/interop/index.ts +++ b/interop/src/interop/index.ts @@ -71,3 +71,4 @@ export { InteropNativeModule, loadInteropNativeModule } from "./InteropNativeMod export { SerializerBase, RuntimeType, Tags, runtimeType, CallbackResource, unsafeCast, isResource, isInstanceOf } from "./SerializerBase" export { DeserializerBase } from "./DeserializerBase" export { loadNativeModuleLibrary, loadNativeLibrary, registerNativeModuleLibraryName } from "./loadLibraries" +export * from "./MaterializedBase" -- Gitee From 21c90041834ab255618412f0ab8f482c8b0cbdc8 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Mon, 17 Feb 2025 09:03:37 +0000 Subject: [PATCH 23/40] !1841 Moved the test case to a trailing lambda --- arkoala-arkts/libarkts/src/arkts-api/types.ts | 41 +++++++++++++------ .../libarkts/src/arkts-api/visitor.ts | 3 +- arkoala-arkts/trivial/user/src/sts/hello.sts | 4 +- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index d926708bc..10b6b5197 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -147,34 +147,49 @@ export class ExpressionStatement extends AstNode { readonly expression: AstNode } +// TODO: the CallExpression idl Create signature doesn't include +// the trailing block at all. +// Need to clarify with the compiler people if they will provide +// create signature with a trailing block argument. export class CallExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION) super(peer) - this.expression = unpackNonNullableNode(global.generatedEs2panda._CallExpressionCallee(global.context, this.peer)) - this.arguments = unpackNodeArray(global.generatedEs2panda._CallExpressionArguments(global.context, this.peer)) + this.expression = unpackNonNullableNode( + global.generatedEs2panda._CallExpressionCallee(global.context, this.peer)) + this.arguments = unpackNodeArray( + global.generatedEs2panda._CallExpressionArguments(global.context, this.peer)) + this.trailingBlock = unpackNode( + global.generatedEs2panda._CallExpressionTrailingBlockConst(global.context, this.peer)) } static create( expression: AstNode, typeParamsDecl: TSTypeParameterDeclaration | undefined, - args: readonly AstNode[] | undefined + args: readonly AstNode[] | undefined, + trailingBlock: AstNode | undefined = undefined ): CallExpression { - return new CallExpression( - global.generatedEs2panda._CreateCallExpression( - global.context, - passNode(expression), - passNodeArray(args), - args?.length ?? 0, - passNode(typeParamsDecl), - false, - false - ) + const peer = global.generatedEs2panda._CreateCallExpression( + global.context, + passNode(expression), + passNodeArray(args), + args?.length ?? 0, + passNode(typeParamsDecl), + false, + false ) + const call = new CallExpression(peer) + if (trailingBlock) { + global.generatedEs2panda._CallExpressionSetTrailingBlock( + global.context, peer, trailingBlock?.peer + ) + } + return call } readonly expression: AstNode // Expression readonly arguments: readonly AstNode[] + readonly trailingBlock: AstNode|undefined // BlockStatement } export class AssignmentExpression extends AstNode { diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index c7816ef61..0e0121e9e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -69,7 +69,8 @@ export function visitEachChild( node, nodeVisitor(node.expression, visitor), undefined, // TODO - nodesVisitor(node.arguments, visitor) + nodesVisitor(node.arguments, visitor), + nodeVisitor(node.trailingBlock, visitor) ) } if (node instanceof FunctionDeclaration) { diff --git a/arkoala-arkts/trivial/user/src/sts/hello.sts b/arkoala-arkts/trivial/user/src/sts/hello.sts index 2c01dc061..41c42c50e 100644 --- a/arkoala-arkts/trivial/user/src/sts/hello.sts +++ b/arkoala-arkts/trivial/user/src/sts/hello.sts @@ -9,7 +9,7 @@ import { Color } from "@ohos.arkui" struct MyStateSample { @State color: Color = Color.White build() { - Column({ space: 20 } as ColumnOptions, () => { + Column({ space: 20 } as ColumnOptions) { Text("Hello World!") .fontColor(this.color) Button('change') @@ -17,7 +17,7 @@ struct MyStateSample { this.color = Color.Red }) - }) + } .width(100) .height(300) -- Gitee From e2b61f1a69dd101625fb4b3fa6ca5a2819276323 Mon Sep 17 00:00:00 2001 From: Aleksandr Veselov Date: Mon, 17 Feb 2025 12:41:51 +0000 Subject: [PATCH 24/40] !1854 Do upgrade after release --- 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 a73b43254..1d5e9e0ba 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.2 \ No newline at end of file +1.5.3 \ No newline at end of file diff --git a/arkoala/arkui-common/package.json b/arkoala/arkui-common/package.json index 67ecc3e74..eaf72b00b 100644 --- a/arkoala/arkui-common/package.json +++ b/arkoala/arkui-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkui-common", - "version": "1.5.2+devel", + "version": "1.5.3+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -53,9 +53,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.2+devel", - "@koalaui/compat": "1.5.2+devel", - "@koalaui/runtime": "1.5.2+devel", + "@koalaui/common": "1.5.3+devel", + "@koalaui/compat": "1.5.3+devel", + "@koalaui/runtime": "1.5.3+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 97df59dca..d7f5d0a20 100644 --- a/arkoala/arkui/package.json +++ b/arkoala/arkui/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkoala-arkui", - "version": "1.5.2+devel", + "version": "1.5.3+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -45,10 +45,10 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.2+devel", - "@koalaui/runtime": "1.5.2+devel", + "@koalaui/common": "1.5.3+devel", + "@koalaui/runtime": "1.5.3+devel", "@koalaui/arkoala": "1.4.1+devel", - "@koalaui/arkui-common": "1.5.2+devel", + "@koalaui/arkui-common": "1.5.3+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 97b237c56..167262437 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-plugin", - "version": "1.5.2+devel", + "version": "1.5.3+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 748b635a9..4fbd620d6 100644 --- a/incremental/build-common/package.json +++ b/incremental/build-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/build-common", - "version": "1.5.2+devel", + "version": "1.5.3+devel", "description": "", "files": [ "tsconfig.json" diff --git a/incremental/common/package.json b/incremental/common/package.json index a95616148..abbba1a12 100644 --- a/incremental/common/package.json +++ b/incremental/common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/common", - "version": "1.5.2+devel", + "version": "1.5.3+devel", "description": "", "main": "build/lib/src/index.js", "types": "./index.d.ts", @@ -42,7 +42,7 @@ }, "keywords": [], "dependencies": { - "@koalaui/compat": "1.5.2+devel" + "@koalaui/compat": "1.5.3+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/compat/package.json b/incremental/compat/package.json index ba7c19d60..292882518 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compat", - "version": "1.5.2+devel", + "version": "1.5.3+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 29f36ae5b..8f29b81db 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compiler-plugin", - "version": "1.5.2+devel", + "version": "1.5.3+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.2+devel" + "@koalaui/common": "1.5.3+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/incremental/harness/package.json b/incremental/harness/package.json index b90606807..257c87491 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/harness", - "version": "1.5.2+devel", + "version": "1.5.3+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.2+devel", - "@koalaui/compat": "1.5.2+devel" + "@koalaui/common": "1.5.3+devel", + "@koalaui/compat": "1.5.3+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index 16e37cdcd..2f2ece8b9 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/runtime", - "version": "1.5.2+devel", + "version": "1.5.3+devel", "description": "", "main": "./build/lib/src/index.js", "types": "./build/lib/src/index.d.ts", @@ -40,9 +40,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.2+devel", - "@koalaui/compat": "1.5.2+devel", - "@koalaui/harness": "1.5.2+devel" + "@koalaui/common": "1.5.3+devel", + "@koalaui/compat": "1.5.3+devel", + "@koalaui/harness": "1.5.3+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/interop/package.json b/interop/package.json index 95246e181..f191b67f6 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/interop", - "version": "1.5.2+devel", + "version": "1.5.3+devel", "description": "", "workspaces": [ "../incremental/build-common", @@ -57,7 +57,7 @@ "keywords": [], "dependencies": { "@types/node": "^18.0.0", - "@koalaui/common": "1.5.2+devel" + "@koalaui/common": "1.5.3+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", -- Gitee From 71e5d7351920d2f080da4515f5508c14cf9a950c Mon Sep 17 00:00:00 2001 From: Aleksandr Veselov Date: Mon, 17 Feb 2025 12:58:23 +0000 Subject: [PATCH 25/40] !1855 Add KInteropReturnBuffer for arkts --- interop/src/arkts/InteropTypes.sts | 1 + 1 file changed, 1 insertion(+) diff --git a/interop/src/arkts/InteropTypes.sts b/interop/src/arkts/InteropTypes.sts index 3f186390c..a3a870f0e 100644 --- a/interop/src/arkts/InteropTypes.sts +++ b/interop/src/arkts/InteropTypes.sts @@ -28,6 +28,7 @@ export type KFloat = float export type KPointer = long // look once again export type pointer = KPointer export type KNativePointer = KPointer +export type KInteropReturnBuffer = byte[] export const nullptr: pointer = 0 -- Gitee From fdd7c59b22804d853ebb3fad5e04bc617bbc94d1 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Mon, 17 Feb 2025 13:20:43 +0000 Subject: [PATCH 26/40] !1838 Fix arkoala/ts problems --- .../src/main/ets/pages/detailPage/detail.ets | 3 +- .../src/main/ets/pages/homePage/find.ets | 3 +- .../src/typescript/ArkPageTransition.ts | 12 +- .../src/typescript/ArkRouteType.ts | 8 + arkoala/arkui-common/src/typescript/Router.ts | 29 +- arkoala/arkui-common/src/typescript/index.ts | 1 + arkoala/arkui/src/ArkGesture.ts | 5 - arkoala/arkui/src/EnumsImpl.ts | 2415 ----------------- arkoala/arkui/src/index.ts | 77 +- arkoala/extension-component/tsconfig.json | 2 +- arkoala/framework/src/PeerLayout.ts | 22 +- arkoala/framework/src/PeerNode.ts | 4 +- arkoala/har/scripts/build-arkoala-har.mjs | 17 +- arkoala/loader/tsconfig.json | 2 +- arkoala/loader/web/NativeModuleWeb.ts | 6 +- arkoala/tools/arkoala-transformer/index.ts | 23 +- interop/src/cpp/DeserializerBase.h | 7 +- 17 files changed, 159 insertions(+), 2477 deletions(-) create mode 100644 arkoala/arkui-common/src/typescript/ArkRouteType.ts diff --git a/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/detailPage/detail.ets b/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/detailPage/detail.ets index b9914926c..466d65fc6 100644 --- a/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/detailPage/detail.ets +++ b/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/detailPage/detail.ets @@ -235,7 +235,8 @@ export struct Detail { .padding({ left: 13, right: 23 }) } .height(30 * this.ratio) - .clip(true) + // todo: crash + // .clip(true) .border({ radius: 20 * this.ratio }) } .margin({ top: 10, bottom: 5 }) diff --git a/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/homePage/find.ets b/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/homePage/find.ets index 4efe11c57..fcd744668 100644 --- a/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/homePage/find.ets +++ b/arkoala-arkts/loader/app/shopping/entry/src/main/ets/pages/homePage/find.ets @@ -65,7 +65,8 @@ export struct FindPage { .padding(0) } .height('5%') - .clip(true) + // todo: crash + // .clip(true) .border({ width: 2, color: Color.Orange, radius: 20 }) .width('100%') .backgroundColor(Color.White) diff --git a/arkoala/arkui-common/src/typescript/ArkPageTransition.ts b/arkoala/arkui-common/src/typescript/ArkPageTransition.ts index e34d443aa..785a42b15 100644 --- a/arkoala/arkui-common/src/typescript/ArkPageTransition.ts +++ b/arkoala/arkui-common/src/typescript/ArkPageTransition.ts @@ -13,8 +13,10 @@ * limitations under the License. */ +import { ArkRouteType } from "./ArkRouteType" + export interface ArkPageTransitionParams { - kind: RouteType + kind: ArkRouteType duration: number curve: Curve | string delay: number @@ -22,8 +24,8 @@ export interface ArkPageTransitionParams { export class ArkPageTransitionData { params: Partial - _onEnter?: (type: RouteType, progress: number) => void - _onExit?: (type: RouteType, progress: number) => void + _onEnter?: (type: ArkRouteType, progress: number) => void + _onExit?: (type: ArkRouteType, progress: number) => void _slide?: SlideEffect _translate?: { x?: string | number | undefined; y?: string | number | undefined; z?: string | number | undefined; } _scale?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; centerX?: string | number | undefined; centerY?: string | number | undefined; } @@ -32,11 +34,11 @@ export class ArkPageTransitionData { constructor(params: Partial) { this.params = params } - onEnter(event: (type: RouteType, progress: number) => void): this { + onEnter(event: (type: ArkRouteType, progress: number) => void): this { this._onEnter = event return this } - onExit(event: (type: RouteType, progress: number) => void): this { + onExit(event: (type: ArkRouteType, progress: number) => void): this { this._onExit = event return this } diff --git a/arkoala/arkui-common/src/typescript/ArkRouteType.ts b/arkoala/arkui-common/src/typescript/ArkRouteType.ts new file mode 100644 index 000000000..cfe20ce7b --- /dev/null +++ b/arkoala/arkui-common/src/typescript/ArkRouteType.ts @@ -0,0 +1,8 @@ +export enum ArkRouteType { + NONE = 0, + None = 0, + PUSH = 1, + Push = 1, + POP = 2, + Pop = 2, +} diff --git a/arkoala/arkui-common/src/typescript/Router.ts b/arkoala/arkui-common/src/typescript/Router.ts index a85cac8eb..40089158a 100644 --- a/arkoala/arkui-common/src/typescript/Router.ts +++ b/arkoala/arkui-common/src/typescript/Router.ts @@ -24,6 +24,7 @@ import { remember, RepeatByArray, } from "@koalaui/runtime" +import { ArkRouteType } from "./ArkRouteType" export enum RouterTransitionVisibility { Hidden, @@ -39,7 +40,7 @@ export type MemoFunction = export interface RouterTransitionState { readonly pageId: int32 readonly visibility: RouterTransitionVisibility - readonly route?: RouteType + readonly route?: ArkRouteType } class VisiblePage { @@ -52,14 +53,14 @@ class VisiblePage { page: MemoFunction, version: number, visibility: RouterTransitionVisibility, - route?: RouteType + route?: ArkRouteType ) { this.page = page this.version = version this.transitionState = mutableState({ pageId: version, visibility, route }) } - setTransitionState(visibility: RouterTransitionVisibility, route?: RouteType) { + setTransitionState(visibility: RouterTransitionVisibility, route?: ArkRouteType) { this.transitionState.value = { pageId: this.version, visibility, route } } @@ -234,7 +235,7 @@ class RouterImpl implements Router { if (push) { this.stack.push(new RouterStackEntry(this.state.url, this.state.page, this.state.params)) } - this.activate(entry, push ? RouteType.PUSH : RouteType.NONE, params, resolve) + this.activate(entry, push ? ArkRouteType.PUSH : ArkRouteType.NONE, params, resolve) } else { if (this.resolver) { return this @@ -243,7 +244,7 @@ class RouterImpl implements Router { if (push) { this.stack.push(new RouterStackEntry(this.state.url, this.state.page, this.state.params)) } - this.activate(new RouterRegistryEntry(url, page), push ? RouteType.PUSH : RouteType.NONE, params, resolve) + this.activate(new RouterRegistryEntry(url, page), push ? ArkRouteType.PUSH : ArkRouteType.NONE, params, resolve) }) .catch(error => reject(error)) } @@ -256,10 +257,10 @@ class RouterImpl implements Router { showingPage: number = -1 hidingPage: number = -1 - private activate(entry: RouterRegistryEntry, route: RouteType, params: Map | undefined, resolve: () => void) { + private activate(entry: RouterRegistryEntry, route: ArkRouteType, params: Map | undefined, resolve: () => void) { const state = this.state state.version.value++ - console.log("activating", RouteType[route], entry.url, "version", state.version.value) + console.log("activating", ArkRouteType[route], entry.url, "version", state.version.value) let previousVisiblePageIndex = this.findIndexByVersion(state.currentActivePage.value) let previousVisiblePage = state.visiblePages[previousVisiblePageIndex] if (previousVisiblePage) previousVisiblePage.setTransitionState(RouterTransitionVisibility.Hiding, route) @@ -269,12 +270,12 @@ class RouterImpl implements Router { state.resolve = resolve let newVisiblePage: VisiblePage switch (route) { - case RouteType.PUSH: { + case ArkRouteType.PUSH: { newVisiblePage = new VisiblePage(entry.page, state.version.value, RouterTransitionVisibility.Showing, route) state.visiblePages.splice(previousVisiblePageIndex + 1, 0, newVisiblePage) break } - case RouteType.POP: { + case ArkRouteType.POP: { const index = this.stack.length // TODO: store uid in registry to find a page newVisiblePage = state.visiblePages[index] newVisiblePage.setTransitionState(RouterTransitionVisibility.Showing, route) @@ -285,14 +286,14 @@ class RouterImpl implements Router { } break } - case RouteType.NONE: { + case ArkRouteType.NONE: { // TODO: can/shall we animate replace? newVisiblePage = new VisiblePage(entry.page, state.version.value, RouterTransitionVisibility.Showing, route) state.visiblePages[previousVisiblePageIndex] = newVisiblePage break } default: - throw new Error("Illegal RouteType: " + route) + throw new Error("Illegal ArkRouteType: " + route) } this.hidingPage = previousVisiblePage?.version ?? -1 this.showingPage = newVisiblePage.version @@ -317,7 +318,7 @@ class RouterImpl implements Router { console.log("PAGE VISIBLE:", page.transition.pageId) page.setTransitionState(RouterTransitionVisibility.Visible) } else { - console.log("ERROR: showing page cannot be shown:", page.transition.route ? RouteType[page.transition.route] : "unknown") + console.log("ERROR: showing page cannot be shown:", page.transition.route ? ArkRouteType[page.transition.route] : "unknown") page.setTransitionState(RouterTransitionVisibility.Hidden) } } else if (page.transition.visibility == RouterTransitionVisibility.Hiding) { @@ -329,7 +330,7 @@ class RouterImpl implements Router { this.state.visiblePages.splice(index, 1) } } else { - console.log("ERROR: no page transition:", RouterTransitionVisibility[page.transition.visibility], page.transition.route ? RouteType[page.transition.route] : "unknown") + console.log("ERROR: no page transition:", RouterTransitionVisibility[page.transition.visibility], page.transition.route ? ArkRouteType[page.transition.route] : "unknown") } } @@ -357,7 +358,7 @@ class RouterImpl implements Router { entry = this.stack.length > 0 ? this.stack.pop() : undefined } if (entry) { - this.activate(entry, RouteType.POP, params ?? entry.params, resolve) + this.activate(entry, ArkRouteType.POP, params ?? entry.params, resolve) } else { reject(`history is empty`) } diff --git a/arkoala/arkui-common/src/typescript/index.ts b/arkoala/arkui-common/src/typescript/index.ts index 62c53d11b..b448e82e1 100644 --- a/arkoala/arkui-common/src/typescript/index.ts +++ b/arkoala/arkui-common/src/typescript/index.ts @@ -14,6 +14,7 @@ */ export * from "./ArkPageTransition" +export * from "./ArkRouteType" export * from "./Storage" export * from "./Router" diff --git a/arkoala/arkui/src/ArkGesture.ts b/arkoala/arkui/src/ArkGesture.ts index e5cefff56..af685b42e 100644 --- a/arkoala/arkui/src/ArkGesture.ts +++ b/arkoala/arkui/src/ArkGesture.ts @@ -27,11 +27,6 @@ export enum GestureName { Group } -export enum GesturePriority { - Low, - Parallel -} - function getGestureMask(mask: GestureMask): number { switch(mask) { case GestureMask.NORMAL: diff --git a/arkoala/arkui/src/EnumsImpl.ts b/arkoala/arkui/src/EnumsImpl.ts index 5dae340fd..e69de29bb 100644 --- a/arkoala/arkui/src/EnumsImpl.ts +++ b/arkoala/arkui/src/EnumsImpl.ts @@ -1,2415 +0,0 @@ -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/index.ts b/arkoala/arkui/src/index.ts index b21463005..a0aa4dab8 100644 --- a/arkoala/arkui/src/index.ts +++ b/arkoala/arkui/src/index.ts @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import "./EnumsImpl" export * from "./ArkUIGeneratedNativeModule" export * from "./ArkUIGeneratedNativeModuleEmpty" export * from "./peer_events_checker" @@ -20,14 +19,9 @@ export * from "./root_construct" export * from "./ArkButton" export * from "./ArkColumn" export { ArkCommonMethodComponent} from "./ArkCommon" -export * from "./ArkCommonInterfaces" -export * from "./ArkEnumsInterfaces" export * from "./ArkXComponentControllerMaterialized" -export * from "./ArkResourceInterfaces" export * from "./ArkScrollerMaterialized" export * from "./ArkVideoControllerMaterialized" -export * from "./ArkNavigatorInterfaces" -export * from "./ArkCanvasInterfaces" export * from "./ArkCanvasRenderingContext2DMaterialized" export * from "./ComponentBase" export * from "./ArkColumnSplit" @@ -96,7 +90,6 @@ export * from "./ArkTextPicker" export * from "./ArkTextTimer" export * from "./ArkTimePicker" -export * from "./ArkTabs" export * from "./ArkTabContent" export * from "./ArkSidebar" @@ -161,3 +154,73 @@ export { Attach } from "./ComponentBase" export * from "./ArkNavPathStackMaterialized" export * from "./ArkTabsControllerMaterialized" export * from "./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" diff --git a/arkoala/extension-component/tsconfig.json b/arkoala/extension-component/tsconfig.json index 5c67b6699..703ad82e6 100644 --- a/arkoala/extension-component/tsconfig.json +++ b/arkoala/extension-component/tsconfig.json @@ -15,7 +15,7 @@ "strict": true, "skipLibCheck": true, "removeComments": false, - "types": ["arkoala-arkui", "arkoala-runtime"], + "types": ["arkoala-arkui"], "plugins": [ { "transform": "@koalaui/compiler-plugin/build/lib/src/koala-transformer.js", "trace": false } ] diff --git a/arkoala/framework/src/PeerLayout.ts b/arkoala/framework/src/PeerLayout.ts index b90aea5df..cc1a8175e 100644 --- a/arkoala/framework/src/PeerLayout.ts +++ b/arkoala/framework/src/PeerLayout.ts @@ -15,7 +15,7 @@ import { int32 } from "@koalaui/common" -export enum Alignment { +export enum ArkAlignment { TopStart, Top, TopEnd, @@ -45,7 +45,7 @@ export function parseLength(parentValue: number, value: number, unit: int32): nu } export function align( - alignment: Alignment, + alignment: ArkAlignment, width: number, height: number, childWidth: number, @@ -53,41 +53,41 @@ export function align( args: Float32Array ) { switch (alignment) { - case Alignment.TopStart: { + case ArkAlignment.TopStart: { break } - case Alignment.Start: { + case ArkAlignment.Start: { args[1] += (height - childHeight) / 2 break } - case Alignment.BottomStart: { + case ArkAlignment.BottomStart: { args[1] += height - childHeight break } - case Alignment.Top: { + case ArkAlignment.Top: { args[0] += (width - childWidth) / 2 break } - case Alignment.Center: { + case ArkAlignment.Center: { args[0] += (width - childWidth) / 2 args[1] += (height - childHeight) / 2 break } - case Alignment.Bottom: { + case ArkAlignment.Bottom: { args[0] += (width - childWidth) / 2 args[1] += height - childHeight break } - case Alignment.TopEnd: { + case ArkAlignment.TopEnd: { args[0] += width - childWidth break } - case Alignment.End: { + case ArkAlignment.End: { args[0] += width - childWidth args[1] += (height - childHeight) / 2 break } - case Alignment.BottomEnd: { + case ArkAlignment.BottomEnd: { args[0] += width - childWidth args[1] += height - childHeight break diff --git a/arkoala/framework/src/PeerNode.ts b/arkoala/framework/src/PeerNode.ts index 38837be4a..7f0a2c144 100644 --- a/arkoala/framework/src/PeerNode.ts +++ b/arkoala/framework/src/PeerNode.ts @@ -33,7 +33,7 @@ import { } from "./PeerEvents" import { NativePeerNode } from "./NativePeerNode" import { WebLoadInterceptDataType } from "./WebResourceRequest" -import { Alignment } from "./PeerLayout" +import { ArkAlignment } from "./PeerLayout" export function IntToFloatArray(array: Int32Array, offset: number = 0, length?: number): Float32Array { length = length ?? (array.length - offset) @@ -252,7 +252,7 @@ export class PeerNode extends IncrementalNode implements CustomizableNode { private flags: int32 getFlags(): int32 { return this.flags } - alignment: int32 = Alignment.Center + alignment: int32 = ArkAlignment.Center measureResult: Float32Array = new Float32Array(4) layoutResult: Float32Array = new Float32Array(4) diff --git a/arkoala/har/scripts/build-arkoala-har.mjs b/arkoala/har/scripts/build-arkoala-har.mjs index 6b2e3183c..a00bacf36 100644 --- a/arkoala/har/scripts/build-arkoala-har.mjs +++ b/arkoala/har/scripts/build-arkoala-har.mjs @@ -4,14 +4,15 @@ import path from "path" import process from "process" const CWD = process.cwd() -const ARKOALA_DTS_PATH = path.join(CWD, "../arkui/build/lib/src/shared") const BUNDLE_PATH = path.join(CWD, "arkoala-har-bundle") const HAR_PATH = path.join(CWD, "app/arkoala") +const DTS_PATH = path.join(CWD, "../arkui/build/lib/src/shared") const DTS = [ - "system.router.d.ts", - "ohos.router.d.ts", - "ohos.matrix4.d.ts", - "ohos.arkui.testing.d.ts" + [DTS_PATH, "system.router.d.ts"], + [DTS_PATH, "ohos.router.d.ts"], + [DTS_PATH, "ohos.matrix4.d.ts"], + [DTS_PATH, "ohos.arkui.testing.d.ts"], + [path.join(CWD, "../arkui-types"), "index-full.d.ts"] ] function rollupLaunch() { @@ -58,8 +59,10 @@ function main() { rollupLaunch() apiExtractorLaunch() - DTS.forEach((file) => { - copyDts(path.join(ARKOALA_DTS_PATH, file), path.join(BUNDLE_PATH, "dist", file)) + DTS.forEach((entry) => { + const base = entry[0] + const file = entry[1] + copyDts(path.join(base, file), path.join(BUNDLE_PATH, "dist", file)) }) const files = fs.readdirSync(path.join(BUNDLE_PATH, "dist")) diff --git a/arkoala/loader/tsconfig.json b/arkoala/loader/tsconfig.json index c689bbaf8..77ce1be18 100644 --- a/arkoala/loader/tsconfig.json +++ b/arkoala/loader/tsconfig.json @@ -18,7 +18,7 @@ ], "outDir": "build", "baseUrl": "..", - "types": ["arkoala-arkui", "arkoala-runtime"], + "types": ["arkoala-arkui"], "paths": { "#common/wrappers/*": ["../interop/src/napi/wrappers/*", "../interop/src/wasm/wrappers/*"], "@ohos.*": ["./arkui-common/ohos-sdk-ets/HarmonyOS-NEXT-DB1/openharmony/ets/api/@ohos.*"] diff --git a/arkoala/loader/web/NativeModuleWeb.ts b/arkoala/loader/web/NativeModuleWeb.ts index 107df504c..e4318b7fc 100644 --- a/arkoala/loader/web/NativeModuleWeb.ts +++ b/arkoala/loader/web/NativeModuleWeb.ts @@ -13,13 +13,13 @@ * limitations under the License. */ import { - Alignment, ComponentAsyncEventSubKind, NativeNodeFlags, PeerEventKind, parseLength, UndefinedDimensionUnit, align, + ArkAlignment, CustomNodeOpType, toColor, ArkUINativeModuleEmpty @@ -80,7 +80,7 @@ class TreeNodePointer { dimensionHeight: Dimension dimensionX: Dimension dimensionY: Dimension - alignment: Alignment + alignment: ArkAlignment children: Array parent?: TreeNodePointer @@ -98,7 +98,7 @@ class TreeNodePointer { this.dimensionHeight = new Dimension() this.dimensionX = new Dimension() this.dimensionY = new Dimension() - this.alignment = Alignment.Center + this.alignment = ArkAlignment.Center this.children = [] } diff --git a/arkoala/tools/arkoala-transformer/index.ts b/arkoala/tools/arkoala-transformer/index.ts index 5d3ddab63..1676c9c75 100644 --- a/arkoala/tools/arkoala-transformer/index.ts +++ b/arkoala/tools/arkoala-transformer/index.ts @@ -2,6 +2,7 @@ import memoPlugin from "@koalaui/compiler-plugin"; import { makeEtsExpander } from "@koalaui/ets-plugin"; import type * as ts from "@koalaui/ets-tsc" import * as fs from "fs" +import * as path from "path" import chalk from "chalk" @@ -153,8 +154,21 @@ function transformMemoCode(program: ts.Program, compilerHost: CacheCompilerHost, } function transformETSCode(program: ts.Program, compilerHost: CacheCompilerHost, options: ArkoalaPluginOptions, extras: ts.TransformerExtras): ts.Program { + const arkui = "@koalaui/arkoala-arkui" const compilerOptions = program.getCompilerOptions() const rootFiles: string[] = program.getRootFileNames().map((extras.ts as any).normalizePath) + + const buildJson = loadBuildJson() + if (buildJson) { + const indexFull = path.join(buildJson.projectRootPath, "oh_modules", arkui, "index-full.d.ts") + if (fs.existsSync(indexFull)) { + // support arkoala/ts + debug("Including " + indexFull) + rootFiles.unshift(indexFull) + program = extras.ts.createProgram(rootFiles, compilerOptions, compilerHost, program) + } + } + const rootFileSet = new Set(rootFiles) // debug(["Ets transform program roots:", ...rootFiles].join("\n - ")) @@ -177,7 +191,7 @@ function transformETSCode(program: ts.Program, compilerHost: CacheCompilerHost, const transformers = [ makeEtsExpander(program.getTypeChecker() as any, { trace: false, - arkui: "@koalaui/arkoala-arkui", + arkui: arkui, source: options.routerRootDir, }, extras as any) as any // TODO ts ] @@ -206,4 +220,11 @@ function transformETSCode(program: ts.Program, compilerHost: CacheCompilerHost, return prog; } +function loadBuildJson() { + if (process.env.aceBuildJson && fs.existsSync(process.env.aceBuildJson)) { + return JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString()) + } + return undefined +} + programTransformer.debug = debug \ No newline at end of file diff --git a/interop/src/cpp/DeserializerBase.h b/interop/src/cpp/DeserializerBase.h index 16d49ffe7..8e5487593 100644 --- a/interop/src/cpp/DeserializerBase.h +++ b/interop/src/cpp/DeserializerBase.h @@ -23,6 +23,7 @@ #include #include "interop-types.h" +#include "interop-logging.h" void holdManagedCallbackResource(InteropInt32); void releaseManagedCallbackResource(InteropInt32); @@ -356,10 +357,10 @@ public: return current->deserialize(this, kind); current = current->next; } - fprintf(stderr, "Unsupported custom deserialization for %s\n", kind.c_str()); + LOGE("Unsupported custom deserialization for %{public}s\n", kind.c_str()); auto tag = readTag(); - if (tag == INTEROP_TAG_UNDEFINED) INTEROP_FATAL("Undefined interop tag"); - // Skip updefined tag!. + if (tag == INTEROP_TAG_UNDEFINED) LOGE("Undefined interop tag"); + // Skip undefined tag!. InteropCustomObject result; strcpy(result.kind, "Error"); strcat(result.kind, kind.c_str()); -- Gitee From 238a4969985ae34f412f9b0f4b6f805f4852aa65 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Mon, 17 Feb 2025 13:50:08 +0000 Subject: [PATCH 27/40] !1857 Fix deferred leak * Fix deferred leak --- interop/src/cpp/common-interop.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/interop/src/cpp/common-interop.cc b/interop/src/cpp/common-interop.cc index 6a7160f65..ff493c06e 100644 --- a/interop/src/cpp/common-interop.cc +++ b/interop/src/cpp/common-interop.cc @@ -379,7 +379,6 @@ KOALA_INTEROP_V1(NativeLog, KStringPtr) void resolveDeferred(KVMDeferred* deferred, uint8_t* argsData, int32_t argsLength) { #ifdef KOALA_NAPI - napi_acquire_threadsafe_function((napi_threadsafe_function)deferred->handler); auto status = napi_call_threadsafe_function((napi_threadsafe_function)deferred->handler, deferred, napi_tsfn_nonblocking); if (status != napi_ok) LOGE("cannot call thread-safe function; status=%d", status); napi_release_threadsafe_function((napi_threadsafe_function)deferred->handler, napi_tsfn_release); -- Gitee From f897c30579fe924d412417717bb99e26f1fe395e Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Mon, 17 Feb 2025 13:51:09 +0000 Subject: [PATCH 28/40] !1851 This is to regenerate on each test run --- arkoala-arkts/.gitlab-ci.yml | 13 +++---------- arkoala-arkts/libarkts/.gitlab-ci.yml | 4 ++++ arkoala-arkts/memo-plugin/.gitlab-ci.yml | 6 ++---- gitlab/setup.yml | 6 ++++++ 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/arkoala-arkts/.gitlab-ci.yml b/arkoala-arkts/.gitlab-ci.yml index 99eba0be1..141082cdc 100644 --- a/arkoala-arkts/.gitlab-ci.yml +++ b/arkoala-arkts/.gitlab-ci.yml @@ -126,11 +126,9 @@ install node modules (arkoala-arkts): - install node modules (arkoala-arkts) - install node modules (incremental) - install node modules (interop) - - regenerate plugin-api before_script: - !reference [.setup, script] - - npm run panda:sdk:install --prefix arkoala-arkts - - npm run compile --prefix arkoala-arkts/libarkts + - !reference [.setup, regenerate-plugin-api] script: - npm run build:compat:inc:capi --prefix incremental/compat @@ -143,11 +141,9 @@ install node modules (arkoala-arkts): - install node modules (arkoala-arkts) - install node modules (incremental) - install node modules (interop) - - regenerate plugin-api before_script: - !reference [.setup, script] - - npm run panda:sdk:install --prefix arkoala-arkts - - npm run compile --prefix arkoala-arkts/libarkts + - !reference [.setup, regenerate-plugin-api] script: - npm run build:common:inc:capi --prefix incremental/common @@ -160,12 +156,9 @@ install node modules (arkoala-arkts): - install node modules (arkoala-arkts) - install node modules (incremental) - install node modules (interop) - - regenerate plugin-api before_script: - !reference [.setup, script] - - npm run panda:sdk:install --prefix arkoala-arkts - # need the library as well as the plugins built - - npm run run --prefix arkoala-arkts/libarkts + - !reference [.setup, regenerate-plugin-api] script: - npm run run:user:pure-sts --prefix arkoala-arkts/trivial/user diff --git a/arkoala-arkts/libarkts/.gitlab-ci.yml b/arkoala-arkts/libarkts/.gitlab-ci.yml index 56f444620..68ace4dd1 100644 --- a/arkoala-arkts/libarkts/.gitlab-ci.yml +++ b/arkoala-arkts/libarkts/.gitlab-ci.yml @@ -34,6 +34,7 @@ build plugin-api: - !reference [ .setup, script ] - cd arkoala-arkts/libarkts - npm run panda:sdk:install + - npm run regenerate script: - npm run compile needs: @@ -50,6 +51,7 @@ test plugin-api: - !reference [ .setup, script ] - cd arkoala-arkts/libarkts - npm run panda:sdk:install + - npm run regenerate script: - npm run test needs: @@ -66,6 +68,7 @@ test example arkts-plugin: - !reference [ .setup, script ] - cd arkoala-arkts/libarkts - npm run panda:sdk:install + - npm run regenerate script: - npm run run needs: @@ -81,6 +84,7 @@ test libarkts playground: - !reference [ .setup, script ] - cd arkoala-arkts/libarkts - npm run panda:sdk:install + - npm run regenerate script: - npm run run:playground needs: diff --git a/arkoala-arkts/memo-plugin/.gitlab-ci.yml b/arkoala-arkts/memo-plugin/.gitlab-ci.yml index 51db6fa47..0f78f448c 100644 --- a/arkoala-arkts/memo-plugin/.gitlab-ci.yml +++ b/arkoala-arkts/memo-plugin/.gitlab-ci.yml @@ -10,8 +10,7 @@ build memo-plugin: - install node modules (interop) before_script: - !reference [.setup, script] - - npm run panda:sdk:install --prefix arkoala-arkts/libarkts - - npm run compile --prefix arkoala-arkts/libarkts + - !reference [.setup, regenerate-plugin-api] script: - npm run compile --prefix arkoala-arkts/memo-plugin @@ -28,13 +27,12 @@ test memo-plugin: - build incremental.abc before_script: - !reference [.setup, script] + - !reference [.setup, regenerate-plugin-api] - npm run compile:all --prefix incremental/compat - npm run compile --prefix incremental/common - npm run compile --prefix incremental/compiler-plugin - npm run compile --prefix incremental/runtime - npm run unmemoize --prefix incremental/runtime - - npm run panda:sdk:install --prefix arkoala-arkts/libarkts - - npm run compile --prefix arkoala-arkts/libarkts - npm run compile --prefix arkoala-arkts/memo-plugin script: - npm run demo:run --prefix arkoala-arkts/memo-plugin diff --git a/gitlab/setup.yml b/gitlab/setup.yml index a04c621a2..900f68433 100644 --- a/gitlab/setup.yml +++ b/gitlab/setup.yml @@ -9,6 +9,12 @@ - npm config set @idlizer:registry https://nexus.bz-openlab.ru:10443/repository/koala-npm/ - npm config set //nexus.bz-openlab.ru:10443/repository/koala-npm/:_auth $NEXUS_NPM_PASS - npm config list + regenerate-plugin-api: + - cd arkoala-arkts/libarkts + - npm run reinstall:regenerate + - npm run compile + - npm run compile:plugins + - cd - .linux-vm-shell-task: tags: -- Gitee From 562957b3ec4af77762096df81d68cef156d17519 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Mon, 17 Feb 2025 14:40:33 +0000 Subject: [PATCH 29/40] !1856 regenerate + runtime-api --- .../libarkts/native/src/generated/bridges.cc | 27 --- .../src/generated/Es2pandaNativeModule.ts | 9 - .../src/generated/peers/Identifier.ts | 3 - .../memo-plugin/demo/arktsconfig.json | 9 - .../runtime-api/animation/AnimatedState.sts | 37 ++++ .../runtime-api/animation/AnimationRange.sts | 19 ++ .../runtime-api/animation/Easing.sts | 45 +++++ .../runtime-api/animation/EasingSupport.sts | 23 +++ .../runtime-api/animation/GlobalTimer.sts | 20 ++ .../runtime-api/animation/TimeAnimation.sts | 60 ++++++ .../runtime-api/animation/memo.sts | 28 +++ .../memo-plugin/runtime-api/annotations.sts | 5 + .../memo-plugin/runtime-api/common.sts | 4 + .../memo-plugin/runtime-api/index.sts | 171 +++++++++++++++++- .../memo-plugin/runtime-api/internals.sts | 25 +++ .../memo-plugin/runtime-api/memo/bind.sts | 29 +++ .../runtime-api/memo/changeListener.sts | 18 ++ .../runtime-api/memo/contextLocal.sts | 20 ++ .../memo-plugin/runtime-api/memo/entry.sts | 29 ++- .../memo-plugin/runtime-api/memo/node.sts | 29 +++ .../memo-plugin/runtime-api/memo/remember.sts | 28 +++ .../memo-plugin/runtime-api/memo/repeat.sts | 26 +++ .../memo-plugin/runtime-api/memo/testing.sts | 33 ++++ .../runtime-api/states/Dependency.sts | 27 +++ .../runtime-api/states/Disposable.sts | 22 +++ .../runtime-api/states/GlobalStateManager.sts | 23 ++- .../runtime-api/states/Journal.sts | 34 ++++ .../memo-plugin/runtime-api/states/State.sts | 85 ++++++++- .../runtime-api/tree/IncrementalNode.sts | 41 +++++ .../runtime-api/tree/PrimeNumbers.sts | 17 ++ .../runtime-api/tree/ReadonlyTreeNode.sts | 19 ++ .../memo-plugin/runtime-api/tree/TreeNode.sts | 59 ++++++ .../memo-plugin/runtime-api/tree/TreePath.sts | 25 +++ .../runtime-api/tree/TreeUpdater.sts | 30 +++ arkoala-arkts/memo-plugin/src/utils.ts | 2 +- 35 files changed, 1010 insertions(+), 71 deletions(-) create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/AnimatedState.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/AnimationRange.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/Easing.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/EasingSupport.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/GlobalTimer.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/TimeAnimation.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/animation/memo.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/annotations.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/internals.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/bind.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/changeListener.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/contextLocal.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/node.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/remember.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/repeat.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/memo/testing.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/states/Dependency.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/states/Disposable.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/states/Journal.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/tree/IncrementalNode.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/tree/PrimeNumbers.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/tree/ReadonlyTreeNode.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/tree/TreeNode.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/tree/TreePath.sts create mode 100644 arkoala-arkts/memo-plugin/runtime-api/tree/TreeUpdater.sts diff --git a/arkoala-arkts/libarkts/native/src/generated/bridges.cc b/arkoala-arkts/libarkts/native/src/generated/bridges.cc index 8aaff46e2..dc18f5c0f 100644 --- a/arkoala-arkts/libarkts/native/src/generated/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/generated/bridges.cc @@ -8757,33 +8757,6 @@ void impl_IdentifierSetAnnotationUsage(KNativePointer context, KNativePointer re } KOALA_INTEROP_V2(IdentifierSetAnnotationUsage, KNativePointer, KNativePointer); -KBoolean impl_IdentifierIsImplicitThisConst(KNativePointer context, KNativePointer receiver) -{ - const auto _context = reinterpret_cast(context); - const auto _receiver = reinterpret_cast(receiver); - auto result = GetImpl()->IdentifierIsImplicitThisConst(_context, _receiver); - return result; -} -KOALA_INTEROP_2(IdentifierIsImplicitThisConst, KBoolean, KNativePointer, KNativePointer); - -void impl_IdentifierSetImplicitThis(KNativePointer context, KNativePointer receiver) -{ - const auto _context = reinterpret_cast(context); - const auto _receiver = reinterpret_cast(receiver); - GetImpl()->IdentifierSetImplicitThis(_context, _receiver); - return ; -} -KOALA_INTEROP_V2(IdentifierSetImplicitThis, KNativePointer, KNativePointer); - -void impl_IdentifierRemoveImplicitThis(KNativePointer context, KNativePointer receiver) -{ - const auto _context = reinterpret_cast(context); - const auto _receiver = reinterpret_cast(receiver); - GetImpl()->IdentifierRemoveImplicitThis(_context, _receiver); - return ; -} -KOALA_INTEROP_V2(IdentifierRemoveImplicitThis, KNativePointer, KNativePointer); - KNativePointer impl_IdentifierCloneReference(KNativePointer context, KNativePointer receiver, KNativePointer parent) { const auto _context = reinterpret_cast(context); diff --git a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts index f41d26e19..1e64f6f80 100644 --- a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts @@ -2749,15 +2749,6 @@ export class Es2pandaNativeModule { _IdentifierSetAnnotationUsage(context: KNativePointer, receiver: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } - _IdentifierIsImplicitThisConst(context: KNativePointer, receiver: KNativePointer): KBoolean { - throw new Error("This methods was not overloaded by native module initialization") - } - _IdentifierSetImplicitThis(context: KNativePointer, receiver: KNativePointer): void { - throw new Error("This methods was not overloaded by native module initialization") - } - _IdentifierRemoveImplicitThis(context: KNativePointer, receiver: KNativePointer): void { - throw new Error("This methods was not overloaded by native module initialization") - } _IdentifierCloneReference(context: KNativePointer, receiver: KNativePointer, parent: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index cd71334a0..962505a65 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -79,9 +79,6 @@ export class Identifier extends AnnotatedExpression { get isAnnotationUsageConst(): boolean { return global.generatedEs2panda._IdentifierIsAnnotationUsageConst(global.context, this.peer) } - get isImplicitThisConst(): boolean { - return global.generatedEs2panda._IdentifierIsImplicitThisConst(global.context, this.peer) - } get typeAnnotationConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._IdentifierTypeAnnotationConst(global.context, this.peer)) } diff --git a/arkoala-arkts/memo-plugin/demo/arktsconfig.json b/arkoala-arkts/memo-plugin/demo/arktsconfig.json index 24a22d262..36854c9be 100644 --- a/arkoala-arkts/memo-plugin/demo/arktsconfig.json +++ b/arkoala-arkts/memo-plugin/demo/arktsconfig.json @@ -4,17 +4,8 @@ "outDir": "build/abc", "baseUrl": ".", "paths": { - "@koalaui/compat": [ - "../../../incremental/compat/src/arkts" - ], - "@koalaui/common": [ - "../../../incremental/common/src" - ], "@koalaui/runtime": [ "../runtime-api" - ], - "@koalaui/interop": [ - "../../../interop/src/arkts" ] }, "plugins": [ diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/AnimatedState.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/AnimatedState.sts new file mode 100644 index 000000000..470d228f3 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/AnimatedState.sts @@ -0,0 +1,37 @@ +/* + * 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 { int64 } from "../common" +import { TimeAnimation } from "./TimeAnimation" +import { MutableState, State } from "../states/State" +export declare interface AnimatedState extends State { + animation: TimeAnimation + readonly running: boolean + paused: boolean +} +export declare function animatedState(animation: TimeAnimation, startNow: boolean = false, timeProvider?: () => int64): AnimatedState +export declare interface MutableAnimatedState extends MutableState { + animation: TimeAnimation + readonly running: boolean +} +export declare function mutableAnimatedState(initial: Value, animationProvider: ImplicitAnimationProvider): MutableAnimatedState +export type ImplicitAnimationProvider = (from: Value, to: Value) => TimeAnimation +export declare interface StateAnimator { + parameter: Parameter + readonly value: Value + onValueChange(action: (newValue: Value) => void): void +} +export declare function stateAnimator(parameter: P, animationProvider: ParametrizedAnimationProvider): StateAnimator +export type ParametrizedAnimationProvider = (parameter: P, value: V | undefined) => TimeAnimation diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/AnimationRange.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/AnimationRange.sts new file mode 100644 index 000000000..236cd721e --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/AnimationRange.sts @@ -0,0 +1,19 @@ +/* + * 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 { float64 } from "../common" +export type AnimationRange = (value: float64) => Value +export declare function ArrayAnimationRange(from: ReadonlyArray, to: ReadonlyArray, compute: (array: ReadonlyArray) => Value): AnimationRange +export declare function NumberAnimationRange(from: float64, to: float64): AnimationRange diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/Easing.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/Easing.sts new file mode 100644 index 000000000..bc0a01b25 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/Easing.sts @@ -0,0 +1,45 @@ +/* + * 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 { float64, uint32 } from "../common" +export type EasingCurve = (value: float64) => float64 +export declare class Easing { + static readonly Linear: EasingCurve + static readonly LinearReversed: EasingCurve + static readonly EaseInSine: EasingCurve + static readonly EaseOutSine: EasingCurve + static readonly EaseInOutSine: EasingCurve + static readonly Ease: EasingCurve + static readonly EaseIn: EasingCurve + static readonly EaseOut: EasingCurve + static readonly EaseInOut: EasingCurve + static readonly ViscousFluid: EasingCurve + static readonly Bubble: EasingCurve + static inverted(easing: EasingCurve): EasingCurve + static reversed(easing: EasingCurve): EasingCurve + static restarted(easing: EasingCurve): EasingCurve + static repeated(easing: EasingCurve, count: uint32): EasingCurve + static joined(...easing: EasingCurve[]): EasingCurve + static thereAndBackAgain(easing: EasingCurve): EasingCurve + static cubicBezier(p1x: float64, p1y: float64, p2x: float64, p2y: float64): EasingCurve + static steps(stops: uint32, jump: EasingStepJump = EasingStepJump.None): EasingCurve + static viscousFluid(v0: float64 = 1, f: float64 = 3): EasingCurve +} +export enum EasingStepJump { + Start, + End, + None, + Both, +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/EasingSupport.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/EasingSupport.sts new file mode 100644 index 000000000..b67f72891 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/EasingSupport.sts @@ -0,0 +1,23 @@ +/* + * 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 { float64, uint32 } from "../common" +export declare class EasingSupport { + private x: Float64Array + private y: Float64Array + private constructor(size: uint32, xSupplier: (value: float64) => float64, ySupplier: (value: float64) => float64) + convert(value: float64): float64 + static newCubicBezier(p1x: float64, p1y: float64, p2x: float64, p2y: float64, size: uint32 = 1024): EasingSupport +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/GlobalTimer.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/GlobalTimer.sts new file mode 100644 index 000000000..446dd5c9a --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/GlobalTimer.sts @@ -0,0 +1,20 @@ +/* + * 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 { int64 } from "../common" +import { GlobalStateManager } from "../states/GlobalStateManager" +import { MutableState, StateContext } from "../states/State" +export declare function getAnimationTimer(context: StateContext = GlobalStateManager.instance): MutableState | undefined +export declare function createAnimationTimer(context: StateContext, initial: int64 = 0): MutableState diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/TimeAnimation.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/TimeAnimation.sts new file mode 100644 index 000000000..f82ee8174 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/TimeAnimation.sts @@ -0,0 +1,60 @@ +/* + * 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 { float64, int32, int64, uint32 } from "../common" +import { AnimationRange } from "./AnimationRange" +import { EasingCurve } from "./Easing" +export declare const DEFAULT_ANIMATION_DURATION: uint32 +export declare interface TimeAnimation { + readonly running: boolean + getValue(time: int64): Value + onStart(time: int64): void + onPause(time: int64): void +} +export declare interface AnimationSpec { + readonly duration: uint32 + readonly delay: uint32 + readonly easing: EasingCurve + readonly onEdge: OnEdge + readonly onPause: OnPause + readonly iterations: int32 | undefined + readonly onStart: (() => void) | undefined + readonly onEnd: (() => void) | undefined + readonly onReset: (() => void) | undefined +} +export declare class OnEdge { + static Nothing: OnEdge + static Reverse: OnEdge + static Restart: OnEdge + private constructor(name: string) +} +export declare class OnPause { + static Nothing: OnPause + static Reset: OnPause + static Fade: OnPause + private constructor(name: string) +} +export declare function constAnimation(value: Value): TimeAnimation +export declare function timeAnimation(compute: (time: int64) => Value, initialTime: int64 = 0): TimeAnimation +export declare function smoothAnimation(period: uint32, from: float64 = 0.0, to: float64 = 1.0): TimeAnimation +export declare function blinkAnimation(period: uint32, initialValue: boolean = false): TimeAnimation +export declare function countAnimation(period: uint32, initialCount: int64 = 0): TimeAnimation +export declare function periodicAnimation(period: uint32, compute: (count: int64) => Value, initialCount: int64 = 0): TimeAnimation +export declare function periodicAnimationWithDelay(delay: uint32, period: uint32, compute: (count: int64) => Value, initialCount: int64 = 0): TimeAnimation +export declare function frameAnimation(frameTime: ReadonlyArray, compute: (index: int64) => Value): TimeAnimation +export declare function numberAnimation(spec: Partial, to: float64 = 1.0, from: float64 = 0.0): TimeAnimation +export declare function animation(spec: Partial, compute: AnimationRange, initialState: float64 = 0): TimeAnimation +export declare function transition(duration: uint32, easing: EasingCurve, compute: AnimationRange, initialState: int64 = 0): TimeAnimation +export declare function linearTransition(duration: uint32, compute: AnimationRange, initialState: int64 = 0): TimeAnimation \ No newline at end of file diff --git a/arkoala-arkts/memo-plugin/runtime-api/animation/memo.sts b/arkoala-arkts/memo-plugin/runtime-api/animation/memo.sts new file mode 100644 index 000000000..1ed38006d --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/animation/memo.sts @@ -0,0 +1,28 @@ +/* + * 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 { memo } from "../annotations" +import { float64, int64, uint32 } from "../common" +import { AnimatedState, ImplicitAnimationProvider, MutableAnimatedState, ParametrizedAnimationProvider, StateAnimator, animatedState, mutableAnimatedState, stateAnimator } from "./AnimatedState" +import { AnimationRange } from "./AnimationRange" +import { Easing, EasingCurve } from "./Easing" +import { AnimationSpec, TimeAnimation } from "./TimeAnimation" +@memo export declare function sampledValue(sampleRate: uint32, generator: (tick: int64) => V): V +@memo export declare function rememberAnimatedState(animation: () => TimeAnimation, startNow: boolean = false): AnimatedState +@memo export declare function rememberNumberTransition(on: boolean, duration: uint32, easing: EasingCurve = Easing.Linear, to: float64 = 1.0, from: float64 = 0.0): AnimatedState +@memo export declare function rememberTransition(on: boolean, duration: uint32, easing: EasingCurve, compute: AnimationRange, initial: boolean = on): AnimatedState +@memo export declare function rememberMutableAnimatedState(initial: Value, animationProvider: ImplicitAnimationProvider): MutableAnimatedState +@memo export declare function rememberMutableAnimatedStateNumber(initial: float64, animationSpec: Partial): MutableAnimatedState +@memo export declare function rememberAnimator(parameter: P, animationProvider: ParametrizedAnimationProvider): StateAnimator \ No newline at end of file diff --git a/arkoala-arkts/memo-plugin/runtime-api/annotations.sts b/arkoala-arkts/memo-plugin/runtime-api/annotations.sts new file mode 100644 index 000000000..a2e946f10 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/annotations.sts @@ -0,0 +1,5 @@ +export @interface memo {} +export @interface memo_intrinsic {} +export @interface memo_entry {} +export @interface memo_stable {} +export @interface memo_skip {} diff --git a/arkoala-arkts/memo-plugin/runtime-api/common.sts b/arkoala-arkts/memo-plugin/runtime-api/common.sts index f8a1d055d..5110a3882 100644 --- a/arkoala-arkts/memo-plugin/runtime-api/common.sts +++ b/arkoala-arkts/memo-plugin/runtime-api/common.sts @@ -1 +1,5 @@ export type KoalaCallsiteKey = int +export type int32 = int +export type uint32 = int +export type int64 = long +export type float64 = double diff --git a/arkoala-arkts/memo-plugin/runtime-api/index.sts b/arkoala-arkts/memo-plugin/runtime-api/index.sts index 90d3cc3aa..a057aae34 100644 --- a/arkoala-arkts/memo-plugin/runtime-api/index.sts +++ b/arkoala-arkts/memo-plugin/runtime-api/index.sts @@ -1,10 +1,165 @@ -import { KoalaCallsiteKey } from "./common" -import { StateContext } from "./states/State" +/* + * 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. + */ -export { memoEntry } from "./memo/entry" -export { GlobalStateManager } from "./states/GlobalStateManager" -export { StateManager, State, Disposable, ComputableState, StateContext } from "./states/State" +export { + AnimatedState, + ImplicitAnimationProvider, + MutableAnimatedState, + ParametrizedAnimationProvider, + StateAnimator, + animatedState, + mutableAnimatedState, + stateAnimator, +} from "./animation/AnimatedState" +export { + AnimationRange, + ArrayAnimationRange, + NumberAnimationRange, +} from "./animation/AnimationRange" +export { + Easing, + EasingCurve, + EasingStepJump, +} from "./animation/Easing" +export { + createAnimationTimer, + getAnimationTimer, +} from "./animation/GlobalTimer" +export { + rememberAnimatedState, + rememberAnimator, + rememberMutableAnimatedState, + rememberMutableAnimatedStateNumber, + rememberNumberTransition, + rememberTransition, + sampledValue, +} from "./animation/memo" +export { + AnimationSpec, + OnEdge, + OnPause, + TimeAnimation, + animation, + blinkAnimation, + constAnimation, + countAnimation, + frameAnimation, + linearTransition, + numberAnimation, + periodicAnimation, + periodicAnimationWithDelay, + smoothAnimation, + timeAnimation, + transition, +} from "./animation/TimeAnimation" -export @interface memo {} -export type __memo_context_type = StateContext -export type __memo_id_type = KoalaCallsiteKey +export { + memoBind, + memoBind2, + memoPartialBind2_1, + memoPartialBind3_2, + MemoCallbackContext, +} from "./memo/bind" +export { + OnChange, + RunEffect, +} from "./memo/changeListener" +export { + contextLocal, + contextLocalScope, + contextLocalValue, +} from "./memo/contextLocal" +export { + memoRoot, + memoEntry, + memoEntry1, + memoEntry2, +} from "./memo/entry" +export { + DataNode, + NodeAttach, + contextNode, +} from "./memo/node" +export { + memoize, + memoLifecycle, + once, + remember, + rememberArrayState, + rememberComputableState, + rememberComputableValue, + rememberControlledScope, + rememberDisposable, + rememberMutableAsyncState, + rememberMutableState, +} from "./memo/remember" +export { + Repeat, + RepeatByArray, + RepeatRange, + RepeatWithKey, +} from "./memo/repeat" +export { + TestNode, + testRoot, + testTick, + testUpdate, +} from "./memo/testing" + +export { + Disposable, + disposeContent, + disposeContentBackward, + disposeContentForward, +} from "./states/Disposable" +export { + GlobalStateManager, + arrayState, + callScheduledCallbacks, + mutableState, + scheduleCallback, + updateStateManager, +} from "./states/GlobalStateManager" +export { + ArrayState, + CONTEXT_ROOT_NODE, + CONTEXT_ROOT_SCOPE, + ComputableState, + ControlledScope, + Equivalent, + MutableState, + State, + StateContext, + StateManager, + ValueTracker, +} from "./states/State" +export { + __context, + __id, + __key, + __memo_context_type, + __memo_id_type, + __memo_transformed, + __memo_transformed_before, + __memo_transformed_after, +} from "./internals" + +export { IncrementalNode } from "./tree/IncrementalNode" +export { PrimeNumbers } from "./tree/PrimeNumbers" +export { ReadonlyTreeNode } from "./tree/ReadonlyTreeNode" +export { TreeNode } from "./tree/TreeNode" +export { TreePath } from "./tree/TreePath" + +export { memo, memo_intrinsic, memo_entry, memo_stable, memo_skip } from "./annotations" diff --git a/arkoala-arkts/memo-plugin/runtime-api/internals.sts b/arkoala-arkts/memo-plugin/runtime-api/internals.sts new file mode 100644 index 000000000..b8f3ff6a2 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/internals.sts @@ -0,0 +1,25 @@ +/* + * 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 { KoalaCallsiteKey } from "./common" +import { StateContext } from "./states/State" +export type __memo_context_type = StateContext +export type __memo_id_type = KoalaCallsiteKey +export type __memo_transformed_before = string +export type __memo_transformed_after = number +export type __memo_transformed = __memo_transformed_before +export declare function __context(): StateContext +export declare function __id(): KoalaCallsiteKey +export declare function __key(): KoalaCallsiteKey diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/bind.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/bind.sts new file mode 100644 index 000000000..05d1bed2a --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/bind.sts @@ -0,0 +1,29 @@ +/* + * 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 { memo } from "../annotations" +import { KoalaCallsiteKey } from "../common" +import { StateContext } from "../states/State" +export declare class MemoCallbackContext { + private readonly context: StateContext + private readonly id: KoalaCallsiteKey + private constructor(context: StateContext, id: KoalaCallsiteKey) + @memo static Make(): MemoCallbackContext + call(@memo callback: (args: Int32Array) => number, args: Int32Array): number +} +export declare function memoBind(@memo item: (arg: T) => void, value: T): @memo () => void +export declare function memoBind2(@memo item: (arg1: T1, arg2: T2) => void, value1: T1, value2: T2): @memo () => void +export declare function memoPartialBind2_1(@memo item: (arg1: T1, arg2: T2) => void, value1: T1): @memo (arg2: T2) => void +export declare function memoPartialBind3_2(@memo item: (arg1: T1, arg2: T2, arg3: T3) => void, value1: T1): @memo (arg2: T2, arg3: T3) => void diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/changeListener.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/changeListener.sts new file mode 100644 index 000000000..bcaa2a50c --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/changeListener.sts @@ -0,0 +1,18 @@ +/* + * 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 { memo_intrinsic } from "../annotations" +@memo_intrinsic export declare function OnChange(value: Value, listener: (value: Value) => void): void +@memo_intrinsic export declare function RunEffect(value: Value, effect: (value: Value) => void): void diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/contextLocal.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/contextLocal.sts new file mode 100644 index 000000000..5cfb10ee7 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/contextLocal.sts @@ -0,0 +1,20 @@ +/* + * 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 { memo, memo_intrinsic } from "../annotations" +import { State } from "../states/State" +@memo_intrinsic export declare function contextLocal(name: string): State | undefined +@memo_intrinsic export declare function contextLocalValue(name: string): Value +@memo_intrinsic export declare function contextLocalScope(name: string, value: Value, @memo content: () => void): void diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts index 0c7501465..2b7d43769 100644 --- a/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/entry.sts @@ -1,4 +1,27 @@ -import { KoalaCallsiteKey } from "../common" -import { StateContext } from "../states/State" +/* + * 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. + */ -export declare function memoEntry(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, entry: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey) => R): R +import { memo, memo_entry } from "../annotations" +import { KoalaCallsiteKey } from "../common" +import { ComputableState, StateContext } from "../states/State" +import { IncrementalNode } from "../tree/IncrementalNode" +export declare function memoRoot(node: Node, @memo update: (node: Node) => void): ComputableState +export declare function memoRoot(node: Node, update: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, node: Node) => void): ComputableState +@memo_entry export declare function memoEntry(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, @memo entry: () => R): R +@memo_entry export declare function memoEntry(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, entry: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey) => R): R +@memo_entry export declare function memoEntry1(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, @memo entry: (arg: T) => R, arg: T): R +@memo_entry export declare function memoEntry1(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, entry: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, arg: T) => R, arg: T): R +@memo_entry export declare function memoEntry2(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, @memo entry: (arg1: T1, arg2: T2) => R, arg1: T1, arg2: T2): R +@memo_entry export declare function memoEntry2(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, entry: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, arg1: T1, arg2: T2) => R, arg1: T1, arg2: T2): R diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/node.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/node.sts new file mode 100644 index 000000000..45d2bc127 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/node.sts @@ -0,0 +1,29 @@ +/* + * 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 { memo, memo_intrinsic } from "../annotations" +import { uint32, KoalaCallsiteKey } from "../common" +import { IncrementalNode } from "../tree/IncrementalNode" +import { StateContext } from "../states/State" +@memo_intrinsic export declare function NodeAttach(create: () => Node, @memo update: (node: Node) => void): void +@memo_intrinsic export declare function contextNode(kind: uint32 = 1, name?: string): T +export declare function NodeAttach(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, create: () => Node, update: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, node: Node) => void): void +export declare function contextNode(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, kind: uint32 = 1, name?: string): T +export declare class DataNode extends IncrementalNode { + private data: Data | undefined + constructor(kind: uint32 = 1) + static attach(kind: uint32, data: Data, onDataChange?: () => void): void + static extract(kind: uint32, node: IncrementalNode): Data | undefined +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/remember.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/remember.sts new file mode 100644 index 000000000..3476df08b --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/remember.sts @@ -0,0 +1,28 @@ +/* + * 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 { memo, memo_skip, memo_intrinsic } from "../annotations" +import { ArrayState, ControlledScope, MutableState } from "../states/State" +@memo_intrinsic export declare function memoize(compute: () => Value): Value +@memo_intrinsic export declare function memoLifecycle(onAttach: () => void, onDetach: () => void): void +@memo_intrinsic export declare function once(callback: () => void): void +@memo_intrinsic export declare function remember(compute: () => Value): Value +@memo_intrinsic export declare function rememberDisposable(compute: () => Value, cleanup: (value: Value | undefined) => void): Value +@memo_intrinsic export declare function rememberMutableState(initial: (() => Value) | Value): MutableState +@memo_intrinsic export declare function rememberArrayState(initial?: () => ReadonlyArray): ArrayState +@memo export declare function rememberMutableAsyncState(compute: () => Promise, initial?: Value, onError?: (error: Error) => void): MutableState +@memo export declare function rememberComputableState(key: Key, @memo_skip compute: (key: Key) => Promise, initial?: Value, onError?: (error: Error) => void): MutableState +@memo export declare function rememberComputableValue(key: Key, @memo_skip compute: (key: Key) => Promise, initial?: Value, onError?: (e: Error) => void): Value | undefined +@memo_intrinsic export declare function rememberControlledScope(invalidate: () => void): ControlledScope diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/repeat.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/repeat.sts new file mode 100644 index 000000000..d12ad9abf --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/repeat.sts @@ -0,0 +1,26 @@ +/* + * 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 { memo } from "../annotations" +import { KoalaCallsiteKey, int32 } from "../common" +import { StateContext } from "../states/State" +@memo export declare function Repeat(count: int32, @memo action: (index: int32) => void): void +export declare function Repeat(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, count: int32, action: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, index: int32) => void): void +@memo export declare function RepeatWithKey(count: int32, key: (index: int32) => KoalaCallsiteKey, @memo action: (index: int32) => void): void +export declare function RepeatWithKey(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, count: int32, key: (index: int32) => KoalaCallsiteKey, action: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, index: int32) => void): void +@memo export declare function RepeatByArray(array: ReadonlyArray, key: (element: T, index: int32) => KoalaCallsiteKey, @memo action: (element: T, index: int32) => void): void +export declare function RepeatByArray(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, array: ReadonlyArray, key: (element: T, index: int32) => KoalaCallsiteKey, action: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, element: T, index: int32) => void): void +@memo export declare function RepeatRange(start: int32, end: int32, element: (index: int32) => T, key: (element: T, index: int32) => KoalaCallsiteKey, @memo action: (element: T, index: int32) => void): void +export declare function RepeatRange(__memo_context: StateContext, __memo_id: KoalaCallsiteKey, start: int32, end: int32, element: (index: int32) => T, key: (element: T, index: int32) => KoalaCallsiteKey, action: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, element: T, index: int32) => void): void diff --git a/arkoala-arkts/memo-plugin/runtime-api/memo/testing.sts b/arkoala-arkts/memo-plugin/runtime-api/memo/testing.sts new file mode 100644 index 000000000..57d9b70b6 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/memo/testing.sts @@ -0,0 +1,33 @@ +/* + * 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 { memo, memo_intrinsic } from "../annotations" +import { uint32, KoalaCallsiteKey } from "../common" +import { GlobalStateManager } from "../states/GlobalStateManager" +import { ComputableState, State, StateContext, StateManager } from "../states/State" +import { IncrementalNode } from "../tree/IncrementalNode" +export declare class TestNode extends IncrementalNode { + content: string + constructor(kind: uint32 = 1) + toString(): string + static create(@memo content: (node: TestNode) => void): ComputableState + static create(content: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, node: TestNode) => void): ComputableState + @memo_intrinsic static attach(content: (node: TestNode) => void): void + @memo_intrinsic static attach(content: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, node: TestNode) => void): void +} +export declare function testRoot(@memo content: (node: TestNode) => void): State +export declare function testRoot(content: (__memo_context: StateContext, __memo_id: KoalaCallsiteKey, node: TestNode) => void): State +export declare function testUpdate(withCallbacks: boolean = true, manager: StateManager = GlobalStateManager.instance): uint32 +export declare function testTick(root: State, withCallbacks: boolean = true): void diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/Dependency.sts b/arkoala-arkts/memo-plugin/runtime-api/states/Dependency.sts new file mode 100644 index 000000000..88b8b10f9 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/states/Dependency.sts @@ -0,0 +1,27 @@ +/* + * 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. + */ + +export declare interface Dependency { + readonly obsolete: boolean + invalidate(): void +} +export declare class Dependencies { + private frame: int + private dependencies: Set | undefined + private latest: Dependency | undefined + get empty(): boolean + register(dependency?: Dependency): void + updateDependencies(invalidate: boolean): void +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/Disposable.sts b/arkoala-arkts/memo-plugin/runtime-api/states/Disposable.sts new file mode 100644 index 000000000..59d045a47 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/states/Disposable.sts @@ -0,0 +1,22 @@ +/* + * 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. + */ + +export declare interface Disposable { + readonly disposed: boolean + dispose(): void +} +export declare function disposeContentForward(array: ReadonlyArray): void +export declare function disposeContentBackward(array: ReadonlyArray): void +export declare function disposeContent(it: IterableIterator): void diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts b/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts index bc62a8992..2fe51fcab 100644 --- a/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts +++ b/arkoala-arkts/memo-plugin/runtime-api/states/GlobalStateManager.sts @@ -1,5 +1,26 @@ -import { StateManager } from "./State" +/* + * 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 { ArrayState, Equivalent, MutableState, StateManager, ValueTracker } from "./State" export declare class GlobalStateManager { + private static current: StateManager | undefined static get instance(): StateManager + static reset(): void } +export declare function updateStateManager(manager: StateManager = GlobalStateManager.instance): void +export declare function callScheduledCallbacks(manager: StateManager = GlobalStateManager.instance): void +export declare function scheduleCallback(callback?: () => void, manager: StateManager = GlobalStateManager.instance): void +export declare function mutableState(value: T, equivalent?: Equivalent, tracker?: ValueTracker): MutableState +export declare function arrayState(array?: ReadonlyArray, equivalent?: Equivalent): ArrayState diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/Journal.sts b/arkoala-arkts/memo-plugin/runtime-api/states/Journal.sts new file mode 100644 index 000000000..cab0f9d85 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/states/Journal.sts @@ -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 { AtomicRef } from "../common" +export interface Changes { + getChange(state: Object): AtomicRef | undefined + clear(): void +} +export declare class Journal implements Changes { + private readonly current: AtomicRef + setMarker(): void + addChange(state: Object, value: Value): void + getChanges(): Changes | undefined + getChange(state: Object): AtomicRef | undefined + clear(): void + getCachedArray(state: Object, array: Array): Array +} +declare class Chunk { + readonly previous: AtomicRef + readonly map: Map + get(state: Object): AtomicRef | undefined +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/states/State.sts b/arkoala-arkts/memo-plugin/runtime-api/states/State.sts index afd523fe6..0277e1114 100644 --- a/arkoala-arkts/memo-plugin/runtime-api/states/State.sts +++ b/arkoala-arkts/memo-plugin/runtime-api/states/State.sts @@ -1,19 +1,84 @@ -export declare interface StateManager extends StateContext { } +/* + * 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 { int32, KoalaCallsiteKey, uint32 } from "../common" +import { Disposable } from "./Disposable" +import { IncrementalNode } from "../tree/IncrementalNode" +export declare const CONTEXT_ROOT_SCOPE: string +export declare const CONTEXT_ROOT_NODE: string +export type Equivalent = (oldV: Value, newV: Value) => boolean +export declare function createStateManager(): StateManager +export declare interface StateManager extends StateContext { + syncChanges(): void + isUpdateNeeded(): boolean + updateSnapshot(): uint32 + updatableNode(node: Node, update: (context: StateContext) => void, cleanup?: () => void): ComputableState + scheduleCallback(callback: () => void): void + callCallbacks(): void + frozen: boolean + reset(): void +} export declare interface State { - modified: boolean + readonly modified: boolean + readonly value: Value +} +export declare interface MutableState extends Disposable, State { value: Value } -export interface Disposable { - disposed: boolean - dispose(): void +export declare interface ArrayState extends State> { + length: number + at(index: number): Item + get(index: number): Item + set(index: number, item: Item): void + copyWithin(target: number, start: number, end?: number): Array + fill(value: Item, start?: number, end?: number): Array + pop(): Item | undefined + push(...items: Item[]): number + reverse(): Array + shift(): Item | undefined + sort(comparator?: (a: Item, b: Item) => number): Array + splice(start: number, deleteCount: number | undefined, ...items: Item[]): Array + unshift(...items: Item[]): number +} +export declare interface ComputableState extends Disposable, State { + readonly recomputeNeeded: boolean } -export interface InternalScope { +export declare interface StateContext { + readonly node: IncrementalNode | undefined + attach(id: KoalaCallsiteKey, create: () => Node, update: () => void, cleanup?: () => void): void + compute(id: KoalaCallsiteKey, compute: () => Value, cleanup?: (value: Value | undefined) => void, once?: boolean): Value + computableState(compute: (context: StateContext) => Value, cleanup?: (context: StateContext, value: Value | undefined) => void): ComputableState + mutableState(initial: Value, global?: boolean, equivalent?: Equivalent, tracker?: ValueTracker): MutableState + arrayState(initial?: ReadonlyArray, global?: boolean, equivalent?: Equivalent): ArrayState + namedState(name: string, create: () => Value, global?: boolean, equivalent?: Equivalent, tracker?: ValueTracker): MutableState + stateBy(name: string, global?: boolean): MutableState | undefined + valueBy(name: string, global?: boolean): Value + scope(id: KoalaCallsiteKey, paramCount?: int32, create?: () => IncrementalNode, compute?: () => Value, cleanup?: (value: Value | undefined) => void, once?: boolean): InternalScope + controlledScope(id: KoalaCallsiteKey, invalidate: () => void): ControlledScope +} +export declare interface ValueTracker { + onCreate(value: Value): Value + onUpdate(value: Value): Value +} +export declare interface InternalScope { readonly unchanged: boolean readonly cached: Value recache(newValue?: Value): Value + param(index: int32, value: V, equivalent?: Equivalent, name?: string, contextLocal?: boolean): State } -export declare interface ComputableState extends Disposable, State { } -export declare interface StateContext { - computableState(compute: (context: StateContext) => Value, cleanup?: (context: StateContext, value: Value | undefined) => void): ComputableState - scope(id: int): InternalScope +export declare interface ControlledScope { + enter(): void + leave(): void } diff --git a/arkoala-arkts/memo-plugin/runtime-api/tree/IncrementalNode.sts b/arkoala-arkts/memo-plugin/runtime-api/tree/IncrementalNode.sts new file mode 100644 index 000000000..19d81f213 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/tree/IncrementalNode.sts @@ -0,0 +1,41 @@ +/* + * 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 { uint32 } from "../common" +import { Disposable } from "../states/Disposable" +import { ReadonlyTreeNode } from "./ReadonlyTreeNode" +export declare class IncrementalNode implements Disposable, ReadonlyTreeNode { + private _disposed: boolean + private _child: IncrementalNode | undefined + private _prev: IncrementalNode | undefined + private _next: IncrementalNode | undefined + private _parent: IncrementalNode | undefined + private _incremental: IncrementalNode | undefined + protected onChildInserted: ((node: IncrementalNode) => void) | undefined + protected onChildRemoved: ((node: IncrementalNode) => void) | undefined + readonly kind: uint32 + constructor(kind: uint32 = 1) + isKind(kind: uint32): boolean + get disposed(): boolean + dispose(): void + get parent(): IncrementalNode | undefined + toString(): string + toHierarchy(): string + get firstChild(): IncrementalNode | undefined + get nextSibling(): IncrementalNode | undefined + get previousSibling(): IncrementalNode | undefined + incrementalUpdateSkip(count: uint32): void + incrementalUpdateDone(parent?: IncrementalNode): void +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/tree/PrimeNumbers.sts b/arkoala-arkts/memo-plugin/runtime-api/tree/PrimeNumbers.sts new file mode 100644 index 000000000..d5994c577 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/tree/PrimeNumbers.sts @@ -0,0 +1,17 @@ +/* + * 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 { uint32 } from "../common" +export declare const PrimeNumbers: ReadonlyArray \ No newline at end of file diff --git a/arkoala-arkts/memo-plugin/runtime-api/tree/ReadonlyTreeNode.sts b/arkoala-arkts/memo-plugin/runtime-api/tree/ReadonlyTreeNode.sts new file mode 100644 index 000000000..7c7d9f52f --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/tree/ReadonlyTreeNode.sts @@ -0,0 +1,19 @@ +/* + * 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. + */ + +export declare interface ReadonlyTreeNode { + readonly parent: ReadonlyTreeNode | undefined + toHierarchy(): string +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/tree/TreeNode.sts b/arkoala-arkts/memo-plugin/runtime-api/tree/TreeNode.sts new file mode 100644 index 000000000..60cc04410 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/tree/TreeNode.sts @@ -0,0 +1,59 @@ +/* + * 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 { float64, int32, uint32 } from "../common" +import { Disposable } from "../states/Disposable" +import { ReadonlyTreeNode } from "./ReadonlyTreeNode" +export declare class TreeNode implements Disposable, ReadonlyTreeNode { + private myIndex: int32 + private myParent: TreeNode | undefined + private myChildren: Array + private myIndicesValid: boolean + private myDisposed: boolean + readonly kind: uint32 + protected onChildInserted: ((node: TreeNode, index: int32) => void) | undefined + protected onChildRemoved: ((node: TreeNode, index: int32) => void) | undefined + constructor(kind: uint32 = 1) + get disposed(): boolean + dispose(): void + get parent(): TreeNode | undefined + get depth(): uint32 + get childrenCount(): uint32 + get children(): ReadonlyArray + get index(): int32 + isKind(kind: uint32): boolean + find(valueOf: (node: TreeNode, index: int32) => V | undefined): V | undefined + forEach(action: (node: TreeNode, index: float64) => void): void + every(predicate: (node: TreeNode, index: float64) => boolean): boolean + some(predicate: (node: TreeNode, index: float64) => boolean): boolean + childAt(index: int32): TreeNode | undefined + appendChild(node: TreeNode): boolean + insertChildAt(index: int32, node: TreeNode): boolean + appendChildren(...nodes: TreeNode[]): boolean + insertChildrenAt(index: int32, ...nodes: TreeNode[]): boolean + removeChildAt(index: int32): TreeNode | undefined + removeChildrenAt(index: int32, count?: uint32): Array + removeChild(node: TreeNode): boolean + removeFromParent(): void + private removeNodes(index: int32, count: uint32): Array + private insertNodeAt(index: int32, node: TreeNode): void + private insertable(node: TreeNode): boolean + private accessible(index: int32, count: uint32 = 1): boolean + toString(): string + toHierarchy(): string + collectNodes(): Array + collectParentsTo(array: Array): void + collectChildrenTo(array: Array, deep: boolean = false): void +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/tree/TreePath.sts b/arkoala-arkts/memo-plugin/runtime-api/tree/TreePath.sts new file mode 100644 index 000000000..55be5f191 --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/tree/TreePath.sts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022-2024 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 { uint32 } from "../common" +export declare class TreePath { + readonly node: Node + readonly parent: TreePath | undefined + constructor(node: Node, parent?: TreePath) + child(node: Node): TreePath + get root(): TreePath + get depth(): uint32 + toString(): string +} diff --git a/arkoala-arkts/memo-plugin/runtime-api/tree/TreeUpdater.sts b/arkoala-arkts/memo-plugin/runtime-api/tree/TreeUpdater.sts new file mode 100644 index 000000000..173a8ac4b --- /dev/null +++ b/arkoala-arkts/memo-plugin/runtime-api/tree/TreeUpdater.sts @@ -0,0 +1,30 @@ +/* + * 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 { int32, uint32 } from "../common" +import { TreePath } from "./TreePath" +export declare class TreeUpdater { + private current: TreePath + readonly reverse: boolean + constructor(root: Node, reverse: boolean = false) + get path(): TreePath + get node(): Node + down(node: Node): void + up(): void + clear(): void + insert(index: int32, node: Node): void + remove(index: int32, amount: uint32): void + move(indexFrom: int32, indexTo: int32, amount: uint32): void +} diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts index e78b22ef4..e3746e925 100644 --- a/arkoala-arkts/memo-plugin/src/utils.ts +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { parseNumber, UniqueId } from "@koalaui/common" +import { UniqueId } from "@koalaui/common" import * as arkts from "@koalaui/libarkts" export enum RuntimeNames { -- Gitee From a3055a5a10b339e0e566d32cf8b90f0ac7290482 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Mon, 17 Feb 2025 14:49:32 +0000 Subject: [PATCH 30/40] !1853 ANI support skeleton --- interop/src/cpp/ani/ani.h | 9062 +++++++++++++++++++++++++ interop/src/cpp/ani/convertors-ani.cc | 154 + interop/src/cpp/ani/convertors-ani.h | 1289 ++++ interop/src/cpp/common-interop.h | 4 +- 4 files changed, 10508 insertions(+), 1 deletion(-) create mode 100644 interop/src/cpp/ani/ani.h create mode 100644 interop/src/cpp/ani/convertors-ani.cc create mode 100644 interop/src/cpp/ani/convertors-ani.h diff --git a/interop/src/cpp/ani/ani.h b/interop/src/cpp/ani/ani.h new file mode 100644 index 000000000..3adbe2416 --- /dev/null +++ b/interop/src/cpp/ani/ani.h @@ -0,0 +1,9062 @@ +/** + * Copyright (c) 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. + */ + +#ifndef __ANI_H__ +#define __ANI_H__ +// NOLINTBEGIN + +#ifdef __cplusplus +#include +#include +#include +#else +#include +#include +#include +#endif + +#define ANI_VERSION_1 1 + +#define ANI_FALSE 0 +#define ANI_TRUE 1 + +typedef size_t ani_size; + +// Primitive types: +typedef uint8_t ani_boolean; +typedef uint32_t ani_char; +typedef int8_t ani_byte; +typedef int16_t ani_short; +typedef int32_t ani_int; +typedef int64_t ani_long; +typedef float ani_float; +typedef double ani_double; + +// Reference types: +#ifdef __cplusplus +class __ani_ref {}; +class __ani_module : public __ani_ref {}; +class __ani_namespace : public __ani_ref {}; +class __ani_object : public __ani_ref {}; +class __ani_fn_object : public __ani_object {}; +class __ani_enum_value : public __ani_object {}; +class __ani_error : public __ani_object {}; +class __ani_promise : public __ani_object {}; +class __ani_tuple_value : public __ani_object {}; +class __ani_type : public __ani_object {}; +class __ani_arraybuffer : public __ani_object {}; +class __ani_string : public __ani_object {}; +class __ani_stringliteral : public __ani_string {}; +class __ani_class : public __ani_type {}; +class __ani_enum : public __ani_type {}; +class __ani_tuple : public __ani_type {}; +class __ani_fixedarray : public __ani_object {}; +class __ani_fixedarray_boolean : public __ani_fixedarray {}; +class __ani_fixedarray_char : public __ani_fixedarray {}; +class __ani_fixedarray_byte : public __ani_fixedarray {}; +class __ani_fixedarray_short : public __ani_fixedarray {}; +class __ani_fixedarray_int : public __ani_fixedarray {}; +class __ani_fixedarray_long : public __ani_fixedarray {}; +class __ani_fixedarray_float : public __ani_fixedarray {}; +class __ani_fixedarray_double : public __ani_fixedarray {}; +class __ani_fixedarray_ref : public __ani_fixedarray {}; +typedef __ani_ref *ani_ref; +typedef __ani_module *ani_module; +typedef __ani_namespace *ani_namespace; +typedef __ani_object *ani_object; +typedef __ani_fn_object *ani_fn_object; +typedef __ani_enum_value *ani_enum_value; +typedef __ani_error *ani_error; +typedef __ani_promise *ani_promise; +typedef __ani_tuple_value *ani_tuple_value; +typedef __ani_type *ani_type; +typedef __ani_arraybuffer *ani_arraybuffer; +typedef __ani_string *ani_string; +typedef __ani_stringliteral *ani_stringliteral; +typedef __ani_class *ani_class; +typedef __ani_enum *ani_enum; +typedef __ani_tuple *ani_tuple; +typedef __ani_fixedarray *ani_fixedarray; +typedef __ani_fixedarray_boolean *ani_fixedarray_boolean; +typedef __ani_fixedarray_char *ani_fixedarray_char; +typedef __ani_fixedarray_byte *ani_fixedarray_byte; +typedef __ani_fixedarray_short *ani_fixedarray_short; +typedef __ani_fixedarray_int *ani_fixedarray_int; +typedef __ani_fixedarray_long *ani_fixedarray_long; +typedef __ani_fixedarray_float *ani_fixedarray_float; +typedef __ani_fixedarray_double *ani_fixedarray_double; +typedef __ani_fixedarray_ref *ani_fixedarray_ref; +#else // __cplusplus +struct __ani_ref; +typedef struct __ani_ref *ani_ref; +typedef ani_ref ani_module; +typedef ani_ref ani_namespace; +typedef ani_ref ani_object; +typedef ani_object ani_fn_object; +typedef ani_object ani_enum_value; +typedef ani_object ani_error; +typedef ani_object ani_promise; +typedef ani_object ani_tuple_value; +typedef ani_object ani_type; +typedef ani_object ani_arraybuffer; +typedef ani_object ani_string; +typedef ani_string ani_stringliteral; +typedef ani_type ani_class; +typedef ani_type ani_enum; +typedef ani_type ani_tuple; +typedef ani_object ani_fixedarray; +typedef ani_fixedarray ani_fixedarray_boolean; +typedef ani_fixedarray ani_fixedarray_char; +typedef ani_fixedarray ani_fixedarray_byte; +typedef ani_fixedarray ani_fixedarray_short; +typedef ani_fixedarray ani_fixedarray_int; +typedef ani_fixedarray ani_fixedarray_long; +typedef ani_fixedarray ani_fixedarray_float; +typedef ani_fixedarray ani_fixedarray_double; +typedef ani_fixedarray ani_fixedarray_ref; +#endif // __cplusplus + +struct __ani_gref; +typedef struct __ani_gref *ani_gref; + +struct __ani_wref; +typedef struct __ani_wref *ani_wref; + +struct __ani_variable; +typedef struct __ani_variable *ani_variable; + +struct __ani_function; +typedef struct __ani_function *ani_function; + +struct __ani_field; +typedef struct __ani_field *ani_field; + +struct __ani_static_field; +typedef struct __ani_satic_field *ani_static_field; + +struct __ani_property; +typedef struct __ani_property *ani_property; + +struct __ani_method; +typedef struct __ani_method *ani_method; + +struct __ani_static_method; +typedef struct __ani_static_method *ani_static_method; + +struct __ani_cls_slot; +typedef struct __ani_cls_slot *ani_cls_slot; + +typedef void (*ani_finalizer)(void *data, void *hint); + +typedef enum { + ANI_KIND_BOOLEAN, + ANI_KIND_CHAR, + ANI_KIND_BYTE, + ANI_KIND_SHORT, + ANI_KIND_INT, + ANI_KIND_LONG, + ANI_KIND_FLOAT, + ANI_KIND_DOUBLE, + ANI_KIND_REF, +} ani_kind; + +typedef union { + ani_boolean z; + ani_char c; + ani_byte b; + ani_short s; + ani_int i; + ani_long l; + ani_float f; + ani_double d; + ani_ref r; +} ani_value; + +typedef struct { + const char *name; + const char *signature; + const void *pointer; +} ani_native_function; + +#ifdef __cplusplus +typedef struct __ani_vm ani_vm; +typedef struct __ani_env ani_env; +#else +typedef const struct __ani_vm_api *ani_vm; +typedef const struct __ani_interaction_api *ani_env; +#endif + +typedef enum { + ANI_OK, + ANI_ERROR, + ANI_INVALID_ARGS, + ANI_INVALID_TYPE, + ANI_INVALID_DESCRIPTOR, + ANI_PENDING_ERROR, + ANI_NOT_FOUND, + ANI_ALREADY_BINDED, + ANI_OUT_OF_REF, + ANI_OUT_OF_MEMORY, + ANI_OUT_OF_RANGE, + ANI_BUFFER_TO_SMALL, + // NOTE: Add necessary status codes +} ani_status; + +struct __ani_vm_api { + void *reserved0; + void *reserved1; + void *reserved2; + void *reserved3; + + ani_status (*DestroyVM)(ani_vm *vm); + ani_status (*GetEnv)(ani_vm *vm, uint32_t version, ani_env **result); + ani_status (*AttachThread)(ani_vm *vm, void *params, ani_env **result); + ani_status (*DetachThread)(ani_vm *vm); +}; + +typedef struct { + const char *option; + void *option_data; +} ani_vm_option; + +#define ANI_EXPORT __attribute__((visibility("default"))) + +#ifdef __cplusplus +extern "C" { +#endif + +ANI_EXPORT ani_status ANI_CreateVM(uint32_t version, size_t nr_options, const ani_vm_option *options, ani_vm **result); +ANI_EXPORT ani_status ANI_GetCreatedVMs(ani_vm **vms_buffer, ani_size vms_buffer_length, ani_size *result); + +// Prototypes of exported functions for a shared library. +ANI_EXPORT ani_status ANI_Constructor(ani_vm *vm, uint32_t *result); +ANI_EXPORT ani_status ANI_Destructor(ani_vm *vm); + +#ifdef __cplusplus +} +#endif + +struct __ani_interaction_api { + void *reserved0; + void *reserved1; + void *reserved2; + void *reserved3; + + /** + * @brief Retrieves the version information. + * + * This function retrieves the version information and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[out] result A pointer to a variable where the version information will be stored. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GetVersion)(ani_env *env, uint32_t *result); + + /** + * @brief Retrieves the Virtual Machine (VM) instance. + * + * This function retrieves the VM instance and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[out] result A pointer to the VM instance to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GetVM)(ani_env *env, ani_vm **result); + + /** + * @brief Checks if a reference is an object. + * + * This function determines whether the specified reference represents an object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is an object, false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsObject)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a functional object. + * + * This function determines whether the specified reference represents a functional object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a functional object, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFunctionalObject)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is an enum. + * + * This function determines whether the specified reference represents an enum. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is an enum, false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsEnum)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a tuple. + * + * This function determines whether the specified reference represents a tuple. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a tuple, false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsTuple)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a string. + * + * This function determines whether the specified reference represents a string. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a string, false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsString)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a string literal. + * + * This function determines whether the specified reference represents a string literal. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a string literal, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsStringLiteral)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array. + * + * This function determines whether the specified reference represents a fixed array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a fixed array, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of booleans. + * + * This function determines whether the specified reference represents a fixed array of booleans. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a fixed array of booleans, + * false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Boolean)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of chars. + * + * This function determines whether the specified reference represents a fixed array of chars. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the char result (true if the reference is a fixed array of chars, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Char)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of bytes. + * + * This function determines whether the specified reference represents a fixed array of bytes. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the byte result (true if the reference is a fixed array of bytes, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Byte)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of shorts. + * + * This function determines whether the specified reference represents a fixed array of shorts. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the short result (true if the reference is a fixed array of shorts, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Short)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of integers. + * + * This function determines whether the specified reference represents a fixed array of integers. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the integer result (true if the reference is a fixed array of integers, + * false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Int)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of longs. + * + * This function determines whether the specified reference represents a fixed array of longs. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the long result (true if the reference is a fixed array of longs, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Long)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of floats. + * + * This function determines whether the specified reference represents a fixed array of floats. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the float result (true if the reference is a fixed array of floats, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Float)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of doubles. + * + * This function determines whether the specified reference represents a fixed array of doubles. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the double result (true if the reference is a fixed array of doubles, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Double)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is a fixed array of references. + * + * This function determines whether the specified reference represents a fixed array of references. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to store the boolean result (true if the reference is a fixed array of references, + * false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsFixedArray_Ref)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Creates a new object of a specified class using a constructor method. + * + * This function creates a new object of the given class and calls the specified constructor method with variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class of the object to create. + * @param[in] method The constructor method to invoke. + * @param[in] ... Variadic arguments to pass to the constructor method. + * @param[out] result A pointer to store the object return value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_New)(ani_env *env, ani_class cls, ani_method method, ani_object *result, ...); + + /** + * @brief Creates a new object of a specified class using a constructor method (array-based). + * + * This function creates a new object of the given class and calls the specified constructor method with arguments + * provided in an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class of the object to create. + * @param[in] method The constructor method to invoke. + * @param[in] args An array of arguments to pass to the constructor method. + * @param[out] result A pointer to store the object return value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_New_A)(ani_env *env, ani_class cls, ani_method method, ani_object *result, + const ani_value *args); + + /** + * @brief Creates a new object of a specified class using a constructor method (variadic arguments). + * + * This function creates a new object of the given class and calls the specified constructor method with a `va_list` + * of arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class of the object to create. + * @param[in] method The constructor method to invoke. + * @param[in] args A `va_list` of arguments to pass to the constructor method. + * @param[out] result A pointer to store the object return value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_New_V)(ani_env *env, ani_class cls, ani_method method, ani_object *result, va_list args); + + /** + * @brief Retrieves the type of a given object. + * + * This function retrieves the type of the specified object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object whose type is to be retrieved. + * @param[out] result A pointer to store the retrieved type. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetType)(ani_env *env, ani_object object, ani_type *result); + + /** + * @brief Checks if an object is an instance of a specified type. + * + * This function checks whether the given object is an instance of the specified type. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object to check. + * @param[in] type The type to compare against. + * @param[out] result A pointer to store the boolean result (true if the object is an instance of the type, false + * otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_InstanceOf)(ani_env *env, ani_object object, ani_type type, ani_boolean *result); + + /** + * @brief Checks if two objects are the same. + * + * This function compares two objects to determine if they refer to the same instance. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object1 The first object to compare. + * @param[in] object2 The second object to compare. + * @param[out] result A pointer to store the boolean result (true if the objects are the same, false otherwise). + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_IsSame)(ani_env *env, ani_object object1, ani_object object2, ani_boolean *result); + + /** + * @brief Retrieves the superclass of a specified type. + * + * This function retrieves the superclass of a given type and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] type The type for which to retrieve the superclass. + * @param[out] result A pointer to the superclass to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Type_GetSuperClass)(ani_env *env, ani_type type, ani_class *result); + + /** + * @brief Determines if one type is assignable from another. + * + * This function checks if a type is assignable from another and stores the result in the output parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] from_type The source type. + * @param[in] to_type The target type. + * @param[out] result A pointer to a boolean indicating assignability. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Type_IsAssignableFrom)(ani_env *env, ani_type from_type, ani_type to_type, ani_boolean *result); + + /** + * @brief Finds a module by its descriptor. + * + * This function locates a module based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module_descriptor The descriptor of the module to find. + * @param[out] result A pointer to the module to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindModule)(ani_env *env, const char *module_descriptor, ani_module *result); + + /** + * @brief Finds a namespace by its descriptor. + * + * This function locates a namespace based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] namespace_descriptor The descriptor of the namespace to find. + * @param[out] result A pointer to the namespace to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindNamespace)(ani_env *env, const char *namespace_descriptor, ani_namespace *result); + + /** + * @brief Finds a class by its descriptor. + * + * This function locates a class based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] class_descriptor The descriptor of the class to find. + * @param[out] result A pointer to the class to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindClass)(ani_env *env, const char *class_descriptor, ani_class *result); + + /** + * @brief Finds an enum by its descriptor. + * + * This function locates an enum based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enum_descriptor The descriptor of the enum to find. + * @param[out] result A pointer to the enum to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindEnum)(ani_env *env, const char *enum_descriptor, ani_enum *result); + + /** + * @brief Finds a tuple by its descriptor. + * + * This function locates a tuple based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_descriptor The descriptor of the tuple to find. + * @param[out] result A pointer to the tuple to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindTuple)(ani_env *env, const char *tuple_descriptor, ani_tuple *result); + + /** + * @brief Finds a function by its descriptor. + * + * This function locates a function based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] function_descriptor The descriptor of the function to find. + * @param[out] result A pointer to the function to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindFunction)(ani_env *env, const char *function_descriptor, ani_function *result); + + /** + * @brief Finds a variable by its descriptor. + * + * This function locates a variable based on its descriptor and stores it in the result parameter. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable_descriptor The descriptor of the variable to find. + * @param[out] result A pointer to the variable to be populated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FindVariable)(ani_env *env, const char *variable_descriptor, ani_variable *result); + + /** + * @brief Finds a namespace within a module by its descriptor. + * + * This function locates a namespace within the specified module based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module The module to search within. + * @param[in] namespace_descriptor The descriptor of the namespace to find. + * @param[out] result A pointer to the namespace object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Module_FindNamespace)(ani_env *env, ani_module module, const char *namespace_descriptor, + ani_namespace *result); + + /** + * @brief Finds a class within a module by its descriptor. + * + * This function locates a class within the specified module based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module The module to search within. + * @param[in] class_descriptor The descriptor of the class to find. + * @param[out] result A pointer to the class object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Module_FindClass)(ani_env *env, ani_module module, const char *class_descriptor, ani_class *result); + + /** + * @brief Finds an enum within a module by its descriptor. + * + * This function locates an enum within the specified module based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module The module to search within. + * @param[in] enum_descriptor The descriptor of the enum to find. + * @param[out] result A pointer to the enum object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Module_FindEnum)(ani_env *env, ani_module module, const char *enum_descriptor, ani_enum *result); + + /** + * @brief Finds a function within a module by its name and signature. + * + * This function locates a function within the specified module based on its name and signature. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module The module to search within. + * @param[in] name The name of the function to retrieve. + * @param[in] signature The signature of the function to retrieve. + * @param[out] result A pointer to the function object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Module_FindFunction)(ani_env *env, ani_module module, const char *name, const char *signature, + ani_function *result); + + /** + * @brief Finds a variable within a module by its descriptor. + * + * This function locates a variable within the specified module based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module The module to search within. + * @param[in] variable_descriptor The descriptor of the variable to find. + * @param[out] result A pointer to the variable object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Module_FindVariable)(ani_env *env, ani_module module, const char *variable_descriptor, + ani_variable *result); + + /** + * @brief Finds a namespace within another namespace by its descriptor. + * + * This function locates a namespace within the specified parent namespace based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ns The parent namespace to search within. + * @param[in] namespace_descriptor The descriptor of the namespace to find. + * @param[out] result A pointer to the namespace object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Namespace_FindNamespace)(ani_env *env, ani_namespace ns, const char *namespace_descriptor, + ani_namespace *result); + + /** + * @brief Finds a class within a namespace by its descriptor. + * + * This function locates a class within the specified namespace based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ns The namespace to search within. + * @param[in] class_descriptor The descriptor of the class to find. + * @param[out] result A pointer to the class object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Namespace_FindClass)(ani_env *env, ani_namespace ns, const char *class_descriptor, ani_class *result); + + /** + * @brief Finds an enum within a namespace by its descriptor. + * + * This function locates an enum within the specified namespace based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ns The namespace to search within. + * @param[in] enum_descriptor The descriptor of the enum to find. + * @param[out] result A pointer to the enum object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Namespace_FindEnum)(ani_env *env, ani_namespace ns, const char *enum_descriptor, ani_enum *result); + + /** + * @brief Finds a function within a namespace by its name and signature. + * + * This function locates a function within the specified namespace based on its name and signature. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ns The namespace to search within. + * @param[in] name The name of the function to retrieve. + * @param[in] signature The signature of the function to retrieve. + * @param[out] result A pointer to the function object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Namespace_FindFunction)(ani_env *env, ani_namespace ns, const char *name, const char *signature, + ani_function *result); + + /** + * @brief Finds a variable within a namespace by its descriptor. + * + * This function locates a variable within the specified namespace based on its descriptor. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ns The namespace to search within. + * @param[in] variable_descriptor The descriptor of the variable to find. + * @param[out] result A pointer to the variable object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Namespace_FindVariable)(ani_env *env, ani_namespace ns, const char *variable_descriptor, + ani_variable *result); + + /** + * @brief Binds native functions to a module. + * + * This function binds an array of native functions to the specified module. + * + * @param[in] env A pointer to the environment structure. + * @param[in] module The module to which the native functions will be bound. + * @param[in] functions A pointer to an array of native functions to bind. + * @param[in] nr_functions The number of native functions in the array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Module_BindNativeFunctions)(ani_env *env, ani_module module, const ani_native_function *functions, + ani_size nr_functions); + + /** + * @brief Binds native functions to a namespace. + * + * This function binds an array of native functions to the specified namespace. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ns The namespace to which the native functions will be bound. + * @param[in] functions A pointer to an array of native functions to bind. + * @param[in] nr_functions The number of native functions in the array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Namespace_BindNativeFunctions)(ani_env *env, ani_namespace ns, const ani_native_function *functions, + ani_size nr_functions); + + /** + * @brief Binds native methods to a class. + * + * This function binds an array of native methods to the specified class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to which the native methods will be bound. + * @param[in] methods A pointer to an array of native methods to bind. + * @param[in] nr_methods The number of native methods in the array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_BindNativeMethods)(ani_env *env, ani_class cls, const ani_native_function *methods, + ani_size nr_methods); + + /** + * @brief Deletes a local reference. + * + * This function deletes a specified local reference to free up resources. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to be deleted. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_Delete)(ani_env *env, ani_ref ref); + + /** + * @brief Ensures enough local references are available. + * + * This function checks and ensures that the specified number of local references can be created. + * + * @param[in] env A pointer to the environment structure. + * @param[in] nr_refs The number of local references to ensure availability for. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*EnsureEnoughReferences)(ani_env *env, ani_size nr_refs); + + /** + * @brief Creates a new local scope for references. + * + * This function creates a local scope for references with a specified capacity. + * + * @param[in] env A pointer to the environment structure. + * @param[in] nr_refs The maximum number of references that can be created in this scope. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CreateLocalScope)(ani_env *env, ani_size nr_refs); + + /** + * @brief Destroys the current local scope. + * + * This function destroys the current local scope and frees all references within it. + * + * @param[in] env A pointer to the environment structure. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*DestroyLocalScope)(ani_env *env); + + /** + * @brief Creates a new escape local scope. + * + * This function creates a local scope for references with escape functionality, allowing objects to escape this + * scope. + * + * @param[in] env A pointer to the environment structure. + * @param[in] nr_refs The maximum number of references that can be created in this scope. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CreateEscapeLocalScope)(ani_env *env, ani_size nr_refs); + + /** + * @brief Destroys the current escape local scope. + * + * This function destroys the current escape local scope and allows escaping references to be retrieved. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to be escaped from the current scope. + * @param[out] result A pointer to the resulting reference that has escaped the scope. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*DestroyEscapeLocalScope)(ani_env *env, ani_ref ref, ani_ref *result); + + /** + * @brief Throws an error. + * + * This function throws the specified error in the current environment. + * + * @param[in] env A pointer to the environment structure. + * @param[in] err The error to throw. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*ThrowError)(ani_env *env, ani_error err); + + /** + * @brief Checks if there are unhandled errors. + * + * This function determines if there are unhandled errors in the current environment. + * + * @param[in] env A pointer to the environment structure. + * @param[out] result A pointer to a boolean indicating if unhandled errors exist. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*ExistUnhandledError)(ani_env *env, ani_boolean *result); + + /** + * @brief Retrieves the current unhandled error. + * + * This function fetches the unhandled error in the environment. + * + * @param[in] env A pointer to the environment structure. + * @param[out] result A pointer to store the unhandled error. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GetUnhandledError)(ani_env *env, ani_error *result); + + /** + * @brief Resets the current error state. + * + * This function clears the error state in the current environment. + * + * @param[in] env A pointer to the environment structure. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*ResetError)(ani_env *env); + + /** + * @brief Provides a description of the current error. + * + * This function prints the stack trace or other debug information for the current error. + * + * @param[in] env A pointer to the environment structure. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*DescribeError)(ani_env *env); // NOTE: Print stacktrace for debugging? + + /** + * @brief Aborts execution with a message. + * + * This function terminates execution with the specified error message. + * + * @param[in] env A pointer to the environment structure. + * @param[in] message The error message to display on termination. + * @return Does not return; the process terminates. + */ + ani_status (*Abort)(ani_env *env, const char *message); + + /** + * @brief Retrieves a null reference. + * + * This function provides a null reference in the specified result. + * + * @param[in] env A pointer to the environment structure. + * @param[out] result A pointer to store the null reference. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GetNull)(ani_env *env, ani_ref *result); + + /** + * @brief Retrieves an undefined reference. + * + * This function provides an undefined reference in the specified result. + * + * @param[in] env A pointer to the environment structure. + * @param[out] result A pointer to store the undefined reference. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GetUndefined)(ani_env *env, ani_ref *result); + + /** + * @brief Checks if a reference is null. + * + * This function determines if the specified reference is null. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to a boolean indicating if the reference is null. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsNull)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is undefined. + * + * This function determines if the specified reference is undefined. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to a boolean indicating if the reference is undefined. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsUndefined)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Checks if a reference is nullish value (null or undefined). + * + * This function determines if the specified reference is either null or undefined. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The reference to check. + * @param[out] result A pointer to a boolean indicating if the reference is nullish value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_IsNullishValue)(ani_env *env, ani_ref ref, ani_boolean *result); + + /** + * @brief Compares two references for equality. + * + * This function checks if two references are equal. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref0 The first reference to compare. + * @param[in] ref1 The second reference to compare. + * @param[out] result A pointer to a boolean indicating if the references are equal. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_Equals)(ani_env *env, ani_ref ref0, ani_ref ref1, ani_boolean *result); + + /** + * @brief Compares two references for strict equality. + * + * This function checks if two references are strictly equal. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref0 The first reference to compare. + * @param[in] ref1 The second reference to compare. + * @param[out] result A pointer to a boolean indicating if the references are strictly equal. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reference_StrictEquals)(ani_env *env, ani_ref ref0, ani_ref ref1, ani_boolean *result); + + /** + * @brief Creates a new UTF-16 string. + * + * This function creates a new string from the provided UTF-16 encoded data. + * + * @param[in] env A pointer to the environment structure. + * @param[in] utf16_string A pointer to the UTF-16 encoded string data. + * @param[in] utf16_size The size of the UTF-16 string in code units. + * @param[out] result A pointer to store the created string. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_NewUTF16)(ani_env *env, const uint16_t *utf16_string, ani_size utf16_size, ani_string *result); + + /** + * @brief Retrieves the size of a UTF-16 string. + * + * This function retrieves the size (in code units) of the specified UTF-16 string. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The UTF-16 string to measure. + * @param[out] result A pointer to store the size of the string. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetUTF16Size)(ani_env *env, ani_string string, ani_size *result); + + /** + * @brief Retrieves the UTF-16 encoded data of a string. + * + * This function copies the UTF-16 encoded data of the string into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string to retrieve data from. + * @param[out] utf16_buffer A buffer to store the UTF-16 encoded data. + * @param[in] utf16_buffer_size The size of the buffer in code units. + * @param[out] result A pointer to store the number of code units written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetUTF16)(ani_env *env, ani_string string, uint16_t *utf16_buffer, ani_size utf16_buffer_size, + ani_size *result); + + /** + * @brief Retrieves a substring of a UTF-16 string. + * + * This function copies a portion of the UTF-16 string into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string to retrieve data from. + * @param[in] substr_offset The starting offset of the substring. + * @param[in] substr_size The size of the substring in code units. + * @param[out] utf16_buffer A buffer to store the substring. + * @param[in] utf16_buffer_size The size of the buffer in code units. + * @param[out] result A pointer to store the number of code units written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetUTF16SubString)(ani_env *env, ani_string string, ani_size substr_offset, + ani_size substr_size, uint16_t *utf16_buffer, ani_size utf16_buffer_size, + ani_size *result); + + /** + * @brief Creates a new UTF-8 string. + * + * This function creates a new string from the provided UTF-8 encoded data. + * + * @param[in] env A pointer to the environment structure. + * @param[in] utf8_string A pointer to the UTF-8 encoded string data. + * @param[in] utf8_size The size of the UTF-8 string in bytes. + * @param[out] result A pointer to store the created string. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_NewUTF8)(ani_env *env, const char *utf8_string, ani_size utf8_size, ani_string *result); + + /** + * @brief Retrieves the size of a UTF-8 string. + * + * This function retrieves the size (in bytes) of the specified UTF-8 string. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The UTF-8 string to measure. + * @param[out] result A pointer to store the size of the string. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetUTF8Size)(ani_env *env, ani_string string, ani_size *result); + + /** + * @brief Retrieves the UTF-8 encoded data of a string. + * + * This function copies the UTF-8 encoded data of the string into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string to retrieve data from. + * @param[out] utf8_buffer A buffer to store the UTF-8 encoded data. + * @param[in] utf8_buffer_size The size of the buffer in bytes. + * @param[out] result A pointer to store the number of bytes written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetUTF8)(ani_env *env, ani_string string, char *utf8_buffer, ani_size utf8_buffer_size, + ani_size *result); + + /** + * @brief Retrieves a substring of a UTF-8 string. + * + * This function copies a portion of the UTF-8 string into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string to retrieve data from. + * @param[in] substr_offset The starting offset of the substring. + * @param[in] substr_size The size of the substring in bytes. + * @param[out] utf8_buffer A buffer to store the substring. + * @param[in] utf8_buffer_size The size of the buffer in bytes. + * @param[out] result A pointer to store the number of bytes written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetUTF8SubString)(ani_env *env, ani_string string, ani_size substr_offset, ani_size substr_size, + char *utf8_buffer, ani_size utf8_buffer_size, ani_size *result); + + /** + * @brief Retrieves critical information about a string. + * + * This function retrieves the type and data of a string for critical operations. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string to analyze. + * @param[out] result_string_type A pointer to store the type of the string (e.g., UTF-16 or UTF-8). + * @param[out] result_data A pointer to the raw string data. + * @param[out] result_size A pointer to the size of the string data. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_GetCritical)(ani_env *env, ani_string string, uint32_t *result_string_type, + const void **result_data, + ani_size *result_size); // result_string_type - string type utf16/utf8, etc? + + /** + * @brief Releases critical string data. + * + * This function releases the raw string data retrieved using `String_GetCritical`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string whose data was retrieved. + * @param[in] data A pointer to the raw data to release. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*String_ReleaseCritical)(ani_env *env, ani_string string, const void *data); + + /** + * @brief Creates a new UTF-16 string literal. + * + * This function creates a new string literal from the provided UTF-16 encoded data. + * + * @param[in] env A pointer to the environment structure. + * @param[in] utf16_string A pointer to the UTF-16 encoded string data. + * @param[in] utf16_size The size of the UTF-16 string in code units. + * @param[out] result A pointer to store the created string literal. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_NewUTF16)(ani_env *env, const uint16_t *utf16_string, ani_size utf16_size, + ani_stringliteral *result); + + /** + * @brief Retrieves the size of a UTF-16 string literal. + * + * This function retrieves the size (in code units) of the specified UTF-16 string literal. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The UTF-16 string literal to measure. + * @param[out] result A pointer to store the size of the string literal. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetUTF16Size)(ani_env *env, ani_stringliteral string, ani_size *result); + + /** + * @brief Retrieves the UTF-16 encoded data of a string literal. + * + * This function copies the UTF-16 encoded data of the string literal into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string literal to retrieve data from. + * @param[out] utf16_buffer A buffer to store the UTF-16 encoded data. + * @param[in] utf16_buffer_size The size of the buffer in code units. + * @param[out] result A pointer to store the number of code units written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetUTF16)(ani_env *env, ani_stringliteral string, uint16_t *utf16_buffer, + ani_size utf16_buffer_size, ani_size *result); + + /** + * @brief Retrieves a substring of a UTF-16 string literal. + * + * This function copies a portion of the UTF-16 string literal into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string literal to retrieve data from. + * @param[in] substr_offset The starting offset of the substring. + * @param[in] substr_size The size of the substring in code units. + * @param[out] utf16_buffer A buffer to store the substring. + * @param[in] utf16_buffer_size The size of the buffer in code units. + * @param[out] result A pointer to store the number of code units written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetUTF16SubString)(ani_env *env, ani_stringliteral string, ani_size substr_offset, + ani_size substr_size, uint16_t *utf16_buffer, + ani_size utf16_buffer_size, ani_size *result); + + /** + * @brief Creates a new UTF-8 string literal. + * + * This function creates a new string literal from the provided UTF-8 encoded data. + * + * @param[in] env A pointer to the environment structure. + * @param[in] utf8_string A pointer to the UTF-8 encoded string data. + * @param[in] size The size of the UTF-8 string in bytes. + * @param[out] result A pointer to store the created string literal. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_NewUTF8)(ani_env *env, const char *utf8_string, ani_size size, + ani_stringliteral *result); + + /** + * @brief Retrieves the size of a UTF-8 string literal. + * + * This function retrieves the size (in bytes) of the specified UTF-8 string literal. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The UTF-8 string literal to measure. + * @param[out] result A pointer to store the size of the string literal. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetUTF8Size)(ani_env *env, ani_stringliteral string, ani_size *result); + + /** + * @brief Retrieves the UTF-8 encoded data of a string literal. + * + * This function copies the UTF-8 encoded data of the string literal into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string literal to retrieve data from. + * @param[out] utf8_buffer A buffer to store the UTF-8 encoded data. + * @param[in] utf8_buffer_size The size of the buffer in bytes. + * @param[out] result A pointer to store the number of bytes written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetUTF8)(ani_env *env, ani_stringliteral string, char *utf8_buffer, + ani_size utf8_buffer_size, ani_size *result); + + /** + * @brief Retrieves a substring of a UTF-8 string literal. + * + * This function copies a portion of the UTF-8 string literal into the provided buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string literal to retrieve data from. + * @param[in] substr_offset The starting offset of the substring. + * @param[in] substr_size The size of the substring in bytes. + * @param[out] utf8_buffer A buffer to store the substring. + * @param[in] utf8_buffer_size The size of the buffer in bytes. + * @param[out] result A pointer to store the number of bytes written. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetUTF8SubString)(ani_env *env, ani_stringliteral string, ani_size substr_offset, + ani_size substr_size, char *utf8_buffer, ani_size utf8_buffer_size, + ani_size *result); + + /** + * @brief Retrieves critical information about a string literal. + * + * This function retrieves the type and data of a string literal for critical operations. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string literal to analyze. + * @param[out] result_string_type A pointer to store the type of the string literal (e.g., UTF-16 or UTF-8). + * @param[out] result_data A pointer to the raw string literal data. + * @param[out] result_size A pointer to the size of the string literal data. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_GetCritical)( + ani_env *env, ani_stringliteral string, uint32_t *result_string_type, const void **result_data, + ani_size *result_size); // result_string_type - string type utf16/utf8, etc? + + /** + * @brief Releases critical string literal data. + * + * This function releases the raw string literal data retrieved using `StringLiteral_GetCritical`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] string The string literal whose data was retrieved. + * @param[in] data A pointer to the raw data to release. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*StringLiteral_ReleaseCritical)(ani_env *env, ani_stringliteral string, const void *data); + + /** + * @brief Retrieves the length of a fixed array. + * + * This function retrieves the length of the specified fixed array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array whose length is to be retrieved. + * @param[out] result A pointer to store the length of the array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetLength)(ani_env *env, ani_fixedarray array, ani_size *result); + + /** + * @brief Creates a new fixed array of booleans. + * + * This function creates a new fixed array of the specified length for boolean values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Boolean)(ani_env *env, ani_size length, ani_fixedarray_boolean *result); + + /** + * @brief Creates a new fixed array of characters. + * + * This function creates a new fixed array of the specified length for character values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Char)(ani_env *env, ani_size length, ani_fixedarray_char *result); + + /** + * @brief Creates a new fixed array of bytes. + * + * This function creates a new fixed array of the specified length for byte values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Byte)(ani_env *env, ani_size length, ani_fixedarray_byte *result); + + /** + * @brief Creates a new fixed array of shorts. + * + * This function creates a new fixed array of the specified length for short integer values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Short)(ani_env *env, ani_size length, ani_fixedarray_short *result); + + /** + * @brief Creates a new fixed array of integers. + * + * This function creates a new fixed array of the specified length for integer values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Int)(ani_env *env, ani_size length, ani_fixedarray_int *result); + + /** + * @brief Creates a new fixed array of long integers. + * + * This function creates a new fixed array of the specified length for long integer values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Long)(ani_env *env, ani_size length, ani_fixedarray_long *result); + + /** + * @brief Creates a new fixed array of floats. + * + * This function creates a new fixed array of the specified length for float values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Float)(ani_env *env, ani_size length, ani_fixedarray_float *result); + + /** + * @brief Creates a new fixed array of doubles. + * + * This function creates a new fixed array of the specified length for double values. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[out] result A pointer to store the created fixed array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Double)(ani_env *env, ani_size length, ani_fixedarray_double *result); + + /** + * @brief Retrieves a region of boolean values from a fixed array. + * + * This function retrieves a portion of the specified boolean fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved boolean values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Boolean)(ani_env *env, ani_fixedarray_boolean array, ani_size offset, + ani_size length, ani_boolean *native_buffer); + + /** + * @brief Retrieves a region of character values from a fixed array. + * + * This function retrieves a portion of the specified character fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved character values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Char)(ani_env *env, ani_fixedarray_char array, ani_size offset, ani_size length, + ani_char *native_buffer); + + /** + * @brief Retrieves a region of byte values from a fixed array. + * + * This function retrieves a portion of the specified byte fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved byte values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Byte)(ani_env *env, ani_fixedarray_byte array, ani_size offset, ani_size length, + ani_byte *native_buffer); + + /** + * @brief Retrieves a region of short values from a fixed array. + * + * This function retrieves a portion of the specified short fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved short values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Short)(ani_env *env, ani_fixedarray_short array, ani_size offset, ani_size length, + ani_short *native_buffer); + + /** + * @brief Retrieves a region of integer values from a fixed array. + * + * This function retrieves a portion of the specified integer fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved integer values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Int)(ani_env *env, ani_fixedarray_int array, ani_size offset, ani_size length, + ani_int *native_buffer); + + /** + * @brief Retrieves a region of long integer values from a fixed array. + * + * This function retrieves a portion of the specified long integer fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved long integer values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Long)(ani_env *env, ani_fixedarray_long array, ani_size offset, ani_size length, + ani_long *native_buffer); + + /** + * @brief Retrieves a region of float values from a fixed array. + * + * This function retrieves a portion of the specified float fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved float values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Float)(ani_env *env, ani_fixedarray_float array, ani_size offset, ani_size length, + ani_float *native_buffer); + + /** + * @brief Retrieves a region of double values from a fixed array. + * + * This function retrieves a portion of the specified double fixed array into a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to retrieve values from. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to retrieve. + * @param[out] native_buffer A buffer to store the retrieved double values. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_GetRegion_Double)(ani_env *env, ani_fixedarray_double array, ani_size offset, + ani_size length, ani_double *native_buffer); + + /** + * @brief Sets a region of boolean values in a fixed array. + * + * This function sets a portion of the specified boolean fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the boolean values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Boolean)(ani_env *env, ani_fixedarray_boolean array, ani_size offset, + ani_size length, const ani_boolean *native_buffer); + + /** + * @brief Sets a region of character values in a fixed array. + * + * This function sets a portion of the specified character fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the character values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Char)(ani_env *env, ani_fixedarray_char array, ani_size offset, ani_size length, + const ani_char *native_buffer); + + /** + * @brief Sets a region of byte values in a fixed array. + * + * This function sets a portion of the specified byte fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the byte values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Byte)(ani_env *env, ani_fixedarray_byte array, ani_size offset, ani_size length, + const ani_byte *native_buffer); + + /** + * @brief Sets a region of short values in a fixed array. + * + * This function sets a portion of the specified short fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the short values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Short)(ani_env *env, ani_fixedarray_short array, ani_size offset, ani_size length, + const ani_short *native_buffer); + + /** + * @brief Sets a region of integer values in a fixed array. + * + * This function sets a portion of the specified integer fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the integer values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Int)(ani_env *env, ani_fixedarray_int array, ani_size offset, ani_size length, + const ani_int *native_buffer); + + /** + * @brief Sets a region of long integer values in a fixed array. + * + * This function sets a portion of the specified long integer fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the long integer values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Long)(ani_env *env, ani_fixedarray_long array, ani_size offset, ani_size length, + const ani_long *native_buffer); + + /** + * @brief Sets a region of float values in a fixed array. + * + * This function sets a portion of the specified float fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the float values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Float)(ani_env *env, ani_fixedarray_float array, ani_size offset, ani_size length, + const ani_float *native_buffer); + + /** + * @brief Sets a region of double values in a fixed array. + * + * This function sets a portion of the specified double fixed array using a native buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array to set values in. + * @param[in] offset The starting offset of the region. + * @param[in] length The number of elements to set. + * @param[in] native_buffer A buffer containing the double values to set. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_SetRegion_Double)(ani_env *env, ani_fixedarray_double array, ani_size offset, + ani_size length, const ani_double *native_buffer); + + /** + * @brief Pins a fixed array in memory. + * + * This function pins a fixed array of primitive types in memory to ensure it is not moved by the garbage collector. + * + * @param[in] env A pointer to the environment structure. + * @param[in] primitive_array The fixed array to pin. + * @param[out] result A pointer to store the memory address of the pinned array. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_Pin)(ani_env *env, ani_fixedarray primitive_array, void **result); + + /** + * @brief Unpins a fixed array in memory. + * + * This function unpins a previously pinned fixed array, allowing it to be moved by the garbage collector. + * + * @param[in] env A pointer to the environment structure. + * @param[in] primitive_array The fixed array to unpin. + * @param[in] data A pointer to the pinned memory that was previously retrieved. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_Unpin)(ani_env *env, ani_fixedarray primitive_array, void *data); + + /** + * @brief Creates a new fixed array of references. + * + * This function creates a new fixed array of references, optionally initializing it with an array of references. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array to be created. + * @param[in] initial_array An optional array of references to initialize the fixed array. Can be null. + * @param[out] result A pointer to store the created fixed array of references. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_New_Ref)(ani_env *env, ani_size length, ani_ref *initial_array, ani_fixedarray_ref *result); + + /** + * @brief Sets a reference at a specific index in a fixed array. + * + * This function sets the value of a reference at the specified index in the fixed array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array of references to modify. + * @param[in] index The index at which to set the reference. + * @param[in] ref The reference to set at the specified index. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_Set_Ref)(ani_env *env, ani_fixedarray_ref array, ani_size index, ani_ref ref); + + /** + * @brief Retrieves a reference from a specific index in a fixed array. + * + * This function retrieves the value of a reference at the specified index in the fixed array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] array The fixed array of references to query. + * @param[in] index The index from which to retrieve the reference. + * @param[out] result A pointer to store the retrieved reference. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FixedArray_Get_Ref)(ani_env *env, ani_fixedarray_ref array, ani_size index, ani_ref *result); + + /** + * @brief Retrieves an enum value by its name. + * + * This function retrieves an enum value associated with the specified name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enm The enum to search within. + * @param[in] name The name of the enum value to retrieve. + * @param[out] result A pointer to store the retrieved enum value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Enum_GetEnumValueByName)(ani_env *env, ani_enum enm, const char *name, ani_enum_value *result); + + /** + * @brief Retrieves an enum value by its index. + * + * This function retrieves an enum value located at the specified index. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enm The enum to search within. + * @param[in] index The index of the enum value to retrieve. + * @param[out] result A pointer to store the retrieved enum value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Enum_GetEnumValueByIndex)(ani_env *env, ani_enum enm, ani_size index, ani_enum_value *result); + + /** + * @brief Retrieves the enum associated with an enum value. + * + * This function retrieves the enum to which the specified enum value belongs. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enum_value The enum value whose associated enum is to be retrieved. + * @param[out] result A pointer to store the retrieved enum. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*EnumValue_GetEnum)(ani_env *env, ani_enum_value enum_value, ani_enum *result); + + /** + * @brief Retrieves the underlying value of an enum value. + * + * This function retrieves the object representing the value of the specified enum value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enum_value The enum value whose underlying value is to be retrieved. + * @param[out] result A pointer to store the retrieved object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*EnumValue_GetValue)(ani_env *env, ani_enum_value enum_value, ani_object *result); + + /** + * @brief Retrieves the name of an enum value. + * + * This function retrieves the name associated with the specified enum value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enum_value The enum value whose name is to be retrieved. + * @param[out] result A pointer to store the retrieved name. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*EnumValue_GetName)(ani_env *env, ani_enum_value enum_value, ani_string *result); + + /** + * @brief Retrieves the index of an enum value. + * + * This function retrieves the index of the specified enum value within its enum. + * + * @param[in] env A pointer to the environment structure. + * @param[in] enum_value The enum value whose index is to be retrieved. + * @param[out] result A pointer to store the retrieved index. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*EnumValue_GetIndex)(ani_env *env, ani_enum_value enum_value, ani_size *result); + + /** + * @brief Invokes a functional object. + * + * This function invokes a functional object (e.g., a function or callable object) with the specified arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The functional object to invoke. + * @param[in] argc The number of arguments being passed to the functional object. + * @param[in] argv A pointer to an array of references representing the arguments. Can be null if `argc` is 0. + * @param[out] result A pointer to store the result of the invocation. Can be null if the functional object does not + * return a value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*FunctionalObject_Call)(ani_env *env, ani_fn_object fn, ani_size argc, ani_ref *argv, ani_ref *result); + + /** + * @brief Sets a boolean value to a variable. + * + * This function assigns a boolean value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The boolean value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Boolean)(ani_env *env, ani_variable variable, ani_boolean value); + + /** + * @brief Sets a character value to a variable. + * + * This function assigns a character value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The character value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Char)(ani_env *env, ani_variable variable, ani_char value); + + /** + * @brief Sets a byte value to a variable. + * + * This function assigns a byte value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The byte value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Byte)(ani_env *env, ani_variable variable, ani_byte value); + + /** + * @brief Sets a short value to a variable. + * + * This function assigns a short integer value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The short integer value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Short)(ani_env *env, ani_variable variable, ani_short value); + + /** + * @brief Sets an integer value to a variable. + * + * This function assigns an integer value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The integer value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Int)(ani_env *env, ani_variable variable, ani_int value); + + /** + * @brief Sets a long value to a variable. + * + * This function assigns a long integer value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The long integer value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Long)(ani_env *env, ani_variable variable, ani_long value); + + /** + * @brief Sets a float value to a variable. + * + * This function assigns a float value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The float value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Float)(ani_env *env, ani_variable variable, ani_float value); + + /** + * @brief Sets a double value to a variable. + * + * This function assigns a double value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The double value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Double)(ani_env *env, ani_variable variable, ani_double value); + + /** + * @brief Sets a reference value to a variable. + * + * This function assigns a reference value to the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to modify. + * @param[in] value The reference value to assign to the variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_SetValue_Ref)(ani_env *env, ani_variable variable, ani_ref value); + + /** + * @brief Retrieves a boolean value from a variable. + * + * This function fetches a boolean value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Boolean)(ani_env *env, ani_variable variable, ani_boolean *result); + + /** + * @brief Retrieves a character value from a variable. + * + * This function fetches a character value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved character value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Char)(ani_env *env, ani_variable variable, ani_char *result); + + /** + * @brief Retrieves a byte value from a variable. + * + * This function fetches a byte value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Byte)(ani_env *env, ani_variable variable, ani_byte *result); + + /** + * @brief Retrieves a short value from a variable. + * + * This function fetches a short integer value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved short integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Short)(ani_env *env, ani_variable variable, ani_short *result); + + /** + * @brief Retrieves an integer value from a variable. + * + * This function fetches an integer value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Int)(ani_env *env, ani_variable variable, ani_int *result); + + /** + * @brief Retrieves a long value from a variable. + * + * This function fetches a long integer value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved long integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Long)(ani_env *env, ani_variable variable, ani_long *result); + + /** + * @brief Retrieves a float value from a variable. + * + * This function fetches a float value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Float)(ani_env *env, ani_variable variable, ani_float *result); + + /** + * @brief Retrieves a double value from a variable. + * + * This function fetches a double value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Double)(ani_env *env, ani_variable variable, ani_double *result); + + /** + * @brief Retrieves a reference value from a variable. + * + * This function fetches a reference value from the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to query. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Variable_GetValue_Ref)(ani_env *env, ani_variable variable, ani_ref *result); + + /** + * @brief Calls a function and retrieves a boolean result. + * + * This function calls the specified function with variadic arguments and retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Boolean)(ani_env *env, ani_function fn, ani_boolean *result, ...); + + /** + * @brief Calls a function and retrieves a boolean result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Boolean_A)(ani_env *env, ani_function fn, ani_boolean *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a boolean result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Boolean_V)(ani_env *env, ani_function fn, ani_boolean *result, va_list args); + + /** + * @brief Calls a function and retrieves a character result. + * + * This function calls the specified function with variadic arguments and retrieves a character result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the character result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Char)(ani_env *env, ani_function fn, ani_char *result, ...); + + /** + * @brief Calls a function and retrieves a character result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a character result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the character result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Char_A)(ani_env *env, ani_function fn, ani_char *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a character result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a character + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the character result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Char_V)(ani_env *env, ani_function fn, ani_char *result, va_list args); + + /** + * @brief Calls a function and retrieves a byte result. + * + * This function calls the specified function with variadic arguments and retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the byte result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Byte)(ani_env *env, ani_function fn, ani_byte *result, ...); + + /** + * @brief Calls a function and retrieves a byte result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the byte result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Byte_A)(ani_env *env, ani_function fn, ani_byte *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a byte result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the byte result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Byte_V)(ani_env *env, ani_function fn, ani_byte *result, va_list args); + + /** + * @brief Calls a function and retrieves a short result. + * + * This function calls the specified function with variadic arguments and retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the short result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Short)(ani_env *env, ani_function fn, ani_short *result, ...); + + /** + * @brief Calls a function and retrieves a short result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the short result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Short_A)(ani_env *env, ani_function fn, ani_short *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a short result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the short result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Short_V)(ani_env *env, ani_function fn, ani_short *result, va_list args); + + /** + * @brief Calls a function and retrieves an integer result. + * + * This function calls the specified function with variadic arguments and retrieves an integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the integer result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Int)(ani_env *env, ani_function fn, ani_int *result, ...); + + /** + * @brief Calls a function and retrieves an integer result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves an integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the integer result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Int_A)(ani_env *env, ani_function fn, ani_int *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves an integer result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves an integer + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the integer result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Int_V)(ani_env *env, ani_function fn, ani_int *result, va_list args); + + /** + * @brief Calls a function and retrieves a long result. + * + * This function calls the specified function with variadic arguments and retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the long result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Long)(ani_env *env, ani_function fn, ani_long *result, ...); + + /** + * @brief Calls a function and retrieves a long result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the long result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Long_A)(ani_env *env, ani_function fn, ani_long *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a long result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the long result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Long_V)(ani_env *env, ani_function fn, ani_long *result, va_list args); + + /** + * @brief Calls a function and retrieves a float result. + * + * This function calls the specified function with variadic arguments and retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the float result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Float)(ani_env *env, ani_function fn, ani_float *result, ...); + + /** + * @brief Calls a function and retrieves a float result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the float result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Float_A)(ani_env *env, ani_function fn, ani_float *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a float result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the float result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Float_V)(ani_env *env, ani_function fn, ani_float *result, va_list args); + + /** + * @brief Calls a function and retrieves a double result. + * + * This function calls the specified function with variadic arguments and retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the double result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Double)(ani_env *env, ani_function fn, ani_double *result, ...); + + /** + * @brief Calls a function and retrieves a double result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the double result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Double_A)(ani_env *env, ani_function fn, ani_double *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a double result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the double result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Double_V)(ani_env *env, ani_function fn, ani_double *result, va_list args); + + /** + * @brief Calls a function and retrieves a reference result. + * + * This function calls the specified function with variadic arguments and retrieves a reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the reference result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Ref)(ani_env *env, ani_function fn, ani_ref *result, ...); + + /** + * @brief Calls a function and retrieves a reference result (array-based). + * + * This function calls the specified function with arguments provided in an array and retrieves a reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the reference result. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Ref_A)(ani_env *env, ani_function fn, ani_ref *result, const ani_value *args); + + /** + * @brief Calls a function and retrieves a reference result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and retrieves a reference + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[out] result A pointer to store the reference result. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Ref_V)(ani_env *env, ani_function fn, ani_ref *result, va_list args); + + /** + * @brief Calls a function without returning a result. + * + * This function calls the specified function with variadic arguments and does not return a result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Void)(ani_env *env, ani_function fn, ...); + + /** + * @brief Calls a function without returning a result (array-based). + * + * This function calls the specified function with arguments provided in an array and does not return a result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[in] args A pointer to an array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Void_A)(ani_env *env, ani_function fn, const ani_value *args); + + /** + * @brief Calls a function without returning a result (variadic arguments). + * + * This function calls the specified function with arguments provided in a `va_list` and does not return a result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The function to call. + * @param[in] args A `va_list` containing the arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Function_Call_Void_V)(ani_env *env, ani_function fn, va_list args); + + /** + * @brief Retrieves the partial class representation. + * + * This function retrieves the partial class representation of the specified class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[out] result A pointer to store the partial class representation. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetPartial)(ani_env *env, ani_class cls, ani_class *result); + + /** + * @brief Retrieves the required class representation. + * + * This function retrieves the required class representation of the specified class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[out] result A pointer to store the required class representation. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetRequired)(ani_env *env, ani_class cls, ani_class *result); + + /** + * @brief Retrieves a field from the class. + * + * This function retrieves the specified field by name from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the field to retrieve. + * @param[out] result A pointer to store the retrieved field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetField)(ani_env *env, ani_class cls, const char *name, ani_field *result); + + /** + * @brief Retrieves a static field from the class. + * + * This function retrieves the specified static field by name from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved static field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField)(ani_env *env, ani_class cls, const char *name, ani_static_field *result); + + /** + * @brief Retrieves a method from the class. + * + * This function retrieves the specified method by name and signature from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the method to retrieve. + * @param[in] signature The signature of the method to retrieve. + * @param[out] result A pointer to store the retrieved method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetMethod)(ani_env *env, ani_class cls, const char *name, const char *signature, + ani_method *result); + + /** + * @brief Retrieves a static method from the class. + * + * This function retrieves the specified static method by name and signature from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the static method to retrieve. + * @param[in] signature The signature of the static method to retrieve. + * @param[out] result A pointer to store the retrieved static method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticMethod)(ani_env *env, ani_class cls, const char *name, const char *signature, + ani_static_method *result); + + /** + * @brief Retrieves a property from the class. + * + * This function retrieves the specified property by name from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the property to retrieve. + * @param[out] result A pointer to store the retrieved property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetProperty)(ani_env *env, ani_class cls, const char *name, ani_property *result); + + /** + * @brief Retrieves the setter method of a property from the class. + * + * This function retrieves the setter method for the specified property by name from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the property whose setter is to be retrieved. + * @param[out] result A pointer to store the retrieved setter method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetSetter)(ani_env *env, ani_class cls, const char *name, ani_method *result); + + /** + * @brief Retrieves the getter method of a property from the class. + * + * This function retrieves the getter method for the specified property by name from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] name The name of the property whose getter is to be retrieved. + * @param[out] result A pointer to store the retrieved getter method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetGetter)(ani_env *env, ani_class cls, const char *name, ani_method *result); + + /** + * @brief Retrieves the indexable getter method from the class. + * + * This function retrieves the indexable getter method for the specified signature from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] signature The signature of the indexable getter to retrieve. + * @param[out] result A pointer to store the retrieved indexable getter method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetIndexableGetter)(ani_env *env, ani_class cls, const char *signature, ani_method *result); + + /** + * @brief Retrieves the indexable setter method from the class. + * + * This function retrieves the indexable setter method for the specified signature from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[in] signature The signature of the indexable setter to retrieve. + * @param[out] result A pointer to store the retrieved indexable setter method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetIndexableSetter)(ani_env *env, ani_class cls, const char *signature, ani_method *result); + + /** + * @brief Retrieves the iterator method from the class. + * + * This function retrieves the iterator method from the specified class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class to query. + * @param[out] result A pointer to store the retrieved iterator method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetIterator)(ani_env *env, ani_class cls, ani_method *result); + + /** + * @brief Retrieves a boolean value from a static field of a class. + * + * This function retrieves the boolean value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Boolean)(ani_env *env, ani_class cls, ani_static_field field, + ani_boolean *result); + + /** + * @brief Retrieves a character value from a static field of a class. + * + * This function retrieves the character value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved character value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Char)(ani_env *env, ani_class cls, ani_static_field field, ani_char *result); + + /** + * @brief Retrieves a byte value from a static field of a class. + * + * This function retrieves the byte value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Byte)(ani_env *env, ani_class cls, ani_static_field field, ani_byte *result); + + /** + * @brief Retrieves a short value from a static field of a class. + * + * This function retrieves the short value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved short value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Short)(ani_env *env, ani_class cls, ani_static_field field, ani_short *result); + + /** + * @brief Retrieves an integer value from a static field of a class. + * + * This function retrieves the integer value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Int)(ani_env *env, ani_class cls, ani_static_field field, ani_int *result); + + /** + * @brief Retrieves a long value from a static field of a class. + * + * This function retrieves the long value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved long value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Long)(ani_env *env, ani_class cls, ani_static_field field, ani_long *result); + + /** + * @brief Retrieves a float value from a static field of a class. + * + * This function retrieves the float value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Float)(ani_env *env, ani_class cls, ani_static_field field, ani_float *result); + + /** + * @brief Retrieves a double value from a static field of a class. + * + * This function retrieves the double value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Double)(ani_env *env, ani_class cls, ani_static_field field, ani_double *result); + + /** + * @brief Retrieves a reference value from a static field of a class. + * + * This function retrieves the reference value of the specified static field from the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to retrieve. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticField_Ref)(ani_env *env, ani_class cls, ani_static_field field, ani_ref *result); + + /** + * @brief Sets a boolean value to a static field of a class. + * + * This function assigns a boolean value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The boolean value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Boolean)(ani_env *env, ani_class cls, ani_static_field field, ani_boolean value); + + /** + * @brief Sets a character value to a static field of a class. + * + * This function assigns a character value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The character value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Char)(ani_env *env, ani_class cls, ani_static_field field, ani_char value); + + /** + * @brief Sets a byte value to a static field of a class. + * + * This function assigns a byte value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The byte value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Byte)(ani_env *env, ani_class cls, ani_static_field field, ani_byte value); + + /** + * @brief Sets a short value to a static field of a class. + * + * This function assigns a short value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The short value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Short)(ani_env *env, ani_class cls, ani_static_field field, ani_short value); + + /** + * @brief Sets an integer value to a static field of a class. + * + * This function assigns an integer value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The integer value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Int)(ani_env *env, ani_class cls, ani_static_field field, ani_int value); + + /** + * @brief Sets a long value to a static field of a class. + * + * This function assigns a long value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The long value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Long)(ani_env *env, ani_class cls, ani_static_field field, ani_long value); + + /** + * @brief Sets a float value to a static field of a class. + * + * This function assigns a float value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The float value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Float)(ani_env *env, ani_class cls, ani_static_field field, ani_float value); + + /** + * @brief Sets a double value to a static field of a class. + * + * This function assigns a double value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The double value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Double)(ani_env *env, ani_class cls, ani_static_field field, ani_double value); + + /** + * @brief Sets a reference value to a static field of a class. + * + * This function assigns a reference value to the specified static field of the given class. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to modify. + * @param[in] value The reference value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticField_Ref)(ani_env *env, ani_class cls, ani_static_field field, ani_ref value); + + /** + * @brief Retrieves a boolean value from a static field of a class by its name. + * + * This function retrieves the boolean value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Boolean)(ani_env *env, ani_class cls, const char *name, + ani_boolean *result); + + /** + * @brief Retrieves a character value from a static field of a class by its name. + * + * This function retrieves the character value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved character value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Char)(ani_env *env, ani_class cls, const char *name, ani_char *result); + + /** + * @brief Retrieves a byte value from a static field of a class by its name. + * + * This function retrieves the byte value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Byte)(ani_env *env, ani_class cls, const char *name, ani_byte *result); + + /** + * @brief Retrieves a short value from a static field of a class by its name. + * + * This function retrieves the short value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved short value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Short)(ani_env *env, ani_class cls, const char *name, ani_short *result); + + /** + * @brief Retrieves an integer value from a static field of a class by its name. + * + * This function retrieves the integer value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Int)(ani_env *env, ani_class cls, const char *name, ani_int *result); + + /** + * @brief Retrieves a long value from a static field of a class by its name. + * + * This function retrieves the long value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved long value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Long)(ani_env *env, ani_class cls, const char *name, ani_long *result); + + /** + * @brief Retrieves a float value from a static field of a class by its name. + * + * This function retrieves the float value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Float)(ani_env *env, ani_class cls, const char *name, ani_float *result); + + /** + * @brief Retrieves a double value from a static field of a class by its name. + * + * This function retrieves the double value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Double)(ani_env *env, ani_class cls, const char *name, ani_double *result); + + /** + * @brief Retrieves a reference value from a static field of a class by its name. + * + * This function retrieves the reference value of the specified static field from the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to retrieve. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_GetStaticFieldByName_Ref)(ani_env *env, ani_class cls, const char *name, ani_ref *result); + + /** + * @brief Sets a boolean value to a static field of a class by its name. + * + * This function assigns a boolean value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The boolean value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Boolean)(ani_env *env, ani_class cls, const char *name, ani_boolean value); + + /** + * @brief Sets a character value to a static field of a class by its name. + * + * This function assigns a character value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The character value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Char)(ani_env *env, ani_class cls, const char *name, ani_char value); + + /** + * @brief Sets a byte value to a static field of a class by its name. + * + * This function assigns a byte value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The byte value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Byte)(ani_env *env, ani_class cls, const char *name, ani_byte value); + + /** + * @brief Sets a short value to a static field of a class by its name. + * + * This function assigns a short value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The short value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Short)(ani_env *env, ani_class cls, const char *name, ani_short value); + + /** + * @brief Sets an integer value to a static field of a class by its name. + * + * This function assigns an integer value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The integer value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Int)(ani_env *env, ani_class cls, const char *name, ani_int value); + + /** + * @brief Sets a long value to a static field of a class by its name. + * + * This function assigns a long value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The long value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Long)(ani_env *env, ani_class cls, const char *name, ani_long value); + + /** + * @brief Sets a float value to a static field of a class by its name. + * + * This function assigns a float value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The float value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Float)(ani_env *env, ani_class cls, const char *name, ani_float value); + + /** + * @brief Sets a double value to a static field of a class by its name. + * + * This function assigns a double value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The double value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Double)(ani_env *env, ani_class cls, const char *name, ani_double value); + + /** + * @brief Sets a reference value to a static field of a class by its name. + * + * This function assigns a reference value to the specified static field of the given class by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] name The name of the static field to modify. + * @param[in] value The reference value to assign. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_SetStaticFieldByName_Ref)(ani_env *env, ani_class cls, const char *name, ani_ref value); + + /** + * @brief Calls a static method with a boolean return type. + * + * This function calls the specified static method of a class and retrieves a boolean result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Boolean)(ani_env *env, ani_class cls, ani_static_method method, + ani_boolean *result, ...); + + /** + * @brief Calls a static method with a boolean return type (array-based). + * + * This function calls the specified static method of a class and retrieves a boolean result using arguments from an + * array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Boolean_A)(ani_env *env, ani_class cls, ani_static_method method, + ani_boolean *result, const ani_value *args); + + /** + * @brief Calls a static method with a boolean return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a boolean result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Boolean_V)(ani_env *env, ani_class cls, ani_static_method method, + ani_boolean *result, va_list args); + + /** + * @brief Calls a static method with a character return type. + * + * This function calls the specified static method of a class and retrieves a character result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the character result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Char)(ani_env *env, ani_class cls, ani_static_method method, ani_char *result, + ...); + + /** + * @brief Calls a static method with a character return type (array-based). + * + * This function calls the specified static method of a class and retrieves a character result using arguments from + * an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the character result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Char_A)(ani_env *env, ani_class cls, ani_static_method method, ani_char *result, + const ani_value *args); + + /** + * @brief Calls a static method with a character return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a character result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the character result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Char_V)(ani_env *env, ani_class cls, ani_static_method method, ani_char *result, + va_list args); + + /** + * @brief Calls a static method with a byte return type. + * + * This function calls the specified static method of a class and retrieves a byte result using variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the byte result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Byte)(ani_env *env, ani_class cls, ani_static_method method, ani_byte *result, + ...); + + /** + * @brief Calls a static method with a byte return type (array-based). + * + * This function calls the specified static method of a class and retrieves a byte result using arguments from an + * array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the byte result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Byte_A)(ani_env *env, ani_class cls, ani_static_method method, ani_byte *result, + const ani_value *args); + + /** + * @brief Calls a static method with a byte return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a byte result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the byte result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Byte_V)(ani_env *env, ani_class cls, ani_static_method method, ani_byte *result, + va_list args); + + /** + * @brief Calls a static method with a short return type. + * + * This function calls the specified static method of a class and retrieves a short result using variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the short result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Short)(ani_env *env, ani_class cls, ani_static_method method, ani_short *result, + ...); + + /** + * @brief Calls a static method with a short return type (array-based). + * + * This function calls the specified static method of a class and retrieves a short result using arguments from an + * array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the short result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Short_A)(ani_env *env, ani_class cls, ani_static_method method, + ani_short *result, const ani_value *args); + + /** + * @brief Calls a static method with a short return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a short result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the short result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Short_V)(ani_env *env, ani_class cls, ani_static_method method, + ani_short *result, va_list args); + + /** + * @brief Calls a static method with an integer return type. + * + * This function calls the specified static method of a class and retrieves an integer result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the integer result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Int)(ani_env *env, ani_class cls, ani_static_method method, ani_int *result, + ...); + + /** + * @brief Calls a static method with an integer return type (array-based). + * + * This function calls the specified static method of a class and retrieves an integer result using arguments from + * an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the integer result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Int_A)(ani_env *env, ani_class cls, ani_static_method method, ani_int *result, + const ani_value *args); + + /** + * @brief Calls a static method with an integer return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves an integer result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the integer result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Int_V)(ani_env *env, ani_class cls, ani_static_method method, ani_int *result, + va_list args); + + /** + * @brief Calls a static method with a long return type. + * + * This function calls the specified static method of a class and retrieves a long result using variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the long result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Long)(ani_env *env, ani_class cls, ani_static_method method, ani_long *result, + ...); + + /** + * @brief Calls a static method with a long return type (array-based). + * + * This function calls the specified static method of a class and retrieves a long result using arguments from an + * array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the long result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Long_A)(ani_env *env, ani_class cls, ani_static_method method, ani_long *result, + const ani_value *args); + + /** + * @brief Calls a static method with a long return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a long result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the long result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Long_V)(ani_env *env, ani_class cls, ani_static_method method, ani_long *result, + va_list args); + + /** + * @brief Calls a static method with a float return type. + * + * This function calls the specified static method of a class and retrieves a float result using variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the float result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Float)(ani_env *env, ani_class cls, ani_static_method method, ani_float *result, + ...); + + /** + * @brief Calls a static method with a float return type (array-based). + * + * This function calls the specified static method of a class and retrieves a float result using arguments from an + * array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the float result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Float_A)(ani_env *env, ani_class cls, ani_static_method method, + ani_float *result, const ani_value *args); + + /** + * @brief Calls a static method with a float return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a float result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the float result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Float_V)(ani_env *env, ani_class cls, ani_static_method method, + ani_float *result, va_list args); + + /** + * @brief Calls a static method with a double return type. + * + * This function calls the specified static method of a class and retrieves a double result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the double result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Double)(ani_env *env, ani_class cls, ani_static_method method, + ani_double *result, ...); + + /** + * @brief Calls a static method with a double return type (array-based). + * + * This function calls the specified static method of a class and retrieves a double result using arguments from an + * array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the double result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Double_A)(ani_env *env, ani_class cls, ani_static_method method, + ani_double *result, const ani_value *args); + + /** + * @brief Calls a static method with a double return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a double result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the double result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Double_V)(ani_env *env, ani_class cls, ani_static_method method, + ani_double *result, va_list args); + + /** + * @brief Calls a static method with a reference return type. + * + * This function calls the specified static method of a class and retrieves a reference result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the reference result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Ref)(ani_env *env, ani_class cls, ani_static_method method, ani_ref *result, + ...); + + /** + * @brief Calls a static method with a reference return type (array-based). + * + * This function calls the specified static method of a class and retrieves a reference result using arguments from + * an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the reference result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Ref_A)(ani_env *env, ani_class cls, ani_static_method method, ani_ref *result, + const ani_value *args); + + /** + * @brief Calls a static method with a reference return type (variadic arguments). + * + * This function calls the specified static method of a class and retrieves a reference result using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[out] result A pointer to store the reference result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Ref_V)(ani_env *env, ani_class cls, ani_static_method method, ani_ref *result, + va_list args); + + /** + * @brief Calls a static method with no return value. + * + * This function calls the specified static method of a class using variadic arguments. The method does not return a + * value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Void)(ani_env *env, ani_class cls, ani_static_method method, ...); + + /** + * @brief Calls a static method with no return value (array-based). + * + * This function calls the specified static method of a class using arguments from an array. The method does not + * return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Void_A)(ani_env *env, ani_class cls, ani_static_method method, + const ani_value *args); + + /** + * @brief Calls a static method with no return value (variadic arguments). + * + * This function calls the specified static method of a class using a `va_list`. The method does not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to call. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethod_Void_V)(ani_env *env, ani_class cls, ani_static_method method, va_list args); + + /** + * @brief Calls a static method by name with a boolean return type. + * + * This function calls the specified static method of a class by its name and retrieves a boolean result using + * variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Boolean)(ani_env *env, ani_class cls, const char *name, + ani_boolean *result, ...); + + /** + * @brief Calls a static method by name with a boolean return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a boolean result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Boolean_A)(ani_env *env, ani_class cls, const char *name, + ani_boolean *result, const ani_value *args); + + /** + * @brief Calls a static method by name with a boolean return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a boolean result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the boolean result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Boolean_V)(ani_env *env, ani_class cls, const char *name, + ani_boolean *result, va_list args); + + /** + * @brief Calls a static method by name with a char return type. + * + * This function calls the specified static method of a class by its name and retrieves a char result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the char result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Char)(ani_env *env, ani_class cls, const char *name, ani_char *result, + ...); + + /** + * @brief Calls a static method by name with a char return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a char result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the char result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Char_A)(ani_env *env, ani_class cls, const char *name, ani_char *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a char return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a char result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the char result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Char_V)(ani_env *env, ani_class cls, const char *name, ani_char *result, + va_list args); + + /** + * @brief Calls a static method by name with a byte return type. + * + * This function calls the specified static method of a class by its name and retrieves a byte result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the byte result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Byte)(ani_env *env, ani_class cls, const char *name, ani_byte *result, + ...); + + /** + * @brief Calls a static method by name with a byte return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a byte result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the byte result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Byte_A)(ani_env *env, ani_class cls, const char *name, ani_byte *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a byte return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a byte result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the byte result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Byte_V)(ani_env *env, ani_class cls, const char *name, ani_byte *result, + va_list args); + + /** + * @brief Calls a static method by name with a short return type. + * + * This function calls the specified static method of a class by its name and retrieves a short result using + * variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the short result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Short)(ani_env *env, ani_class cls, const char *name, ani_short *result, + ...); + + /** + * @brief Calls a static method by name with a short return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a short result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the short result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Short_A)(ani_env *env, ani_class cls, const char *name, ani_short *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a short return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a short result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the short result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Short_V)(ani_env *env, ani_class cls, const char *name, ani_short *result, + va_list args); + + /** + * @brief Calls a static method by name with a integer return type. + * + * This function calls the specified static method of a class by its name and retrieves a integer result using + * variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the integer result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Int)(ani_env *env, ani_class cls, const char *name, ani_int *result, ...); + + /** + * @brief Calls a static method by name with a integer return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a integer result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the integer result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Int_A)(ani_env *env, ani_class cls, const char *name, ani_int *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a integer return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a integer result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the integer result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Int_V)(ani_env *env, ani_class cls, const char *name, ani_int *result, + va_list args); + + /** + * @brief Calls a static method by name with a long return type. + * + * This function calls the specified static method of a class by its name and retrieves a long result using variadic + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the long result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Long)(ani_env *env, ani_class cls, const char *name, ani_long *result, + ...); + + /** + * @brief Calls a static method by name with a long return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a long result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the long result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Long_A)(ani_env *env, ani_class cls, const char *name, ani_long *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a long return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a long result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the long result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Long_V)(ani_env *env, ani_class cls, const char *name, ani_long *result, + va_list args); + + /** + * @brief Calls a static method by name with a float return type. + * + * This function calls the specified static method of a class by its name and retrieves a float result using + * variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the float result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Float)(ani_env *env, ani_class cls, const char *name, ani_float *result, + ...); + + /** + * @brief Calls a static method by name with a float return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a float result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the float result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Float_A)(ani_env *env, ani_class cls, const char *name, ani_float *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a float return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a float result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the float result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Float_V)(ani_env *env, ani_class cls, const char *name, ani_float *result, + va_list args); + + /** + * @brief Calls a static method by name with a double return type. + * + * This function calls the specified static method of a class by its name and retrieves a double result using + * variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the double result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Double)(ani_env *env, ani_class cls, const char *name, ani_double *result, + ...); + + /** + * @brief Calls a static method by name with a double return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a double result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the double result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Double_A)(ani_env *env, ani_class cls, const char *name, + ani_double *result, const ani_value *args); + + /** + * @brief Calls a static method by name with a double return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a double result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the double result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Double_V)(ani_env *env, ani_class cls, const char *name, + ani_double *result, va_list args); + + /** + * @brief Calls a static method by name with a reference return type. + * + * This function calls the specified static method of a class by its name and retrieves a reference result using + * variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the reference result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Ref)(ani_env *env, ani_class cls, const char *name, ani_ref *result, ...); + + /** + * @brief Calls a static method by name with a reference return type (array-based). + * + * This function calls the specified static method of a class by its name and retrieves a reference result using + * arguments from an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the reference result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Ref_A)(ani_env *env, ani_class cls, const char *name, ani_ref *result, + const ani_value *args); + + /** + * @brief Calls a static method by name with a reference return type (variadic arguments). + * + * This function calls the specified static method of a class by its name and retrieves a reference result using a + * `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[out] result A pointer to store the reference result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Ref_V)(ani_env *env, ani_class cls, const char *name, ani_ref *result, + va_list args); + + /** + * @brief Calls a static method by name with no return value. + * + * This function calls the specified static method of a class by its name using variadic arguments. The method does + * not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Void)(ani_env *env, ani_class cls, const char *name, ...); + + /** + * @brief Calls a static method by name with no return value (array-based). + * + * This function calls the specified static method of a class by its name using arguments from an array. The method + * does not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Void_A)(ani_env *env, ani_class cls, const char *name, + const ani_value *args); + + /** + * @brief Calls a static method by name with no return value (variadic arguments). + * + * This function calls the specified static method of a class by its name using a `va_list`. The method does not + * return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] name The name of the static method to call. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Class_CallStaticMethodByName_Void_V)(ani_env *env, ani_class cls, const char *name, va_list args); + + /** + * @brief Retrieves a boolean value from a field of an object. + * + * This function retrieves the boolean value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the boolean value from. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Boolean)(ani_env *env, ani_object object, ani_field field, ani_boolean *result); + + /** + * @brief Retrieves a char value from a field of an object. + * + * This function retrieves the char value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the char value from. + * @param[out] result A pointer to store the retrieved char value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Char)(ani_env *env, ani_object object, ani_field field, ani_char *result); + + /** + * @brief Retrieves a byte value from a field of an object. + * + * This function retrieves the byte value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the byte value from. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Byte)(ani_env *env, ani_object object, ani_field field, ani_byte *result); + + /** + * @brief Retrieves a short value from a field of an object. + * + * This function retrieves the short value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the short value from. + * @param[out] result A pointer to store the retrieved short value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Short)(ani_env *env, ani_object object, ani_field field, ani_short *result); + + /** + * @brief Retrieves a integer value from a field of an object. + * + * This function retrieves the integer value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the integer value from. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Int)(ani_env *env, ani_object object, ani_field field, ani_int *result); + + /** + * @brief Retrieves a long value from a field of an object. + * + * This function retrieves the long value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the long value from. + * @param[out] result A pointer to store the retrieved long value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Long)(ani_env *env, ani_object object, ani_field field, ani_long *result); + + /** + * @brief Retrieves a float value from a field of an object. + * + * This function retrieves the float value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the float value from. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Float)(ani_env *env, ani_object object, ani_field field, ani_float *result); + + /** + * @brief Retrieves a double value from a field of an object. + * + * This function retrieves the double value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the double value from. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Double)(ani_env *env, ani_object object, ani_field field, ani_double *result); + + /** + * @brief Retrieves a reference value from a field of an object. + * + * This function retrieves the reference value of the specified field from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to retrieve the reference value from. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetField_Ref)(ani_env *env, ani_object object, ani_field field, ani_ref *result); + + /** + * @brief Sets a boolean value to a field of an object. + * + * This function assigns a boolean value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the boolean value to. + * @param[in] value The boolean value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Boolean)(ani_env *env, ani_object object, ani_field field, ani_boolean value); + + /** + * @brief Sets a char value to a field of an object. + * + * This function assigns a char value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the char value to. + * @param[in] value The char value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Char)(ani_env *env, ani_object object, ani_field field, ani_char value); + + /** + * @brief Sets a byte value to a field of an object. + * + * This function assigns a byte value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the byte value to. + * @param[in] value The byte value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Byte)(ani_env *env, ani_object object, ani_field field, ani_byte value); + + /** + * @brief Sets a short value to a field of an object. + * + * This function assigns a short value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the short value to. + * @param[in] value The short value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Short)(ani_env *env, ani_object object, ani_field field, ani_short value); + + /** + * @brief Sets a integer value to a field of an object. + * + * This function assigns a integer value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the integer value to. + * @param[in] value The integer value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Int)(ani_env *env, ani_object object, ani_field field, ani_int value); + + /** + * @brief Sets a long value to a field of an object. + * + * This function assigns a long value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the long value to. + * @param[in] value The long value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Long)(ani_env *env, ani_object object, ani_field field, ani_long value); + + /** + * @brief Sets a float value to a field of an object. + * + * This function assigns a float value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the float value to. + * @param[in] value The float value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Float)(ani_env *env, ani_object object, ani_field field, ani_float value); + + /** + * @brief Sets a double value to a field of an object. + * + * This function assigns a double value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the double value to. + * @param[in] value The double value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Double)(ani_env *env, ani_object object, ani_field field, ani_double value); + + /** + * @brief Sets a reference value to a field of an object. + * + * This function assigns a reference value to the specified field of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] field The field to set the reference value to. + * @param[in] value The reference value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetField_Ref)(ani_env *env, ani_object object, ani_field field, ani_ref value); + + /** + * @brief Retrieves a boolean value from a field of an object by its name. + * + * This function retrieves the boolean value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the boolean value from. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Boolean)(ani_env *env, ani_object object, const char *name, ani_boolean *result); + + /** + * @brief Retrieves a char value from a field of an object by its name. + * + * This function retrieves the char value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the char value from. + * @param[out] result A pointer to store the retrieved char value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Char)(ani_env *env, ani_object object, const char *name, ani_char *result); + + /** + * @brief Retrieves a byte value from a field of an object by its name. + * + * This function retrieves the byte value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the byte value from. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Byte)(ani_env *env, ani_object object, const char *name, ani_byte *result); + + /** + * @brief Retrieves a short value from a field of an object by its name. + * + * This function retrieves the short value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the short value from. + * @param[out] result A pointer to store the retrieved short value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Short)(ani_env *env, ani_object object, const char *name, ani_short *result); + + /** + * @brief Retrieves a integer value from a field of an object by its name. + * + * This function retrieves the integer value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the integer value from. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Int)(ani_env *env, ani_object object, const char *name, ani_int *result); + + /** + * @brief Retrieves a long value from a field of an object by its name. + * + * This function retrieves the long value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the long value from. + * @param[out] result A pointer to store the retrieved long value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Long)(ani_env *env, ani_object object, const char *name, ani_long *result); + + /** + * @brief Retrieves a float value from a field of an object by its name. + * + * This function retrieves the float value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the float value from. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Float)(ani_env *env, ani_object object, const char *name, ani_float *result); + + /** + * @brief Retrieves a double value from a field of an object by its name. + * + * This function retrieves the double value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the double value from. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Double)(ani_env *env, ani_object object, const char *name, ani_double *result); + + /** + * @brief Retrieves a reference value from a field of an object by its name. + * + * This function retrieves the reference value of the specified field from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to retrieve the reference value from. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetFieldByName_Ref)(ani_env *env, ani_object object, const char *name, ani_ref *result); + + /** + * @brief Sets a boolean value to a field of an object by its name. + * + * This function assigns a boolean value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the boolean value to. + * @param[in] value The boolean value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Boolean)(ani_env *env, ani_object object, const char *name, ani_boolean value); + + /** + * @brief Sets a char value to a field of an object by its name. + * + * This function assigns a char value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the char value to. + * @param[in] value The char value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Char)(ani_env *env, ani_object object, const char *name, ani_char value); + + /** + * @brief Sets a byte value to a field of an object by its name. + * + * This function assigns a byte value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the byte value to. + * @param[in] value The byte value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Byte)(ani_env *env, ani_object object, const char *name, ani_byte value); + + /** + * @brief Sets a short value to a field of an object by its name. + * + * This function assigns a short value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the short value to. + * @param[in] value The short value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Short)(ani_env *env, ani_object object, const char *name, ani_short value); + + /** + * @brief Sets a integer value to a field of an object by its name. + * + * This function assigns a integer value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the integer value to. + * @param[in] value The integer value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Int)(ani_env *env, ani_object object, const char *name, ani_int value); + + /** + * @brief Sets a long value to a field of an object by its name. + * + * This function assigns a long value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the long value to. + * @param[in] value The long value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Long)(ani_env *env, ani_object object, const char *name, ani_long value); + + /** + * @brief Sets a float value to a field of an object by its name. + * + * This function assigns a float value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the float value to. + * @param[in] value The float value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Float)(ani_env *env, ani_object object, const char *name, ani_float value); + + /** + * @brief Sets a double value to a field of an object by its name. + * + * This function assigns a double value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the double value to. + * @param[in] value The double value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Double)(ani_env *env, ani_object object, const char *name, ani_double value); + + /** + * @brief Sets a reference value to a field of an object by its name. + * + * This function assigns a reference value to the specified field of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the field. + * @param[in] name The name of the field to set the reference value to. + * @param[in] value The reference value to assign to the field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetFieldByName_Ref)(ani_env *env, ani_object object, const char *name, ani_ref value); + + /** + * @brief Retrieves a boolean value from a property of an object. + * + * This function retrieves the boolean value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the boolean value from. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Boolean)(ani_env *env, ani_object object, ani_property property, + ani_boolean *result); + + /** + * @brief Retrieves a char value from a property of an object. + * + * This function retrieves the char value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the char value from. + * @param[out] result A pointer to store the retrieved char value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Char)(ani_env *env, ani_object object, ani_property property, ani_char *result); + + /** + * @brief Retrieves a byte value from a property of an object. + * + * This function retrieves the byte value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the byte value from. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Byte)(ani_env *env, ani_object object, ani_property property, ani_byte *result); + + /** + * @brief Retrieves a short value from a property of an object. + * + * This function retrieves the short value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the short value from. + * @param[out] result A pointer to store the retrieved short value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Short)(ani_env *env, ani_object object, ani_property property, ani_short *result); + + /** + * @brief Retrieves a integer value from a property of an object. + * + * This function retrieves the integer value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the integer value from. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Int)(ani_env *env, ani_object object, ani_property property, ani_int *result); + + /** + * @brief Retrieves a long value from a property of an object. + * + * This function retrieves the long value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the long value from. + * @param[out] result A pointer to store the retrieved long value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Long)(ani_env *env, ani_object object, ani_property property, ani_long *result); + + /** + * @brief Retrieves a float value from a property of an object. + * + * This function retrieves the float value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the float value from. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Float)(ani_env *env, ani_object object, ani_property property, ani_float *result); + + /** + * @brief Retrieves a double value from a property of an object. + * + * This function retrieves the double value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the double value from. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Double)(ani_env *env, ani_object object, ani_property property, ani_double *result); + + /** + * @brief Retrieves a reference value from a property of an object. + * + * This function retrieves the reference value of the specified property from the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to retrieve the reference value from. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetProperty_Ref)(ani_env *env, ani_object object, ani_property property, ani_ref *result); + + /** + * @brief Sets a boolean value to a property of an object. + * + * This function assigns a boolean value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the boolean value to. + * @param[in] value The boolean value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Boolean)(ani_env *env, ani_object object, ani_property property, ani_boolean value); + + /** + * @brief Sets a char value to a property of an object. + * + * This function assigns a char value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the char value to. + * @param[in] value The char value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Char)(ani_env *env, ani_object object, ani_property property, ani_char value); + + /** + * @brief Sets a byte value to a property of an object. + * + * This function assigns a byte value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the byte value to. + * @param[in] value The byte value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Byte)(ani_env *env, ani_object object, ani_property property, ani_byte value); + + /** + * @brief Sets a short value to a property of an object. + * + * This function assigns a short value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the short value to. + * @param[in] value The short value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Short)(ani_env *env, ani_object object, ani_property property, ani_short value); + + /** + * @brief Sets a integer value to a property of an object. + * + * This function assigns a integer value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the integer value to. + * @param[in] value The integer value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Int)(ani_env *env, ani_object object, ani_property property, ani_int value); + + /** + * @brief Sets a long value to a property of an object. + * + * This function assigns a long value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the long value to. + * @param[in] value The long value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Long)(ani_env *env, ani_object object, ani_property property, ani_long value); + + /** + * @brief Sets a float value to a property of an object. + * + * This function assigns a float value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the float value to. + * @param[in] value The float value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Float)(ani_env *env, ani_object object, ani_property property, ani_float value); + + /** + * @brief Sets a double value to a property of an object. + * + * This function assigns a double value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the double value to. + * @param[in] value The double value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Double)(ani_env *env, ani_object object, ani_property property, ani_double value); + + /** + * @brief Sets a reference value to a property of an object. + * + * This function assigns a reference value to the specified property of the given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] property The property to set the reference value to. + * @param[in] value The reference value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetProperty_Ref)(ani_env *env, ani_object object, ani_property property, ani_ref value); + + /** + * @brief Retrieves a boolean value from a property of an object by its name. + * + * This function retrieves the boolean value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the boolean value from. + * @param[out] result A pointer to store the retrieved boolean value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Boolean)(ani_env *env, ani_object object, const char *name, + ani_boolean *result); + + /** + * @brief Retrieves a char value from a property of an object by its name. + * + * This function retrieves the char value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the char value from. + * @param[out] result A pointer to store the retrieved char value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Char)(ani_env *env, ani_object object, const char *name, ani_char *result); + + /** + * @brief Retrieves a byte value from a property of an object by its name. + * + * This function retrieves the byte value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the byte value from. + * @param[out] result A pointer to store the retrieved byte value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Byte)(ani_env *env, ani_object object, const char *name, ani_byte *result); + + /** + * @brief Retrieves a short value from a property of an object by its name. + * + * This function retrieves the short value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the short value from. + * @param[out] result A pointer to store the retrieved short value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Short)(ani_env *env, ani_object object, const char *name, ani_short *result); + + /** + * @brief Retrieves a integer value from a property of an object by its name. + * + * This function retrieves the integer value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the integer value from. + * @param[out] result A pointer to store the retrieved integer value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Int)(ani_env *env, ani_object object, const char *name, ani_int *result); + + /** + * @brief Retrieves a long value from a property of an object by its name. + * + * This function retrieves the long value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the long value from. + * @param[out] result A pointer to store the retrieved long value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Long)(ani_env *env, ani_object object, const char *name, ani_long *result); + + /** + * @brief Retrieves a float value from a property of an object by its name. + * + * This function retrieves the float value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the float value from. + * @param[out] result A pointer to store the retrieved float value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Float)(ani_env *env, ani_object object, const char *name, ani_float *result); + + /** + * @brief Retrieves a double value from a property of an object by its name. + * + * This function retrieves the double value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the double value from. + * @param[out] result A pointer to store the retrieved double value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Double)(ani_env *env, ani_object object, const char *name, + ani_double *result); + + /** + * @brief Retrieves a reference value from a property of an object by its name. + * + * This function retrieves the reference value of the specified property from the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to retrieve the reference value from. + * @param[out] result A pointer to store the retrieved reference value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_GetPropertyByName_Ref)(ani_env *env, ani_object object, const char *name, ani_ref *result); + + /** + * @brief Sets a boolean value to a property of an object by its name. + * + * This function assigns a boolean value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the boolean value to. + * @param[in] value The boolean value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Boolean)(ani_env *env, ani_object object, const char *name, + ani_boolean value); + + /** + * @brief Sets a char value to a property of an object by its name. + * + * This function assigns a char value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the char value to. + * @param[in] value The char value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Char)(ani_env *env, ani_object object, const char *name, ani_char value); + + /** + * @brief Sets a byte value to a property of an object by its name. + * + * This function assigns a byte value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the byte value to. + * @param[in] value The byte value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Byte)(ani_env *env, ani_object object, const char *name, ani_byte value); + + /** + * @brief Sets a short value to a property of an object by its name. + * + * This function assigns a short value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the short value to. + * @param[in] value The short value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Short)(ani_env *env, ani_object object, const char *name, ani_short value); + + /** + * @brief Sets a integer value to a property of an object by its name. + * + * This function assigns a integer value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the integer value to. + * @param[in] value The integer value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Int)(ani_env *env, ani_object object, const char *name, ani_int value); + + /** + * @brief Sets a long value to a property of an object by its name. + * + * This function assigns a long value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the long value to. + * @param[in] value The long value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Long)(ani_env *env, ani_object object, const char *name, ani_long value); + + /** + * @brief Sets a float value to a property of an object by its name. + * + * This function assigns a float value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the float value to. + * @param[in] value The float value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Float)(ani_env *env, ani_object object, const char *name, ani_float value); + + /** + * @brief Sets a double value to a property of an object by its name. + * + * This function assigns a double value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the double value to. + * @param[in] value The double value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Double)(ani_env *env, ani_object object, const char *name, ani_double value); + + /** + * @brief Sets a reference value to a property of an object by its name. + * + * This function assigns a reference value to the specified property of the given object by its name. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object containing the property. + * @param[in] name The name of the property to set the reference value to. + * @param[in] value The reference value to assign to the property. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_SetPropertyByName_Ref)(ani_env *env, ani_object object, const char *name, ani_ref value); + + /** + * @brief Calls a method on an object and retrieves a boolean return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the boolean return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Boolean)(ani_env *env, ani_object object, ani_method method, ani_boolean *result, + ...); + + /** + * @brief Calls a method on an object and retrieves a boolean return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a + * boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the boolean return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Boolean_A)(ani_env *env, ani_object object, ani_method method, ani_boolean *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a boolean return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the boolean return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Boolean_V)(ani_env *env, ani_object object, ani_method method, ani_boolean *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a char return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a char result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the char return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Char)(ani_env *env, ani_object object, ani_method method, ani_char *result, ...); + + /** + * @brief Calls a method on an object and retrieves a char return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a char + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the char return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Char_A)(ani_env *env, ani_object object, ani_method method, ani_char *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a char return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a char result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the char return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Char_V)(ani_env *env, ani_object object, ani_method method, ani_char *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a byte return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the byte return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Byte)(ani_env *env, ani_object object, ani_method method, ani_byte *result, ...); + + /** + * @brief Calls a method on an object and retrieves a byte return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a byte + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the byte return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Byte_A)(ani_env *env, ani_object object, ani_method method, ani_byte *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a byte return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the byte return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Byte_V)(ani_env *env, ani_object object, ani_method method, ani_byte *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a short return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the short return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Short)(ani_env *env, ani_object object, ani_method method, ani_short *result, ...); + + /** + * @brief Calls a method on an object and retrieves a short return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a short + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the short return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Short_A)(ani_env *env, ani_object object, ani_method method, ani_short *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a short return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the short return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Short_V)(ani_env *env, ani_object object, ani_method method, ani_short *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a integer return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the integer return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Int)(ani_env *env, ani_object object, ani_method method, ani_int *result, ...); + + /** + * @brief Calls a method on an object and retrieves a integer return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a + * integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the integer return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Int_A)(ani_env *env, ani_object object, ani_method method, ani_int *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a integer return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the integer return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Int_V)(ani_env *env, ani_object object, ani_method method, ani_int *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a long return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the long return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Long)(ani_env *env, ani_object object, ani_method method, ani_long *result, ...); + + /** + * @brief Calls a method on an object and retrieves a long return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a long + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the long return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Long_A)(ani_env *env, ani_object object, ani_method method, ani_long *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a long return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the long return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Long_V)(ani_env *env, ani_object object, ani_method method, ani_long *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a float return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the float return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Float)(ani_env *env, ani_object object, ani_method method, ani_float *result, ...); + + /** + * @brief Calls a method on an object and retrieves a float return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a float + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the float return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Float_A)(ani_env *env, ani_object object, ani_method method, ani_float *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a float return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the float return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Float_V)(ani_env *env, ani_object object, ani_method method, ani_float *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a double return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the double return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Double)(ani_env *env, ani_object object, ani_method method, ani_double *result, ...); + + /** + * @brief Calls a method on an object and retrieves a double return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a double + * result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the double return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Double_A)(ani_env *env, ani_object object, ani_method method, ani_double *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a double return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the double return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Double_V)(ani_env *env, ani_object object, ani_method method, ani_double *result, + va_list args); + + /** + * @brief Calls a method on an object and retrieves a reference return value. + * + * This function calls the specified method of an object using variadic arguments and retrieves a reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the reference return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Ref)(ani_env *env, ani_object object, ani_method method, ani_ref *result, ...); + + /** + * @brief Calls a method on an object and retrieves a reference return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array and retrieves a + * reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the reference return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Ref_A)(ani_env *env, ani_object object, ani_method method, ani_ref *result, + const ani_value *args); + + /** + * @brief Calls a method on an object and retrieves a reference return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list` and retrieves a reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[out] result A pointer to store the reference return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Ref_V)(ani_env *env, ani_object object, ani_method method, ani_ref *result, + va_list args); + + /** + * @brief Calls a method on an object with no return value. + * + * This function calls the specified method of an object using variadic arguments. The method does not return a + * value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Void)(ani_env *env, ani_object object, ani_method method, ...); + + /** + * @brief Calls a method on an object with no return value (array-based). + * + * This function calls the specified method of an object using arguments provided in an array. The method does not + * return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Void_A)(ani_env *env, ani_object object, ani_method method, const ani_value *args); + + /** + * @brief Calls a method on an object with no return value (variadic arguments). + * + * This function calls the specified method of an object using a `va_list`. The method does not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] method The method to call. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethod_Void_V)(ani_env *env, ani_object object, ani_method method, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a boolean return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the boolean return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Boolean)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_boolean *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a boolean return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the boolean return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Boolean_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_boolean *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a boolean return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * boolean result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the boolean return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Boolean_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_boolean *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a char return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a char result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the char return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Char)(ani_env *env, ani_object object, const char *name, const char *signature, + ani_char *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a char return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a char result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the char return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Char_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_char *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a char return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * char result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the char return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Char_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_char *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a byte return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the byte return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Byte)(ani_env *env, ani_object object, const char *name, const char *signature, + ani_byte *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a byte return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the byte return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Byte_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_byte *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a byte return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * byte result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the byte return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Byte_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_byte *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a short return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the short return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Short)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_short *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a short return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the short return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Short_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_short *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a short return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * short result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the short return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Short_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_short *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a integer return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the integer return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Int)(ani_env *env, ani_object object, const char *name, const char *signature, + ani_int *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a integer return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the integer return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Int_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_int *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a integer return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * integer result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the integer return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Int_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_int *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a long return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the long return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Long)(ani_env *env, ani_object object, const char *name, const char *signature, + ani_long *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a long return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the long return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Long_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_long *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a long return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * long result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the long return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Long_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_long *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a float return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the float return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Float)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_float *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a float return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the float return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Float_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_float *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a float return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * float result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the float return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Float_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_float *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a double return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the double return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Double)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_double *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a double return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the double return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Double_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_double *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a double return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * double result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the double return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Double_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_double *result, va_list args); + + /** + * @brief Calls a method by name on an object and retrieves a reference return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments and + * retrieves a reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the reference return value. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Ref)(ani_env *env, ani_object object, const char *name, const char *signature, + ani_ref *result, ...); + + /** + * @brief Calls a method by name on an object and retrieves a reference return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array and retrieves a reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the reference return value. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Ref_A)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_ref *result, const ani_value *args); + + /** + * @brief Calls a method by name on an object and retrieves a reference return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list` and retrieves a + * reference result. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[out] result A pointer to store the reference return value. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Ref_V)(ani_env *env, ani_object object, const char *name, + const char *signature, ani_ref *result, va_list args); + + /** + * @brief Calls a method by name on an object with no return value. + * + * This function calls the specified method by its name and signature on an object using variadic arguments. The + * method does not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Void)(ani_env *env, ani_object object, const char *name, const char *signature, + ...); + + /** + * @brief Calls a method by name on an object with no return value (array-based). + * + * This function calls the specified method by its name and signature on an object using arguments provided in an + * array. The method does not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Void_A)(ani_env *env, ani_object object, const char *name, + const char *signature, const ani_value *args); + + /** + * @brief Calls a method by name on an object with no return value (variadic arguments). + * + * This function calls the specified method by its name and signature on an object using a `va_list`. The method + * does not return a value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] object The object on which the method is to be called. + * @param[in] name The name of the method to call. + * @param[in] signature The signature of the method to call. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Object_CallMethodByName_Void_V)(ani_env *env, ani_object object, const char *name, + const char *signature, va_list args); + + /** + * @brief Creates a new tuple value. + * + * This function creates a new value for the specified tuple using variadic arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple The tuple for which to create a new value. + * @param[out] result A pointer to store the new tuple value. + * @param[in] ... Variadic arguments to initialize the tuple value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Tuple_NewTupleValue)(ani_env *env, ani_tuple tuple, ani_tuple_value *result, ...); + + /** + * @brief Creates a new tuple value (array-based). + * + * This function creates a new value for the specified tuple using arguments provided in an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple The tuple for which to create a new value. + * @param[out] result A pointer to store the new tuple value. + * @param[in] args An array of arguments to initialize the tuple value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Tuple_NewTupleValue_A)(ani_env *env, ani_tuple tuple, ani_tuple_value *result, const ani_value *args); + + /** + * @brief Creates a new tuple value (variadic arguments). + * + * This function creates a new value for the specified tuple using a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple The tuple for which to create a new value. + * @param[out] result A pointer to store the new tuple value. + * @param[in] args A `va_list` of arguments to initialize the tuple value. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Tuple_NewTupleValue_V)(ani_env *env, ani_tuple tuple, ani_tuple_value *result, va_list args); + + /** + * @brief Retrieves the number of items in a tuple. + * + * This function retrieves the total number of items in the specified tuple. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple The tuple whose number of items is to be retrieved. + * @param[out] result A pointer to store the number of items. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Tuple_GetNumberOfItems)(ani_env *env, ani_tuple tuple, ani_size *result); + + /** + * @brief Retrieves the kind of an item in a tuple. + * + * This function retrieves the kind of the item at the specified index in the tuple. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple The tuple containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the kind of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Tuple_GetItemKind)(ani_env *env, ani_tuple tuple, ani_size index, ani_kind *result); + + /** + * @brief Retrieves the type of an item in a tuple. + * + * This function retrieves the type of the item at the specified index in the tuple. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple The tuple containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the type of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Tuple_GetItemType)(ani_env *env, ani_tuple tuple, ani_size index, ani_type *result); + + /** + * @brief Retrieves the tuple associated with a tuple value. + * + * This function retrieves the tuple that corresponds to the specified tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] value The tuple value to query. + * @param[out] result A pointer to store the associated tuple. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetTuple)(ani_env *env, ani_tuple_value value, ani_tuple *result); + + /** + * @brief Retrieves a boolean item from a tuple value. + * + * This function retrieves the boolean value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the boolean value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Boolean)(ani_env *env, ani_tuple_value tuple_value, ani_size index, + ani_boolean *result); + + /** + * @brief Retrieves a char item from a tuple value. + * + * This function retrieves the char value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the char value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Char)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_char *result); + + /** + * @brief Retrieves a byte item from a tuple value. + * + * This function retrieves the byte value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the byte value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Byte)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_byte *result); + + /** + * @brief Retrieves a short item from a tuple value. + * + * This function retrieves the short value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the short value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Short)(ani_env *env, ani_tuple_value tuple_value, ani_size index, + ani_short *result); + + /** + * @brief Retrieves a integer item from a tuple value. + * + * This function retrieves the integer value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the integer value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Int)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_int *result); + + /** + * @brief Retrieves a long item from a tuple value. + * + * This function retrieves the long value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the long value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Long)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_long *result); + + /** + * @brief Retrieves a float item from a tuple value. + * + * This function retrieves the float value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the float value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Float)(ani_env *env, ani_tuple_value tuple_value, ani_size index, + ani_float *result); + + /** + * @brief Retrieves a double item from a tuple value. + * + * This function retrieves the double value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the double value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Double)(ani_env *env, ani_tuple_value tuple_value, ani_size index, + ani_double *result); + + /** + * @brief Retrieves a reference item from a tuple value. + * + * This function retrieves the reference value of the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[out] result A pointer to store the reference value of the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_GetItem_Ref)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_ref *result); + + /** + * @brief Sets a boolean value to an item in a tuple value. + * + * This function assigns a boolean value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The boolean value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Boolean)(ani_env *env, ani_tuple_value tuple_value, ani_size index, + ani_boolean value); + + /** + * @brief Sets a char value to an item in a tuple value. + * + * This function assigns a char value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The char value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Char)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_char value); + + /** + * @brief Sets a byte value to an item in a tuple value. + * + * This function assigns a byte value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The byte value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Byte)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_byte value); + + /** + * @brief Sets a short value to an item in a tuple value. + * + * This function assigns a short value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The short value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Short)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_short value); + + /** + * @brief Sets a integer value to an item in a tuple value. + * + * This function assigns a integer value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The integer value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Int)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_int value); + + /** + * @brief Sets a long value to an item in a tuple value. + * + * This function assigns a long value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The long value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Long)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_long value); + + /** + * @brief Sets a float value to an item in a tuple value. + * + * This function assigns a float value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The float value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Float)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_float value); + + /** + * @brief Sets a double value to an item in a tuple value. + * + * This function assigns a double value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The double value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Double)(ani_env *env, ani_tuple_value tuple_value, ani_size index, + ani_double value); + + /** + * @brief Sets a reference value to an item in a tuple value. + * + * This function assigns a reference value to the item at the specified index in the tuple value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] tuple_value The tuple value containing the item. + * @param[in] index The index of the item. + * @param[in] value The reference value to assign to the item. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*TupleValue_SetItem_Ref)(ani_env *env, ani_tuple_value tuple_value, ani_size index, ani_ref value); + + /** + * @brief Creates a global reference. + * + * This function creates a global reference from a local reference. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The local reference to convert to a global reference. + * @param[out] result A pointer to store the created global reference. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GlobalReference_Create)(ani_env *env, ani_ref ref, ani_gref *result); + + /** + * @brief Deletes a global reference. + * + * This function deletes the specified global reference, releasing all associated resources. + * + * @param[in] env A pointer to the environment structure. + * @param[in] gref The global reference to delete. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*GlobalReference_Delete)(ani_env *env, ani_gref gref); + + /** + * @brief Creates a weak reference. + * + * This function creates a weak reference from a local reference. + * + * @param[in] env A pointer to the environment structure. + * @param[in] ref The local reference to convert to a weak reference. + * @param[out] result A pointer to store the created weak reference. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*WeakReference_Create)(ani_env *env, ani_ref ref, ani_wref *result); + + /** + * @brief Deletes a weak reference. + * + * This function deletes the specified weak reference, releasing all associated resources. + * + * @param[in] env A pointer to the environment structure. + * @param[in] wref The weak reference to delete. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*WeakReference_Delete)(ani_env *env, ani_wref wref); + + /** + * @brief Retrieves the local reference associated with a weak reference. + * + * This function retrieves the local reference that corresponds to the specified weak reference. + * + * @param[in] env A pointer to the environment structure. + * @param[in] wref The weak reference to query. + * @param[out] result A pointer to store the retrieved local reference. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*WeakReference_GetReference)(ani_env *env, ani_wref wref, ani_ref *result); + + /** + * @brief Creates a new array buffer. + * + * This function creates a new array buffer with the specified length and returns a pointer to the allocated data. + * + * @param[in] env A pointer to the environment structure. + * @param[in] length The length of the array buffer in bytes. + * @param[out] data_result A pointer to store the allocated data of the array buffer. + * @param[out] arraybuffer_result A pointer to store the created array buffer object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CreateArrayBuffer)(ani_env *env, size_t length, void **data_result, + ani_arraybuffer *arraybuffer_result); + + /** + * @brief Creates a new array buffer using external data. + * + * This function creates an array buffer that uses external data. The provided finalizer will be called when the + * array buffer is no longer needed. + * + * @param[in] env A pointer to the environment structure. + * @param[in] external_data A pointer to the external data to be used by the array buffer. + * @param[in] length The length of the external data in bytes. + * @param[in] finalizer A callback function to be called when the array buffer is finalized. + * @param[in] hint A user-defined hint to be passed to the finalizer. + * @param[out] result A pointer to store the created array buffer object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CreateArrayBufferExternal)(ani_env *env, void *external_data, size_t length, ani_finalizer finalizer, + void *hint, ani_arraybuffer *result); + + /** + * @brief Retrieves information about an array buffer. + * + * This function retrieves the data pointer and length of the specified array buffer. + * + * @param[in] env A pointer to the environment structure. + * @param[in] arraybuffer The array buffer to query. + * @param[out] data_result A pointer to store the data of the array buffer. + * @param[out] length_result A pointer to store the length of the array buffer in bytes. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*ArrayBuffer_GetInfo)(ani_env *env, ani_arraybuffer arraybuffer, void **data_result, + size_t *length_result); + + /** + * @brief Converts an object to a method. + * + * This function extracts the method information from a given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] method The object representing the method. + * @param[out] result A pointer to store the extracted method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_FromMethod)(ani_env *env, ani_object method, ani_method *result); + + /** + * @brief Converts a method to an object. + * + * This function creates an object representing the specified method. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the method. + * @param[in] method The method to convert. + * @param[out] result A pointer to store the created object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_ToMethod)(ani_env *env, ani_class cls, ani_method method, ani_object *result); + + /** + * @brief Converts an object to a field. + * + * This function extracts the field information from a given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] field The object representing the field. + * @param[out] result A pointer to store the extracted field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_FromField)(ani_env *env, ani_object field, ani_field *result); + + /** + * @brief Converts a field to an object. + * + * This function creates an object representing the specified field. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the field. + * @param[in] field The field to convert. + * @param[out] result A pointer to store the created object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_ToField)(ani_env *env, ani_class cls, ani_field field, ani_object *result); + + /** + * @brief Converts an object to a static method. + * + * This function extracts the static method information from a given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] method The object representing the static method. + * @param[out] result A pointer to store the extracted static method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_FromStaticMethod)(ani_env *env, ani_object method, ani_static_method *result); + + /** + * @brief Converts a static method to an object. + * + * This function creates an object representing the specified static method. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static method. + * @param[in] method The static method to convert. + * @param[out] result A pointer to store the created object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_ToStaticMethod)(ani_env *env, ani_class cls, ani_static_method method, ani_object *result); + + /** + * @brief Converts an object to a static field. + * + * This function extracts the static field information from a given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] field The object representing the static field. + * @param[out] result A pointer to store the extracted static field. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_FromStaticField)(ani_env *env, ani_object field, ani_static_field *result); + + /** + * @brief Converts a static field to an object. + * + * This function creates an object representing the specified static field. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class containing the static field. + * @param[in] field The static field to convert. + * @param[out] result A pointer to store the created object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_ToStaticField)(ani_env *env, ani_class cls, ani_static_field field, ani_object *result); + + /** + * @brief Converts an object to a function. + * + * This function extracts the function information from a given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] function The object representing the function. + * @param[out] result A pointer to store the extracted function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_FromFunction)(ani_env *env, ani_object function, ani_function *result); + + /** + * @brief Converts a function to an object. + * + * This function creates an object representing the specified function. + * + * @param[in] env A pointer to the environment structure. + * @param[in] function The function to convert. + * @param[out] result A pointer to store the created object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_ToFunction)(ani_env *env, ani_function function, ani_object *result); + + /** + * @brief Converts an object to a variable. + * + * This function extracts the variable information from a given object. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The object representing the variable. + * @param[out] result A pointer to store the extracted variable. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_FromVariable)(ani_env *env, ani_object variable, ani_variable *result); + + /** + * @brief Converts a variable to an object. + * + * This function creates an object representing the specified variable. + * + * @param[in] env A pointer to the environment structure. + * @param[in] variable The variable to convert. + * @param[out] result A pointer to store the created object. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Reflection_ToVariable)(ani_env *env, ani_variable variable, ani_object *result); + + /** + * @brief Registers a new coroutine-local storage slot. + * + * This function registers a new coroutine-local storage (CLS) slot with an optional initial data, finalizer, and + * hint. + * + * @param[in] env A pointer to the environment structure. + * @param[in] initial_data A pointer to the initial data to associate with the slot. Can be null. + * @param[in] finalizer A callback function to finalize and clean up the data when it is no longer needed. + * @param[in] hint A user-defined pointer that is passed to the finalizer. Can be null. + * @param[out] result A pointer to store the created CLS slot. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CLS_Register)(ani_env *env, void *initial_data, ani_finalizer finalizer, void *hint, + ani_cls_slot *result); + + /** + * @brief Unregisters a coroutine-local storage slot. + * + * This function unregisters a previously registered CLS slot, releasing its resources. + * + * @param[in] env A pointer to the environment structure. + * @param[in] slot The CLS slot to unregister. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CLS_Unregister)(ani_env *env, ani_cls_slot slot); + + /** + * @brief Sets data for a CLS slot. + * + * This function associates the specified data with the given CLS slot. + * + * @param[in] env A pointer to the environment structure. + * @param[in] slot The CLS slot to set data for. + * @param[in] data A pointer to the data to associate with the slot. Can be null. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CLS_SetData)(ani_env *env, ani_cls_slot slot, void *data); + + /** + * @brief Retrieves data from a CLS slot. + * + * This function retrieves the data associated with the given CLS slot. + * + * @param[in] env A pointer to the environment structure. + * @param[in] slot The CLS slot to retrieve data from. + * @param[out] result A pointer to store the retrieved data. Can be null if no data is associated. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*CLS_GetData)(ani_env *env, ani_cls_slot slot, void **result); + + /** + * @brief Launches a coroutine using a functional object. + * + * This function starts a coroutine that executes the specified functional object with the given arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] fn The functional object to execute. + * @param[in] argc The number of arguments to pass to the functional object. + * @param[in] argv An array of arguments to pass to the functional object. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchFunctionalObject)(ani_env *env, ani_fn_object fn, ani_size argc, ani_ref *argv, + ani_promise *result); + + /** + * @brief Launches a coroutine using a function with variadic arguments. + * + * This function starts a coroutine that executes the specified function with the given arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] function The function to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] ... Variadic arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchFunction)(ani_env *env, ani_function function, ani_promise *result, ...); + + /** + * @brief Launches a coroutine using a function with array-based arguments. + * + * This function starts a coroutine that executes the specified function using arguments provided in an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] function The function to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] args An array of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchFunction_A)(ani_env *env, ani_function function, ani_promise *result, + const ani_value *args); + + /** + * @brief Launches a coroutine using a function with variadic arguments in a `va_list`. + * + * This function starts a coroutine that executes the specified function using arguments provided in a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] function The function to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] args A `va_list` of arguments to pass to the function. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchFunction_V)(ani_env *env, ani_function function, ani_promise *result, va_list args); + + /** + * @brief Launches a coroutine using an object method with variadic arguments. + * + * This function starts a coroutine that executes the specified method on the given object with the provided + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] self The object on which the method is to be executed. + * @param[in] function The method to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] ... Variadic arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchMethod)(ani_env *env, ani_object self, ani_function function, ani_promise *result, + ...); + + /** + * @brief Launches a coroutine using an object method with array-based arguments. + * + * This function starts a coroutine that executes the specified method on the given object using arguments provided + * in an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] self The object on which the method is to be executed. + * @param[in] function The method to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] args An array of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchMethod_A)(ani_env *env, ani_object self, ani_function function, ani_promise *result, + const ani_value *args); + + /** + * @brief Launches a coroutine using an object method with variadic arguments in a `va_list`. + * + * This function starts a coroutine that executes the specified method on the given object using arguments provided + * in a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] self The object on which the method is to be executed. + * @param[in] function The method to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] args A `va_list` of arguments to pass to the method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchMethod_V)(ani_env *env, ani_object self, ani_function function, ani_promise *result, + va_list args); + + /** + * @brief Launches a coroutine using a static method with variadic arguments. + * + * This function starts a coroutine that executes the specified static method on the given class with the provided + * arguments. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class on which the static method is to be executed. + * @param[in] function The static method to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] ... Variadic arguments to pass to the static method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchStaticMethod)(ani_env *env, ani_class cls, ani_function function, ani_promise *result, + ...); + + /** + * @brief Launches a coroutine using a static method with array-based arguments. + * + * This function starts a coroutine that executes the specified static method on the given class using arguments + * provided in an array. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class on which the static method is to be executed. + * @param[in] function The static method to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] args An array of arguments to pass to the static method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchStaticMethod_A)(ani_env *env, ani_class cls, ani_function function, + ani_promise *result, const ani_value *args); + + /** + * @brief Launches a coroutine using a static method with variadic arguments in a `va_list`. + * + * This function starts a coroutine that executes the specified static method on the given class using arguments + * provided in a `va_list`. + * + * @param[in] env A pointer to the environment structure. + * @param[in] cls The class on which the static method is to be executed. + * @param[in] function The static method to execute. + * @param[out] result A pointer to store the promise representing the coroutine's result. + * @param[in] args A `va_list` of arguments to pass to the static method. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_LaunchStaticMethod_V)(ani_env *env, ani_class cls, ani_function function, + ani_promise *result, va_list args); + + /** + * @brief Awaits the completion of a promise and retrieves a boolean result. + * + * This function waits for the specified promise to complete and retrieves its result as a boolean value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the boolean result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Boolean)(ani_env *env, ani_promise promise, ani_boolean value); + + /** + * @brief Awaits the completion of a promise and retrieves a char result. + * + * This function waits for the specified promise to complete and retrieves its result as a char value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the char result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Char)(ani_env *env, ani_promise promise, ani_char value); + + /** + * @brief Awaits the completion of a promise and retrieves a byte result. + * + * This function waits for the specified promise to complete and retrieves its result as a byte value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the byte result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Byte)(ani_env *env, ani_promise promise, ani_byte value); + + /** + * @brief Awaits the completion of a promise and retrieves a short result. + * + * This function waits for the specified promise to complete and retrieves its result as a short value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the short result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Short)(ani_env *env, ani_promise promise, ani_short value); + + /** + * @brief Awaits the completion of a promise and retrieves a integer result. + * + * This function waits for the specified promise to complete and retrieves its result as a integer value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the integer result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Int)(ani_env *env, ani_promise promise, ani_int value); + + /** + * @brief Awaits the completion of a promise and retrieves a long result. + * + * This function waits for the specified promise to complete and retrieves its result as a long value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the long result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Long)(ani_env *env, ani_promise promise, ani_long value); + + /** + * @brief Awaits the completion of a promise and retrieves a float result. + * + * This function waits for the specified promise to complete and retrieves its result as a float value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the float result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Float)(ani_env *env, ani_promise promise, ani_float value); + + /** + * @brief Awaits the completion of a promise and retrieves a double result. + * + * This function waits for the specified promise to complete and retrieves its result as a double value. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the double result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Double)(ani_env *env, ani_promise promise, ani_double value); + + /** + * @brief Awaits the completion of a promise and retrieves a reference result. + * + * This function waits for the specified promise to complete and retrieves its result as a reference. + * + * @param[in] env A pointer to the environment structure. + * @param[in] promise The promise to await. + * @param[out] value A pointer to store the reference result of the promise. + * @return Returns a status code of type `ani_status` indicating success or failure. + */ + ani_status (*Coroutine_Await_Ref)(ani_env *env, ani_promise promise, ani_ref value); +}; + +// C++ API +struct __ani_vm { + const struct __ani_vm_api *c_api; + +#ifdef __cplusplus + ani_status DestroyVM() + { + return c_api->DestroyVM(this); + } + ani_status GetEnv(uint32_t version, ani_env **result) + { + return c_api->GetEnv(this, version, result); + } + ani_status AttachThread(void *params, ani_env **result) + { + return c_api->AttachThread(this, params, result); + } + ani_status DetachThread() + { + return c_api->DetachThread(this); + } +#endif // __cplusplus +}; + +struct __ani_env { + const struct __ani_interaction_api *c_api; + +#ifdef __cplusplus + ani_status GetVersion(uint32_t *result) + { + return c_api->GetVersion(this, result); + } + ani_status GetVM(ani_vm **result) + { + return c_api->GetVM(this, result); + } + ani_status Reference_IsObject(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsObject(this, ref, result); + } + ani_status Reference_IsFunctionalObject(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFunctionalObject(this, ref, result); + } + ani_status Reference_IsEnum(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsEnum(this, ref, result); + } + ani_status Reference_IsTuple(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsTuple(this, ref, result); + } + ani_status Reference_IsString(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsString(this, ref, result); + } + ani_status Reference_IsStringLiteral(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsStringLiteral(this, ref, result); + } + ani_status Reference_IsFixedArray(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray(this, ref, result); + } + ani_status Reference_IsFixedArray_Boolean(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Boolean(this, ref, result); + } + ani_status Reference_IsFixedArray_Char(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Char(this, ref, result); + } + ani_status Reference_IsFixedArray_Byte(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Byte(this, ref, result); + } + ani_status Reference_IsFixedArray_Short(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Short(this, ref, result); + } + ani_status Reference_IsFixedArray_Int(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Int(this, ref, result); + } + ani_status Reference_IsFixedArray_Long(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Long(this, ref, result); + } + ani_status Reference_IsFixedArray_Float(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Float(this, ref, result); + } + ani_status Reference_IsFixedArray_Double(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Double(this, ref, result); + } + ani_status Reference_IsFixedArray_Ref(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsFixedArray_Ref(this, ref, result); + } + ani_status Object_New(ani_class cls, ani_method method, ani_object *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_New_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Object_New_A(ani_class cls, ani_method method, ani_object *result, const ani_value *args) + { + return c_api->Object_New_A(this, cls, method, result, args); + } + ani_status Object_New_V(ani_class cls, ani_method method, ani_object *result, va_list args) + { + return c_api->Object_New_V(this, cls, method, result, args); + } + ani_status Object_GetType(ani_object object, ani_type *result) + { + return c_api->Object_GetType(this, object, result); + } + ani_status Object_InstanceOf(ani_object object, ani_type type, ani_boolean *result) + { + return c_api->Object_InstanceOf(this, object, type, result); + } + ani_status Object_IsSame(ani_object object1, ani_object object2, ani_boolean *result) + { + return c_api->Object_IsSame(this, object1, object2, result); + } + ani_status Type_GetSuperClass(ani_type type, ani_class *result) + { + return c_api->Type_GetSuperClass(this, type, result); + } + ani_status Type_IsAssignableFrom(ani_type from_type, ani_type to_type, ani_boolean *result) + { + return c_api->Type_IsAssignableFrom(this, from_type, to_type, result); + } + ani_status FindModule(const char *module_descriptor, ani_module *result) + { + return c_api->FindModule(this, module_descriptor, result); + } + ani_status FindNamespace(const char *namespace_descriptor, ani_namespace *result) + { + return c_api->FindNamespace(this, namespace_descriptor, result); + } + ani_status FindClass(const char *class_descriptor, ani_class *result) + { + return c_api->FindClass(this, class_descriptor, result); + } + ani_status FindEnum(const char *enum_descriptor, ani_enum *result) + { + return c_api->FindEnum(this, enum_descriptor, result); + } + ani_status FindTuple(const char *tuple_descriptor, ani_tuple *result) + { + return c_api->FindTuple(this, tuple_descriptor, result); + } + ani_status FindFunction(const char *function_descriptor, ani_function *result) + { + return c_api->FindFunction(this, function_descriptor, result); + } + ani_status FindVariable(const char *variable_descriptor, ani_variable *result) + { + return c_api->FindVariable(this, variable_descriptor, result); + } + ani_status Module_FindNamespace(ani_module module, const char *namespace_descriptor, ani_namespace *result) + { + return c_api->Module_FindNamespace(this, module, namespace_descriptor, result); + } + ani_status Module_FindClass(ani_module module, const char *class_descriptor, ani_class *result) + { + return c_api->Module_FindClass(this, module, class_descriptor, result); + } + ani_status Module_FindEnum(ani_module module, const char *enum_descriptor, ani_enum *result) + { + return c_api->Module_FindEnum(this, module, enum_descriptor, result); + } + ani_status Module_FindFunction(ani_module module, const char *name, const char *signature, ani_function *result) + { + return c_api->Module_FindFunction(this, module, name, signature, result); + } + ani_status Module_FindVariable(ani_module module, const char *variable_descriptor, ani_variable *result) + { + return c_api->Module_FindVariable(this, module, variable_descriptor, result); + } + ani_status Namespace_FindNamespace(ani_namespace ns, const char *namespace_descriptor, ani_namespace *result) + { + return c_api->Namespace_FindNamespace(this, ns, namespace_descriptor, result); + } + ani_status Namespace_FindClass(ani_namespace ns, const char *class_descriptor, ani_class *result) + { + return c_api->Namespace_FindClass(this, ns, class_descriptor, result); + } + ani_status Namespace_FindEnum(ani_namespace ns, const char *enum_descriptor, ani_enum *result) + { + return c_api->Namespace_FindEnum(this, ns, enum_descriptor, result); + } + ani_status Namespace_FindFunction(ani_namespace ns, const char *name, const char *signature, ani_function *result) + { + return c_api->Namespace_FindFunction(this, ns, name, signature, result); + } + ani_status Namespace_FindVariable(ani_namespace ns, const char *variable_descriptor, ani_variable *result) + { + return c_api->Namespace_FindVariable(this, ns, variable_descriptor, result); + } + ani_status Module_BindNativeFunctions(ani_module module, const ani_native_function *functions, + ani_size nr_functions) + { + return c_api->Module_BindNativeFunctions(this, module, functions, nr_functions); + } + ani_status Namespace_BindNativeFunctions(ani_namespace ns, const ani_native_function *functions, + ani_size nr_functions) + { + return c_api->Namespace_BindNativeFunctions(this, ns, functions, nr_functions); + } + ani_status Class_BindNativeMethods(ani_class cls, const ani_native_function *methods, ani_size nr_methods) + { + return c_api->Class_BindNativeMethods(this, cls, methods, nr_methods); + } + ani_status Reference_Delete(ani_ref ref) + { + return c_api->Reference_Delete(this, ref); + } + ani_status EnsureEnoughReferences(ani_size nr_refs) + { + return c_api->EnsureEnoughReferences(this, nr_refs); + } + ani_status CreateLocalScope(ani_size nr_refs) + { + return c_api->CreateLocalScope(this, nr_refs); + } + ani_status DestroyLocalScope() + { + return c_api->DestroyLocalScope(this); + } + ani_status CreateEscapeLocalScope(ani_size nr_refs) + { + return c_api->CreateEscapeLocalScope(this, nr_refs); + } + ani_status DestroyEscapeLocalScope(ani_ref ref, ani_ref *result) + { + return c_api->DestroyEscapeLocalScope(this, ref, result); + } + ani_status ThrowError(ani_error err) + { + return c_api->ThrowError(this, err); + } + ani_status ExistUnhandledError(ani_boolean *result) + { + return c_api->ExistUnhandledError(this, result); + } + ani_status GetUnhandledError(ani_error *result) + { + return c_api->GetUnhandledError(this, result); + } + ani_status ResetError() + { + return c_api->ResetError(this); + } + ani_status DescribeError() + { + return c_api->DescribeError(this); + } + ani_status Abort(const char *message) + { + return c_api->Abort(this, message); + } + ani_status GetNull(ani_ref *result) + { + return c_api->GetNull(this, result); + } + ani_status GetUndefined(ani_ref *result) + { + return c_api->GetUndefined(this, result); + } + ani_status Reference_IsNull(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsNull(this, ref, result); + } + ani_status Reference_IsUndefined(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsUndefined(this, ref, result); + } + ani_status Reference_IsNullishValue(ani_ref ref, ani_boolean *result) + { + return c_api->Reference_IsNullishValue(this, ref, result); + } + ani_status Reference_Equals(ani_ref ref0, ani_ref ref1, ani_boolean *result) + { + return c_api->Reference_Equals(this, ref0, ref1, result); + } + ani_status Reference_StrictEquals(ani_ref ref0, ani_ref ref1, ani_boolean *result) + { + return c_api->Reference_StrictEquals(this, ref0, ref1, result); + } + ani_status String_NewUTF16(const uint16_t *utf16_string, ani_size utf16_size, ani_string *result) + { + return c_api->String_NewUTF16(this, utf16_string, utf16_size, result); + } + ani_status String_GetUTF16Size(ani_string string, ani_size *result) + { + return c_api->String_GetUTF16Size(this, string, result); + } + ani_status String_GetUTF16(ani_string string, uint16_t *utf16_buffer, ani_size utf16_buffer_size, ani_size *result) + { + return c_api->String_GetUTF16(this, string, utf16_buffer, utf16_buffer_size, result); + } + ani_status String_GetUTF16SubString(ani_string string, ani_size substr_offset, ani_size substr_size, + uint16_t *utf16_buffer, ani_size utf16_buffer_size, ani_size *result) + { + return c_api->String_GetUTF16SubString(this, string, substr_offset, substr_size, utf16_buffer, + utf16_buffer_size, result); + } + ani_status String_NewUTF8(const char *utf8_string, ani_size utf8_size, ani_string *result) + { + return c_api->String_NewUTF8(this, utf8_string, utf8_size, result); + } + ani_status String_GetUTF8Size(ani_string string, ani_size *result) + { + return c_api->String_GetUTF8Size(this, string, result); + } + ani_status String_GetUTF8(ani_string string, char *utf8_buffer, ani_size utf8_buffer_size, ani_size *result) + { + return c_api->String_GetUTF8(this, string, utf8_buffer, utf8_buffer_size, result); + } + ani_status String_GetUTF8SubString(ani_string string, ani_size substr_offset, ani_size substr_size, + char *utf8_buffer, ani_size utf8_buffer_size, ani_size *result) + { + return c_api->String_GetUTF8SubString(this, string, substr_offset, substr_size, utf8_buffer, utf8_buffer_size, + result); + } + ani_status String_GetCritical(ani_string string, uint32_t *result_string_type, const void **result_data, + ani_size *result_size) // result_string_type - string type utf16/utf8, etc + { + return c_api->String_GetCritical(this, string, result_string_type, result_data, result_size); + } + ani_status String_ReleaseCritical(ani_string string, const void *data) + { + return c_api->String_ReleaseCritical(this, string, data); + } + ani_status StringLiteral_NewUTF16(const uint16_t *utf16_string, ani_size utf16_size, ani_stringliteral *result) + { + return c_api->StringLiteral_NewUTF16(this, utf16_string, utf16_size, result); + } + ani_status StringLiteral_GetUTF16Size(ani_stringliteral string, ani_size *result) + { + return c_api->StringLiteral_GetUTF16Size(this, string, result); + } + ani_status StringLiteral_GetUTF16(ani_stringliteral string, uint16_t *utf16_buffer, ani_size utf16_buffer_size, + ani_size *result) + { + return c_api->StringLiteral_GetUTF16(this, string, utf16_buffer, utf16_buffer_size, result); + } + ani_status StringLiteral_GetUTF16SubString(ani_stringliteral string, ani_size substr_offset, ani_size substr_size, + uint16_t *utf16_buffer, ani_size utf16_buffer_size, ani_size *result) + { + return c_api->StringLiteral_GetUTF16SubString(this, string, substr_offset, substr_size, utf16_buffer, + utf16_buffer_size, result); + } + ani_status StringLiteral_NewUTF8(const char *utf8_string, ani_size utf8_size, ani_stringliteral *result) + { + return c_api->StringLiteral_NewUTF8(this, utf8_string, utf8_size, result); + } + ani_status StringLiteral_GetUTF8Size(ani_stringliteral string, ani_size *result) + { + return c_api->StringLiteral_GetUTF8Size(this, string, result); + } + ani_status StringLiteral_GetUTF8(ani_stringliteral string, char *utf8_buffer, ani_size utf8_buffer_size, + ani_size *result) + { + return c_api->StringLiteral_GetUTF8(this, string, utf8_buffer, utf8_buffer_size, result); + } + ani_status StringLiteral_GetUTF8SubString(ani_stringliteral string, ani_size substr_offset, ani_size substr_size, + char *utf8_buffer, ani_size utf8_buffer_size, ani_size *result) + { + return c_api->StringLiteral_GetUTF8SubString(this, string, substr_offset, substr_size, utf8_buffer, + utf8_buffer_size, result); + } + ani_status StringLiteral_GetCritical(ani_stringliteral string, uint32_t *result_string_type, + const void **result_data, + ani_size *result_size) // result_string_type - string type utf16/utf8, etc + { + return c_api->StringLiteral_GetCritical(this, string, result_string_type, result_data, result_size); + } + ani_status StringLiteral_ReleaseCritical(ani_stringliteral string, const void *data) + { + return c_api->StringLiteral_ReleaseCritical(this, string, data); + } + ani_status FixedArray_GetLength(ani_fixedarray array, ani_size *result) + { + return c_api->FixedArray_GetLength(this, array, result); + } + ani_status FixedArray_New_Boolean(ani_size length, ani_fixedarray_boolean *result) + { + return c_api->FixedArray_New_Boolean(this, length, result); + } + ani_status FixedArray_New_Char(ani_size length, ani_fixedarray_char *result) + { + return c_api->FixedArray_New_Char(this, length, result); + } + ani_status FixedArray_New_Byte(ani_size length, ani_fixedarray_byte *result) + { + return c_api->FixedArray_New_Byte(this, length, result); + } + ani_status FixedArray_New_Short(ani_size length, ani_fixedarray_short *result) + { + return c_api->FixedArray_New_Short(this, length, result); + } + ani_status FixedArray_New_Int(ani_size length, ani_fixedarray_int *result) + { + return c_api->FixedArray_New_Int(this, length, result); + } + ani_status FixedArray_New_Long(ani_size length, ani_fixedarray_long *result) + { + return c_api->FixedArray_New_Long(this, length, result); + } + ani_status FixedArray_New_Float(ani_size length, ani_fixedarray_float *result) + { + return c_api->FixedArray_New_Float(this, length, result); + } + ani_status FixedArray_New_Double(ani_size length, ani_fixedarray_double *result) + { + return c_api->FixedArray_New_Double(this, length, result); + } + ani_status FixedArray_GetRegion_Boolean(ani_fixedarray_boolean array, ani_size offset, ani_size length, + ani_boolean *native_buffer) + { + return c_api->FixedArray_GetRegion_Boolean(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Char(ani_fixedarray_char array, ani_size offset, ani_size length, + ani_char *native_buffer) + { + return c_api->FixedArray_GetRegion_Char(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Byte(ani_fixedarray_byte array, ani_size offset, ani_size length, + ani_byte *native_buffer) + { + return c_api->FixedArray_GetRegion_Byte(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Short(ani_fixedarray_short array, ani_size offset, ani_size length, + ani_short *native_buffer) + { + return c_api->FixedArray_GetRegion_Short(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Int(ani_fixedarray_int array, ani_size offset, ani_size length, + ani_int *native_buffer) + { + return c_api->FixedArray_GetRegion_Int(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Long(ani_fixedarray_long array, ani_size offset, ani_size length, + ani_long *native_buffer) + { + return c_api->FixedArray_GetRegion_Long(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Float(ani_fixedarray_float array, ani_size offset, ani_size length, + ani_float *native_buffer) + { + return c_api->FixedArray_GetRegion_Float(this, array, offset, length, native_buffer); + } + ani_status FixedArray_GetRegion_Double(ani_fixedarray_double array, ani_size offset, ani_size length, + ani_double *native_buffer) + { + return c_api->FixedArray_GetRegion_Double(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Boolean(ani_fixedarray_boolean array, ani_size offset, ani_size length, + const ani_boolean *native_buffer) + { + return c_api->FixedArray_SetRegion_Boolean(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Char(ani_fixedarray_char array, ani_size offset, ani_size length, + const ani_char *native_buffer) + { + return c_api->FixedArray_SetRegion_Char(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Byte(ani_fixedarray_byte array, ani_size offset, ani_size length, + const ani_byte *native_buffer) + { + return c_api->FixedArray_SetRegion_Byte(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Short(ani_fixedarray_short array, ani_size offset, ani_size length, + const ani_short *native_buffer) + { + return c_api->FixedArray_SetRegion_Short(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Int(ani_fixedarray_int array, ani_size offset, ani_size length, + const ani_int *native_buffer) + { + return c_api->FixedArray_SetRegion_Int(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Long(ani_fixedarray_long array, ani_size offset, ani_size length, + const ani_long *native_buffer) + { + return c_api->FixedArray_SetRegion_Long(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Float(ani_fixedarray_float array, ani_size offset, ani_size length, + const ani_float *native_buffer) + { + return c_api->FixedArray_SetRegion_Float(this, array, offset, length, native_buffer); + } + ani_status FixedArray_SetRegion_Double(ani_fixedarray_double array, ani_size offset, ani_size length, + const ani_double *native_buffer) + { + return c_api->FixedArray_SetRegion_Double(this, array, offset, length, native_buffer); + } + ani_status FixedArray_Pin(ani_fixedarray primitive_array, void **result) + { + return c_api->FixedArray_Pin(this, primitive_array, result); + } + ani_status FixedArray_Unpin(ani_fixedarray primitive_array, void *data) + { + return c_api->FixedArray_Unpin(this, primitive_array, data); + } + ani_status FixedArray_New_Ref(ani_size length, ani_ref *initial_array, ani_fixedarray_ref *result) + { + return c_api->FixedArray_New_Ref(this, length, initial_array, result); + } + ani_status FixedArray_Set_Ref(ani_fixedarray_ref array, ani_size index, ani_ref ref) + { + return c_api->FixedArray_Set_Ref(this, array, index, ref); + } + ani_status FixedArray_Get_Ref(ani_fixedarray_ref array, ani_size index, ani_ref *result) + { + return c_api->FixedArray_Get_Ref(this, array, index, result); + } + ani_status Enum_GetEnumValueByName(ani_enum enm, const char *name, ani_enum_value *result) + { + return c_api->Enum_GetEnumValueByName(this, enm, name, result); + } + ani_status Enum_GetEnumValueByIndex(ani_enum enm, ani_size index, ani_enum_value *result) + { + return c_api->Enum_GetEnumValueByIndex(this, enm, index, result); + } + ani_status EnumValue_GetEnum(ani_enum_value enum_value, ani_enum *result) + { + return c_api->EnumValue_GetEnum(this, enum_value, result); + } + ani_status EnumValue_GetValue(ani_enum_value enum_value, ani_object *result) + { + return c_api->EnumValue_GetValue(this, enum_value, result); + } + ani_status EnumValue_GetName(ani_enum_value enum_value, ani_string *result) + { + return c_api->EnumValue_GetName(this, enum_value, result); + } + ani_status EnumValue_GetIndex(ani_enum_value enum_value, ani_size *result) + { + return c_api->EnumValue_GetIndex(this, enum_value, result); + } + ani_status FunctionalObject_Call(ani_fn_object fn, ani_size argc, ani_ref *argv, ani_ref *result) + { + return c_api->FunctionalObject_Call(this, fn, argc, argv, result); + } + ani_status Variable_SetValue_Boolean(ani_variable variable, ani_boolean value) + { + return c_api->Variable_SetValue_Boolean(this, variable, value); + } + ani_status Variable_SetValue_Char(ani_variable variable, ani_char value) + { + return c_api->Variable_SetValue_Char(this, variable, value); + } + ani_status Variable_SetValue_Byte(ani_variable variable, ani_byte value) + { + return c_api->Variable_SetValue_Byte(this, variable, value); + } + ani_status Variable_SetValue_Short(ani_variable variable, ani_short value) + { + return c_api->Variable_SetValue_Short(this, variable, value); + } + ani_status Variable_SetValue_Int(ani_variable variable, ani_int value) + { + return c_api->Variable_SetValue_Int(this, variable, value); + } + ani_status Variable_SetValue_Long(ani_variable variable, ani_long value) + { + return c_api->Variable_SetValue_Long(this, variable, value); + } + ani_status Variable_SetValue_Float(ani_variable variable, ani_float value) + { + return c_api->Variable_SetValue_Float(this, variable, value); + } + ani_status Variable_SetValue_Double(ani_variable variable, ani_double value) + { + return c_api->Variable_SetValue_Double(this, variable, value); + } + ani_status Variable_SetValue_Ref(ani_variable variable, ani_ref value) + { + return c_api->Variable_SetValue_Ref(this, variable, value); + } + ani_status Variable_GetValue_Boolean(ani_variable variable, ani_boolean *result) + { + return c_api->Variable_GetValue_Boolean(this, variable, result); + } + ani_status Variable_GetValue_Char(ani_variable variable, ani_char *result) + { + return c_api->Variable_GetValue_Char(this, variable, result); + } + ani_status Variable_GetValue_Byte(ani_variable variable, ani_byte *result) + { + return c_api->Variable_GetValue_Byte(this, variable, result); + } + ani_status Variable_GetValue_Short(ani_variable variable, ani_short *result) + { + return c_api->Variable_GetValue_Short(this, variable, result); + } + ani_status Variable_GetValue_Int(ani_variable variable, ani_int *result) + { + return c_api->Variable_GetValue_Int(this, variable, result); + } + ani_status Variable_GetValue_Long(ani_variable variable, ani_long *result) + { + return c_api->Variable_GetValue_Long(this, variable, result); + } + ani_status Variable_GetValue_Float(ani_variable variable, ani_float *result) + { + return c_api->Variable_GetValue_Float(this, variable, result); + } + ani_status Variable_GetValue_Double(ani_variable variable, ani_double *result) + { + return c_api->Variable_GetValue_Double(this, variable, result); + } + ani_status Variable_GetValue_Ref(ani_variable variable, ani_ref *result) + { + return c_api->Variable_GetValue_Ref(this, variable, result); + } + ani_status Function_Call_Boolean(ani_function fn, ani_boolean *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Boolean_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Boolean_A(ani_function fn, ani_boolean *result, const ani_value *args) + { + return c_api->Function_Call_Boolean_A(this, fn, result, args); + } + ani_status Function_Call_Boolean_V(ani_function fn, ani_boolean *result, va_list args) + { + return c_api->Function_Call_Boolean_V(this, fn, result, args); + } + ani_status Function_Call_Char(ani_function fn, ani_char *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Char_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Char_A(ani_function fn, ani_char *result, const ani_value *args) + { + return c_api->Function_Call_Char_A(this, fn, result, args); + } + ani_status Function_Call_Char_V(ani_function fn, ani_char *result, va_list args) + { + return c_api->Function_Call_Char_V(this, fn, result, args); + } + ani_status Function_Call_Byte(ani_function fn, ani_byte *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Byte_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Byte_A(ani_function fn, ani_byte *result, const ani_value *args) + { + return c_api->Function_Call_Byte_A(this, fn, result, args); + } + ani_status Function_Call_Byte_V(ani_function fn, ani_byte *result, va_list args) + { + return c_api->Function_Call_Byte_V(this, fn, result, args); + } + ani_status Function_Call_Short(ani_function fn, ani_short *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Short_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Short_A(ani_function fn, ani_short *result, const ani_value *args) + { + return c_api->Function_Call_Short_A(this, fn, result, args); + } + ani_status Function_Call_Short_V(ani_function fn, ani_short *result, va_list args) + { + return c_api->Function_Call_Short_V(this, fn, result, args); + } + ani_status Function_Call_Int(ani_function fn, ani_int *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Int_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Int_A(ani_function fn, ani_int *result, const ani_value *args) + { + return c_api->Function_Call_Int_A(this, fn, result, args); + } + ani_status Function_Call_Int_V(ani_function fn, ani_int *result, va_list args) + { + return c_api->Function_Call_Int_V(this, fn, result, args); + } + ani_status Function_Call_Long(ani_function fn, ani_long *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Long_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Long_A(ani_function fn, ani_long *result, const ani_value *args) + { + return c_api->Function_Call_Long_A(this, fn, result, args); + } + ani_status Function_Call_Long_V(ani_function fn, ani_long *result, va_list args) + { + return c_api->Function_Call_Long_V(this, fn, result, args); + } + ani_status Function_Call_Float(ani_function fn, ani_float *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Float_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Float_A(ani_function fn, ani_float *result, const ani_value *args) + { + return c_api->Function_Call_Float_A(this, fn, result, args); + } + ani_status Function_Call_Float_V(ani_function fn, ani_float *result, va_list args) + { + return c_api->Function_Call_Float_V(this, fn, result, args); + } + ani_status Function_Call_Double(ani_function fn, ani_double *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Double_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Double_A(ani_function fn, ani_double *result, const ani_value *args) + { + return c_api->Function_Call_Double_A(this, fn, result, args); + } + ani_status Function_Call_Double_V(ani_function fn, ani_double *result, va_list args) + { + return c_api->Function_Call_Double_V(this, fn, result, args); + } + ani_status Function_Call_Ref(ani_function fn, ani_ref *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Function_Call_Ref_V(this, fn, result, args); + va_end(args); + return status; + } + ani_status Function_Call_Ref_A(ani_function fn, ani_ref *result, const ani_value *args) + { + return c_api->Function_Call_Ref_A(this, fn, result, args); + } + ani_status Function_Call_Ref_V(ani_function fn, ani_ref *result, va_list args) + { + return c_api->Function_Call_Ref_V(this, fn, result, args); + } + ani_status Function_Call_Void(ani_function fn, ...) + { + va_list args; + va_start(args, fn); + ani_status status = c_api->Function_Call_Void_V(this, fn, args); + va_end(args); + return status; + } + ani_status Function_Call_Void_A(ani_function fn, const ani_value *args) + { + return c_api->Function_Call_Void_A(this, fn, args); + } + ani_status Function_Call_Void_V(ani_function fn, va_list args) + { + return c_api->Function_Call_Void_V(this, fn, args); + } + ani_status Class_GetPartial(ani_class cls, ani_class *result) + { + return c_api->Class_GetPartial(this, cls, result); + } + ani_status Class_GetRequired(ani_class cls, ani_class *result) + { + return c_api->Class_GetRequired(this, cls, result); + } + ani_status Class_GetField(ani_class cls, const char *name, ani_field *result) + { + return c_api->Class_GetField(this, cls, name, result); + } + ani_status Class_GetStaticField(ani_class cls, const char *name, ani_static_field *result) + { + return c_api->Class_GetStaticField(this, cls, name, result); + } + ani_status Class_GetMethod(ani_class cls, const char *name, const char *signature, ani_method *result) + { + return c_api->Class_GetMethod(this, cls, name, signature, result); + } + ani_status Class_GetStaticMethod(ani_class cls, const char *name, const char *signature, ani_static_method *result) + { + return c_api->Class_GetStaticMethod(this, cls, name, signature, result); + } + ani_status Class_GetProperty(ani_class cls, const char *name, ani_property *result) + { + return c_api->Class_GetProperty(this, cls, name, result); + } + ani_status Class_GetSetter(ani_class cls, const char *name, ani_method *result) + { + return c_api->Class_GetSetter(this, cls, name, result); + } + ani_status Class_GetGetter(ani_class cls, const char *name, ani_method *result) + { + return c_api->Class_GetGetter(this, cls, name, result); + } + ani_status Class_GetIndexableGetter(ani_class cls, const char *signature, ani_method *result) + { + return c_api->Class_GetIndexableGetter(this, cls, signature, result); + } + ani_status Class_GetIndexableSetter(ani_class cls, const char *signature, ani_method *result) + { + return c_api->Class_GetIndexableSetter(this, cls, signature, result); + } + ani_status Class_GetIterator(ani_class cls, ani_method *result) + { + return c_api->Class_GetIterator(this, cls, result); + } + ani_status Class_GetStaticField_Boolean(ani_class cls, ani_static_field field, ani_boolean *result) + { + return c_api->Class_GetStaticField_Boolean(this, cls, field, result); + } + ani_status Class_GetStaticField_Char(ani_class cls, ani_static_field field, ani_char *result) + { + return c_api->Class_GetStaticField_Char(this, cls, field, result); + } + ani_status Class_GetStaticField_Byte(ani_class cls, ani_static_field field, ani_byte *result) + { + return c_api->Class_GetStaticField_Byte(this, cls, field, result); + } + ani_status Class_GetStaticField_Short(ani_class cls, ani_static_field field, ani_short *result) + { + return c_api->Class_GetStaticField_Short(this, cls, field, result); + } + ani_status Class_GetStaticField_Int(ani_class cls, ani_static_field field, ani_int *result) + { + return c_api->Class_GetStaticField_Int(this, cls, field, result); + } + ani_status Class_GetStaticField_Long(ani_class cls, ani_static_field field, ani_long *result) + { + return c_api->Class_GetStaticField_Long(this, cls, field, result); + } + ani_status Class_GetStaticField_Float(ani_class cls, ani_static_field field, ani_float *result) + { + return c_api->Class_GetStaticField_Float(this, cls, field, result); + } + ani_status Class_GetStaticField_Double(ani_class cls, ani_static_field field, ani_double *result) + { + return c_api->Class_GetStaticField_Double(this, cls, field, result); + } + ani_status Class_GetStaticField_Ref(ani_class cls, ani_static_field field, ani_ref *result) + { + return c_api->Class_GetStaticField_Ref(this, cls, field, result); + } + ani_status Class_SetStaticField_Boolean(ani_class cls, ani_static_field field, ani_boolean value) + { + return c_api->Class_SetStaticField_Boolean(this, cls, field, value); + } + ani_status Class_SetStaticField_Char(ani_class cls, ani_static_field field, ani_char value) + { + return c_api->Class_SetStaticField_Char(this, cls, field, value); + } + ani_status Class_SetStaticField_Byte(ani_class cls, ani_static_field field, ani_byte value) + { + return c_api->Class_SetStaticField_Byte(this, cls, field, value); + } + ani_status Class_SetStaticField_Short(ani_class cls, ani_static_field field, ani_short value) + { + return c_api->Class_SetStaticField_Short(this, cls, field, value); + } + ani_status Class_SetStaticField_Int(ani_class cls, ani_static_field field, ani_int value) + { + return c_api->Class_SetStaticField_Int(this, cls, field, value); + } + ani_status Class_SetStaticField_Long(ani_class cls, ani_static_field field, ani_long value) + { + return c_api->Class_SetStaticField_Long(this, cls, field, value); + } + ani_status Class_SetStaticField_Float(ani_class cls, ani_static_field field, ani_float value) + { + return c_api->Class_SetStaticField_Float(this, cls, field, value); + } + ani_status Class_SetStaticField_Double(ani_class cls, ani_static_field field, ani_double value) + { + return c_api->Class_SetStaticField_Double(this, cls, field, value); + } + ani_status Class_SetStaticField_Ref(ani_class cls, ani_static_field field, ani_ref value) + { + return c_api->Class_SetStaticField_Ref(this, cls, field, value); + } + ani_status Class_GetStaticFieldByName_Boolean(ani_class cls, const char *name, ani_boolean *result) + { + return c_api->Class_GetStaticFieldByName_Boolean(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Char(ani_class cls, const char *name, ani_char *result) + { + return c_api->Class_GetStaticFieldByName_Char(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Byte(ani_class cls, const char *name, ani_byte *result) + { + return c_api->Class_GetStaticFieldByName_Byte(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Short(ani_class cls, const char *name, ani_short *result) + { + return c_api->Class_GetStaticFieldByName_Short(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Int(ani_class cls, const char *name, ani_int *result) + { + return c_api->Class_GetStaticFieldByName_Int(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Long(ani_class cls, const char *name, ani_long *result) + { + return c_api->Class_GetStaticFieldByName_Long(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Float(ani_class cls, const char *name, ani_float *result) + { + return c_api->Class_GetStaticFieldByName_Float(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Double(ani_class cls, const char *name, ani_double *result) + { + return c_api->Class_GetStaticFieldByName_Double(this, cls, name, result); + } + ani_status Class_GetStaticFieldByName_Ref(ani_class cls, const char *name, ani_ref *result) + { + return c_api->Class_GetStaticFieldByName_Ref(this, cls, name, result); + } + ani_status Class_SetStaticFieldByName_Boolean(ani_class cls, const char *name, ani_boolean value) + { + return c_api->Class_SetStaticFieldByName_Boolean(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Char(ani_class cls, const char *name, ani_char value) + { + return c_api->Class_SetStaticFieldByName_Char(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Byte(ani_class cls, const char *name, ani_byte value) + { + return c_api->Class_SetStaticFieldByName_Byte(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Short(ani_class cls, const char *name, ani_short value) + { + return c_api->Class_SetStaticFieldByName_Short(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Int(ani_class cls, const char *name, ani_int value) + { + return c_api->Class_SetStaticFieldByName_Int(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Long(ani_class cls, const char *name, ani_long value) + { + return c_api->Class_SetStaticFieldByName_Long(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Float(ani_class cls, const char *name, ani_float value) + { + return c_api->Class_SetStaticFieldByName_Float(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Double(ani_class cls, const char *name, ani_double value) + { + return c_api->Class_SetStaticFieldByName_Double(this, cls, name, value); + } + ani_status Class_SetStaticFieldByName_Ref(ani_class cls, const char *name, ani_ref value) + { + return c_api->Class_SetStaticFieldByName_Ref(this, cls, name, value); + } + ani_status Class_CallStaticMethod_Boolean(ani_class cls, ani_static_method method, ani_boolean *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Boolean_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Boolean_A(ani_class cls, ani_static_method method, ani_boolean *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Boolean_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Boolean_V(ani_class cls, ani_static_method method, ani_boolean *result, + va_list args) + { + return c_api->Class_CallStaticMethod_Boolean_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Char(ani_class cls, ani_static_method method, ani_char *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Char_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Char_A(ani_class cls, ani_static_method method, ani_char *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Char_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Char_V(ani_class cls, ani_static_method method, ani_char *result, va_list args) + { + return c_api->Class_CallStaticMethod_Char_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Byte(ani_class cls, ani_static_method method, ani_byte *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Byte_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Byte_A(ani_class cls, ani_static_method method, ani_byte *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Byte_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Byte_V(ani_class cls, ani_static_method method, ani_byte *result, va_list args) + { + return c_api->Class_CallStaticMethod_Byte_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Short(ani_class cls, ani_static_method method, ani_short *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Short_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Short_A(ani_class cls, ani_static_method method, ani_short *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Short_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Short_V(ani_class cls, ani_static_method method, ani_short *result, va_list args) + { + return c_api->Class_CallStaticMethod_Short_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Int(ani_class cls, ani_static_method method, ani_int *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Int_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Int_A(ani_class cls, ani_static_method method, ani_int *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Int_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Int_V(ani_class cls, ani_static_method method, ani_int *result, va_list args) + { + return c_api->Class_CallStaticMethod_Int_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Long(ani_class cls, ani_static_method method, ani_long *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Long_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Long_A(ani_class cls, ani_static_method method, ani_long *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Long_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Long_V(ani_class cls, ani_static_method method, ani_long *result, va_list args) + { + return c_api->Class_CallStaticMethod_Long_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Float(ani_class cls, ani_static_method method, ani_float *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Float_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Float_A(ani_class cls, ani_static_method method, ani_float *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Float_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Float_V(ani_class cls, ani_static_method method, ani_float *result, va_list args) + { + return c_api->Class_CallStaticMethod_Float_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Double(ani_class cls, ani_static_method method, ani_double *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Double_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Double_A(ani_class cls, ani_static_method method, ani_double *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Double_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Double_V(ani_class cls, ani_static_method method, ani_double *result, + va_list args) + { + return c_api->Class_CallStaticMethod_Double_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Ref(ani_class cls, ani_static_method method, ani_ref *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethod_Ref_V(this, cls, method, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Ref_A(ani_class cls, ani_static_method method, ani_ref *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethod_Ref_A(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Ref_V(ani_class cls, ani_static_method method, ani_ref *result, va_list args) + { + return c_api->Class_CallStaticMethod_Ref_V(this, cls, method, result, args); + } + ani_status Class_CallStaticMethod_Void(ani_class cls, ani_static_method method, ...) + { + va_list args; + va_start(args, method); + ani_status status = c_api->Class_CallStaticMethod_Void_V(this, cls, method, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethod_Void_A(ani_class cls, ani_static_method method, const ani_value *args) + { + return c_api->Class_CallStaticMethod_Void_A(this, cls, method, args); + } + ani_status Class_CallStaticMethod_Void_V(ani_class cls, ani_static_method method, va_list args) + { + return c_api->Class_CallStaticMethod_Void_V(this, cls, method, args); + } + ani_status Class_CallStaticMethodByName_Boolean(ani_class cls, const char *name, ani_boolean *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Boolean_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Boolean_A(ani_class cls, const char *name, ani_boolean *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Boolean_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Boolean_V(ani_class cls, const char *name, ani_boolean *result, + va_list args) + { + return c_api->Class_CallStaticMethodByName_Boolean_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Char(ani_class cls, const char *name, ani_char *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Char_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Char_A(ani_class cls, const char *name, ani_char *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Char_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Char_V(ani_class cls, const char *name, ani_char *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Char_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Byte(ani_class cls, const char *name, ani_byte *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Byte_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Byte_A(ani_class cls, const char *name, ani_byte *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Byte_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Byte_V(ani_class cls, const char *name, ani_byte *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Byte_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Short(ani_class cls, const char *name, ani_short *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Short_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Short_A(ani_class cls, const char *name, ani_short *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Short_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Short_V(ani_class cls, const char *name, ani_short *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Short_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Int(ani_class cls, const char *name, ani_int *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Int_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Int_A(ani_class cls, const char *name, ani_int *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Int_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Int_V(ani_class cls, const char *name, ani_int *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Int_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Long(ani_class cls, const char *name, ani_long *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Long_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Long_A(ani_class cls, const char *name, ani_long *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Long_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Long_V(ani_class cls, const char *name, ani_long *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Long_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Float(ani_class cls, const char *name, ani_float *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Float_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Float_A(ani_class cls, const char *name, ani_float *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Float_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Float_V(ani_class cls, const char *name, ani_float *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Float_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Double(ani_class cls, const char *name, ani_double *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Double_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Double_A(ani_class cls, const char *name, ani_double *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Double_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Double_V(ani_class cls, const char *name, ani_double *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Double_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Ref(ani_class cls, const char *name, ani_ref *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Class_CallStaticMethodByName_Ref_V(this, cls, name, result, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Ref_A(ani_class cls, const char *name, ani_ref *result, + const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Ref_A(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Ref_V(ani_class cls, const char *name, ani_ref *result, va_list args) + { + return c_api->Class_CallStaticMethodByName_Ref_V(this, cls, name, result, args); + } + ani_status Class_CallStaticMethodByName_Void(ani_class cls, const char *name, ...) + { + va_list args; + va_start(args, name); + ani_status status = c_api->Class_CallStaticMethodByName_Void_V(this, cls, name, args); + va_end(args); + return status; + } + ani_status Class_CallStaticMethodByName_Void_A(ani_class cls, const char *name, const ani_value *args) + { + return c_api->Class_CallStaticMethodByName_Void_A(this, cls, name, args); + } + ani_status Class_CallStaticMethodByName_Void_V(ani_class cls, const char *name, va_list args) + { + return c_api->Class_CallStaticMethodByName_Void_V(this, cls, name, args); + } + ani_status Object_GetField_Boolean(ani_object object, ani_field field, ani_boolean *result) + { + return c_api->Object_GetField_Boolean(this, object, field, result); + } + ani_status Object_GetField_Char(ani_object object, ani_field field, ani_char *result) + { + return c_api->Object_GetField_Char(this, object, field, result); + } + ani_status Object_GetField_Byte(ani_object object, ani_field field, ani_byte *result) + { + return c_api->Object_GetField_Byte(this, object, field, result); + } + ani_status Object_GetField_Short(ani_object object, ani_field field, ani_short *result) + { + return c_api->Object_GetField_Short(this, object, field, result); + } + ani_status Object_GetField_Int(ani_object object, ani_field field, ani_int *result) + { + return c_api->Object_GetField_Int(this, object, field, result); + } + ani_status Object_GetField_Long(ani_object object, ani_field field, ani_long *result) + { + return c_api->Object_GetField_Long(this, object, field, result); + } + ani_status Object_GetField_Float(ani_object object, ani_field field, ani_float *result) + { + return c_api->Object_GetField_Float(this, object, field, result); + } + ani_status Object_GetField_Double(ani_object object, ani_field field, ani_double *result) + { + return c_api->Object_GetField_Double(this, object, field, result); + } + ani_status Object_GetField_Ref(ani_object object, ani_field field, ani_ref *result) + { + return c_api->Object_GetField_Ref(this, object, field, result); + } + ani_status Object_SetField_Boolean(ani_object object, ani_field field, ani_boolean value) + { + return c_api->Object_SetField_Boolean(this, object, field, value); + } + ani_status Object_SetField_Char(ani_object object, ani_field field, ani_char value) + { + return c_api->Object_SetField_Char(this, object, field, value); + } + ani_status Object_SetField_Byte(ani_object object, ani_field field, ani_byte value) + { + return c_api->Object_SetField_Byte(this, object, field, value); + } + ani_status Object_SetField_Short(ani_object object, ani_field field, ani_short value) + { + return c_api->Object_SetField_Short(this, object, field, value); + } + ani_status Object_SetField_Int(ani_object object, ani_field field, ani_int value) + { + return c_api->Object_SetField_Int(this, object, field, value); + } + ani_status Object_SetField_Long(ani_object object, ani_field field, ani_long value) + { + return c_api->Object_SetField_Long(this, object, field, value); + } + ani_status Object_SetField_Float(ani_object object, ani_field field, ani_float value) + { + return c_api->Object_SetField_Float(this, object, field, value); + } + ani_status Object_SetField_Double(ani_object object, ani_field field, ani_double value) + { + return c_api->Object_SetField_Double(this, object, field, value); + } + ani_status Object_SetField_Ref(ani_object object, ani_field field, ani_ref value) + { + return c_api->Object_SetField_Ref(this, object, field, value); + } + ani_status Object_GetFieldByName_Boolean(ani_object object, const char *name, ani_boolean *result) + { + return c_api->Object_GetFieldByName_Boolean(this, object, name, result); + } + ani_status Object_GetFieldByName_Char(ani_object object, const char *name, ani_char *result) + { + return c_api->Object_GetFieldByName_Char(this, object, name, result); + } + ani_status Object_GetFieldByName_Byte(ani_object object, const char *name, ani_byte *result) + { + return c_api->Object_GetFieldByName_Byte(this, object, name, result); + } + ani_status Object_GetFieldByName_Short(ani_object object, const char *name, ani_short *result) + { + return c_api->Object_GetFieldByName_Short(this, object, name, result); + } + ani_status Object_GetFieldByName_Int(ani_object object, const char *name, ani_int *result) + { + return c_api->Object_GetFieldByName_Int(this, object, name, result); + } + ani_status Object_GetFieldByName_Long(ani_object object, const char *name, ani_long *result) + { + return c_api->Object_GetFieldByName_Long(this, object, name, result); + } + ani_status Object_GetFieldByName_Float(ani_object object, const char *name, ani_float *result) + { + return c_api->Object_GetFieldByName_Float(this, object, name, result); + } + ani_status Object_GetFieldByName_Double(ani_object object, const char *name, ani_double *result) + { + return c_api->Object_GetFieldByName_Double(this, object, name, result); + } + ani_status Object_GetFieldByName_Ref(ani_object object, const char *name, ani_ref *result) + { + return c_api->Object_GetFieldByName_Ref(this, object, name, result); + } + ani_status Object_SetFieldByName_Boolean(ani_object object, const char *name, ani_boolean value) + { + return c_api->Object_SetFieldByName_Boolean(this, object, name, value); + } + ani_status Object_SetFieldByName_Char(ani_object object, const char *name, ani_char value) + { + return c_api->Object_SetFieldByName_Char(this, object, name, value); + } + ani_status Object_SetFieldByName_Byte(ani_object object, const char *name, ani_byte value) + { + return c_api->Object_SetFieldByName_Byte(this, object, name, value); + } + ani_status Object_SetFieldByName_Short(ani_object object, const char *name, ani_short value) + { + return c_api->Object_SetFieldByName_Short(this, object, name, value); + } + ani_status Object_SetFieldByName_Int(ani_object object, const char *name, ani_int value) + { + return c_api->Object_SetFieldByName_Int(this, object, name, value); + } + ani_status Object_SetFieldByName_Long(ani_object object, const char *name, ani_long value) + { + return c_api->Object_SetFieldByName_Long(this, object, name, value); + } + ani_status Object_SetFieldByName_Float(ani_object object, const char *name, ani_float value) + { + return c_api->Object_SetFieldByName_Float(this, object, name, value); + } + ani_status Object_SetFieldByName_Double(ani_object object, const char *name, ani_double value) + { + return c_api->Object_SetFieldByName_Double(this, object, name, value); + } + ani_status Object_SetFieldByName_Ref(ani_object object, const char *name, ani_ref value) + { + return c_api->Object_SetFieldByName_Ref(this, object, name, value); + } + ani_status Object_GetProperty_Boolean(ani_object object, ani_property property, ani_boolean *result) + { + return c_api->Object_GetProperty_Boolean(this, object, property, result); + } + ani_status Object_GetProperty_Char(ani_object object, ani_property property, ani_char *result) + { + return c_api->Object_GetProperty_Char(this, object, property, result); + } + ani_status Object_GetProperty_Byte(ani_object object, ani_property property, ani_byte *result) + { + return c_api->Object_GetProperty_Byte(this, object, property, result); + } + ani_status Object_GetProperty_Short(ani_object object, ani_property property, ani_short *result) + { + return c_api->Object_GetProperty_Short(this, object, property, result); + } + ani_status Object_GetProperty_Int(ani_object object, ani_property property, ani_int *result) + { + return c_api->Object_GetProperty_Int(this, object, property, result); + } + ani_status Object_GetProperty_Long(ani_object object, ani_property property, ani_long *result) + { + return c_api->Object_GetProperty_Long(this, object, property, result); + } + ani_status Object_GetProperty_Float(ani_object object, ani_property property, ani_float *result) + { + return c_api->Object_GetProperty_Float(this, object, property, result); + } + ani_status Object_GetProperty_Double(ani_object object, ani_property property, ani_double *result) + { + return c_api->Object_GetProperty_Double(this, object, property, result); + } + ani_status Object_GetProperty_Ref(ani_object object, ani_property property, ani_ref *result) + { + return c_api->Object_GetProperty_Ref(this, object, property, result); + } + ani_status Object_SetProperty_Boolean(ani_object object, ani_property property, ani_boolean value) + { + return c_api->Object_SetProperty_Boolean(this, object, property, value); + } + ani_status Object_SetProperty_Char(ani_object object, ani_property property, ani_char value) + { + return c_api->Object_SetProperty_Char(this, object, property, value); + } + ani_status Object_SetProperty_Byte(ani_object object, ani_property property, ani_byte value) + { + return c_api->Object_SetProperty_Byte(this, object, property, value); + } + ani_status Object_SetProperty_Short(ani_object object, ani_property property, ani_short value) + { + return c_api->Object_SetProperty_Byte(this, object, property, value); + } + ani_status Object_SetProperty_Int(ani_object object, ani_property property, ani_int value) + { + return c_api->Object_SetProperty_Int(this, object, property, value); + } + ani_status Object_SetProperty_Long(ani_object object, ani_property property, ani_long value) + { + return c_api->Object_SetProperty_Long(this, object, property, value); + } + ani_status Object_SetProperty_Float(ani_object object, ani_property property, ani_float value) + { + return c_api->Object_SetProperty_Float(this, object, property, value); + } + ani_status Object_SetProperty_Double(ani_object object, ani_property property, ani_double value) + { + return c_api->Object_SetProperty_Double(this, object, property, value); + } + ani_status Object_SetProperty_Ref(ani_object object, ani_property property, ani_ref value) + { + return c_api->Object_SetProperty_Ref(this, object, property, value); + } + ani_status Object_GetPropertyByName_Boolean(ani_object object, const char *name, ani_boolean *result) + { + return c_api->Object_GetPropertyByName_Boolean(this, object, name, result); + } + ani_status Object_GetPropertyByName_Char(ani_object object, const char *name, ani_char *result) + { + return c_api->Object_GetPropertyByName_Char(this, object, name, result); + } + ani_status Object_GetPropertyByName_Byte(ani_object object, const char *name, ani_byte *result) + { + return c_api->Object_GetPropertyByName_Byte(this, object, name, result); + } + ani_status Object_GetPropertyByName_Short(ani_object object, const char *name, ani_short *result) + { + return c_api->Object_GetPropertyByName_Short(this, object, name, result); + } + ani_status Object_GetPropertyByName_Int(ani_object object, const char *name, ani_int *result) + { + return c_api->Object_GetPropertyByName_Int(this, object, name, result); + } + ani_status Object_GetPropertyByName_Long(ani_object object, const char *name, ani_long *result) + { + return c_api->Object_GetPropertyByName_Long(this, object, name, result); + } + ani_status Object_GetPropertyByName_Float(ani_object object, const char *name, ani_float *result) + { + return c_api->Object_GetPropertyByName_Float(this, object, name, result); + } + ani_status Object_GetPropertyByName_Double(ani_object object, const char *name, ani_double *result) + { + return c_api->Object_GetPropertyByName_Double(this, object, name, result); + } + ani_status Object_GetPropertyByName_Ref(ani_object object, const char *name, ani_ref *result) + { + return c_api->Object_GetPropertyByName_Ref(this, object, name, result); + } + ani_status Object_SetPropertyByName_Boolean(ani_object object, const char *name, ani_boolean value) + { + return c_api->Object_SetPropertyByName_Boolean(this, object, name, value); + } + ani_status Object_SetPropertyByName_Char(ani_object object, const char *name, ani_char value) + { + return c_api->Object_SetPropertyByName_Char(this, object, name, value); + } + ani_status Object_SetPropertyByName_Byte(ani_object object, const char *name, ani_byte value) + { + return c_api->Object_SetPropertyByName_Byte(this, object, name, value); + } + ani_status Object_SetPropertyByName_Short(ani_object object, const char *name, ani_short value) + { + return c_api->Object_SetPropertyByName_Short(this, object, name, value); + } + ani_status Object_SetPropertyByName_Int(ani_object object, const char *name, ani_int value) + { + return c_api->Object_SetPropertyByName_Int(this, object, name, value); + } + ani_status Object_SetPropertyByName_Long(ani_object object, const char *name, ani_long value) + { + return c_api->Object_SetPropertyByName_Long(this, object, name, value); + } + ani_status Object_SetPropertyByName_Float(ani_object object, const char *name, ani_float value) + { + return c_api->Object_SetPropertyByName_Float(this, object, name, value); + } + ani_status Object_SetPropertyByName_Double(ani_object object, const char *name, ani_double value) + { + return c_api->Object_SetPropertyByName_Double(this, object, name, value); + } + ani_status Object_SetPropertyByName_Ref(ani_object object, const char *name, ani_ref value) + { + return c_api->Object_SetPropertyByName_Ref(this, object, name, value); + } + ani_status Object_CallMethod_Boolean(ani_object object, ani_method method, ani_boolean *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Boolean_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Boolean_A(ani_object object, ani_method method, ani_boolean *result, + const ani_value *args) + { + return c_api->Object_CallMethod_Boolean_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Boolean_V(ani_object object, ani_method method, ani_boolean *result, va_list args) + { + return c_api->Object_CallMethod_Boolean_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Char(ani_object object, ani_method method, ani_char *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Char_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Char_A(ani_object object, ani_method method, ani_char *result, const ani_value *args) + { + return c_api->Object_CallMethod_Char_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Char_V(ani_object object, ani_method method, ani_char *result, va_list args) + { + return c_api->Object_CallMethod_Char_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Byte(ani_object object, ani_method method, ani_byte *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Byte_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Byte_A(ani_object object, ani_method method, ani_byte *result, const ani_value *args) + { + return c_api->Object_CallMethod_Byte_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Byte_V(ani_object object, ani_method method, ani_byte *result, va_list args) + { + return c_api->Object_CallMethod_Byte_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Short(ani_object object, ani_method method, ani_short *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Short_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Short_A(ani_object object, ani_method method, ani_short *result, const ani_value *args) + { + return c_api->Object_CallMethod_Short_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Short_V(ani_object object, ani_method method, ani_short *result, va_list args) + { + return c_api->Object_CallMethod_Short_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Int(ani_object object, ani_method method, ani_int *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Int_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Int_A(ani_object object, ani_method method, ani_int *result, const ani_value *args) + { + return c_api->Object_CallMethod_Int_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Int_V(ani_object object, ani_method method, ani_int *result, va_list args) + { + return c_api->Object_CallMethod_Int_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Long(ani_object object, ani_method method, ani_long *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Long_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Long_A(ani_object object, ani_method method, ani_long *result, const ani_value *args) + { + return c_api->Object_CallMethod_Long_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Long_V(ani_object object, ani_method method, ani_long *result, va_list args) + { + return c_api->Object_CallMethod_Long_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Float(ani_object object, ani_method method, ani_float *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Float_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Float_A(ani_object object, ani_method method, ani_float *result, const ani_value *args) + { + return c_api->Object_CallMethod_Float_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Float_V(ani_object object, ani_method method, ani_float *result, va_list args) + { + return c_api->Object_CallMethod_Float_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Double(ani_object object, ani_method method, ani_double *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Double_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Double_A(ani_object object, ani_method method, ani_double *result, + const ani_value *args) + { + return c_api->Object_CallMethod_Double_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Double_V(ani_object object, ani_method method, ani_double *result, va_list args) + { + return c_api->Object_CallMethod_Double_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Ref(ani_object object, ani_method method, ani_ref *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethod_Ref_V(this, object, method, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Ref_A(ani_object object, ani_method method, ani_ref *result, const ani_value *args) + { + return c_api->Object_CallMethod_Ref_A(this, object, method, result, args); + } + ani_status Object_CallMethod_Ref_V(ani_object object, ani_method method, ani_ref *result, va_list args) + { + return c_api->Object_CallMethod_Ref_V(this, object, method, result, args); + } + ani_status Object_CallMethod_Void(ani_object object, ani_method method, ...) + { + va_list args; + va_start(args, method); + ani_status status = c_api->Object_CallMethod_Void_V(this, object, method, args); + va_end(args); + return status; + } + ani_status Object_CallMethod_Void_A(ani_object object, ani_method method, const ani_value *args) + { + return c_api->Object_CallMethod_Void_A(this, object, method, args); + } + ani_status Object_CallMethod_Void_V(ani_object object, ani_method method, va_list args) + { + return c_api->Object_CallMethod_Void_V(this, object, method, args); + } + ani_status Object_CallMethodByName_Boolean(ani_object object, const char *name, const char *signature, + ani_boolean *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Boolean_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Boolean_A(ani_object object, const char *name, const char *signature, + ani_boolean *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Boolean_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Boolean_V(ani_object object, const char *name, const char *signature, + ani_boolean *result, va_list args) + { + return c_api->Object_CallMethodByName_Boolean_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Char(ani_object object, const char *name, const char *signature, + ani_char *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Char_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Char_A(ani_object object, const char *name, const char *signature, + ani_char *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Char_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Char_V(ani_object object, const char *name, const char *signature, + ani_char *result, va_list args) + { + return c_api->Object_CallMethodByName_Char_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Byte(ani_object object, const char *name, const char *signature, + ani_byte *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Byte_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Byte_A(ani_object object, const char *name, const char *signature, + ani_byte *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Byte_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Byte_V(ani_object object, const char *name, const char *signature, + ani_byte *result, va_list args) + { + return c_api->Object_CallMethodByName_Byte_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Short(ani_object object, const char *name, const char *signature, + ani_short *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Short_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Short_A(ani_object object, const char *name, const char *signature, + ani_short *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Short_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Short_V(ani_object object, const char *name, const char *signature, + ani_short *result, va_list args) + { + return c_api->Object_CallMethodByName_Short_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Int(ani_object object, const char *name, const char *signature, ani_int *result, + ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Int_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Int_A(ani_object object, const char *name, const char *signature, + ani_int *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Int_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Int_V(ani_object object, const char *name, const char *signature, + ani_int *result, va_list args) + { + return c_api->Object_CallMethodByName_Int_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Long(ani_object object, const char *name, const char *signature, + ani_long *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Long_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Long_A(ani_object object, const char *name, const char *signature, + ani_long *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Long_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Long_V(ani_object object, const char *name, const char *signature, + ani_long *result, va_list args) + { + return c_api->Object_CallMethodByName_Long_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Float(ani_object object, const char *name, const char *signature, + ani_float *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Float_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Float_A(ani_object object, const char *name, const char *signature, + ani_float *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Float_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Float_V(ani_object object, const char *name, const char *signature, + ani_float *result, va_list args) + { + return c_api->Object_CallMethodByName_Float_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Double(ani_object object, const char *name, const char *signature, + ani_double *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Double_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Double_A(ani_object object, const char *name, const char *signature, + ani_double *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Double_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Double_V(ani_object object, const char *name, const char *signature, + ani_double *result, va_list args) + { + return c_api->Object_CallMethodByName_Double_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Ref(ani_object object, const char *name, const char *signature, ani_ref *result, + ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Object_CallMethodByName_Ref_V(this, object, name, signature, result, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Ref_A(ani_object object, const char *name, const char *signature, + ani_ref *result, const ani_value *args) + { + return c_api->Object_CallMethodByName_Ref_A(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Ref_V(ani_object object, const char *name, const char *signature, + ani_ref *result, va_list args) + { + return c_api->Object_CallMethodByName_Ref_V(this, object, name, signature, result, args); + } + ani_status Object_CallMethodByName_Void(ani_object object, const char *name, const char *signature, ...) + { + va_list args; + va_start(args, signature); + ani_status status = c_api->Object_CallMethodByName_Void_V(this, object, name, signature, args); + va_end(args); + return status; + } + ani_status Object_CallMethodByName_Void_A(ani_object object, const char *name, const char *signature, + const ani_value *args) + { + return c_api->Object_CallMethodByName_Void_A(this, object, name, signature, args); + } + ani_status Object_CallMethodByName_Void_V(ani_object object, const char *name, const char *signature, va_list args) + { + return c_api->Object_CallMethodByName_Void_V(this, object, name, signature, args); + } + ani_status Tuple_NewTupleValue(ani_tuple tuple, ani_tuple_value *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Tuple_NewTupleValue_V(this, tuple, result, args); + va_end(args); + return status; + } + ani_status Tuple_NewTupleValue_A(ani_tuple tuple, ani_tuple_value *result, const ani_value *args) + { + return c_api->Tuple_NewTupleValue_A(this, tuple, result, args); + } + ani_status Tuple_NewTupleValue_V(ani_tuple tuple, ani_tuple_value *result, va_list args) + { + return c_api->Tuple_NewTupleValue_V(this, tuple, result, args); + } + ani_status Tuple_GetNumberOfItems(ani_tuple tuple, ani_size *result) + { + return c_api->Tuple_GetNumberOfItems(this, tuple, result); + } + ani_status Tuple_GetItemKind(ani_tuple tuple, ani_size index, ani_kind *result) + { + return c_api->Tuple_GetItemKind(this, tuple, index, result); + } + ani_status Tuple_GetItemType(ani_tuple tuple, ani_size index, ani_type *result) + { + return c_api->Tuple_GetItemType(this, tuple, index, result); + } + ani_status TupleValue_GetTuple(ani_tuple_value value, ani_tuple *result) + { + return c_api->TupleValue_GetTuple(this, value, result); + } + ani_status TupleValue_GetItem_Boolean(ani_tuple_value tuple_value, ani_size index, ani_boolean *result) + { + return c_api->TupleValue_GetItem_Boolean(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Char(ani_tuple_value tuple_value, ani_size index, ani_char *result) + { + return c_api->TupleValue_GetItem_Char(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Byte(ani_tuple_value tuple_value, ani_size index, ani_byte *result) + { + return c_api->TupleValue_GetItem_Byte(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Short(ani_tuple_value tuple_value, ani_size index, ani_short *result) + { + return c_api->TupleValue_GetItem_Short(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Int(ani_tuple_value tuple_value, ani_size index, ani_int *result) + { + return c_api->TupleValue_GetItem_Int(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Long(ani_tuple_value tuple_value, ani_size index, ani_long *result) + { + return c_api->TupleValue_GetItem_Long(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Float(ani_tuple_value tuple_value, ani_size index, ani_float *result) + { + return c_api->TupleValue_GetItem_Float(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Double(ani_tuple_value tuple_value, ani_size index, ani_double *result) + { + return c_api->TupleValue_GetItem_Double(this, tuple_value, index, result); + } + ani_status TupleValue_GetItem_Ref(ani_tuple_value tuple_value, ani_size index, ani_ref *result) + { + return c_api->TupleValue_GetItem_Ref(this, tuple_value, index, result); + } + ani_status TupleValue_SetItem_Boolean(ani_tuple_value tuple_value, ani_size index, ani_boolean value) + { + return c_api->TupleValue_SetItem_Boolean(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Char(ani_tuple_value tuple_value, ani_size index, ani_char value) + { + return c_api->TupleValue_SetItem_Char(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Byte(ani_tuple_value tuple_value, ani_size index, ani_byte value) + { + return c_api->TupleValue_SetItem_Byte(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Short(ani_tuple_value tuple_value, ani_size index, ani_short value) + { + return c_api->TupleValue_SetItem_Short(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Int(ani_tuple_value tuple_value, ani_size index, ani_int value) + { + return c_api->TupleValue_SetItem_Int(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Long(ani_tuple_value tuple_value, ani_size index, ani_long value) + { + return c_api->TupleValue_SetItem_Long(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Float(ani_tuple_value tuple_value, ani_size index, ani_float value) + { + return c_api->TupleValue_SetItem_Float(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Double(ani_tuple_value tuple_value, ani_size index, ani_double value) + { + return c_api->TupleValue_SetItem_Double(this, tuple_value, index, value); + } + ani_status TupleValue_SetItem_Ref(ani_tuple_value tuple_value, ani_size index, ani_ref value) + { + return c_api->TupleValue_SetItem_Ref(this, tuple_value, index, value); + } + ani_status GlobalReference_Create(ani_ref ref, ani_gref *result) + { + return c_api->GlobalReference_Create(this, ref, result); + } + ani_status GlobalReference_Delete(ani_gref ref) + { + return c_api->GlobalReference_Delete(this, ref); + } + ani_status WeakReference_Create(ani_ref ref, ani_wref *result) + { + return c_api->WeakReference_Create(this, ref, result); + } + ani_status WeakReference_Delete(ani_wref wref) + { + return c_api->WeakReference_Delete(this, wref); + } + ani_status WeakReference_GetReference(ani_wref wref, ani_ref *result) + { + return c_api->WeakReference_GetReference(this, wref, result); + } + ani_status CreateArrayBuffer(size_t length, void **data_result, ani_arraybuffer *arraybuffer_result) + { + return c_api->CreateArrayBuffer(this, length, data_result, arraybuffer_result); + } + ani_status CreateArrayBufferExternal(void *external_data, size_t length, ani_finalizer finalizer, void *hint, + ani_arraybuffer *result) + { + return c_api->CreateArrayBufferExternal(this, external_data, length, finalizer, hint, result); + } + ani_status ArrayBuffer_GetInfo(ani_arraybuffer arraybuffer, void **data_result, size_t *length_result) + { + return c_api->ArrayBuffer_GetInfo(this, arraybuffer, data_result, length_result); + } + ani_status Reflection_FromMethod(ani_object method, ani_method *result) + { + return c_api->Reflection_FromMethod(this, method, result); + } + ani_status Reflection_ToMethod(ani_class cls, ani_method method, ani_object *result) + { + return c_api->Reflection_ToMethod(this, cls, method, result); + } + ani_status Reflection_FromField(ani_object field, ani_field *result) + { + return c_api->Reflection_FromField(this, field, result); + } + ani_status Reflection_ToField(ani_class cls, ani_field field, ani_object *result) + { + return c_api->Reflection_ToField(this, cls, field, result); + } + ani_status Reflection_FromStaticMethod(ani_object method, ani_static_method *result) + { + return c_api->Reflection_FromStaticMethod(this, method, result); + } + ani_status Reflection_ToStaticMethod(ani_class cls, ani_static_method method, ani_object *result) + { + return c_api->Reflection_ToStaticMethod(this, cls, method, result); + } + ani_status Reflection_FromStaticField(ani_object field, ani_static_field *result) + { + return c_api->Reflection_FromStaticField(this, field, result); + } + ani_status Reflection_ToStaticField(ani_class cls, ani_static_field field, ani_object *result) + { + return c_api->Reflection_ToStaticField(this, cls, field, result); + } + ani_status Reflection_FromFunction(ani_object function, ani_function *result) + { + return c_api->Reflection_FromFunction(this, function, result); + } + ani_status Reflection_ToFunction(ani_function function, ani_object *result) + { + return c_api->Reflection_ToFunction(this, function, result); + } + ani_status Reflection_FromVariable(ani_object variable, ani_variable *result) + { + return c_api->Reflection_FromVariable(this, variable, result); + } + ani_status Reflection_ToVariable(ani_variable variable, ani_object *result) + { + return c_api->Reflection_ToVariable(this, variable, result); + } + ani_status CLS_Register(void *initial_data, ani_finalizer finalizer, void *hint, ani_cls_slot *result) + { + return c_api->CLS_Register(this, initial_data, finalizer, hint, result); + } + ani_status CLS_Unregister(ani_cls_slot slot) + { + return c_api->CLS_Unregister(this, slot); + } + ani_status CLS_SetData(ani_cls_slot slot, void *data) + { + return c_api->CLS_SetData(this, slot, data); + } + ani_status CLS_GetData(ani_cls_slot slot, void **result) + { + return c_api->CLS_GetData(this, slot, result); + } + ani_status Coroutine_LaunchFunctionalObject(ani_fn_object fn, ani_size argc, ani_ref *argv, ani_promise *result) + { + return c_api->Coroutine_LaunchFunctionalObject(this, fn, argc, argv, result); + } + ani_status Coroutine_LaunchFunction(ani_function function, ani_promise *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Coroutine_LaunchFunction_V(this, function, result, args); + va_end(args); + return status; + } + ani_status Coroutine_LaunchFunction_A(ani_function function, ani_promise *result, const ani_value *args) + { + return c_api->Coroutine_LaunchFunction_A(this, function, result, args); + } + ani_status Coroutine_LaunchFunction_V(ani_function function, ani_promise *result, va_list args) + { + return c_api->Coroutine_LaunchFunction_V(this, function, result, args); + } + ani_status Coroutine_LaunchMethod(ani_object self, ani_function function, ani_promise *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Coroutine_LaunchMethod_V(this, self, function, result, args); + va_end(args); + return status; + } + ani_status Coroutine_LaunchMethod_A(ani_object self, ani_function function, ani_promise *result, + const ani_value *args) + { + return c_api->Coroutine_LaunchMethod_A(this, self, function, result, args); + } + ani_status Coroutine_LaunchMethod_V(ani_object self, ani_function function, ani_promise *result, va_list args) + { + return c_api->Coroutine_LaunchMethod_V(this, self, function, result, args); + } + ani_status Coroutine_LaunchStaticMethod(ani_class cls, ani_function function, ani_promise *result, ...) + { + va_list args; + va_start(args, result); + ani_status status = c_api->Coroutine_LaunchStaticMethod_V(this, cls, function, result, args); + va_end(args); + return status; + } + ani_status Coroutine_LaunchStaticMethod_A(ani_class cls, ani_function function, ani_promise *result, + const ani_value *args) + { + return c_api->Coroutine_LaunchStaticMethod_A(this, cls, function, result, args); + } + ani_status Coroutine_LaunchStaticMethod_V(ani_class cls, ani_function function, ani_promise *result, va_list args) + { + return c_api->Coroutine_LaunchStaticMethod_V(this, cls, function, result, args); + } + ani_status Coroutine_Await_Boolean(ani_promise promise, ani_boolean value) + { + return c_api->Coroutine_Await_Boolean(this, promise, value); + } + ani_status Coroutine_Await_Char(ani_promise promise, ani_char value) + { + return c_api->Coroutine_Await_Char(this, promise, value); + } + ani_status Coroutine_Await_Byte(ani_promise promise, ani_byte value) + { + return c_api->Coroutine_Await_Byte(this, promise, value); + } + ani_status Coroutine_Await_Short(ani_promise promise, ani_short value) + { + return c_api->Coroutine_Await_Short(this, promise, value); + } + ani_status Coroutine_Await_Int(ani_promise promise, ani_int value) + { + return c_api->Coroutine_Await_Int(this, promise, value); + } + ani_status Coroutine_Await_Long(ani_promise promise, ani_long value) + { + return c_api->Coroutine_Await_Long(this, promise, value); + } + ani_status Coroutine_Await_Float(ani_promise promise, ani_float value) + { + return c_api->Coroutine_Await_Float(this, promise, value); + } + ani_status Coroutine_Await_Double(ani_promise promise, ani_double value) + { + return c_api->Coroutine_Await_Double(this, promise, value); + } + ani_status Coroutine_Await_Ref(ani_promise promise, ani_ref value) + { + return c_api->Coroutine_Await_Ref(this, promise, value); + } +#endif // __cplusplus +}; + +// NOLINTEND +#endif // __ANI_H__ diff --git a/interop/src/cpp/ani/convertors-ani.cc b/interop/src/cpp/ani/convertors-ani.cc new file mode 100644 index 000000000..aff874bdd --- /dev/null +++ b/interop/src/cpp/ani/convertors-ani.cc @@ -0,0 +1,154 @@ +/* + * 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. + */ + +#include +#include "convertors-ani.h" +#include "signatures.h" +#include "interop-logging.h" +#include "interop-types.h" + +static const char* callCallbackFromNative = "callCallbackFromNative"; +static const char* callCallbackFromNativeSig = "I[BI:I"; + +static const char* FAST_NATIVE_PREFIX = "#F$"; + +const bool registerByOne = true; + +static bool registerNatives(ani_env *env, const ani_class clazz, const std::vector> impls) { + std::vector methods; + methods.reserve(impls.size()); + bool result = true; + for (const auto &[name, type, func, flag] : impls) { + ani_native_function method; + method.name = name.c_str(); + method.pointer = func; + method.signature = (flag & ANI_SLOW_NATIVE_FLAG) == 0 ? FAST_NATIVE_PREFIX : nullptr; + if (registerByOne) { + result &= env->Class_BindNativeMethods(clazz, &method, 1) == ANI_OK; + ani_boolean isError = false; + env->ExistUnhandledError(&isError); + if (isError) { + //env->ErrorDescribe(); + env->ResetError(); + } + } + else { + methods.push_back(method); + } + } + if (!registerByOne) { + result = env->Class_BindNativeMethods(clazz, methods.data(), static_cast(methods.size())) == ANI_OK; + } + return registerByOne ? true : result; +} + +bool registerAllModules(ani_env *env) { + auto moduleNames = AniExports::getInstance()->getModules(); + + for (auto it = moduleNames.begin(); it != moduleNames.end(); ++it) { + std::string classpath = AniExports::getInstance()->getClasspath(*it); + ani_class nativeModule = nullptr; + env->FindClass(classpath.c_str(), &nativeModule); + if (nativeModule == nullptr) { + LOGE("Cannot find managed class %s", classpath.c_str()); + continue; + } + if (!registerNatives(env, nativeModule, AniExports::getInstance()->getMethods(*it))) { + return false; + } + } + + return true; +} + +#if 0 +extern "C" ETS_EXPORT ets_int ETS_CALL EtsNapiOnLoad(ets_env *env) { + if (!registerAllModules(env)) { + LOGE("Failed to register ets modules"); + return ETS_ERR; + } + auto interopClasspath = AniExports::getInstance()->getClasspath("InteropNativeModule"); + auto interopClass = env->FindClass(interopClasspath.c_str()); + if (interopClass == nullptr) { + LOGE("Can not find InteropNativeModule classpath to set callback dispatcher"); + return ETS_ERR; + } + if (!setKoalaEtsNapiCallbackDispatcher(env, interopClass, callCallbackFromNative, callCallbackFromNativeSig)) { + LOGE("Failed to set koala ets callback dispatcher"); + return ETS_ERR; + } + return ETS_NAPI_VERSION_1_0; +} +#endif + +AniExports* AniExports::getInstance() { + static AniExports *instance = nullptr; + if (instance == nullptr) { + instance = new AniExports(); + } + return instance; +} + +std::vector AniExports::getModules() { + std::vector result; + for (auto it = implementations.begin(); it != implementations.end(); ++it) { + result.push_back(it->first); + } + return result; +} + +const std::vector>& AniExports::getMethods(const std::string& module) { + auto it = implementations.find(module); + if (it == implementations.end()) { + LOGE("Module %s is not registered", module.c_str()); + } + return it->second; +} + +void AniExports::addMethod(const char* module, const char *name, const char *type, void *impl, int flags) { + auto it = implementations.find(module); + if (it == implementations.end()) { + it = implementations.insert(std::make_pair(module, std::vector>())).first; + } + it->second.push_back(std::make_tuple(name, convertType(name, type), impl, flags)); +} + +void AniExports::setClasspath(const char* module, const char *classpath) { + auto it = classpaths.find(module); + if (it == classpaths.end()) { + classpaths.insert(std::make_pair(module, classpath)); + } else { + LOGE("Classpath for module %s was redefined", module); + } +} + +static std::map g_defaultClasspaths = { + {"InteropNativeModule", "@koalaui/interop/InteropNativeModule/InteropNativeModule"}, + // todo leave just InteropNativeModule, define others via KOALA_ETS_INTEROP_MODULE_CLASSPATH + {"TestNativeModule", "@koalaui/arkts-arkui/generated/arkts/TestNativeModule/TestNativeModule"}, + {"ArkUINativeModule", "@koalaui/arkts-arkui/generated/arkts/ArkUINativeModule/ArkUINativeModule"}, + {"ArkUIGeneratedNativeModule", "@koalaui/arkts-arkui/generated/arkts/ArkUIGeneratedNativeModule/ArkUIGeneratedNativeModule"}, +}; +const std::string& AniExports::getClasspath(const std::string& module) { + auto it = classpaths.find(module); + if (it != classpaths.end()) { + return it->second; + } + auto defaultClasspath = g_defaultClasspaths.find(module); + if (defaultClasspath != g_defaultClasspaths.end()) { + return defaultClasspath->second; + } + INTEROP_FATAL("Classpath for module %s was not registered", module.c_str()); +} diff --git a/interop/src/cpp/ani/convertors-ani.h b/interop/src/cpp/ani/convertors-ani.h new file mode 100644 index 000000000..2eeb2e62d --- /dev/null +++ b/interop/src/cpp/ani/convertors-ani.h @@ -0,0 +1,1289 @@ +/* + * 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. + */ + +#ifdef KOALA_ANI + +#include +#include +#include +#include +#include +#include +#include + +#include "ani.h" +#include "koala-types.h" + +template +struct InteropTypeConverter { + using InteropType = T; + static T convertFrom(ani_env* env, InteropType value) { return value; } + static InteropType convertTo(ani_env* env, T value) { return value; } + static void release(ani_env* env, InteropType value, T converted) {} +}; + +template<> +struct InteropTypeConverter { + using InteropType = ani_string; + static KStringPtr convertFrom(ani_env* env, InteropType value) { + if (value == nullptr) return KStringPtr(); + KStringPtr result; + // Notice that we use UTF length for buffer size, but counter is expressed in number of Unicode chars. + ani_size lengthUtf8 = 0; + env->String_GetUTF8Size(value, &lengthUtf8); + result.resize(lengthUtf8); + ani_size lengthUtf16 = 0; + env->String_GetUTF16Size(value, &lengthUtf16); + ani_size count; + env->String_GetUTF8SubString(value, 0, lengthUtf16, result.data(), result.length(), &count); + return result; + } + static InteropType convertTo(ani_env* env, const KStringPtr& value) { + ani_string result; + env->String_NewUTF8(value.c_str(), value.length(), &result); + return result; + } + static void release(ani_env* env, InteropType value, const KStringPtr& converted) {} +}; + +template<> +struct InteropTypeConverter { + using InteropType = ani_long; + static KNativePointer convertFrom(ani_env* env, InteropType value) { + return reinterpret_cast(value); + } + static InteropType convertTo(ani_env* env, KNativePointer value) { + return reinterpret_cast(value); + } + static void release(ani_env* env, InteropType value, KNativePointer converted) {} +}; + +template<> +struct InteropTypeConverter { + using InteropType = ani_fixedarray_int; + static KInt* convertFrom(ani_env* env, InteropType value) { + if (!value) return nullptr; + ani_size length = 0; + env->FixedArray_GetLength(value, &length); + KInt* result = new KInt[length]; + env->FixedArray_GetRegion_Int(value, 0, length, result); + return result; + } + static InteropType convertTo(ani_env* env, KInt* value) = delete; + static void release(ani_env* env, InteropType value, KInt* converted) { + if (converted) delete [] converted; + } +}; + +template<> +struct InteropTypeConverter { + using InteropType = ani_fixedarray_float; + static KFloat* convertFrom(ani_env* env, InteropType value) { + if (!value) return nullptr; + ani_size length = 0; + env->FixedArray_GetLength(value, &length); + KFloat* result = new KFloat[length]; + env->FixedArray_GetRegion_Float(value, 0, length, result); + return result; + } + static InteropType convertTo(ani_env* env, KFloat* value) = delete; + static void release(ani_env* env, InteropType value, KFloat* converted) { + if (converted) delete [] converted; + } +}; + +template<> +struct InteropTypeConverter { + using InteropType = ani_fixedarray_byte; + static KByte* convertFrom(ani_env* env, InteropType value) { + if (!value) return nullptr; + ani_size length = 0; + env->FixedArray_GetLength(value, &length); + KByte* result = new KByte[length]; + env->FixedArray_GetRegion_Byte(value, 0, length, (ani_byte*)result); + return result; + } + static InteropType convertTo(ani_env* env, KByte* value) = delete; + static void release(ani_env* env, InteropType value, KByte* converted) { + if (converted) delete [] converted; + } +}; + +template <> struct InteropTypeConverter { + using InteropType = ani_double; + static KInteropNumber convertFrom(ani_env *env, InteropType value) { + return KInteropNumber::fromDouble(value); + } + static InteropType convertTo(ani_env *env, KInteropNumber value) { + return value.asDouble(); + } + static void release(ani_env *env, InteropType value, + KInteropNumber converted) {} +}; + +template<> +struct InteropTypeConverter { + using InteropType = ani_ref; + static KLength convertFrom(ani_env* env, InteropType value) { + // TODO: implement me + return KLength( { 0, 0, 0, 0}); + } + static InteropType convertTo(ani_env* env, KLength value) = delete; + static void release(ani_env* env, InteropType value, const KLength& converted) {} +}; + +template +inline typename InteropTypeConverter::InteropType makeResult(ani_env* env, Type value) { + return InteropTypeConverter::convertTo(env, value); +} + +template +inline Type getArgument(ani_env* env, typename InteropTypeConverter::InteropType arg) { + return InteropTypeConverter::convertFrom(env, arg); +} + +template +inline void releaseArgument(ani_env* env, typename InteropTypeConverter::InteropType arg, Type& data) { + InteropTypeConverter::release(env, arg, data); +} + +#define ANI_SLOW_NATIVE_FLAG 1 + +class AniExports { + std::unordered_map>> implementations; + std::unordered_map classpaths; + +public: + static AniExports* getInstance(); + + std::vector getModules(); + void addMethod(const char* module, const char* name, const char* type, void* impl, int flags); + const std::vector>& getMethods(const std::string& module); + + void setClasspath(const char* module, const char* classpath); + const std::string& getClasspath(const std::string& module); +}; + +#define KOALA_QUOTE0(x) #x +#define KOALA_QUOTE(x) KOALA_QUOTE0(x) + +#ifdef _MSC_VER +#define MAKE_ANI_EXPORT(module, name, type, flag) \ + static void __init_##name() { \ + AniExports::getInstance()->addMethod(KOALA_QUOTE(module), "_"#name, type, reinterpret_cast(Ani_##name), flag); \ + } \ + namespace { \ + struct __Init_##name { \ + __Init_##name() { __init_##name(); } \ + } __Init_##name##_v; \ + } +#define KOALA_ANI_INTEROP_MODULE_CLASSPATH(module, classpath) \ + static void __init_classpath_##module() { \ + AniExports::getInstance()->setClasspath(KOALA_QUOTE(module), classpath); \ + } \ + namespace { \ + struct __Init_classpath_##module { \ + __Init_classpath_##module() { __init_classpath_##module(); } \ + } __Init_classpath_##module##_v; \ + } +#else +#define MAKE_ANI_EXPORT(module, name, type, flag) \ + __attribute__((constructor)) \ + static void __init_ets_##name() { \ + AniExports::getInstance()->addMethod(KOALA_QUOTE(module), "_"#name, type, reinterpret_cast(Ani_##name), flag); \ + } +#define KOALA_ANI_INTEROP_MODULE_CLASSPATH(module, classpath) \ + __attribute__((constructor)) \ + static void __init_ani_classpath_##module() { \ + AniExports::getInstance()->setClasspath(KOALA_QUOTE(module), classpath); \ + } +#endif + +#define KOALA_INTEROP_0(name, Ret) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz) { \ + KOALA_MAYBE_LOG(name) \ + return makeResult(env, impl_##name()); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret, 0) + +#define KOALA_INTEROP_1(name, Ret, P0) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + auto rv = makeResult(env, impl_##name(p0)); \ + releaseArgument(env, _p0, p0); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0, 0) + +#define KOALA_INTEROP_2(name, Ret, P0, P1) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + auto rv = makeResult(env, impl_##name(p0, p1)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1, 0) + +#define KOALA_INTEROP_3(name, Ret, P0, P1, P2) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2, 0) + +#define KOALA_INTEROP_4(name, Ret, P0, P1, P2, P3) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + P3 p3 = getArgument(env, _p3); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3, 0) + +#define KOALA_INTEROP_5(name, Ret, P0, P1, P2, P3, P4) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_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); \ + auto rv = makeResult(env, impl_##name(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_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4, 0) + +#define KOALA_INTEROP_6(name, Ret, P0, P1, P2, P3, P4, P5) \ +InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5, 0) + +#define KOALA_INTEROP_7(name, Ret, P0, P1, P2, P3, P4, P5, P6) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6, 0) + +#define KOALA_INTEROP_8(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7, 0) + +#define KOALA_INTEROP_9(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7, P8) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + return rv; \ + } \ + MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8, 0) + +#define KOALA_INTEROP_10(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9, 0) + +#define KOALA_INTEROP_11(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10, 0) + +#define KOALA_INTEROP_12(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11, 0) + +#define KOALA_INTEROP_13(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11, \ + InteropTypeConverter::InteropType _p12) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + P12 p12 = getArgument(env, _p12); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ + releaseArgument(env, _p12, p12); \ + return rv; \ + } \ + MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11 "|" #P12, 0) + +#define KOALA_INTEROP_14(name, Ret, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11, \ + InteropTypeConverter::InteropType _p12, \ + InteropTypeConverter::InteropType _p13) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + P12 p12 = getArgument(env, _p12); \ + P13 p13 = getArgument(env, _p13); \ + auto rv = makeResult(env, impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ + releaseArgument(env, _p12, p12); \ + releaseArgument(env, _p13, p13); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11 "|" #P12 "|" #P13, 0) + +#define KOALA_INTEROP_V0(name) \ + void Ani_##name(ani_env *env) { \ + KOALA_MAYBE_LOG(name) \ + impl_##name(); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void", 0) + +#define KOALA_INTEROP_V1(name, P0) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + impl_##name(p0); \ + releaseArgument(env, _p0, p0); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0, 0) + +#define KOALA_INTEROP_V2(name, P0, P1) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + impl_##name(p0, p1); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1, 0) + +#define KOALA_INTEROP_V3(name, P0, P1, P2) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + impl_##name(p0, p1, p2); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2, 0) + +#define KOALA_INTEROP_V4(name, P0, P1, P2, P3) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + P3 p3 = getArgument(env, _p3); \ + impl_##name(p0, p1, p2, p3); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3, 0) + +#define KOALA_INTEROP_V5(name, P0, P1, P2, P3, P4) \ + void Ani_##name(ani_env *env, ani_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); \ + impl_##name(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); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4, 0) + +#define KOALA_INTEROP_V6(name, P0, P1, P2, P3, P4, P5) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + impl_##name(p0, p1, p2, p3, p4, p5); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5, 0) + +#define KOALA_INTEROP_V7(name, P0, P1, P2, P3, P4, P5, P6) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6, 0) + +#define KOALA_INTEROP_V8(name, P0, P1, P2, P3, P4, P5, P6, P7) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7, 0) + +#define KOALA_INTEROP_V9(name, P0, P1, P2, P3, P4, P5, P6, P7, P8) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8, 0) + +#define KOALA_INTEROP_V10(name, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9, 0) + +#define KOALA_INTEROP_V11(name, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10, 0) + +#define KOALA_INTEROP_V12(name, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11, 0) + +#define KOALA_INTEROP_V13(name, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11, \ + InteropTypeConverter::InteropType _p12) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + P12 p12 = getArgument(env, _p12); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ + releaseArgument(env, _p12, p12); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11 "|" #P12, 0) + +#define KOALA_INTEROP_V14(name, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11, \ + InteropTypeConverter::InteropType _p12, \ + InteropTypeConverter::InteropType _p13) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + P12 p12 = getArgument(env, _p12); \ + P13 p13 = getArgument(env, _p13); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ + releaseArgument(env, _p12, p12); \ + releaseArgument(env, _p13, p13); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11 "|" #P12 "|" #P13, 0) + +#define KOALA_INTEROP_V15(name, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4, \ + InteropTypeConverter::InteropType _p5, \ + InteropTypeConverter::InteropType _p6, \ + InteropTypeConverter::InteropType _p7, \ + InteropTypeConverter::InteropType _p8, \ + InteropTypeConverter::InteropType _p9, \ + InteropTypeConverter::InteropType _p10, \ + InteropTypeConverter::InteropType _p11, \ + InteropTypeConverter::InteropType _p12, \ + InteropTypeConverter::InteropType _p13, \ + InteropTypeConverter::InteropType _p14) { \ + 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); \ + P5 p5 = getArgument(env, _p5); \ + P6 p6 = getArgument(env, _p6); \ + P7 p7 = getArgument(env, _p7); \ + P8 p8 = getArgument(env, _p8); \ + P9 p9 = getArgument(env, _p9); \ + P10 p10 = getArgument(env, _p10); \ + P11 p11 = getArgument(env, _p11); \ + P12 p12 = getArgument(env, _p12); \ + P13 p13 = getArgument(env, _p13); \ + P14 p14 = getArgument(env, _p14); \ + impl_##name(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + releaseArgument(env, _p5, p5); \ + releaseArgument(env, _p6, p6); \ + releaseArgument(env, _p7, p7); \ + releaseArgument(env, _p8, p8); \ + releaseArgument(env, _p9, p9); \ + releaseArgument(env, _p10, p10); \ + releaseArgument(env, _p11, p11); \ + releaseArgument(env, _p12, p12); \ + releaseArgument(env, _p13, p13); \ + releaseArgument(env, _p14, p14); \ +} \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4 "|" #P5 "|" #P6 "|" #P7 "|" #P8 "|" #P9 "|" #P10 "|" #P11 "|" #P12 "|" #P13 "|" #P14, 0) + +#define KOALA_INTEROP_CTX_0(name, Ret) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz) { \ + KOALA_MAYBE_LOG(name) \ + KVMContext ctx = (KVMContext)env; \ + auto rv = makeResult(env, impl_##name(ctx)); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret, ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_1(name, Ret, P0) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = makeResult(env, impl_##name(ctx, p0)); \ + releaseArgument(env, _p0, p0); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0, ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_2(name, Ret, P0, P1) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = makeResult(env, impl_##name(ctx, p0, p1)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1, ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_3(name, Ret, P0, P1, P2) \ + InteropTypeConverter::InteropType Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = makeResult(env, impl_##name(ctx, p0, p1, p2)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + return rv; \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2, ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_V0(name) \ + void Ani_##name(ani_env *env, ani_class clazz) { \ + KOALA_MAYBE_LOG(name) \ + KVMContext ctx = (KVMContext)env; \ + impl_##name(ctx); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void", ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_V1(name, P0) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + KVMContext ctx = (KVMContext)env; \ + impl_##name(ctx, p0); \ + releaseArgument(env, _p0, p0); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0, ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_V2(name, P0, P1) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + KVMContext ctx = (KVMContext)env; \ + impl_##name(ctx, p0, p1); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1, ANI_SLOW_NATIVE_FLAG) + +#define KOALA_INTEROP_CTX_V3(name, P0, P1, P2) \ + void Ani_##name(ani_env *env, ani_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + KVMContext ctx = (KVMContext)env; \ + impl_##name(ctx, p0, p1, p2); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + } \ +MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, "void|" #P0 "|" #P1 "|" #P2, ANI_SLOW_NATIVE_FLAG) + +bool setKoalaEtsNapiCallbackDispatcher( + ani_env* ani_env, + ani_class clazz, + const char* dispatcherMethodName, + const char* dispactherMethodSig +); +void getKoalaEtsNapiCallbackDispatcher(ani_class* clazz, ani_method* method); + +#if 0 +#define KOALA_INTEROP_CALL_VOID(venv, id, length, args) \ +{ \ + ani_class clazz = nullptr; \ + ani_method method = nullptr; \ + getKoalaEtsNapiCallbackDispatcher(&clazz, &method); \ + ani_env* ani_env = reinterpret_cast(vmContext); \ + ani_env->PushLocalFrame(1); \ + ani_fixedarray_byte args_ets = ani_env->NewByteArray(length); \ + ani_env->SetByteArrayRegion(args_ets, 0, length, reinterpret_cast(args)); \ + ani_env->CallStaticIntMethod(clazz, method, id, args_ets, length); \ + ani_env->GetByteArrayRegion(args_ets, 0, length, reinterpret_cast(args)); \ + ani_env->PopLocalFrame(nullptr); \ +} + +#define KOALA_INTEROP_CALL_INT(venv, id, length, args) \ +{ \ + ani_class clazz = nullptr; \ + ani_method method = nullptr; \ + getKoalaEtsNapiCallbackDispatcher(&clazz, &method); \ + ani_env* ani_env = reinterpret_cast(venv); \ + ani_env->PushLocalFrame(1); \ + ani_fixedarray_byte args_ets = ani_env->NewByteArray(length); \ + ani_env->SetByteArrayRegion(args_ets, 0, length, reinterpret_cast(args)); \ + int32_t rv = ani_env->CallStaticIntMethod(clazz, method, id, args_ets, length); \ + ani_env->GetByteArrayRegion(args_ets, 0, length, reinterpret_cast(args)); \ + ani_env->PopLocalFrame(nullptr); \ + return rv; \ +} + +#define KOALA_INTEROP_CALL_VOID_INTS32(venv, id, argc, args) KOALA_INTEROP_CALL_VOID(venv, id, (argc) * sizeof(int32_t), args) +#define KOALA_INTEROP_CALL_INT_INTS32(venv, id, argc, args) KOALA_INTEROP_CALL_INT(venv, id, (argc) * sizeof(int32_t), args) + +#define KOALA_INTEROP_THROW(vmContext, object, ...) \ + do { \ + ani_env* env = reinterpret_cast(vmContext); \ + env->ThrowError(object); \ + return __VA_ARGS__; \ + } while (0) + +#define KOALA_INTEROP_THROW_STRING(vmContext, message, ...) \ + do { \ + ani_env* env = reinterpret_cast(vmContext); \ + const static ani_class errorClass = env->FindClass("std/core/Error"); \ + env->ThrowErrorNew(errorClass, message); \ + } while (0) +#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, ...) +#endif + +#endif // KOALA_ETS_NAPI diff --git a/interop/src/cpp/common-interop.h b/interop/src/cpp/common-interop.h index 84f8d1663..436f25da0 100644 --- a/interop/src/cpp/common-interop.h +++ b/interop/src/cpp/common-interop.h @@ -54,7 +54,7 @@ std::vector makeStringVector(KNativePointerArray arr, KInt size); #include "convertors-napi.h" #elif KOALA_USE_JSC_VM #include "convertors-jsc.h" -#elif KOALA_USE_PANDA_VM +#elif KOALA_ETS_NAPI #include "convertors-ets.h" #elif KOALA_USE_JAVA_VM #include "convertors-jni.h" @@ -62,6 +62,8 @@ std::vector makeStringVector(KNativePointerArray arr, KInt size); #include "convertors-wasm.h" #elif KOALA_CJ #include "convertors-cj.h" +#elif KOALA_ANI +#include "convertors-ani.h" #else #error "One of above branches must be taken" #endif -- Gitee From ff62a0382772e77fabb4eddad1d3ae369b72c590 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Mon, 17 Feb 2025 14:56:54 +0000 Subject: [PATCH 31/40] !1830 Dollar r and rawfile implementation for ArkTS --- arkoala-arkts/arkui/src/handwritten/index.ts | 1 + .../arkui/src/handwritten/resources.ts | 40 +++++++++++++ .../main/resources/base/element/color.json | 4 ++ .../main/resources/base/element/string.json | 4 ++ .../src/main/resources/rawfile/phone.png | Bin 0 -> 49101 bytes .../trivial/user/src/ets/etsconfig.json | 6 +- arkoala-arkts/trivial/user/src/ets/page1.ets | 5 +- arkoala/ets-plugin/src/ArkExpander.ts | 15 +++-- arkoala/ets-plugin/src/DollarTransformer.ts | 40 ++++++++++++- .../ets/dollar-functions/dollar-functions.ets | 15 +++++ .../ets-plugin/test/ets/tsconfig.arkoala.json | 4 ++ .../ets-plugin/test/ets/tsconfig.arkts.json | 4 ++ .../arkoala/ets/__router_initialization.ts | 2 + .../ets/dollar-functions/dollar-functions.ts | 52 +++++++++++++++++ .../ets/dollar-functions/dollar-functions.ts | 52 +++++++++++++++++ .../koala/ets/__router_initialization.ts | 2 + .../ets/dollar-functions/dollar-functions.ts | 54 ++++++++++++++++++ arkoala/ets-plugin/test/utils.ts | 2 +- 18 files changed, 292 insertions(+), 10 deletions(-) create mode 100644 arkoala-arkts/arkui/src/handwritten/resources.ts create mode 100644 arkoala-arkts/trivial/trivial/entry/src/main/resources/rawfile/phone.png create mode 100644 arkoala/ets-plugin/test/ets/dollar-functions/dollar-functions.ets create mode 100644 arkoala/ets-plugin/test/golden/arkoala/ets/dollar-functions/dollar-functions.ts create mode 100644 arkoala/ets-plugin/test/golden/arkts/ets/dollar-functions/dollar-functions.ts create mode 100644 arkoala/ets-plugin/test/golden/koala/ets/dollar-functions/dollar-functions.ts diff --git a/arkoala-arkts/arkui/src/handwritten/index.ts b/arkoala-arkts/arkui/src/handwritten/index.ts index bbf766e8f..9b1107584 100644 --- a/arkoala-arkts/arkui/src/handwritten/index.ts +++ b/arkoala-arkts/arkui/src/handwritten/index.ts @@ -2,6 +2,7 @@ export * from "./ArkPageTransition" export * from "./ArkPageTransitionData" export * from "./Router" export * from "./ForeignFunctions" +export * from "./resources" // TODO: implement this diff --git a/arkoala-arkts/arkui/src/handwritten/resources.ts b/arkoala-arkts/arkui/src/handwritten/resources.ts new file mode 100644 index 000000000..44c16b051 --- /dev/null +++ b/arkoala-arkts/arkui/src/handwritten/resources.ts @@ -0,0 +1,40 @@ +import { Resource } from "../generated"; + +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; + } + + + return { + "id": -1, + "type": res_type, + "params": new Array(name), + "bundleName": bundleName, + "moduleName": moduleName + } as Resource +} + +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 +} \ No newline at end of file diff --git a/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/color.json b/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/color.json index 3c712962d..6a20c650b 100644 --- a/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/color.json +++ b/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/color.json @@ -3,6 +3,10 @@ { "name": "start_window_background", "value": "#FFFFFF" + }, + { + "name": "my_color", + "value": "#2e2e33" } ] } \ No newline at end of file diff --git a/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/string.json b/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/string.json index f94595515..d1c869602 100644 --- a/arkoala-arkts/shopping/application/entry/src/main/resources/base/element/string.json +++ b/arkoala-arkts/shopping/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/trivial/entry/src/main/resources/rawfile/phone.png b/arkoala-arkts/trivial/trivial/entry/src/main/resources/rawfile/phone.png new file mode 100644 index 0000000000000000000000000000000000000000..75f9a36d17ae87c9fbb5cc6673a7420488016d11 GIT binary patch literal 49101 zcmaG{_d6Tj_m5GUQoB_((wbG9+9QsdcBR)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 literal 0 HcmV?d00001 diff --git a/arkoala-arkts/trivial/user/src/ets/etsconfig.json b/arkoala-arkts/trivial/user/src/ets/etsconfig.json index 8c8b162b4..d8b2ae045 100644 --- a/arkoala-arkts/trivial/user/src/ets/etsconfig.json +++ b/arkoala-arkts/trivial/user/src/ets/etsconfig.json @@ -14,7 +14,11 @@ { "transform": "@koalaui/ets-plugin/build/lib/src/ArkExpander.js", "destination": "../../build/generated", - "arkui": "@koalaui/arkts-arkui" + "arkui": "@koalaui/arkts-arkui", + "applicationInfo": { + "bundleName": "com.example.trivial.application", + "moduleName": "entry" + } } ] } diff --git a/arkoala-arkts/trivial/user/src/ets/page1.ets b/arkoala-arkts/trivial/user/src/ets/page1.ets index c85a9eb52..7d28ff27e 100644 --- a/arkoala-arkts/trivial/user/src/ets/page1.ets +++ b/arkoala-arkts/trivial/user/src/ets/page1.ets @@ -107,13 +107,16 @@ struct Page1 { .backgroundColor(this.color2) .width(200).height(100) .onClick((e?: ClickEvent) => { this.swap() }) + Text($r('app.string.my_text')).height(50) Button("Click! " + this.state) .width(200).height(100) + .backgroundColor($r('app.color.my_color')) .onClick((e?: ClickEvent) => { this.state++ console.log("#### Set Button onClick! #" + this.state) }) - Image("/resources/glass.png").width(400) + Image($r('app.media.startIcon')).width(60).height(60) + Image($rawfile('phone.png')).width(400) Text("Set Button onClick! #" + this.state) .width(200).height(100) TestProvide() diff --git a/arkoala/ets-plugin/src/ArkExpander.ts b/arkoala/ets-plugin/src/ArkExpander.ts index d45369d72..c5cdf8d6e 100644 --- a/arkoala/ets-plugin/src/ArkExpander.ts +++ b/arkoala/ets-plugin/src/ArkExpander.ts @@ -25,7 +25,7 @@ import { CallTable, IssueTable, NameTable } from './utils' import { LazyTransformer } from './LazyTransformer' import { EntryTracker } from './EntryTracker' import { filterOutDiagnostics } from './DiagnosticFilter' -import { DollarTransformer } from './DollarTransformer' +import { DollarTransformer, ApplicationInfo } from './DollarTransformer' import { ExtensionStylesTransformer } from './ExtensionStylesTransformer' import { NewTransformer } from './NewTransformer' import { CustomBuilderTransformer } from './CustomBuilderTransformer' @@ -40,7 +40,8 @@ interface ArkToKoOptions { source?: string destination?: string arkui?: string - moduleInfo?: (moduleName: string) => any + moduleInfo?: (moduleName: string) => any, + applicationInfo?: ApplicationInfo } function printSourceFile(sourceFile: ts.Node, source?: string, destination?: string, extension?: string) { @@ -106,7 +107,8 @@ export function arkExpandFile( ctx: ts.TransformationContext, extras: ts.TransformerExtras | undefined, entryTracker: EntryTracker, - moduleInfo?: (moduleName: string) => any + moduleInfo?: (moduleName: string) => any, + applicationInfo?: ApplicationInfo ): ts.SourceFile { const importer = new Importer(arkuiPackage, moduleInfo) const nameTable = new NameTable() @@ -132,7 +134,7 @@ export function arkExpandFile( const styleTransformer = new StyleTransformer(sourceFile, ctx, typeChecker, importer, extensionStylesTransformer, callTable) const structTransformer = new StructTransformer(sourceFile, ctx, typeChecker, importer, nameTable, entryTracker, callTable, extras) const nameCollector = new NameCollector(sourceFile, ctx, nameTable, issueTable) - const dollarTransformer = new DollarTransformer(sourceFile, ctx, nameTable) + const dollarTransformer = new DollarTransformer(sourceFile, ctx, nameTable, importer, applicationInfo) const abilityTransformer = new AbilityTransformer(sourceFile, ctx, importer) const observedResolver = new ObservedResolver(sourceFile, ctx, importer) @@ -177,7 +179,8 @@ export default function arkExpander(program: ts.Program, userPluginOptions: ArkT source: userPluginOptions.source ?? ".", destination: userPluginOptions.destination ?? "../generated", arkui: userPluginOptions.arkui ?? "@koalaui/koala-arkui", - moduleInfo: userPluginOptions.moduleInfo + moduleInfo: userPluginOptions.moduleInfo, + applicationInfo: userPluginOptions.applicationInfo } const typeChecker = program.getTypeChecker() prepareDestination(pluginOptions.destination) @@ -194,7 +197,7 @@ export default function arkExpander(program: ts.Program, userPluginOptions: ArkT console.log("ETS->TS: " + path.normalize(sourceFile.fileName)) } - let final = arkExpandFile(sourceFile, pluginOptions.arkui, typeChecker, ctx, extras, entryTracker, pluginOptions.moduleInfo) + let final = arkExpandFile(sourceFile, pluginOptions.arkui, typeChecker, ctx, extras, entryTracker, pluginOptions.moduleInfo, pluginOptions.applicationInfo) printSourceFile(final, pluginOptions.source, pluginOptions.destination) if (pluginOptions.arkui != "@koalaui/arkts-arkui") { diff --git a/arkoala/ets-plugin/src/DollarTransformer.ts b/arkoala/ets-plugin/src/DollarTransformer.ts index caac6830f..12a3dfe99 100644 --- a/arkoala/ets-plugin/src/DollarTransformer.ts +++ b/arkoala/ets-plugin/src/DollarTransformer.ts @@ -16,13 +16,21 @@ import * as ts from "@koalaui/ets-tsc" import { AbstractVisitor } from "./AbstractVisitor"; import { NameTable } from "./utils"; +import { Importer } from "./Importer"; +export interface ApplicationInfo { + bundleName: string, + moduleName: string +} + export class DollarTransformer extends AbstractVisitor { constructor( sourceFile: ts.SourceFile, ctx: ts.TransformationContext, - private nameTable: NameTable + private nameTable: NameTable, + private importer: Importer, + private applicationInfo?: ApplicationInfo ) { super(sourceFile, ctx) } @@ -58,7 +66,37 @@ export class DollarTransformer extends AbstractVisitor { ) } + isDollarCallExpression(node: ts.CallExpression): boolean { + return !this.whiteList.includes(ts.idText(node.expression as ts.Identifier)) ? false : true + } + + transformDollarCallExpression(node: ts.CallExpression): ts.CallExpression { + const name = ts.idText(node.expression as ts.Identifier).replace('$', '_') + + const args = node.arguments.slice() + + args.unshift( + ts.factory.createStringLiteral(this.applicationInfo?.bundleName ?? ""), + ts.factory.createStringLiteral(this.applicationInfo?.moduleName ?? "entry") + ) + + return ts.factory.updateCallExpression( + node, + ts.factory.createIdentifier(this.importer.withAdaptorImport(name)), + node.typeArguments, + args + ) + + } + visitor(node: ts.Node): ts.Node { + + if (ts.isCallExpression(node) && ts.isIdentifier(node.expression)) { + if (this.isDollarCallExpression(node)) { + return this.transformDollarCallExpression(node) + } + } + if (ts.isStruct(node)) { this.currentStruct = node const transformed = this.visitEachChild(node) diff --git a/arkoala/ets-plugin/test/ets/dollar-functions/dollar-functions.ets b/arkoala/ets-plugin/test/ets/dollar-functions/dollar-functions.ets new file mode 100644 index 000000000..6a0f053fd --- /dev/null +++ b/arkoala/ets-plugin/test/ets/dollar-functions/dollar-functions.ets @@ -0,0 +1,15 @@ +@Entry +@Component +struct Index { + @State myState2: string = "Hello" + + build() { + Column() { + Image($rawfile('startIcon.png')) + Image($r('app.media.icon')) + Text($myState2) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/arkoala/ets-plugin/test/ets/tsconfig.arkoala.json b/arkoala/ets-plugin/test/ets/tsconfig.arkoala.json index fc43e2658..1df10a875 100644 --- a/arkoala/ets-plugin/test/ets/tsconfig.arkoala.json +++ b/arkoala/ets-plugin/test/ets/tsconfig.arkoala.json @@ -19,6 +19,10 @@ "transform": "@koalaui/ets-plugin/build/lib/src/ArkExpander.js", "arkui": "@koalaui/arkoala-arkui", "destination": "../../build/ts/arkoala/ets", + "applicationInfo": { + "bundleName": "com.application.example", + "moduleName": "entry" + } } ] } diff --git a/arkoala/ets-plugin/test/ets/tsconfig.arkts.json b/arkoala/ets-plugin/test/ets/tsconfig.arkts.json index 5d6536e20..7bc311532 100644 --- a/arkoala/ets-plugin/test/ets/tsconfig.arkts.json +++ b/arkoala/ets-plugin/test/ets/tsconfig.arkts.json @@ -19,6 +19,10 @@ "transform": "@koalaui/ets-plugin/build/lib/src/ArkExpander.js", "arkui": "@koalaui/arkts-arkui", "destination": "../../build/ts/arkts/ets", + "applicationInfo": { + "bundleName": "com.application.example", + "moduleName": "entry" + } } ] } diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/__router_initialization.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/__router_initialization.ts index 2d336d769..acedfbdd3 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/__router_initialization.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/__router_initialization.ts @@ -2,9 +2,11 @@ import { EntryExample as Entry0 } from "./Rewrite" import { LocalStorageLinkExample as Entry1 } from "./Rewrite2" import { LocalStoragePropExample as Entry2 } from "./Rewrite3" +import { Index as Entry3 } from "./dollar-functions/dollar-functions" export function registerRoutes() { const __forceEntry0Use = Entry0 const __forceEntry1Use = Entry1 const __forceEntry2Use = Entry2 + const __forceEntry3Use = Entry3 } diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/dollar-functions/dollar-functions.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/dollar-functions/dollar-functions.ts new file mode 100644 index 000000000..efc95491b --- /dev/null +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/dollar-functions/dollar-functions.ts @@ -0,0 +1,52 @@ +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkImage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, _r, _rawfile, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; +class ArkIndexComponent extends ArkStructBase { + private _entry_local_storage_ = new LocalStorage(); + __initializeStruct(/**/ + /** @memo */ + content?: () => void, initializers?: IndexOptions): void { + this.__backing_myState2 = stateOf(initializers?.myState2 ?? ("Hello"), this); + } + private __backing_myState2?: MutableState; + private get myState2(): string { + return this.__backing_myState2!.value; + } + private set myState2(value: string) { + this.__backing_myState2!.value = observableProxy(value); + } + /** @memo */ + __build(/**/ + /** @memo */ + __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: IndexOptions) { + ArkColumn(__instance => { + { + __instance.height('100%') + .width('100%'); + } + __builder?.(__instance); + }, () => { + ArkImage(undefined, undefined, _rawfile("com.application.example", "entry", 'startIcon.png')); + ArkImage(undefined, undefined, _r("com.application.example", "entry", 'app.media.icon')); + ArkText(undefined, undefined, this.$myState2); + }); + } +} +/** @memo */ +export function Index(/**/ +/** @memo */ +style?: (__instance: ArkCommonMethodComponent) => void, /**/ +/** @memo */ +content?: () => void, initializers?: IndexOptions): void { + const updatedInitializers: IndexOptions = { + __backing_myState2: initializers?.__backing_myState2 + }; + ArkIndexComponent._instantiate(style, () => new ArkIndexComponent, content, updatedInitializers); +} +export interface IndexOptions { + __backing_myState2?: MutableState; + myState2?: string; +} +registerArkuiEntry(Index, "dollar-functions/dollar-functions"); +export const __Entry = Index; diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/dollar-functions/dollar-functions.ts b/arkoala/ets-plugin/test/golden/arkts/ets/dollar-functions/dollar-functions.ts new file mode 100644 index 000000000..0d250826a --- /dev/null +++ b/arkoala/ets-plugin/test/golden/arkts/ets/dollar-functions/dollar-functions.ts @@ -0,0 +1,52 @@ +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkImage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, _r, _rawfile, stateOf } from "@koalaui/arkts-arkui"; +import { MutableState } from "@koalaui/runtime"; +import { LocalStorage } from "@koalaui/arkui-common"; +import { observableProxy } from "@koalaui/common"; +class ArkIndexComponent extends ArkStructBase { + private _entry_local_storage_ = new LocalStorage(); + __initializeStruct(/**/ + /** @memo */ + content?: () => void, initializers?: IndexOptions): void { + this.__backing_myState2 = stateOf(initializers?.myState2 ?? ("Hello"), this); + } + private __backing_myState2?: MutableState; + private get myState2(): string { + return this.__backing_myState2!.value; + } + private set myState2(value: string) { + this.__backing_myState2!.value = observableProxy(value); + } + /** @memo */ + __build(/**/ + /** @memo */ + __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: IndexOptions) { + ArkColumn(__instance => { + { + __instance.height('100%') + .width('100%'); + } + __builder?.(__instance); + }, () => { + ArkImage(undefined, undefined, _rawfile("com.application.example", "entry", 'startIcon.png')); + ArkImage(undefined, undefined, _r("com.application.example", "entry", 'app.media.icon')); + ArkText(undefined, undefined, this.$myState2); + }); + } +} +/** @memo */ +export function Index(/**/ +/** @memo */ +style?: (__instance: ArkCommonMethodComponent) => void, /**/ +/** @memo */ +content?: () => void, initializers?: IndexOptions): void { + const updatedInitializers: IndexOptions = { + __backing_myState2: initializers?.__backing_myState2 + }; + ArkIndexComponent._instantiate(style, () => new ArkIndexComponent, content, updatedInitializers); +} +export interface IndexOptions { + __backing_myState2?: MutableState; + myState2?: string; +} diff --git a/arkoala/ets-plugin/test/golden/koala/ets/__router_initialization.ts b/arkoala/ets-plugin/test/golden/koala/ets/__router_initialization.ts index 2d336d769..acedfbdd3 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/__router_initialization.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/__router_initialization.ts @@ -2,9 +2,11 @@ import { EntryExample as Entry0 } from "./Rewrite" import { LocalStorageLinkExample as Entry1 } from "./Rewrite2" import { LocalStoragePropExample as Entry2 } from "./Rewrite3" +import { Index as Entry3 } from "./dollar-functions/dollar-functions" export function registerRoutes() { const __forceEntry0Use = Entry0 const __forceEntry1Use = Entry1 const __forceEntry2Use = Entry2 + const __forceEntry3Use = Entry3 } diff --git a/arkoala/ets-plugin/test/golden/koala/ets/dollar-functions/dollar-functions.ts b/arkoala/ets-plugin/test/golden/koala/ets/dollar-functions/dollar-functions.ts new file mode 100644 index 000000000..a52669498 --- /dev/null +++ b/arkoala/ets-plugin/test/golden/koala/ets/dollar-functions/dollar-functions.ts @@ -0,0 +1,54 @@ +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkImage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, _r, _rawfile, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { MutableState } from "@koalaui/runtime"; +import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; +import { observableProxy } from "@koalaui/common"; +class ArkIndexComponent extends ArkStructBase { + private _entry_local_storage_ = new LocalStorage(); + __initializeStruct(/**/ + /** @memo */ + content?: () => void, initializers?: IndexOptions): void { + this.__backing_myState2 = stateOf(initializers?.myState2 ?? ("Hello"), this); + } + private __backing_myState2?: MutableState; + private get myState2(): string { + return this.__backing_myState2!.value; + } + private set myState2(value: string) { + this.__backing_myState2!.value = observableProxy(value); + } + /** @memo */ + __build(/**/ + /** @memo */ + __builder: ((__instance: ArkCommonMethodComponent) => void) | undefined, /**/ + /** @memo */ + content?: () => void, initializers?: IndexOptions) { + ArkColumn(__instance => { + { + __instance.height('100%') + .width('100%'); + } + __builder?.(__instance); + }, () => { + ArkImage(undefined, undefined, _rawfile("", "entry", 'startIcon.png')); + ArkImage(undefined, undefined, _r("", "entry", 'app.media.icon')); + ArkText(undefined, undefined, this.$myState2); + }); + } +} +/** @memo */ +export function Index(/**/ +/** @memo */ +style?: (__instance: ArkCommonMethodComponent) => void, /**/ +/** @memo */ +content?: () => void, initializers?: IndexOptions): void { + const updatedInitializers: IndexOptions = { + __backing_myState2: initializers?.__backing_myState2 + }; + ArkIndexComponent._instantiate(style, () => new ArkIndexComponent, content, updatedInitializers); +} +export interface IndexOptions { + __backing_myState2?: MutableState; + myState2?: string; +} +registerArkuiEntry(Index, "dollar-functions/dollar-functions"); +export const __Entry = Index; diff --git a/arkoala/ets-plugin/test/utils.ts b/arkoala/ets-plugin/test/utils.ts index b22af78f9..a4da1e0c1 100644 --- a/arkoala/ets-plugin/test/utils.ts +++ b/arkoala/ets-plugin/test/utils.ts @@ -22,7 +22,7 @@ export function testFolder(folder: string) { suite(folder, () => { const golden = "./test/golden/" + folder const current = "./build/ts/" + folder - const files = collectFiles(path.resolve(golden)) + const files = collectFiles(path.resolve(current)) console.log(files) files.forEach(file => { test(file, () => { -- Gitee From b39826bd619a54c4427eff7a478ce4e452bc948e Mon Sep 17 00:00:00 2001 From: huiqiangdev Date: Mon, 17 Feb 2025 16:18:51 +0000 Subject: [PATCH 32/40] !1844 fix `allowOverride` wrong spelling * fix @Provide override wrong spelling --- arkoala/ets-plugin/src/utils.ts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/arkoala/ets-plugin/src/utils.ts b/arkoala/ets-plugin/src/utils.ts index 5ac9f4c70..3dd818307 100644 --- a/arkoala/ets-plugin/src/utils.ts +++ b/arkoala/ets-plugin/src/utils.ts @@ -274,13 +274,18 @@ export function deduceProvideConsumeName(property: ts.PropertyDeclaration, name: } // @Provide({ allowOverride: 'bar'}) bar if (ts.isObjectLiteralExpression(arg)) { - return (arg as ts.ObjectLiteralExpression).properties - .filter( - (property) => - ts.isPropertyAssignment(property) && - property.name.getText() === "allowOveride" - ) - .map((p) => (p as ts.PropertyAssignment).initializer.getText())[0]; + const propertiesName = (arg as ts.ObjectLiteralExpression).properties + .filter( + (property) => + ts.isPropertyAssignment(property) && + property.name.getText() === "allowOverride" + ) + if (propertiesName.length > 0) { + const arg = propertiesName[0] as ts.PropertyAssignment + if (ts.isStringLiteral(arg.initializer)) { + return arg.initializer.text + } + } } } -- Gitee From a03c7c3cda9ddb7cc1fcd05e935e2c202866f562 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Mon, 17 Feb 2025 16:58:30 +0000 Subject: [PATCH 33/40] !1861 Check dollars call expression * check dollars call expression --- arkoala/ets-plugin/src/DollarTransformer.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arkoala/ets-plugin/src/DollarTransformer.ts b/arkoala/ets-plugin/src/DollarTransformer.ts index 12a3dfe99..349673718 100644 --- a/arkoala/ets-plugin/src/DollarTransformer.ts +++ b/arkoala/ets-plugin/src/DollarTransformer.ts @@ -66,10 +66,6 @@ export class DollarTransformer extends AbstractVisitor { ) } - isDollarCallExpression(node: ts.CallExpression): boolean { - return !this.whiteList.includes(ts.idText(node.expression as ts.Identifier)) ? false : true - } - transformDollarCallExpression(node: ts.CallExpression): ts.CallExpression { const name = ts.idText(node.expression as ts.Identifier).replace('$', '_') @@ -92,7 +88,7 @@ export class DollarTransformer extends AbstractVisitor { visitor(node: ts.Node): ts.Node { if (ts.isCallExpression(node) && ts.isIdentifier(node.expression)) { - if (this.isDollarCallExpression(node)) { + if (this.whiteList.includes(ts.idText(node.expression))) { return this.transformDollarCallExpression(node) } } -- Gitee From c7a326f7d4e4eb7bdc3db01f18013f566222079c Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Mon, 17 Feb 2025 18:15:51 +0000 Subject: [PATCH 34/40] !1858 libarkts: multiple creates/updates --- arkoala-arkts/libarkts/native/src/bridges.cc | 81 -- .../libarkts/native/src/generated/bridges.cc | 692 ++++++++++++++++++ arkoala-arkts/libarkts/package.json | 2 +- arkoala-arkts/libarkts/src/es2panda.ts | 2 +- .../src/generated/Es2pandaNativeModule.ts | 198 +++++ .../generated/peers/AnnotationDeclaration.ts | 9 + .../src/generated/peers/AnnotationUsage.ts | 9 + .../peers/ArrowFunctionExpression.ts | 9 + .../src/generated/peers/AssertStatement.ts | 3 + .../generated/peers/AssignmentExpression.ts | 3 - .../src/generated/peers/AwaitExpression.ts | 3 + .../src/generated/peers/BigIntLiteral.ts | 3 + .../src/generated/peers/BinaryExpression.ts | 3 + .../src/generated/peers/BooleanLiteral.ts | 3 + .../src/generated/peers/BreakStatement.ts | 9 + .../src/generated/peers/CallExpression.ts | 6 + .../src/generated/peers/CatchClause.ts | 3 + .../src/generated/peers/ChainExpression.ts | 3 + .../src/generated/peers/CharLiteral.ts | 3 + .../src/generated/peers/ClassDeclaration.ts | 3 + .../src/generated/peers/ClassDefinition.ts | 15 + .../src/generated/peers/ClassExpression.ts | 3 + .../src/generated/peers/ClassProperty.ts | 3 + .../src/generated/peers/ClassStaticBlock.ts | 3 + .../generated/peers/ConditionalExpression.ts | 3 + .../src/generated/peers/ContinueStatement.ts | 9 + .../src/generated/peers/DebuggerStatement.ts | 3 + .../libarkts/src/generated/peers/Decorator.ts | 3 + .../generated/peers/DirectEvalExpression.ts | 3 + .../src/generated/peers/ETSClassLiteral.ts | 3 + .../generated/peers/ETSLaunchExpression.ts | 3 + .../peers/ETSNewArrayInstanceExpression.ts | 3 + .../peers/ETSNewClassInstanceExpression.ts | 9 + .../ETSNewMultiDimArrayInstanceExpression.ts | 9 + .../src/generated/peers/ETSNullType.ts | 3 + .../generated/peers/ETSPackageDeclaration.ts | 3 + .../generated/peers/ETSParameterExpression.ts | 3 + .../src/generated/peers/ETSPrimitiveType.ts | 3 + .../generated/peers/ETSStructDeclaration.ts | 3 + .../libarkts/src/generated/peers/ETSTuple.ts | 15 + .../src/generated/peers/ETSTypeReference.ts | 3 + .../generated/peers/ETSTypeReferencePart.ts | 9 + .../src/generated/peers/ETSUndefinedType.ts | 3 + .../src/generated/peers/ETSUnionType.ts | 3 + .../src/generated/peers/ETSWildcardType.ts | 3 + .../src/generated/peers/EmptyStatement.ts | 3 + .../generated/peers/ExportAllDeclaration.ts | 3 + .../peers/ExportDefaultDeclaration.ts | 3 + .../generated/peers/ExportNamedDeclaration.ts | 15 + .../src/generated/peers/ExportSpecifier.ts | 3 + .../generated/peers/ExpressionStatement.ts | 3 + .../src/generated/peers/ForUpdateStatement.ts | 3 + .../generated/peers/FunctionDeclaration.ts | 9 + .../src/generated/peers/FunctionExpression.ts | 9 + .../src/generated/peers/Identifier.ts | 17 +- .../src/generated/peers/ImportDeclaration.ts | 3 + .../generated/peers/ImportDefaultSpecifier.ts | 3 + .../src/generated/peers/ImportExpression.ts | 3 + .../peers/ImportNamespaceSpecifier.ts | 3 + .../src/generated/peers/ImportSpecifier.ts | 3 + .../src/generated/peers/MemberExpression.ts | 6 +- .../src/generated/peers/MetaProperty.ts | 3 + .../src/generated/peers/MethodDefinition.ts | 6 +- .../libarkts/src/generated/peers/NamedType.ts | 3 + .../src/generated/peers/NewExpression.ts | 3 + .../src/generated/peers/NullLiteral.ts | 3 + .../src/generated/peers/OmittedExpression.ts | 3 + .../src/generated/peers/OpaqueTypeNode.ts | 6 + .../peers/PrefixAssertionExpression.ts | 3 + .../libarkts/src/generated/peers/Property.ts | 12 +- .../src/generated/peers/RegExpLiteral.ts | 3 + .../src/generated/peers/ReturnStatement.ts | 9 + .../src/generated/peers/ScriptFunction.ts | 3 - .../src/generated/peers/SequenceExpression.ts | 3 + .../src/generated/peers/StringLiteral.ts | 9 + .../src/generated/peers/SuperExpression.ts | 3 + .../src/generated/peers/SwitchStatement.ts | 3 + .../src/generated/peers/TSAnyKeyword.ts | 3 + .../src/generated/peers/TSArrayType.ts | 3 + .../src/generated/peers/TSAsExpression.ts | 3 + .../src/generated/peers/TSBigintKeyword.ts | 3 + .../src/generated/peers/TSBooleanKeyword.ts | 3 + .../src/generated/peers/TSClassImplements.ts | 9 + .../src/generated/peers/TSConditionalType.ts | 3 + .../src/generated/peers/TSEnumDeclaration.ts | 3 + .../src/generated/peers/TSEnumMember.ts | 9 + .../peers/TSExternalModuleReference.ts | 3 + .../peers/TSImportEqualsDeclaration.ts | 3 + .../src/generated/peers/TSImportType.ts | 3 + .../src/generated/peers/TSIndexSignature.ts | 3 + .../generated/peers/TSIndexedAccessType.ts | 3 + .../src/generated/peers/TSInferType.ts | 3 + .../src/generated/peers/TSInterfaceBody.ts | 3 + .../generated/peers/TSInterfaceDeclaration.ts | 3 + .../generated/peers/TSInterfaceHeritage.ts | 3 + .../src/generated/peers/TSIntersectionType.ts | 3 + .../src/generated/peers/TSLiteralType.ts | 3 + .../src/generated/peers/TSMappedType.ts | 3 + .../src/generated/peers/TSNamedTupleMember.ts | 3 + .../src/generated/peers/TSNeverKeyword.ts | 3 + .../generated/peers/TSNonNullExpression.ts | 3 + .../src/generated/peers/TSNullKeyword.ts | 3 + .../src/generated/peers/TSNumberKeyword.ts | 3 + .../src/generated/peers/TSObjectKeyword.ts | 3 + .../generated/peers/TSParameterProperty.ts | 3 + .../generated/peers/TSParenthesizedType.ts | 3 + .../generated/peers/TSPropertySignature.ts | 3 + .../src/generated/peers/TSQualifiedName.ts | 3 + .../src/generated/peers/TSStringKeyword.ts | 3 + .../src/generated/peers/TSThisType.ts | 3 + .../src/generated/peers/TSTupleType.ts | 3 + .../generated/peers/TSTypeAliasDeclaration.ts | 9 + .../src/generated/peers/TSTypeAssertion.ts | 3 + .../src/generated/peers/TSTypeLiteral.ts | 3 + .../src/generated/peers/TSTypeOperator.ts | 3 + .../src/generated/peers/TSTypeParameter.ts | 10 + .../peers/TSTypeParameterDeclaration.ts | 3 + .../peers/TSTypeParameterInstantiation.ts | 3 + .../src/generated/peers/TSTypePredicate.ts | 3 + .../src/generated/peers/TSTypeQuery.ts | 3 + .../src/generated/peers/TSTypeReference.ts | 3 + .../src/generated/peers/TSUndefinedKeyword.ts | 3 + .../src/generated/peers/TSUnionType.ts | 3 + .../src/generated/peers/TSUnknownKeyword.ts | 3 + .../src/generated/peers/TSVoidKeyword.ts | 3 + .../peers/TaggedTemplateExpression.ts | 3 + .../src/generated/peers/TemplateElement.ts | 9 + .../src/generated/peers/TemplateLiteral.ts | 3 + .../src/generated/peers/ThisExpression.ts | 3 + .../src/generated/peers/ThrowStatement.ts | 3 + .../src/generated/peers/TypeofExpression.ts | 3 + .../src/generated/peers/UnaryExpression.ts | 3 + .../src/generated/peers/UndefinedLiteral.ts | 3 + .../src/generated/peers/UpdateExpression.ts | 3 + .../generated/peers/VariableDeclaration.ts | 3 + .../src/generated/peers/VariableDeclarator.ts | 9 + .../src/generated/peers/YieldExpression.ts | 3 + 137 files changed, 1452 insertions(+), 99 deletions(-) diff --git a/arkoala-arkts/libarkts/native/src/bridges.cc b/arkoala-arkts/libarkts/native/src/bridges.cc index 6f57ec068..4250b7908 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -90,27 +90,6 @@ KNativePointer impl_ScopeSetParent(KNativePointer contextPtr, KNativePointer nod } KOALA_INTEROP_3(ScopeSetParent, KNativePointer, KNativePointer, KNativePointer, KNativePointer) -KNativePointer impl_UpdateClassDefinition1( - KNativePointer contextPtr, - KNativePointer originalPtr, - KNativePointer identPtr, - KNativePointerArray bodyPtr, - KInt bodyLenT, - KInt modifiersT, - KInt flagsT -) { - auto context = reinterpret_cast(contextPtr); - auto original = reinterpret_cast(originalPtr); - auto ident = reinterpret_cast(identPtr); - auto body = reinterpret_cast(bodyPtr); - auto bodyLen = static_cast(bodyLenT); - auto modifiers = Es2pandaClassDefinitionModifiers(modifiersT); - auto flags = Es2pandaModifierFlags(flagsT); - - return GetImpl()->UpdateClassDefinition1(context, original, ident, body, bodyLen, modifiers, flags); -} -KOALA_INTEROP_7(UpdateClassDefinition1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KInt, KInt, KInt) - KNativePointer impl_CreateImportSource( KNativePointer contextPtr, KNativePointer sourcePtr, @@ -126,14 +105,6 @@ KNativePointer impl_CreateImportSource( } KOALA_INTEROP_4(CreateImportSource, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KBoolean) -KNativePointer impl_ArrowFunctionExpressionCreateTypeAnnotation(KNativePointer contextPtr, KNativePointer nodePtr) { - auto context = reinterpret_cast(contextPtr); - auto node = reinterpret_cast(nodePtr); - - return GetImpl()->ArrowFunctionExpressionCreateTypeAnnotation(context, node); -} -KOALA_INTEROP_2(ArrowFunctionExpressionCreateTypeAnnotation, KNativePointer, KNativePointer, KNativePointer) - KNativePointer impl_FunctionSignatureTypeParams(KNativePointer contextPtr, KNativePointer nodePtr) { auto context = reinterpret_cast(contextPtr); auto node = reinterpret_cast(nodePtr); @@ -150,24 +121,6 @@ KNativePointer impl_FunctionSignatureReturnType(KNativePointer contextPtr, KNati } KOALA_INTEROP_2(FunctionSignatureReturnType, KNativePointer, KNativePointer, KNativePointer) -KNativePointer impl_UpdateIdentifier1(KNativePointer contextPtr, KNativePointer nodePtr, KStringPtr& namePtr) { - auto context = reinterpret_cast(contextPtr); - auto node = reinterpret_cast(nodePtr); - - return GetImpl()->UpdateIdentifier1(context, node, getStringCopy(namePtr)); -} -KOALA_INTEROP_3(UpdateIdentifier1, KNativePointer, KNativePointer, KNativePointer, KStringPtr) - -KNativePointer impl_UpdateIdentifier2(KNativePointer contextPtr, KNativePointer nodePtr, KStringPtr& namePtr, KNativePointer typeAnnotationPtr) { - auto context = reinterpret_cast(contextPtr); - auto node = reinterpret_cast(nodePtr); - auto typeAnnotation = reinterpret_cast(typeAnnotationPtr); - - return GetImpl()->UpdateIdentifier2(context, node, getStringCopy(namePtr), typeAnnotation); -} -KOALA_INTEROP_4(UpdateIdentifier2, KNativePointer, KNativePointer, KNativePointer, KStringPtr, KNativePointer) - - KNativePointer impl_ScriptFunctionSetScope( KNativePointer contextPtr, KNativePointer astPtr, @@ -211,21 +164,6 @@ KNativePointer impl_CreateFunctionSignature( } KOALA_INTEROP_6(CreateFunctionSignature, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KInt, KNativePointer, KBoolean) -KNativePointer impl_CreateReturnStatement1(KNativePointer contextPtr, KNativePointer argumentPtr) { - auto context = reinterpret_cast(contextPtr); - auto argument = reinterpret_cast(argumentPtr); - - return GetImpl()->CreateReturnStatement1(context, argument); -} -KOALA_INTEROP_2(CreateReturnStatement1, KNativePointer, KNativePointer, KNativePointer) - - -KNativePointer impl_CreateIdentifier2(KNativePointer contextPtr, KStringPtr& namePtr, KNativePointer typeAnnotationPtr) { - auto context = reinterpret_cast(contextPtr); - auto typeAnnotation = reinterpret_cast(typeAnnotationPtr); - return GetImpl()->CreateIdentifier2(context, getStringCopy(namePtr), typeAnnotation); -} -KOALA_INTEROP_3(CreateIdentifier2, KNativePointer, KNativePointer, KStringPtr, KNativePointer) KNativePointer impl_CreateNumberLiteral(KNativePointer contextPtr, KDouble value) { auto context = reinterpret_cast(contextPtr); @@ -285,12 +223,6 @@ KBoolean impl_IsIdentifier(KNativePointer nodePtr) { } KOALA_INTEROP_1(IsIdentifier, KBoolean, KNativePointer) -KNativePointer impl_CreateIdentifier1(KNativePointer contextPtr, KStringPtr& namePtr) { - auto context = reinterpret_cast(contextPtr); - return GetImpl()->CreateIdentifier1(context, getStringCopy(namePtr)); -} -KOALA_INTEROP_2(CreateIdentifier1, KNativePointer, KNativePointer, KStringPtr) - KNativePointer impl_CreateContextFromString(KNativePointer configPtr, KStringPtr& sourcePtr, KStringPtr& filenamePtr) { auto config = reinterpret_cast(configPtr); return GetImpl()->CreateContextFromString(config, sourcePtr.data(), filenamePtr.data()); @@ -317,19 +249,6 @@ KNativePointer impl_ContextErrorMessage(KNativePointer contextPtr) { } KOALA_INTEROP_1(ContextErrorMessage, KNativePointer, KNativePointer) -KNativePointer impl_CreateClassDefinition1(KNativePointer context, KNativePointer ident, KNativePointerArray body, KUInt bodyLen, KInt modifiers, KInt flags) -{ - const auto _context = reinterpret_cast(context); - const auto _ident = reinterpret_cast(ident); - const auto _body = reinterpret_cast(body); - const auto _bodyLen = static_cast(bodyLen); - const auto _modifiers = static_cast(modifiers); - const auto _flags = static_cast(flags); - const auto result = GetImpl()->CreateClassDefinition1(_context, _ident, _body, _bodyLen, _modifiers, _flags); - return result; -} -KOALA_INTEROP_6(CreateClassDefinition1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KInt, KInt); - KNativePointer impl_CallExpressionSignature(KNativePointer context, KNativePointer classInstance) { const auto _context = reinterpret_cast(context); diff --git a/arkoala-arkts/libarkts/native/src/generated/bridges.cc b/arkoala-arkts/libarkts/native/src/generated/bridges.cc index dc18f5c0f..693b7e9e7 100644 --- a/arkoala-arkts/libarkts/native/src/generated/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/generated/bridges.cc @@ -1028,6 +1028,25 @@ KNativePointer impl_CreateCallExpression(KNativePointer context, KNativePointer } KOALA_INTEROP_7(CreateCallExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KNativePointer, KBoolean, KBoolean); +KNativePointer impl_CreateCallExpression1(KNativePointer context, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->CreateCallExpression1(_context, _other); + return result; +} +KOALA_INTEROP_2(CreateCallExpression1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateCallExpression1(KNativePointer context, KNativePointer original, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->UpdateCallExpression1(_context, _original, _other); + return result; +} +KOALA_INTEROP_3(UpdateCallExpression1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CallExpressionCalleeConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -1436,6 +1455,27 @@ KNativePointer impl_UpdateFunctionDeclaration(KNativePointer context, KNativePoi } KOALA_INTEROP_6(UpdateFunctionDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KBoolean); +KNativePointer impl_CreateFunctionDeclaration1(KNativePointer context, KNativePointer func, KBoolean isAnonymous) +{ + const auto _context = reinterpret_cast(context); + const auto _func = reinterpret_cast(func); + const auto _isAnonymous = static_cast(isAnonymous); + auto result = GetImpl()->CreateFunctionDeclaration1(_context, _func, _isAnonymous); + return result; +} +KOALA_INTEROP_3(CreateFunctionDeclaration1, KNativePointer, KNativePointer, KNativePointer, KBoolean); + +KNativePointer impl_UpdateFunctionDeclaration1(KNativePointer context, KNativePointer original, KNativePointer func, KBoolean isAnonymous) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _func = reinterpret_cast(func); + const auto _isAnonymous = static_cast(isAnonymous); + auto result = GetImpl()->UpdateFunctionDeclaration1(_context, _original, _func, _isAnonymous); + return result; +} +KOALA_INTEROP_4(UpdateFunctionDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KBoolean); + KNativePointer impl_FunctionDeclarationFunction(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -1765,6 +1805,27 @@ KNativePointer impl_UpdateTemplateElement(KNativePointer context, KNativePointer } KOALA_INTEROP_2(UpdateTemplateElement, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateTemplateElement1(KNativePointer context, KStringPtr& raw, KStringPtr& cooked) +{ + const auto _context = reinterpret_cast(context); + const auto _raw = getStringCopy(raw); + const auto _cooked = getStringCopy(cooked); + auto result = GetImpl()->CreateTemplateElement1(_context, _raw, _cooked); + return result; +} +KOALA_INTEROP_3(CreateTemplateElement1, KNativePointer, KNativePointer, KStringPtr, KStringPtr); + +KNativePointer impl_UpdateTemplateElement1(KNativePointer context, KNativePointer original, KStringPtr& raw, KStringPtr& cooked) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _raw = getStringCopy(raw); + const auto _cooked = getStringCopy(cooked); + auto result = GetImpl()->UpdateTemplateElement1(_context, _original, _raw, _cooked); + return result; +} +KOALA_INTEROP_4(UpdateTemplateElement1, KNativePointer, KNativePointer, KNativePointer, KStringPtr, KStringPtr); + KNativePointer impl_TemplateElementRawConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -2296,6 +2357,25 @@ KNativePointer impl_UpdateTSClassImplements(KNativePointer context, KNativePoint } KOALA_INTEROP_4(UpdateTSClassImplements, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateTSClassImplements1(KNativePointer context, KNativePointer expression) +{ + const auto _context = reinterpret_cast(context); + const auto _expression = reinterpret_cast(expression); + auto result = GetImpl()->CreateTSClassImplements1(_context, _expression); + return result; +} +KOALA_INTEROP_2(CreateTSClassImplements1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateTSClassImplements1(KNativePointer context, KNativePointer original, KNativePointer expression) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _expression = reinterpret_cast(expression); + auto result = GetImpl()->UpdateTSClassImplements1(_context, _original, _expression); + return result; +} +KOALA_INTEROP_3(UpdateTSClassImplements1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_TSClassImplementsExpr(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -2574,6 +2654,25 @@ KNativePointer impl_UpdateTSTypeAliasDeclaration(KNativePointer context, KNative } KOALA_INTEROP_5(UpdateTSTypeAliasDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateTSTypeAliasDeclaration1(KNativePointer context, KNativePointer id) +{ + const auto _context = reinterpret_cast(context); + const auto _id = reinterpret_cast(id); + auto result = GetImpl()->CreateTSTypeAliasDeclaration1(_context, _id); + return result; +} +KOALA_INTEROP_2(CreateTSTypeAliasDeclaration1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateTSTypeAliasDeclaration1(KNativePointer context, KNativePointer original, KNativePointer id) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _id = reinterpret_cast(id); + auto result = GetImpl()->UpdateTSTypeAliasDeclaration1(_context, _original, _id); + return result; +} +KOALA_INTEROP_3(UpdateTSTypeAliasDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_TSTypeAliasDeclarationId(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -2705,6 +2804,25 @@ KNativePointer impl_UpdateReturnStatement(KNativePointer context, KNativePointer } KOALA_INTEROP_2(UpdateReturnStatement, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateReturnStatement1(KNativePointer context, KNativePointer argument) +{ + const auto _context = reinterpret_cast(context); + const auto _argument = reinterpret_cast(argument); + auto result = GetImpl()->CreateReturnStatement1(_context, _argument); + return result; +} +KOALA_INTEROP_2(CreateReturnStatement1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateReturnStatement1(KNativePointer context, KNativePointer original, KNativePointer argument) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _argument = reinterpret_cast(argument); + auto result = GetImpl()->UpdateReturnStatement1(_context, _original, _argument); + return result; +} +KOALA_INTEROP_3(UpdateReturnStatement1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ReturnStatementArgument(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -3309,6 +3427,56 @@ KNativePointer impl_UpdateClassDefinition(KNativePointer context, KNativePointer } KOALA_INTEROP_13(UpdateClassDefinition, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KInt, KInt); +KNativePointer impl_CreateClassDefinition1(KNativePointer context, KNativePointer ident, KNativePointerArray body, KUInt bodyLen, KInt modifiers, KInt flags) +{ + const auto _context = reinterpret_cast(context); + const auto _ident = reinterpret_cast(ident); + const auto _body = reinterpret_cast(body); + const auto _bodyLen = static_cast(bodyLen); + const auto _modifiers = static_cast(modifiers); + const auto _flags = static_cast(flags); + auto result = GetImpl()->CreateClassDefinition1(_context, _ident, _body, _bodyLen, _modifiers, _flags); + return result; +} +KOALA_INTEROP_6(CreateClassDefinition1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KInt, KInt); + +KNativePointer impl_UpdateClassDefinition1(KNativePointer context, KNativePointer original, KNativePointer ident, KNativePointerArray body, KUInt bodyLen, KInt modifiers, KInt flags) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _ident = reinterpret_cast(ident); + const auto _body = reinterpret_cast(body); + const auto _bodyLen = static_cast(bodyLen); + const auto _modifiers = static_cast(modifiers); + const auto _flags = static_cast(flags); + auto result = GetImpl()->UpdateClassDefinition1(_context, _original, _ident, _body, _bodyLen, _modifiers, _flags); + return result; +} +KOALA_INTEROP_7(UpdateClassDefinition1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt, KInt, KInt); + +KNativePointer impl_CreateClassDefinition2(KNativePointer context, KNativePointer ident, KInt modifiers, KInt flags) +{ + const auto _context = reinterpret_cast(context); + const auto _ident = reinterpret_cast(ident); + const auto _modifiers = static_cast(modifiers); + const auto _flags = static_cast(flags); + auto result = GetImpl()->CreateClassDefinition2(_context, _ident, _modifiers, _flags); + return result; +} +KOALA_INTEROP_4(CreateClassDefinition2, KNativePointer, KNativePointer, KNativePointer, KInt, KInt); + +KNativePointer impl_UpdateClassDefinition2(KNativePointer context, KNativePointer original, KNativePointer ident, KInt modifiers, KInt flags) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _ident = reinterpret_cast(ident); + const auto _modifiers = static_cast(modifiers); + const auto _flags = static_cast(flags); + auto result = GetImpl()->UpdateClassDefinition2(_context, _original, _ident, _modifiers, _flags); + return result; +} +KOALA_INTEROP_5(UpdateClassDefinition2, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt, KInt); + KNativePointer impl_ClassDefinitionIdentConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -3808,6 +3976,31 @@ KNativePointer impl_UpdateArrayExpression(KNativePointer context, KNativePointer } KOALA_INTEROP_4(UpdateArrayExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); +KNativePointer impl_CreateArrayExpression1(KNativePointer context, KInt nodeType, KNativePointerArray elements, KUInt elementsLen, KBoolean trailingComma) +{ + const auto _context = reinterpret_cast(context); + const auto _nodeType = static_cast(nodeType); + const auto _elements = reinterpret_cast(elements); + const auto _elementsLen = static_cast(elementsLen); + const auto _trailingComma = static_cast(trailingComma); + auto result = GetImpl()->CreateArrayExpression1(_context, _nodeType, _elements, _elementsLen, _trailingComma); + return result; +} +KOALA_INTEROP_5(CreateArrayExpression1, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt, KBoolean); + +KNativePointer impl_UpdateArrayExpression1(KNativePointer context, KNativePointer original, KInt nodeType, KNativePointerArray elements, KUInt elementsLen, KBoolean trailingComma) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _nodeType = static_cast(nodeType); + const auto _elements = reinterpret_cast(elements); + const auto _elementsLen = static_cast(elementsLen); + const auto _trailingComma = static_cast(trailingComma); + auto result = GetImpl()->UpdateArrayExpression1(_context, _original, _nodeType, _elements, _elementsLen, _trailingComma); + return result; +} +KOALA_INTEROP_6(UpdateArrayExpression1, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointerArray, KUInt, KBoolean); + KNativePointer impl_ArrayExpressionElementsConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -4052,6 +4245,33 @@ KNativePointer impl_UpdateProperty(KNativePointer context, KNativePointer origin } KOALA_INTEROP_4(UpdateProperty, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateProperty1(KNativePointer context, KInt kind, KNativePointer key, KNativePointer value, KBoolean isMethod, KBoolean isComputed) +{ + const auto _context = reinterpret_cast(context); + const auto _kind = static_cast(kind); + const auto _key = reinterpret_cast(key); + const auto _value = reinterpret_cast(value); + const auto _isMethod = static_cast(isMethod); + const auto _isComputed = static_cast(isComputed); + auto result = GetImpl()->CreateProperty1(_context, _kind, _key, _value, _isMethod, _isComputed); + return result; +} +KOALA_INTEROP_6(CreateProperty1, KNativePointer, KNativePointer, KInt, KNativePointer, KNativePointer, KBoolean, KBoolean); + +KNativePointer impl_UpdateProperty1(KNativePointer context, KNativePointer original, KInt kind, KNativePointer key, KNativePointer value, KBoolean isMethod, KBoolean isComputed) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _kind = static_cast(kind); + const auto _key = reinterpret_cast(key); + const auto _value = reinterpret_cast(value); + const auto _isMethod = static_cast(isMethod); + const auto _isComputed = static_cast(isComputed); + auto result = GetImpl()->UpdateProperty1(_context, _original, _kind, _key, _value, _isMethod, _isComputed); + return result; +} +KOALA_INTEROP_7(UpdateProperty1, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointer, KNativePointer, KBoolean, KBoolean); + KNativePointer impl_PropertyKey(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -4182,6 +4402,29 @@ KNativePointer impl_UpdateVariableDeclarator(KNativePointer context, KNativePoin } KOALA_INTEROP_4(UpdateVariableDeclarator, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointer); +KNativePointer impl_CreateVariableDeclarator1(KNativePointer context, KInt flag, KNativePointer ident, KNativePointer init) +{ + const auto _context = reinterpret_cast(context); + const auto _flag = static_cast(flag); + const auto _ident = reinterpret_cast(ident); + const auto _init = reinterpret_cast(init); + auto result = GetImpl()->CreateVariableDeclarator1(_context, _flag, _ident, _init); + return result; +} +KOALA_INTEROP_4(CreateVariableDeclarator1, KNativePointer, KNativePointer, KInt, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateVariableDeclarator1(KNativePointer context, KNativePointer original, KInt flag, KNativePointer ident, KNativePointer init) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _flag = static_cast(flag); + const auto _ident = reinterpret_cast(ident); + const auto _init = reinterpret_cast(init); + auto result = GetImpl()->UpdateVariableDeclarator1(_context, _original, _flag, _ident, _init); + return result; +} +KOALA_INTEROP_5(UpdateVariableDeclarator1, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointer, KNativePointer); + KNativePointer impl_VariableDeclaratorInit(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -4246,6 +4489,25 @@ KNativePointer impl_UpdateStringLiteral(KNativePointer context, KNativePointer o } KOALA_INTEROP_2(UpdateStringLiteral, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateStringLiteral1(KNativePointer context, KStringPtr& str) +{ + const auto _context = reinterpret_cast(context); + const auto _str = getStringCopy(str); + auto result = GetImpl()->CreateStringLiteral1(_context, _str); + return result; +} +KOALA_INTEROP_2(CreateStringLiteral1, KNativePointer, KNativePointer, KStringPtr); + +KNativePointer impl_UpdateStringLiteral1(KNativePointer context, KNativePointer original, KStringPtr& str) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _str = getStringCopy(str); + auto result = GetImpl()->UpdateStringLiteral1(_context, _original, _str); + return result; +} +KOALA_INTEROP_3(UpdateStringLiteral1, KNativePointer, KNativePointer, KNativePointer, KStringPtr); + KNativePointer impl_StringLiteralStrConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -4366,6 +4628,46 @@ KNativePointer impl_UpdateETSTuple(KNativePointer context, KNativePointer origin } KOALA_INTEROP_2(UpdateETSTuple, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateETSTuple1(KNativePointer context, KUInt size) +{ + const auto _context = reinterpret_cast(context); + const auto _size = static_cast(size); + auto result = GetImpl()->CreateETSTuple1(_context, _size); + return result; +} +KOALA_INTEROP_2(CreateETSTuple1, KNativePointer, KNativePointer, KUInt); + +KNativePointer impl_UpdateETSTuple1(KNativePointer context, KNativePointer original, KUInt size) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _size = static_cast(size); + auto result = GetImpl()->UpdateETSTuple1(_context, _original, _size); + return result; +} +KOALA_INTEROP_3(UpdateETSTuple1, KNativePointer, KNativePointer, KNativePointer, KUInt); + +KNativePointer impl_CreateETSTuple2(KNativePointer context, KNativePointerArray typeList, KUInt typeListLen) +{ + const auto _context = reinterpret_cast(context); + const auto _typeList = reinterpret_cast(typeList); + const auto _typeListLen = static_cast(typeListLen); + auto result = GetImpl()->CreateETSTuple2(_context, _typeList, _typeListLen); + return result; +} +KOALA_INTEROP_3(CreateETSTuple2, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + +KNativePointer impl_UpdateETSTuple2(KNativePointer context, KNativePointer original, KNativePointerArray typeList, KUInt typeListLen) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _typeList = reinterpret_cast(typeList); + const auto _typeListLen = static_cast(typeListLen); + auto result = GetImpl()->UpdateETSTuple2(_context, _original, _typeList, _typeListLen); + return result; +} +KOALA_INTEROP_4(UpdateETSTuple2, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KUInt impl_ETSTupleGetTupleSizeConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -5707,6 +6009,31 @@ KNativePointer impl_UpdateAssignmentExpression(KNativePointer context, KNativePo } KOALA_INTEROP_5(UpdateAssignmentExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt); +KNativePointer impl_CreateAssignmentExpression1(KNativePointer context, KInt type, KNativePointer left, KNativePointer right, KInt assignmentOperator) +{ + const auto _context = reinterpret_cast(context); + const auto _type = static_cast(type); + const auto _left = reinterpret_cast(left); + const auto _right = reinterpret_cast(right); + const auto _assignmentOperator = static_cast(assignmentOperator); + auto result = GetImpl()->CreateAssignmentExpression1(_context, _type, _left, _right, _assignmentOperator); + return result; +} +KOALA_INTEROP_5(CreateAssignmentExpression1, KNativePointer, KNativePointer, KInt, KNativePointer, KNativePointer, KInt); + +KNativePointer impl_UpdateAssignmentExpression1(KNativePointer context, KNativePointer original, KInt type, KNativePointer left, KNativePointer right, KInt assignmentOperator) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _type = static_cast(type); + const auto _left = reinterpret_cast(left); + const auto _right = reinterpret_cast(right); + const auto _assignmentOperator = static_cast(assignmentOperator); + auto result = GetImpl()->UpdateAssignmentExpression1(_context, _original, _type, _left, _right, _assignmentOperator); + return result; +} +KOALA_INTEROP_6(UpdateAssignmentExpression1, KNativePointer, KNativePointer, KNativePointer, KInt, KNativePointer, KNativePointer, KInt); + KNativePointer impl_AssignmentExpressionLeftConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -6293,6 +6620,27 @@ KNativePointer impl_UpdateFunctionExpression(KNativePointer context, KNativePoin } KOALA_INTEROP_3(UpdateFunctionExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateFunctionExpression1(KNativePointer context, KNativePointer namedExpr, KNativePointer func) +{ + const auto _context = reinterpret_cast(context); + const auto _namedExpr = reinterpret_cast(namedExpr); + const auto _func = reinterpret_cast(func); + auto result = GetImpl()->CreateFunctionExpression1(_context, _namedExpr, _func); + return result; +} +KOALA_INTEROP_3(CreateFunctionExpression1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateFunctionExpression1(KNativePointer context, KNativePointer original, KNativePointer namedExpr, KNativePointer func) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _namedExpr = reinterpret_cast(namedExpr); + const auto _func = reinterpret_cast(func); + auto result = GetImpl()->UpdateFunctionExpression1(_context, _original, _namedExpr, _func); + return result; +} +KOALA_INTEROP_4(UpdateFunctionExpression1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_FunctionExpressionFunctionConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -6809,6 +7157,29 @@ KNativePointer impl_UpdateAnnotationDeclaration(KNativePointer context, KNativeP } KOALA_INTEROP_3(UpdateAnnotationDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateAnnotationDeclaration1(KNativePointer context, KNativePointer expr, KNativePointerArray properties, KUInt propertiesLen) +{ + const auto _context = reinterpret_cast(context); + const auto _expr = reinterpret_cast(expr); + const auto _properties = reinterpret_cast(properties); + const auto _propertiesLen = static_cast(propertiesLen); + auto result = GetImpl()->CreateAnnotationDeclaration1(_context, _expr, _properties, _propertiesLen); + return result; +} +KOALA_INTEROP_4(CreateAnnotationDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + +KNativePointer impl_UpdateAnnotationDeclaration1(KNativePointer context, KNativePointer original, KNativePointer expr, KNativePointerArray properties, KUInt propertiesLen) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _expr = reinterpret_cast(expr); + const auto _properties = reinterpret_cast(properties); + const auto _propertiesLen = static_cast(propertiesLen); + auto result = GetImpl()->UpdateAnnotationDeclaration1(_context, _original, _expr, _properties, _propertiesLen); + return result; +} +KOALA_INTEROP_5(UpdateAnnotationDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_AnnotationDeclarationInternalNameConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -6915,6 +7286,29 @@ KNativePointer impl_UpdateAnnotationUsageIr(KNativePointer context, KNativePoint } KOALA_INTEROP_3(UpdateAnnotationUsageIr, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateAnnotationUsageIr1(KNativePointer context, KNativePointer expr, KNativePointerArray properties, KUInt propertiesLen) +{ + const auto _context = reinterpret_cast(context); + const auto _expr = reinterpret_cast(expr); + const auto _properties = reinterpret_cast(properties); + const auto _propertiesLen = static_cast(propertiesLen); + auto result = GetImpl()->CreateAnnotationUsageIr1(_context, _expr, _properties, _propertiesLen); + return result; +} +KOALA_INTEROP_4(CreateAnnotationUsageIr1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + +KNativePointer impl_UpdateAnnotationUsageIr1(KNativePointer context, KNativePointer original, KNativePointer expr, KNativePointerArray properties, KUInt propertiesLen) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _expr = reinterpret_cast(expr); + const auto _properties = reinterpret_cast(properties); + const auto _propertiesLen = static_cast(propertiesLen); + auto result = GetImpl()->UpdateAnnotationUsageIr1(_context, _original, _expr, _properties, _propertiesLen); + return result; +} +KOALA_INTEROP_5(UpdateAnnotationUsageIr1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + KNativePointer impl_AnnotationUsageIrExpr(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -7349,6 +7743,31 @@ KNativePointer impl_UpdateTSTypeParameter(KNativePointer context, KNativePointer } KOALA_INTEROP_5(UpdateTSTypeParameter, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateTSTypeParameter1(KNativePointer context, KNativePointer name, KNativePointer constraint, KNativePointer defaultType, KInt flags) +{ + const auto _context = reinterpret_cast(context); + const auto _name = reinterpret_cast(name); + const auto _constraint = reinterpret_cast(constraint); + const auto _defaultType = reinterpret_cast(defaultType); + const auto _flags = static_cast(flags); + auto result = GetImpl()->CreateTSTypeParameter1(_context, _name, _constraint, _defaultType, _flags); + return result; +} +KOALA_INTEROP_5(CreateTSTypeParameter1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt); + +KNativePointer impl_UpdateTSTypeParameter1(KNativePointer context, KNativePointer original, KNativePointer name, KNativePointer constraint, KNativePointer defaultType, KInt flags) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _name = reinterpret_cast(name); + const auto _constraint = reinterpret_cast(constraint); + const auto _defaultType = reinterpret_cast(defaultType); + const auto _flags = static_cast(flags); + auto result = GetImpl()->UpdateTSTypeParameter1(_context, _original, _name, _constraint, _defaultType, _flags); + return result; +} +KOALA_INTEROP_6(UpdateTSTypeParameter1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KInt); + KNativePointer impl_TSTypeParameterNameConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -7679,6 +8098,48 @@ KNativePointer impl_UpdateExportNamedDeclaration(KNativePointer context, KNative } KOALA_INTEROP_5(UpdateExportNamedDeclaration, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); +KNativePointer impl_CreateExportNamedDeclaration1(KNativePointer context, KNativePointer decl, KNativePointerArray specifiers, KUInt specifiersLen) +{ + const auto _context = reinterpret_cast(context); + const auto _decl = reinterpret_cast(decl); + const auto _specifiers = reinterpret_cast(specifiers); + const auto _specifiersLen = static_cast(specifiersLen); + auto result = GetImpl()->CreateExportNamedDeclaration1(_context, _decl, _specifiers, _specifiersLen); + return result; +} +KOALA_INTEROP_4(CreateExportNamedDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + +KNativePointer impl_UpdateExportNamedDeclaration1(KNativePointer context, KNativePointer original, KNativePointer decl, KNativePointerArray specifiers, KUInt specifiersLen) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _decl = reinterpret_cast(decl); + const auto _specifiers = reinterpret_cast(specifiers); + const auto _specifiersLen = static_cast(specifiersLen); + auto result = GetImpl()->UpdateExportNamedDeclaration1(_context, _original, _decl, _specifiers, _specifiersLen); + return result; +} +KOALA_INTEROP_5(UpdateExportNamedDeclaration1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); + +KNativePointer impl_CreateExportNamedDeclaration2(KNativePointer context, KNativePointer decl) +{ + const auto _context = reinterpret_cast(context); + const auto _decl = reinterpret_cast(decl); + auto result = GetImpl()->CreateExportNamedDeclaration2(_context, _decl); + return result; +} +KOALA_INTEROP_2(CreateExportNamedDeclaration2, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateExportNamedDeclaration2(KNativePointer context, KNativePointer original, KNativePointer decl) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _decl = reinterpret_cast(decl); + auto result = GetImpl()->UpdateExportNamedDeclaration2(_context, _original, _decl); + return result; +} +KOALA_INTEROP_3(UpdateExportNamedDeclaration2, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ExportNamedDeclarationDeclConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -8546,6 +9007,46 @@ KNativePointer impl_UpdateIdentifier(KNativePointer context, KNativePointer orig } KOALA_INTEROP_2(UpdateIdentifier, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateIdentifier1(KNativePointer context, KStringPtr& name) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + auto result = GetImpl()->CreateIdentifier1(_context, _name); + return result; +} +KOALA_INTEROP_2(CreateIdentifier1, KNativePointer, KNativePointer, KStringPtr); + +KNativePointer impl_UpdateIdentifier1(KNativePointer context, KNativePointer original, KStringPtr& name) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _name = getStringCopy(name); + auto result = GetImpl()->UpdateIdentifier1(_context, _original, _name); + return result; +} +KOALA_INTEROP_3(UpdateIdentifier1, KNativePointer, KNativePointer, KNativePointer, KStringPtr); + +KNativePointer impl_CreateIdentifier2(KNativePointer context, KStringPtr& name, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + auto result = GetImpl()->CreateIdentifier2(_context, _name, _typeAnnotation); + return result; +} +KOALA_INTEROP_3(CreateIdentifier2, KNativePointer, KNativePointer, KStringPtr, KNativePointer); + +KNativePointer impl_UpdateIdentifier2(KNativePointer context, KNativePointer original, KStringPtr& name, KNativePointer typeAnnotation) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _name = getStringCopy(name); + const auto _typeAnnotation = reinterpret_cast(typeAnnotation); + auto result = GetImpl()->UpdateIdentifier2(_context, _original, _name, _typeAnnotation); + return result; +} +KOALA_INTEROP_4(UpdateIdentifier2, KNativePointer, KNativePointer, KNativePointer, KStringPtr, KNativePointer); + KNativePointer impl_IdentifierNameConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -8795,6 +9296,23 @@ void impl_IdentifierSetTsTypeAnnotation(KNativePointer context, KNativePointer r } KOALA_INTEROP_V3(IdentifierSetTsTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateOpaqueTypeNode1(KNativePointer context) +{ + const auto _context = reinterpret_cast(context); + auto result = GetImpl()->CreateOpaqueTypeNode1(_context); + return result; +} +KOALA_INTEROP_1(CreateOpaqueTypeNode1, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateOpaqueTypeNode1(KNativePointer context, KNativePointer original) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + auto result = GetImpl()->UpdateOpaqueTypeNode1(_context, _original); + return result; +} +KOALA_INTEROP_2(UpdateOpaqueTypeNode1, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_CreateBlockStatement(KNativePointer context, KNativePointerArray statementList, KUInt statementListLen) { const auto _context = reinterpret_cast(context); @@ -9370,6 +9888,25 @@ KNativePointer impl_UpdateBreakStatement(KNativePointer context, KNativePointer } KOALA_INTEROP_2(UpdateBreakStatement, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateBreakStatement1(KNativePointer context, KNativePointer ident) +{ + const auto _context = reinterpret_cast(context); + const auto _ident = reinterpret_cast(ident); + auto result = GetImpl()->CreateBreakStatement1(_context, _ident); + return result; +} +KOALA_INTEROP_2(CreateBreakStatement1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateBreakStatement1(KNativePointer context, KNativePointer original, KNativePointer ident) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _ident = reinterpret_cast(ident); + auto result = GetImpl()->UpdateBreakStatement1(_context, _original, _ident); + return result; +} +KOALA_INTEROP_3(UpdateBreakStatement1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_BreakStatementIdentConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -9741,6 +10278,25 @@ KNativePointer impl_UpdateContinueStatement(KNativePointer context, KNativePoint } KOALA_INTEROP_2(UpdateContinueStatement, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateContinueStatement1(KNativePointer context, KNativePointer ident) +{ + const auto _context = reinterpret_cast(context); + const auto _ident = reinterpret_cast(ident); + auto result = GetImpl()->CreateContinueStatement1(_context, _ident); + return result; +} +KOALA_INTEROP_2(CreateContinueStatement1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateContinueStatement1(KNativePointer context, KNativePointer original, KNativePointer ident) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _ident = reinterpret_cast(ident); + auto result = GetImpl()->UpdateContinueStatement1(_context, _original, _ident); + return result; +} +KOALA_INTEROP_3(UpdateContinueStatement1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ContinueStatementIdentConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -9801,6 +10357,25 @@ KNativePointer impl_UpdateETSNewMultiDimArrayInstanceExpression(KNativePointer c } KOALA_INTEROP_5(UpdateETSNewMultiDimArrayInstanceExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); +KNativePointer impl_CreateETSNewMultiDimArrayInstanceExpression1(KNativePointer context, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->CreateETSNewMultiDimArrayInstanceExpression1(_context, _other); + return result; +} +KOALA_INTEROP_2(CreateETSNewMultiDimArrayInstanceExpression1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateETSNewMultiDimArrayInstanceExpression1(KNativePointer context, KNativePointer original, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->UpdateETSNewMultiDimArrayInstanceExpression1(_context, _original, _other); + return result; +} +KOALA_INTEROP_3(UpdateETSNewMultiDimArrayInstanceExpression1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ETSNewMultiDimArrayInstanceExpressionTypeReference(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10018,6 +10593,29 @@ KNativePointer impl_UpdateTSEnumMember(KNativePointer context, KNativePointer or } KOALA_INTEROP_4(UpdateTSEnumMember, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateTSEnumMember1(KNativePointer context, KNativePointer key, KNativePointer init, KBoolean isGenerated) +{ + const auto _context = reinterpret_cast(context); + const auto _key = reinterpret_cast(key); + const auto _init = reinterpret_cast(init); + const auto _isGenerated = static_cast(isGenerated); + auto result = GetImpl()->CreateTSEnumMember1(_context, _key, _init, _isGenerated); + return result; +} +KOALA_INTEROP_4(CreateTSEnumMember1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KBoolean); + +KNativePointer impl_UpdateTSEnumMember1(KNativePointer context, KNativePointer original, KNativePointer key, KNativePointer init, KBoolean isGenerated) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _key = reinterpret_cast(key); + const auto _init = reinterpret_cast(init); + const auto _isGenerated = static_cast(isGenerated); + auto result = GetImpl()->UpdateTSEnumMember1(_context, _original, _key, _init, _isGenerated); + return result; +} +KOALA_INTEROP_5(UpdateTSEnumMember1, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KBoolean); + KNativePointer impl_TSEnumMemberKeyConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10316,6 +10914,25 @@ KNativePointer impl_UpdateArrowFunctionExpression(KNativePointer context, KNativ } KOALA_INTEROP_3(UpdateArrowFunctionExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateArrowFunctionExpression1(KNativePointer context, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->CreateArrowFunctionExpression1(_context, _other); + return result; +} +KOALA_INTEROP_2(CreateArrowFunctionExpression1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateArrowFunctionExpression1(KNativePointer context, KNativePointer original, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->UpdateArrowFunctionExpression1(_context, _original, _other); + return result; +} +KOALA_INTEROP_3(UpdateArrowFunctionExpression1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ArrowFunctionExpressionFunctionConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10334,6 +10951,15 @@ KNativePointer impl_ArrowFunctionExpressionFunction(KNativePointer context, KNat } KOALA_INTEROP_2(ArrowFunctionExpressionFunction, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ArrowFunctionExpressionCreateTypeAnnotation(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->ArrowFunctionExpressionCreateTypeAnnotation(_context, _receiver); + return result; +} +KOALA_INTEROP_2(ArrowFunctionExpressionCreateTypeAnnotation, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ArrowFunctionExpressionAnnotations(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10405,6 +11031,25 @@ KNativePointer impl_UpdateETSNewClassInstanceExpression(KNativePointer context, } KOALA_INTEROP_5(UpdateETSNewClassInstanceExpression, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt); +KNativePointer impl_CreateETSNewClassInstanceExpression1(KNativePointer context, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->CreateETSNewClassInstanceExpression1(_context, _other); + return result; +} +KOALA_INTEROP_2(CreateETSNewClassInstanceExpression1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateETSNewClassInstanceExpression1(KNativePointer context, KNativePointer original, KNativePointer other) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _other = reinterpret_cast(other); + auto result = GetImpl()->UpdateETSNewClassInstanceExpression1(_context, _original, _other); + return result; +} +KOALA_INTEROP_3(UpdateETSNewClassInstanceExpression1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ETSNewClassInstanceExpressionGetTypeRefConst(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10582,6 +11227,15 @@ KNativePointer impl_ForUpdateStatementTestConst(KNativePointer context, KNativeP } KOALA_INTEROP_2(ForUpdateStatementTestConst, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_ForUpdateStatementUpdateConst(KNativePointer context, KNativePointer receiver) +{ + const auto _context = reinterpret_cast(context); + const auto _receiver = reinterpret_cast(receiver); + auto result = GetImpl()->ForUpdateStatementUpdateConst(_context, _receiver); + return (void*)result; +} +KOALA_INTEROP_2(ForUpdateStatementUpdateConst, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ForUpdateStatementBody(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10623,6 +11277,25 @@ KNativePointer impl_UpdateETSTypeReferencePart(KNativePointer context, KNativePo } KOALA_INTEROP_5(UpdateETSTypeReferencePart, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateETSTypeReferencePart1(KNativePointer context, KNativePointer name) +{ + const auto _context = reinterpret_cast(context); + const auto _name = reinterpret_cast(name); + auto result = GetImpl()->CreateETSTypeReferencePart1(_context, _name); + return result; +} +KOALA_INTEROP_2(CreateETSTypeReferencePart1, KNativePointer, KNativePointer, KNativePointer); + +KNativePointer impl_UpdateETSTypeReferencePart1(KNativePointer context, KNativePointer original, KNativePointer name) +{ + const auto _context = reinterpret_cast(context); + const auto _original = reinterpret_cast(original); + const auto _name = reinterpret_cast(name); + auto result = GetImpl()->UpdateETSTypeReferencePart1(_context, _original, _name); + return result; +} +KOALA_INTEROP_3(UpdateETSTypeReferencePart1, KNativePointer, KNativePointer, KNativePointer, KNativePointer); + KNativePointer impl_ETSTypeReferencePartPrevious(KNativePointer context, KNativePointer receiver) { const auto _context = reinterpret_cast(context); @@ -10924,6 +11597,15 @@ KNativePointer impl_UpdateTSThisType(KNativePointer context, KNativePointer orig } KOALA_INTEROP_2(UpdateTSThisType, KNativePointer, KNativePointer, KNativePointer); +KNativePointer impl_CreateETSDynamicFunctionType1(KNativePointer context, KStringPtr& name) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + auto result = GetImpl()->CreateETSDynamicFunctionType1(_context, _name); + return result; +} +KOALA_INTEROP_2(CreateETSDynamicFunctionType1, KNativePointer, KNativePointer, KStringPtr); + KNativePointer impl_CreateInterfaceDecl(KNativePointer context, KStringPtr& name) { const auto _context = reinterpret_cast(context); @@ -10933,6 +11615,16 @@ KNativePointer impl_CreateInterfaceDecl(KNativePointer context, KStringPtr& name } KOALA_INTEROP_2(CreateInterfaceDecl, KNativePointer, KNativePointer, KStringPtr); +KNativePointer impl_CreateInterfaceDecl1(KNativePointer context, KStringPtr& name, KNativePointer declNode) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + const auto _declNode = reinterpret_cast(declNode); + auto result = GetImpl()->CreateInterfaceDecl1(_context, _name, _declNode); + return result; +} +KOALA_INTEROP_3(CreateInterfaceDecl1, KNativePointer, KNativePointer, KStringPtr, KNativePointer); + KNativePointer impl_CreateFunctionDecl(KNativePointer context, KStringPtr& name, KNativePointer node) { const auto _context = reinterpret_cast(context); diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index 2f6fe617e..c635b15b2 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,7 +11,7 @@ "./build/*" ], "config": { - "gen_version": "3.0.15", + "gen_version": "3.0.18", "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/src/es2panda.ts b/arkoala-arkts/libarkts/src/es2panda.ts index 1f1abd6d7..46ba9309b 100644 --- a/arkoala-arkts/libarkts/src/es2panda.ts +++ b/arkoala-arkts/libarkts/src/es2panda.ts @@ -28,7 +28,7 @@ function parseCommandLineArgs() { .option('--ets-module', 'Do nothing, legacy compatibility') .option('--output, ', 'The name of result file') .option('--dump-plugin-ast', 'Dump ast before and after each plugin') - .option('--restart-stages', 'Restart the compiler to proceeed to next stage') + .option('--restart-stages', 'Restart the compiler to proceed to next stage') .parse(process.argv) .opts() diff --git a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts index 1e64f6f80..8d330b0ec 100644 --- a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts @@ -340,6 +340,12 @@ export class Es2pandaNativeModule { _CreateCallExpression(context: KNativePointer, callee: KNativePointer, _arguments: BigUint64Array, argumentsLen: KUInt, typeParams: KNativePointer, optional_arg: KBoolean, trailingComma: KBoolean): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateCallExpression1(context: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateCallExpression1(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _CallExpressionCalleeConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -466,6 +472,12 @@ export class Es2pandaNativeModule { _UpdateFunctionDeclaration(context: KNativePointer, original: KNativePointer, func: KNativePointer, annotations: BigUint64Array, annotationsLen: KUInt, isAnonymous: KBoolean): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateFunctionDeclaration1(context: KNativePointer, func: KNativePointer, isAnonymous: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateFunctionDeclaration1(context: KNativePointer, original: KNativePointer, func: KNativePointer, isAnonymous: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _FunctionDeclarationFunction(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -571,6 +583,12 @@ export class Es2pandaNativeModule { _UpdateTemplateElement(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateTemplateElement1(context: KNativePointer, raw: KStringPtr, cooked: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateTemplateElement1(context: KNativePointer, original: KNativePointer, raw: KStringPtr, cooked: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _TemplateElementRawConst(context: KNativePointer, receiver: KNativePointer): KStringPtr { throw new Error("This methods was not overloaded by native module initialization") } @@ -730,6 +748,12 @@ export class Es2pandaNativeModule { _UpdateTSClassImplements(context: KNativePointer, original: KNativePointer, expression: KNativePointer, typeParameters: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateTSClassImplements1(context: KNativePointer, expression: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateTSClassImplements1(context: KNativePointer, original: KNativePointer, expression: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _TSClassImplementsExpr(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -814,6 +838,12 @@ export class Es2pandaNativeModule { _UpdateTSTypeAliasDeclaration(context: KNativePointer, original: KNativePointer, id: KNativePointer, typeParams: KNativePointer, typeAnnotation: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateTSTypeAliasDeclaration1(context: KNativePointer, id: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateTSTypeAliasDeclaration1(context: KNativePointer, original: KNativePointer, id: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _TSTypeAliasDeclarationId(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -856,6 +886,12 @@ export class Es2pandaNativeModule { _UpdateReturnStatement(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateReturnStatement1(context: KNativePointer, argument: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateReturnStatement1(context: KNativePointer, original: KNativePointer, argument: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ReturnStatementArgument(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1042,6 +1078,18 @@ export class Es2pandaNativeModule { _UpdateClassDefinition(context: KNativePointer, original: KNativePointer, ident: KNativePointer, typeParams: KNativePointer, superTypeParams: KNativePointer, _implements: BigUint64Array, implementsLen: KUInt, ctor: KNativePointer, superClass: KNativePointer, body: BigUint64Array, bodyLen: KUInt, modifiers: KInt, flags: KInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateClassDefinition1(context: KNativePointer, ident: KNativePointer, body: BigUint64Array, bodyLen: KUInt, modifiers: KInt, flags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateClassDefinition1(context: KNativePointer, original: KNativePointer, ident: KNativePointer, body: BigUint64Array, bodyLen: KUInt, modifiers: KInt, flags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _CreateClassDefinition2(context: KNativePointer, ident: KNativePointer, modifiers: KInt, flags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateClassDefinition2(context: KNativePointer, original: KNativePointer, ident: KNativePointer, modifiers: KInt, flags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ClassDefinitionIdentConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1201,6 +1249,12 @@ export class Es2pandaNativeModule { _UpdateArrayExpression(context: KNativePointer, original: KNativePointer, elements: BigUint64Array, elementsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateArrayExpression1(context: KNativePointer, nodeType: KInt, elements: BigUint64Array, elementsLen: KUInt, trailingComma: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateArrayExpression1(context: KNativePointer, original: KNativePointer, nodeType: KInt, elements: BigUint64Array, elementsLen: KUInt, trailingComma: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ArrayExpressionElementsConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1276,6 +1330,12 @@ export class Es2pandaNativeModule { _UpdateProperty(context: KNativePointer, original: KNativePointer, key: KNativePointer, value: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateProperty1(context: KNativePointer, kind: KInt, key: KNativePointer, value: KNativePointer, isMethod: KBoolean, isComputed: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateProperty1(context: KNativePointer, original: KNativePointer, kind: KInt, key: KNativePointer, value: KNativePointer, isMethod: KBoolean, isComputed: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _PropertyKey(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1318,6 +1378,12 @@ export class Es2pandaNativeModule { _UpdateVariableDeclarator(context: KNativePointer, original: KNativePointer, flag: KInt, ident: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateVariableDeclarator1(context: KNativePointer, flag: KInt, ident: KNativePointer, init: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateVariableDeclarator1(context: KNativePointer, original: KNativePointer, flag: KInt, ident: KNativePointer, init: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _VariableDeclaratorInit(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1339,6 +1405,12 @@ export class Es2pandaNativeModule { _UpdateStringLiteral(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateStringLiteral1(context: KNativePointer, str: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateStringLiteral1(context: KNativePointer, original: KNativePointer, str: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _StringLiteralStrConst(context: KNativePointer, receiver: KNativePointer): KStringPtr { throw new Error("This methods was not overloaded by native module initialization") } @@ -1378,6 +1450,18 @@ export class Es2pandaNativeModule { _UpdateETSTuple(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSTuple1(context: KNativePointer, size: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSTuple1(context: KNativePointer, original: KNativePointer, size: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _CreateETSTuple2(context: KNativePointer, typeList: BigUint64Array, typeListLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSTuple2(context: KNativePointer, original: KNativePointer, typeList: BigUint64Array, typeListLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ETSTupleGetTupleSizeConst(context: KNativePointer, receiver: KNativePointer): KUInt { throw new Error("This methods was not overloaded by native module initialization") } @@ -1801,6 +1885,12 @@ export class Es2pandaNativeModule { _UpdateAssignmentExpression(context: KNativePointer, original: KNativePointer, left: KNativePointer, right: KNativePointer, assignmentOperator: KInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateAssignmentExpression1(context: KNativePointer, type: KInt, left: KNativePointer, right: KNativePointer, assignmentOperator: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateAssignmentExpression1(context: KNativePointer, original: KNativePointer, type: KInt, left: KNativePointer, right: KNativePointer, assignmentOperator: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _AssignmentExpressionLeftConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -1984,6 +2074,12 @@ export class Es2pandaNativeModule { _UpdateFunctionExpression(context: KNativePointer, original: KNativePointer, func: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateFunctionExpression1(context: KNativePointer, namedExpr: KNativePointer, func: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateFunctionExpression1(context: KNativePointer, original: KNativePointer, namedExpr: KNativePointer, func: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _FunctionExpressionFunctionConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2143,6 +2239,12 @@ export class Es2pandaNativeModule { _UpdateAnnotationDeclaration(context: KNativePointer, original: KNativePointer, expr: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateAnnotationDeclaration1(context: KNativePointer, expr: KNativePointer, properties: BigUint64Array, propertiesLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateAnnotationDeclaration1(context: KNativePointer, original: KNativePointer, expr: KNativePointer, properties: BigUint64Array, propertiesLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _AnnotationDeclarationInternalNameConst(context: KNativePointer, receiver: KNativePointer): KStringPtr { throw new Error("This methods was not overloaded by native module initialization") } @@ -2176,6 +2278,12 @@ export class Es2pandaNativeModule { _UpdateAnnotationUsageIr(context: KNativePointer, original: KNativePointer, expr: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateAnnotationUsageIr1(context: KNativePointer, expr: KNativePointer, properties: BigUint64Array, propertiesLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateAnnotationUsageIr1(context: KNativePointer, original: KNativePointer, expr: KNativePointer, properties: BigUint64Array, propertiesLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _AnnotationUsageIrExpr(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2308,6 +2416,12 @@ export class Es2pandaNativeModule { _UpdateTSTypeParameter(context: KNativePointer, original: KNativePointer, name: KNativePointer, constraint: KNativePointer, defaultType: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateTSTypeParameter1(context: KNativePointer, name: KNativePointer, constraint: KNativePointer, defaultType: KNativePointer, flags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateTSTypeParameter1(context: KNativePointer, original: KNativePointer, name: KNativePointer, constraint: KNativePointer, defaultType: KNativePointer, flags: KInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _TSTypeParameterNameConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2410,6 +2524,18 @@ export class Es2pandaNativeModule { _UpdateExportNamedDeclaration(context: KNativePointer, original: KNativePointer, source: KNativePointer, specifiers: BigUint64Array, specifiersLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateExportNamedDeclaration1(context: KNativePointer, decl: KNativePointer, specifiers: BigUint64Array, specifiersLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateExportNamedDeclaration1(context: KNativePointer, original: KNativePointer, decl: KNativePointer, specifiers: BigUint64Array, specifiersLen: KUInt): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _CreateExportNamedDeclaration2(context: KNativePointer, decl: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateExportNamedDeclaration2(context: KNativePointer, original: KNativePointer, decl: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ExportNamedDeclarationDeclConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2680,6 +2806,18 @@ export class Es2pandaNativeModule { _UpdateIdentifier(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateIdentifier1(context: KNativePointer, name: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateIdentifier1(context: KNativePointer, original: KNativePointer, name: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _CreateIdentifier2(context: KNativePointer, name: KStringPtr, typeAnnotation: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateIdentifier2(context: KNativePointer, original: KNativePointer, name: KStringPtr, typeAnnotation: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _IdentifierNameConst(context: KNativePointer, receiver: KNativePointer): KStringPtr { throw new Error("This methods was not overloaded by native module initialization") } @@ -2761,6 +2899,12 @@ export class Es2pandaNativeModule { _IdentifierSetTsTypeAnnotation(context: KNativePointer, receiver: KNativePointer, typeAnnotation: KNativePointer): void { throw new Error("This methods was not overloaded by native module initialization") } + _CreateOpaqueTypeNode1(context: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateOpaqueTypeNode1(context: KNativePointer, original: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateBlockStatement(context: KNativePointer, statementList: BigUint64Array, statementListLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -2938,6 +3082,12 @@ export class Es2pandaNativeModule { _UpdateBreakStatement(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateBreakStatement1(context: KNativePointer, ident: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateBreakStatement1(context: KNativePointer, original: KNativePointer, ident: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _BreakStatementIdentConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3055,6 +3205,12 @@ export class Es2pandaNativeModule { _UpdateContinueStatement(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateContinueStatement1(context: KNativePointer, ident: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateContinueStatement1(context: KNativePointer, original: KNativePointer, ident: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ContinueStatementIdentConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3073,6 +3229,12 @@ export class Es2pandaNativeModule { _UpdateETSNewMultiDimArrayInstanceExpression(context: KNativePointer, original: KNativePointer, typeReference: KNativePointer, dimensions: BigUint64Array, dimensionsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSNewMultiDimArrayInstanceExpression1(context: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSNewMultiDimArrayInstanceExpression1(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ETSNewMultiDimArrayInstanceExpressionTypeReference(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3142,6 +3304,12 @@ export class Es2pandaNativeModule { _UpdateTSEnumMember(context: KNativePointer, original: KNativePointer, key: KNativePointer, init: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateTSEnumMember1(context: KNativePointer, key: KNativePointer, init: KNativePointer, isGenerated: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateTSEnumMember1(context: KNativePointer, original: KNativePointer, key: KNativePointer, init: KNativePointer, isGenerated: KBoolean): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _TSEnumMemberKeyConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3235,12 +3403,21 @@ export class Es2pandaNativeModule { _UpdateArrowFunctionExpression(context: KNativePointer, original: KNativePointer, func: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateArrowFunctionExpression1(context: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateArrowFunctionExpression1(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ArrowFunctionExpressionFunctionConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } _ArrowFunctionExpressionFunction(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _ArrowFunctionExpressionCreateTypeAnnotation(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ArrowFunctionExpressionAnnotations(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3262,6 +3439,12 @@ export class Es2pandaNativeModule { _UpdateETSNewClassInstanceExpression(context: KNativePointer, original: KNativePointer, typeReference: KNativePointer, _arguments: BigUint64Array, argumentsLen: KUInt): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSNewClassInstanceExpression1(context: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSNewClassInstanceExpression1(context: KNativePointer, original: KNativePointer, other: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ETSNewClassInstanceExpressionGetTypeRefConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3316,6 +3499,9 @@ export class Es2pandaNativeModule { _ForUpdateStatementTestConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _ForUpdateStatementUpdateConst(context: KNativePointer, receiver: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ForUpdateStatementBody(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3328,6 +3514,12 @@ export class Es2pandaNativeModule { _UpdateETSTypeReferencePart(context: KNativePointer, original: KNativePointer, name: KNativePointer, typeParams: KNativePointer, prev: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSTypeReferencePart1(context: KNativePointer, name: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } + _UpdateETSTypeReferencePart1(context: KNativePointer, original: KNativePointer, name: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _ETSTypeReferencePartPrevious(context: KNativePointer, receiver: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } @@ -3421,9 +3613,15 @@ export class Es2pandaNativeModule { _UpdateTSThisType(context: KNativePointer, original: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateETSDynamicFunctionType1(context: KNativePointer, name: KStringPtr): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateInterfaceDecl(context: KNativePointer, name: KStringPtr): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _CreateInterfaceDecl1(context: KNativePointer, name: KStringPtr, declNode: KNativePointer): KNativePointer { + throw new Error("This methods was not overloaded by native module initialization") + } _CreateFunctionDecl(context: KNativePointer, name: KStringPtr, node: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index 4b7023061..a5cf8ce4a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -36,6 +36,15 @@ export class AnnotationDeclaration extends Statement { static createAnnotationDeclaration(expr: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration(global.context, passNode(expr))) } + static updateAnnotationDeclaration(original: AnnotationDeclaration, expr: Expression): AnnotationDeclaration { + return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr))) + } + static create1AnnotationDeclaration(expr: Expression, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { + return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) + } + static update1AnnotationDeclaration(original: AnnotationDeclaration, expr: Expression, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { + return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) + } get internalNameConst(): string { return global.generatedEs2panda._AnnotationDeclarationInternalNameConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index 2388e4afa..9540b3743 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -36,6 +36,15 @@ export class AnnotationUsage extends Statement { static createAnnotationUsage(expr: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr(global.context, passNode(expr))) } + static updateAnnotationUsage(original: AnnotationUsage, expr: Expression): AnnotationUsage { + return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr(global.context, passNode(original), passNode(expr))) + } + static create1AnnotationUsage(expr: Expression, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { + return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) + } + static update1AnnotationUsage(original: AnnotationUsage, expr: Expression, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { + return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) + } get expr(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AnnotationUsageIrExpr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index eeef78202..07063bafb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -37,6 +37,15 @@ export class ArrowFunctionExpression extends Expression { static createArrowFunctionExpression(func: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func))) } + static updateArrowFunctionExpression(original: ArrowFunctionExpression, func: ScriptFunction): ArrowFunctionExpression { + return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func))) + } + static create1ArrowFunctionExpression(other: ArrowFunctionExpression): ArrowFunctionExpression { + return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression1(global.context, passNode(other))) + } + static update1ArrowFunctionExpression(original: ArrowFunctionExpression, other: ArrowFunctionExpression): ArrowFunctionExpression { + return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other))) + } get functionConst(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._ArrowFunctionExpressionFunctionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index 828b19735..84532cce6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -36,6 +36,9 @@ export class AssertStatement extends Statement { 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 { + return new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second))) + } get testConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AssertStatementTestConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts index 4938155ee..6e5c88e09 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts @@ -53,9 +53,6 @@ export abstract class AssignmentExpression extends Expression { get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._AssignmentExpressionOperatorTypeConst(global.context, this.peer) } - setOperatorType(tokenType: Es2pandaTokenType): Es2pandaTokenType { - return global.generatedEs2panda._AssignmentExpressionSetOperatorType(global.context, this.peer, tokenType) - } get isLogicalExtendedConst(): boolean { return global.generatedEs2panda._AssignmentExpressionIsLogicalExtendedConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index d8edc4708..b386dd389 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -35,6 +35,9 @@ export class AwaitExpression extends Expression { static createAwaitExpression(argument: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument))) } + static updateAwaitExpression(original: AwaitExpression, argument: Expression): AwaitExpression { + return new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument))) + } get argumentConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._AwaitExpressionArgumentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index 3cc4e2b3d..33e3ad477 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -35,6 +35,9 @@ export class BigIntLiteral extends Literal { static createBigIntLiteral(src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src)) } + static updateBigIntLiteral(original: BigIntLiteral, src: string): BigIntLiteral { + return new BigIntLiteral(global.generatedEs2panda._UpdateBigIntLiteral(global.context, passNode(original), src)) + } get strConst(): string { return global.generatedEs2panda._BigIntLiteralStrConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index 4fa0f31d7..e5dd878a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -36,6 +36,9 @@ export class BinaryExpression extends Expression { static createBinaryExpression(left: Expression, right: Expression, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType)) } + static updateBinaryExpression(original: BinaryExpression, left: Expression, right: Expression, operatorType: Es2pandaTokenType): BinaryExpression { + return new BinaryExpression(global.generatedEs2panda._UpdateBinaryExpression(global.context, passNode(original), passNode(left), passNode(right), operatorType)) + } get leftConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._BinaryExpressionLeftConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index 114865635..a84c6031e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -35,6 +35,9 @@ export class BooleanLiteral extends Literal { static createBooleanLiteral(value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value)) } + static updateBooleanLiteral(original: BooleanLiteral, value: boolean): BooleanLiteral { + return new BooleanLiteral(global.generatedEs2panda._UpdateBooleanLiteral(global.context, passNode(original), value)) + } get valueConst(): boolean { return global.generatedEs2panda._BooleanLiteralValueConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index d66f4ccd4..f70e63cef 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -36,6 +36,15 @@ export class BreakStatement extends Statement { static createBreakStatement(): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement(global.context)) } + static updateBreakStatement(original: BreakStatement): BreakStatement { + return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement(global.context, passNode(original))) + } + static create1BreakStatement(ident: Identifier): BreakStatement { + return new BreakStatement(global.generatedEs2panda._CreateBreakStatement1(global.context, passNode(ident))) + } + static update1BreakStatement(original: BreakStatement, ident: Identifier): BreakStatement { + return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement1(global.context, passNode(original), passNode(ident))) + } get identConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._BreakStatementIdentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index fd6025514..aa64c4645 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -38,6 +38,12 @@ export class CallExpression extends MaybeOptionalExpression { static createCallExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, 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 { + return new CallExpression(global.generatedEs2panda._CreateCallExpression1(global.context, passNode(other))) + } + static update1CallExpression(original: CallExpression, other: CallExpression): CallExpression { + return new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other))) + } get calleeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._CallExpressionCalleeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index c50d4e896..57e462e5d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -37,6 +37,9 @@ export class CatchClause extends TypedStatement { 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 { + return new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body))) + } get param(): Expression { return unpackNonNullableNode(global.generatedEs2panda._CatchClauseParam(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index 319a5a38a..24d7422ca 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -35,6 +35,9 @@ export class ChainExpression extends Expression { static createChainExpression(expression: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression))) } + static updateChainExpression(original: ChainExpression, expression: Expression): ChainExpression { + return new ChainExpression(global.generatedEs2panda._UpdateChainExpression(global.context, passNode(original), passNode(expression))) + } get getExpressionConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ChainExpressionGetExpressionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index 3b7818a1a..11781c75e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -35,6 +35,9 @@ export class CharLiteral extends Literal { static createCharLiteral(): CharLiteral { return new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 335c9cca3..d9e679bc7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -37,6 +37,9 @@ export class ClassDeclaration extends Statement { static createClassDeclaration(def: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def))) } + static updateClassDeclaration(original: ClassDeclaration, def: ClassDefinition): ClassDeclaration { + return new ClassDeclaration(global.generatedEs2panda._UpdateClassDeclaration(global.context, passNode(original), passNode(def))) + } get definition(): ClassDefinition { return unpackNonNullableNode(global.generatedEs2panda._ClassDeclarationDefinition(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index d657fb0d3..c14ce11f6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -46,6 +46,21 @@ export class ClassDefinition extends TypedAstNode { static createClassDefinition(ident: Identifier, typeParams: TSTypeParameterDeclaration, superTypeParams: TSTypeParameterInstantiation, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition, superClass: Expression, 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, ident: Identifier, typeParams: TSTypeParameterDeclaration, superTypeParams: TSTypeParameterInstantiation, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition, superClass: Expression, 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, 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, ident: Identifier, 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, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { + return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition2(global.context, passNode(ident), modifiers, flags)) + } + static update2ClassDefinition(original: ClassDefinition, ident: Identifier, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { + return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags)) + } get identConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ClassDefinitionIdentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index fefb50575..7981edc66 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -36,6 +36,9 @@ export class ClassExpression extends Expression { static createClassExpression(def: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def))) } + static updateClassExpression(original: ClassExpression, def: ClassDefinition): ClassExpression { + return new ClassExpression(global.generatedEs2panda._UpdateClassExpression(global.context, passNode(original), passNode(def))) + } get definitionConst(): ClassDefinition { return unpackNonNullableNode(global.generatedEs2panda._ClassExpressionDefinitionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index 81870ef65..52943eab0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -39,6 +39,9 @@ export class ClassProperty extends ClassElement { static createClassProperty(key: Expression, value: Expression, typeAnnotation: TypeNode, 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, key: Expression, value: Expression, typeAnnotation: TypeNode, 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 { return unpackNonNullableNode(global.generatedEs2panda._ClassPropertyTypeAnnotationConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index 79e41caaf..cd45ddedb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -36,6 +36,9 @@ export class ClassStaticBlock extends ClassElement { static createClassStaticBlock(value: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value))) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index 925b9c672..09f94a47a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -35,6 +35,9 @@ export class ConditionalExpression extends Expression { 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 { + return new ConditionalExpression(global.generatedEs2panda._UpdateConditionalExpression(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate))) + } get testConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ConditionalExpressionTestConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index 8e3c9ce6d..ed8568f1b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -36,6 +36,15 @@ export class ContinueStatement extends Statement { static createContinueStatement(): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement(global.context)) } + static updateContinueStatement(original: ContinueStatement): ContinueStatement { + return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement(global.context, passNode(original))) + } + static create1ContinueStatement(ident: Identifier): ContinueStatement { + return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement1(global.context, passNode(ident))) + } + static update1ContinueStatement(original: ContinueStatement, ident: Identifier): ContinueStatement { + return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement1(global.context, passNode(original), passNode(ident))) + } get identConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ContinueStatementIdentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index 53da51881..5a914834f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -35,6 +35,9 @@ export class DebuggerStatement extends Statement { static createDebuggerStatement(): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index 5c986b1f7..65d6c7f2a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -36,6 +36,9 @@ export class Decorator extends Statement { static createDecorator(expr: Expression): Decorator { return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))) } + static updateDecorator(original: Decorator, expr: Expression): Decorator { + return new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._DecoratorExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index 558c1285f..c97c96040 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -37,6 +37,9 @@ export class DirectEvalExpression extends CallExpression { static createDirectEvalExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, 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, callee: Expression, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation, 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index cccdd0a19..9c382a683 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -36,6 +36,9 @@ export class ETSClassLiteral extends Expression { static createETSClassLiteral(expr: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr))) } + static updateETSClassLiteral(original: ETSClassLiteral, expr: TypeNode): ETSClassLiteral { + return new ETSClassLiteral(global.generatedEs2panda._UpdateETSClassLiteral(global.context, passNode(original), passNode(expr))) + } get exprConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSClassLiteralExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index f883843e6..fcde2a20d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -36,6 +36,9 @@ export class ETSLaunchExpression extends Expression { static createETSLaunchExpression(expr: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._CreateETSLaunchExpression(global.context, passNode(expr))) } + static updateETSLaunchExpression(original: ETSLaunchExpression, expr: CallExpression): ETSLaunchExpression { + return new ETSLaunchExpression(global.generatedEs2panda._UpdateETSLaunchExpression(global.context, passNode(original), passNode(expr))) + } get callConst(): CallExpression { return unpackNonNullableNode(global.generatedEs2panda._ETSLaunchExpressionCallConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index eea4388b4..eb413a1e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -36,6 +36,9 @@ export class ETSNewArrayInstanceExpression extends Expression { 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 { + return new ETSNewArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNode(dimension))) + } get typeReference(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSNewArrayInstanceExpressionTypeReference(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index 5f97e1417..15651fb0b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -35,6 +35,15 @@ export class ETSNewClassInstanceExpression extends Expression { static createETSNewClassInstanceExpression(typeReference: Expression, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } + static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression, typeReference: Expression, _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 { + return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression1(global.context, passNode(other))) + } + static update1ETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression, other: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { + return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression1(global.context, passNode(original), passNode(other))) + } get getTypeRefConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ETSNewClassInstanceExpressionGetTypeRefConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index b5099f6f0..7ff65b3b2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -36,6 +36,15 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } + static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression, typeReference: TypeNode, 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 { + return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(other))) + } + static update1ETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression, other: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { + return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(original), passNode(other))) + } get typeReference(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ETSNewMultiDimArrayInstanceExpressionTypeReference(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index 978a1e539..74fbe7279 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -35,6 +35,9 @@ export class ETSNullType extends TypeNode { static createETSNullType(): ETSNullType { return new ETSNullType(global.generatedEs2panda._CreateETSNullTypeIr(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index 4ad0d38a8..b0738dcad 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -36,6 +36,9 @@ export class ETSPackageDeclaration extends Statement { static createETSPackageDeclaration(name: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._CreateETSPackageDeclaration(global.context, passNode(name))) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index e83c32c6e..89b4294e3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -37,6 +37,9 @@ export class ETSParameterExpression extends Expression { 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 { + return new ETSParameterExpression(global.generatedEs2panda._UpdateETSParameterExpression(global.context, passNode(original), passNode(identOrSpread), passNode(initializer))) + } get isDefaultConst(): boolean { return global.generatedEs2panda._ETSParameterExpressionIsDefaultConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index b38e567cc..0e59f8a52 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -36,6 +36,9 @@ export class ETSPrimitiveType extends TypeNode { static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._CreateETSPrimitiveType(global.context, type)) } + static updateETSPrimitiveType(original: ETSPrimitiveType, type: Es2pandaPrimitiveType): ETSPrimitiveType { + return new ETSPrimitiveType(global.generatedEs2panda._UpdateETSPrimitiveType(global.context, passNode(original), type)) + } get getPrimitiveTypeConst(): Es2pandaPrimitiveType { return global.generatedEs2panda._ETSPrimitiveTypeGetPrimitiveTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index dd0a04ca1..a4a0e8283 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -36,6 +36,9 @@ export class ETSStructDeclaration extends ClassDeclaration { static createETSStructDeclaration(def: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._CreateETSStructDeclaration(global.context, passNode(def))) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index 067f892c2..86ef2bba4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -35,6 +35,21 @@ export class ETSTuple extends TypeNode { static createETSTuple(): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple(global.context)) } + static updateETSTuple(original: ETSTuple): ETSTuple { + return new ETSTuple(global.generatedEs2panda._UpdateETSTuple(global.context, passNode(original))) + } + static create1ETSTuple(size: number): ETSTuple { + return new ETSTuple(global.generatedEs2panda._CreateETSTuple1(global.context, size)) + } + static update1ETSTuple(original: ETSTuple, size: number): ETSTuple { + return new ETSTuple(global.generatedEs2panda._UpdateETSTuple1(global.context, passNode(original), size)) + } + static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple { + return new ETSTuple(global.generatedEs2panda._CreateETSTuple2(global.context, passNodeArray(typeList), typeListLen)) + } + static update2ETSTuple(original: ETSTuple, typeList: readonly TypeNode[], typeListLen: number): ETSTuple { + return new ETSTuple(global.generatedEs2panda._UpdateETSTuple2(global.context, passNode(original), passNodeArray(typeList), typeListLen)) + } get getTupleSizeConst(): number { return global.generatedEs2panda._ETSTupleGetTupleSizeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index 726c5accf..8db1c8496 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -36,6 +36,9 @@ export class ETSTypeReference extends TypeNode { static createETSTypeReference(part: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._CreateETSTypeReference(global.context, passNode(part))) } + static updateETSTypeReference(original: ETSTypeReference, part: ETSTypeReferencePart): ETSTypeReference { + return new ETSTypeReference(global.generatedEs2panda._UpdateETSTypeReference(global.context, passNode(original), passNode(part))) + } get part(): ETSTypeReferencePart { return unpackNonNullableNode(global.generatedEs2panda._ETSTypeReferencePart(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index 4db47d37f..d48f5c434 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -37,6 +37,15 @@ export class ETSTypeReferencePart extends TypeNode { 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 { + return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart(global.context, passNode(original), passNode(name), passNode(typeParams), passNode(prev))) + } + static create1ETSTypeReferencePart(name: Expression): ETSTypeReferencePart { + return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart1(global.context, passNode(name))) + } + static update1ETSTypeReferencePart(original: ETSTypeReferencePart, name: Expression): ETSTypeReferencePart { + return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart1(global.context, passNode(original), passNode(name))) + } get previous(): ETSTypeReferencePart { return unpackNonNullableNode(global.generatedEs2panda._ETSTypeReferencePartPrevious(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index d3474d6e3..4bf7416aa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -35,6 +35,9 @@ export class ETSUndefinedType extends TypeNode { static createETSUndefinedType(): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._CreateETSUndefinedTypeIr(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index 2f722fd52..8a76d684f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -35,6 +35,9 @@ export class ETSUnionType extends TypeNode { static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._CreateETSUnionTypeIr(global.context, passNodeArray(types), typesLen)) } + static updateETSUnionType(original: ETSUnionType, types: readonly TypeNode[], typesLen: number): ETSUnionType { + return new ETSUnionType(global.generatedEs2panda._UpdateETSUnionTypeIr(global.context, passNode(original), passNodeArray(types), typesLen)) + } get typesConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._ETSUnionTypeIrTypesConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index 34386fb64..ef9df2213 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -37,6 +37,9 @@ export class ETSWildcardType extends TypeNode { static createETSWildcardType(typeReference: ETSTypeReference, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._CreateETSWildcardType(global.context, passNode(typeReference), flags)) } + static updateETSWildcardType(original: ETSWildcardType, typeReference: ETSTypeReference, flags: Es2pandaModifierFlags): ETSWildcardType { + return new ETSWildcardType(global.generatedEs2panda._UpdateETSWildcardType(global.context, passNode(original), passNode(typeReference), flags)) + } get typeReference(): ETSTypeReference { return unpackNonNullableNode(global.generatedEs2panda._ETSWildcardTypeTypeReference(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index c870b20f9..9a4b3e0d6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -35,6 +35,9 @@ export class EmptyStatement extends Statement { static createEmptyStatement(): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._CreateEmptyStatement(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index 2048971ac..b6622ec55 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -37,6 +37,9 @@ export class ExportAllDeclaration extends Statement { 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 { + return new ExportAllDeclaration(global.generatedEs2panda._UpdateExportAllDeclaration(global.context, passNode(original), passNode(source), passNode(exported))) + } get sourceConst(): StringLiteral { return unpackNonNullableNode(global.generatedEs2panda._ExportAllDeclarationSourceConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index c8a2e3c4b..8ac9146ba 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -35,6 +35,9 @@ export class ExportDefaultDeclaration extends Statement { static createExportDefaultDeclaration(decl: AstNode, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._CreateExportDefaultDeclaration(global.context, passNode(decl), exportEquals)) } + static updateExportDefaultDeclaration(original: ExportDefaultDeclaration, decl: AstNode, exportEquals: boolean): ExportDefaultDeclaration { + return new ExportDefaultDeclaration(global.generatedEs2panda._UpdateExportDefaultDeclaration(global.context, passNode(original), passNode(decl), exportEquals)) + } get decl(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._ExportDefaultDeclarationDecl(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index 959e58005..1642077d0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -37,6 +37,21 @@ export class ExportNamedDeclaration extends Statement { static createExportNamedDeclaration(source: StringLiteral, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen)) } + static updateExportNamedDeclaration(original: ExportNamedDeclaration, source: StringLiteral, 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, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { + return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration1(global.context, passNode(decl), passNodeArray(specifiers), specifiersLen)) + } + static update1ExportNamedDeclaration(original: ExportNamedDeclaration, decl: AstNode, 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 { + return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration2(global.context, passNode(decl))) + } + static update2ExportNamedDeclaration(original: ExportNamedDeclaration, decl: AstNode): ExportNamedDeclaration { + return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration2(global.context, passNode(original), passNode(decl))) + } get declConst(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._ExportNamedDeclarationDeclConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 64c95c0ab..b2b3efefd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -36,6 +36,9 @@ export class ExportSpecifier extends Statement { 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 { + return new ExportSpecifier(global.generatedEs2panda._UpdateExportSpecifier(global.context, passNode(original), passNode(local), passNode(exported))) + } get localConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ExportSpecifierLocalConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index 23352c7c2..2500f2361 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -36,6 +36,9 @@ export class ExpressionStatement extends Statement { static createExpressionStatement(expr: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._CreateExpressionStatement(global.context, passNode(expr))) } + static updateExpressionStatement(original: ExpressionStatement, expr: Expression): ExpressionStatement { + return new ExpressionStatement(global.generatedEs2panda._UpdateExpressionStatement(global.context, passNode(original), passNode(expr))) + } get getExpressionConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ExpressionStatementGetExpressionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts index 3be5ed0ee..0380c73ef 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -46,6 +46,9 @@ export class ForUpdateStatement extends LoopStatement { get testConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ForUpdateStatementTestConst(global.context, this.peer)) } + get updateConst(): Expression { + return unpackNonNullableNode(global.generatedEs2panda._ForUpdateStatementUpdateConst(global.context, this.peer)) + } get body(): Statement { return unpackNonNullableNode(global.generatedEs2panda._ForUpdateStatementBody(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index e2305d83d..26c3d1c7e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -37,6 +37,15 @@ export class FunctionDeclaration extends Statement { static createFunctionDeclaration(func: ScriptFunction, 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, func: ScriptFunction, 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, isAnonymous: boolean): FunctionDeclaration { + return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration1(global.context, passNode(func), isAnonymous)) + } + static update1FunctionDeclaration(original: FunctionDeclaration, func: ScriptFunction, isAnonymous: boolean): FunctionDeclaration { + return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration1(global.context, passNode(original), passNode(func), isAnonymous)) + } get function(): ScriptFunction { return unpackNonNullableNode(global.generatedEs2panda._FunctionDeclarationFunction(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index eab65b518..4d90b1061 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -37,6 +37,15 @@ export class FunctionExpression extends Expression { static createFunctionExpression(func: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression(global.context, passNode(func))) } + 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 { + return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression1(global.context, passNode(namedExpr), passNode(func))) + } + 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 { return unpackNonNullableNode(global.generatedEs2panda._FunctionExpressionFunctionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 962505a65..f6272201a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -26,8 +26,8 @@ import { } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" -import { Decorator } from "./Decorator" import { TypeNode } from "./TypeNode" +import { Decorator } from "./Decorator" export class Identifier extends AnnotatedExpression { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 36) @@ -37,6 +37,21 @@ export class Identifier extends AnnotatedExpression { static createIdentifier(): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier(global.context)) } + static updateIdentifier(original: Identifier): Identifier { + return new Identifier(global.generatedEs2panda._UpdateIdentifier(global.context, passNode(original))) + } + static create1Identifier(name: string): Identifier { + return new Identifier(global.generatedEs2panda._CreateIdentifier1(global.context, name)) + } + static update1Identifier(original: Identifier, name: string): Identifier { + return new Identifier(global.generatedEs2panda._UpdateIdentifier1(global.context, passNode(original), name)) + } + static create2Identifier(name: string, typeAnnotation: TypeNode): Identifier { + return new Identifier(global.generatedEs2panda._CreateIdentifier2(global.context, name, passNode(typeAnnotation))) + } + static update2Identifier(original: Identifier, name: string, typeAnnotation: TypeNode): Identifier { + return new Identifier(global.generatedEs2panda._UpdateIdentifier2(global.context, passNode(original), name, passNode(typeAnnotation))) + } get nameConst(): string { return global.generatedEs2panda._IdentifierNameConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index dbbf4a175..c1dc57159 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -37,6 +37,9 @@ export class ImportDeclaration extends Statement { static createImportDeclaration(source: StringLiteral, 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, source: StringLiteral, 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 { return unpackNonNullableNode(global.generatedEs2panda._ImportDeclarationSourceConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index d0e45d18f..5042153ba 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -36,6 +36,9 @@ export class ImportDefaultSpecifier extends Statement { static createImportDefaultSpecifier(local: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._CreateImportDefaultSpecifier(global.context, passNode(local))) } + static updateImportDefaultSpecifier(original: ImportDefaultSpecifier, local: Identifier): ImportDefaultSpecifier { + return new ImportDefaultSpecifier(global.generatedEs2panda._UpdateImportDefaultSpecifier(global.context, passNode(original), passNode(local))) + } get localConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ImportDefaultSpecifierLocalConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index 6a234d919..540ffdae0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -35,6 +35,9 @@ export class ImportExpression extends Expression { static createImportExpression(source: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._CreateImportExpression(global.context, passNode(source))) } + static updateImportExpression(original: ImportExpression, source: Expression): ImportExpression { + return new ImportExpression(global.generatedEs2panda._UpdateImportExpression(global.context, passNode(original), passNode(source))) + } get source(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ImportExpressionSource(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index c873b9d87..dfac39402 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -36,6 +36,9 @@ export class ImportNamespaceSpecifier extends Statement { static createImportNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._CreateImportNamespaceSpecifier(global.context, passNode(local))) } + static updateImportNamespaceSpecifier(original: ImportNamespaceSpecifier, local: Identifier): ImportNamespaceSpecifier { + return new ImportNamespaceSpecifier(global.generatedEs2panda._UpdateImportNamespaceSpecifier(global.context, passNode(original), passNode(local))) + } get local(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ImportNamespaceSpecifierLocal(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index a79839cc0..b1886782c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -36,6 +36,9 @@ export class ImportSpecifier extends Statement { 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 { + return new ImportSpecifier(global.generatedEs2panda._UpdateImportSpecifier(global.context, passNode(original), passNode(imported), passNode(local))) + } get imported(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._ImportSpecifierImported(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index 1feb7ff56..97db9b369 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -37,6 +37,9 @@ export class MemberExpression extends MaybeOptionalExpression { static createMemberExpression(object_arg: Expression, property: Expression, 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, object_arg: Expression, property: Expression, 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 { return unpackNonNullableNode(global.generatedEs2panda._MemberExpressionObject(global.context, this.peer)) } @@ -55,9 +58,6 @@ export class MemberExpression extends MaybeOptionalExpression { get kindConst(): Es2pandaMemberExpressionKind { return global.generatedEs2panda._MemberExpressionKindConst(global.context, this.peer) } - hasMemberKindConst(kind: Es2pandaMemberExpressionKind): boolean { - return global.generatedEs2panda._MemberExpressionHasMemberKindConst(global.context, this.peer, kind) - } get isIgnoreBoxConst(): boolean { return global.generatedEs2panda._MemberExpressionIsIgnoreBoxConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index 2f82be27d..e5635c47c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -36,6 +36,9 @@ export class MetaProperty extends Expression { static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind)) } + static updateMetaProperty(original: MetaProperty, kind: Es2pandaMetaPropertyKind): MetaProperty { + return new MetaProperty(global.generatedEs2panda._UpdateMetaProperty(global.context, passNode(original), kind)) + } get kindConst(): Es2pandaMetaPropertyKind { return global.generatedEs2panda._MetaPropertyKindConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index c290c9e73..2b30d77ac 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -38,6 +38,9 @@ export class MethodDefinition extends ClassElement { static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression, value: Expression, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed)) } + static updateMethodDefinition(original: MethodDefinition, kind: Es2pandaMethodDefinitionKind, key: Expression, value: Expression, 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 { return global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer) } @@ -62,9 +65,6 @@ export class MethodDefinition extends ClassElement { get asyncPairMethod(): MethodDefinition { return unpackNonNullableNode(global.generatedEs2panda._MethodDefinitionAsyncPairMethod(global.context, this.peer)) } - hasOverload(overload: MethodDefinition): boolean { - return global.generatedEs2panda._MethodDefinitionHasOverload(global.context, this.peer, passNode(overload)) - } } export function isMethodDefinition(node: AstNode): node is MethodDefinition { return node instanceof MethodDefinition diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index 848b613a9..b1470f1dc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -37,6 +37,9 @@ export class NamedType extends TypeNode { static createNamedType(name: Identifier): NamedType { return new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name))) } + static updateNamedType(original: NamedType, name: Identifier): NamedType { + return new NamedType(global.generatedEs2panda._UpdateNamedType(global.context, passNode(original), passNode(name))) + } get nameConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._NamedTypeNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index c664749dd..95a6ba74c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -35,6 +35,9 @@ export class NewExpression extends Expression { static createNewExpression(callee: Expression, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen)) } + static updateNewExpression(original: NewExpression, callee: Expression, _arguments: readonly Expression[], argumentsLen: number): NewExpression { + return new NewExpression(global.generatedEs2panda._UpdateNewExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen)) + } get calleeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._NewExpressionCalleeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index 48586853b..4ade1d445 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -35,6 +35,9 @@ export class NullLiteral extends Literal { static createNullLiteral(): NullLiteral { return new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index 871bfe2be..c13fe2372 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -35,6 +35,9 @@ export class OmittedExpression extends Expression { static createOmittedExpression(): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._CreateOmittedExpression(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts index 4567c567e..95f2eabb3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -32,6 +32,12 @@ export class OpaqueTypeNode extends TypeNode { super(pointer) console.warn("Warning: stub node OpaqueTypeNode") } + static create1OpaqueTypeNode(): OpaqueTypeNode { + return new OpaqueTypeNode(global.generatedEs2panda._CreateOpaqueTypeNode1(global.context)) + } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 991cd3d27..eba245d66 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -36,6 +36,9 @@ export class PrefixAssertionExpression extends Expression { 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 { + return new PrefixAssertionExpression(global.generatedEs2panda._UpdatePrefixAssertionExpression(global.context, passNode(original), passNode(expr), passNode(type))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._PrefixAssertionExpressionExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index f6f3362bc..c02700a1e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -36,6 +36,15 @@ export class Property extends Expression { 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 { + return new Property(global.generatedEs2panda._UpdateProperty(global.context, passNode(original), passNode(key), passNode(value))) + } + static create1Property(kind: Es2pandaPropertyKind, key: Expression, value: Expression, isMethod: boolean, isComputed: boolean): Property { + return new Property(global.generatedEs2panda._CreateProperty1(global.context, kind, passNode(key), passNode(value), isMethod, isComputed)) + } + static update1Property(original: Property, kind: Es2pandaPropertyKind, key: Expression, value: Expression, 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 { return unpackNonNullableNode(global.generatedEs2panda._PropertyKey(global.context, this.peer)) } @@ -63,9 +72,6 @@ export class Property extends Expression { get isAccessorConst(): boolean { return global.generatedEs2panda._PropertyIsAccessorConst(global.context, this.peer) } - isAccessorKind(kind: Es2pandaPropertyKind): boolean { - return global.generatedEs2panda._PropertyIsAccessorKind(global.context, this.peer, kind) - } } export function isProperty(node: AstNode): node is Property { return node instanceof Property diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index 5c6035be5..c5f387649 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -36,6 +36,9 @@ export class RegExpLiteral extends Literal { static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr)) } + static updateRegExpLiteral(original: RegExpLiteral, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { + return new RegExpLiteral(global.generatedEs2panda._UpdateRegExpLiteral(global.context, passNode(original), pattern, flags, flagsStr)) + } get patternConst(): string { return global.generatedEs2panda._RegExpLiteralPatternConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index 211db2dbd..fbc12dc45 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -36,6 +36,15 @@ export class ReturnStatement extends Statement { static createReturnStatement(): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement(global.context)) } + static updateReturnStatement(original: ReturnStatement): ReturnStatement { + return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement(global.context, passNode(original))) + } + static create1ReturnStatement(argument: Expression): ReturnStatement { + return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement1(global.context, passNode(argument))) + } + static update1ReturnStatement(original: ReturnStatement, argument: Expression): ReturnStatement { + return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement1(global.context, passNode(original), passNode(argument))) + } get argument(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ReturnStatementArgument(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts index a5d59e8ce..3b6acfd82 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -68,9 +68,6 @@ export class ScriptFunction extends AstNode { get body(): AstNode { return unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionBody(global.context, this.peer)) } - addReturnStatement(returnStatement: ReturnStatement): void { - return global.generatedEs2panda._ScriptFunctionAddReturnStatement(global.context, this.peer, passNode(returnStatement)) - } get returnTypeAnnotationConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionReturnTypeAnnotationConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index 72257e6cb..a5d027b91 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -35,6 +35,9 @@ export class SequenceExpression extends Expression { 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, 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[] { return unpackNodeArray(global.generatedEs2panda._SequenceExpressionSequenceConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts index 5499a5f49..2ac4f4551 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -32,6 +32,15 @@ export class StringLiteral extends Literal { super(pointer) console.warn("Warning: stub node StringLiteral") } + static updateStringLiteral(original: StringLiteral): StringLiteral { + return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral(global.context, passNode(original))) + } + static create1StringLiteral(str: string): StringLiteral { + return new StringLiteral(global.generatedEs2panda._CreateStringLiteral1(global.context, str)) + } + static update1StringLiteral(original: StringLiteral, str: string): StringLiteral { + return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral1(global.context, passNode(original), str)) + } get strConst(): string { return global.generatedEs2panda._StringLiteralStrConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index 3696d9b4c..f6e53b920 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -35,6 +35,9 @@ export class SuperExpression extends Expression { static createSuperExpression(): SuperExpression { return new SuperExpression(global.generatedEs2panda._CreateSuperExpression(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index aa34506ad..6517d7d09 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -37,6 +37,9 @@ export class SwitchStatement extends Statement { static createSwitchStatement(discriminant: Expression, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._CreateSwitchStatement(global.context, passNode(discriminant), passNodeArray(cases), casesLen)) } + static updateSwitchStatement(original: SwitchStatement, discriminant: Expression, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { + return new SwitchStatement(global.generatedEs2panda._UpdateSwitchStatement(global.context, passNode(original), passNode(discriminant), passNodeArray(cases), casesLen)) + } get discriminantConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._SwitchStatementDiscriminantConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index cfa3ac23d..db404e74e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -35,6 +35,9 @@ export class TSAnyKeyword extends TypeNode { static createTSAnyKeyword(): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._CreateTSAnyKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index 782b07c4c..a2b52117b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -35,6 +35,9 @@ export class TSArrayType extends TypeNode { static createTSArrayType(elementType: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._CreateTSArrayType(global.context, passNode(elementType))) } + static updateTSArrayType(original: TSArrayType, elementType: TypeNode): TSArrayType { + return new TSArrayType(global.generatedEs2panda._UpdateTSArrayType(global.context, passNode(original), passNode(elementType))) + } get elementTypeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSArrayTypeElementTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index 4eefc06fd..82d8837b0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -37,6 +37,9 @@ export class TSAsExpression extends AnnotatedExpression { static createTSAsExpression(expression: Expression, typeAnnotation: TypeNode, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._CreateTSAsExpression(global.context, passNode(expression), passNode(typeAnnotation), isConst)) } + static updateTSAsExpression(original: TSAsExpression, expression: Expression, typeAnnotation: TypeNode, isConst: boolean): TSAsExpression { + return new TSAsExpression(global.generatedEs2panda._UpdateTSAsExpression(global.context, passNode(original), passNode(expression), passNode(typeAnnotation), isConst)) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSAsExpressionExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 14281301c..74a560b10 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -35,6 +35,9 @@ export class TSBigintKeyword extends TypeNode { static createTSBigintKeyword(): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._CreateTSBigintKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index 2662702ca..95635c0c9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -35,6 +35,9 @@ export class TSBooleanKeyword extends TypeNode { static createTSBooleanKeyword(): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._CreateTSBooleanKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index b470cabeb..ec9e99903 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -36,6 +36,15 @@ export class TSClassImplements extends Expression { 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 { + return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements(global.context, passNode(original), passNode(expression), passNode(typeParameters))) + } + static create1TSClassImplements(expression: Expression): TSClassImplements { + return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements1(global.context, passNode(expression))) + } + static update1TSClassImplements(original: TSClassImplements, expression: Expression): TSClassImplements { + return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements1(global.context, passNode(original), passNode(expression))) + } get expr(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSClassImplementsExpr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index c26defdf3..28ef5228e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -36,6 +36,9 @@ export class TSConditionalType extends TypeNode { 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 { + return new TSConditionalType(global.generatedEs2panda._UpdateTSConditionalType(global.context, passNode(original), passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) + } get checkTypeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSConditionalTypeCheckTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index 7aa229944..31b9b3acf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -38,6 +38,9 @@ export class TSEnumDeclaration extends TypedStatement { static createTSEnumDeclaration(key: Identifier, 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, key: Identifier, 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 { return unpackNonNullableNode(global.generatedEs2panda._TSEnumDeclarationKeyConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index 60aa08047..a183c20cf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -36,6 +36,15 @@ export class TSEnumMember extends Statement { 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 { + return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember(global.context, passNode(original), passNode(key), passNode(init))) + } + static create1TSEnumMember(key: Expression, init: Expression, isGenerated: boolean): TSEnumMember { + return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember1(global.context, passNode(key), passNode(init), isGenerated)) + } + static update1TSEnumMember(original: TSEnumMember, key: Expression, init: Expression, isGenerated: boolean): TSEnumMember { + return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember1(global.context, passNode(original), passNode(key), passNode(init), isGenerated)) + } get keyConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSEnumMemberKeyConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index 9a7288770..ccc18bad6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -35,6 +35,9 @@ export class TSExternalModuleReference extends Expression { static createTSExternalModuleReference(expr: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._CreateTSExternalModuleReference(global.context, passNode(expr))) } + static updateTSExternalModuleReference(original: TSExternalModuleReference, expr: Expression): TSExternalModuleReference { + return new TSExternalModuleReference(global.generatedEs2panda._UpdateTSExternalModuleReference(global.context, passNode(original), passNode(expr))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSExternalModuleReferenceExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 894ffcebf..489137825 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -37,6 +37,9 @@ export class TSImportEqualsDeclaration extends Statement { static createTSImportEqualsDeclaration(id: Identifier, moduleReference: Expression, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._CreateTSImportEqualsDeclaration(global.context, passNode(id), passNode(moduleReference), isExport)) } + static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration, id: Identifier, moduleReference: Expression, isExport: boolean): TSImportEqualsDeclaration { + return new TSImportEqualsDeclaration(global.generatedEs2panda._UpdateTSImportEqualsDeclaration(global.context, passNode(original), passNode(id), passNode(moduleReference), isExport)) + } get idConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSImportEqualsDeclarationIdConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index a50a46f60..8ec5fb598 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -37,6 +37,9 @@ export class TSImportType extends TypeNode { static createTSImportType(param: Expression, typeParams: TSTypeParameterInstantiation, qualifier: Expression, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._CreateTSImportType(global.context, passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } + static updateTSImportType(original: TSImportType, param: Expression, typeParams: TSTypeParameterInstantiation, qualifier: Expression, isTypeof: boolean): TSImportType { + return new TSImportType(global.generatedEs2panda._UpdateTSImportType(global.context, passNode(original), passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) + } get paramConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSImportTypeParamConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index 6dc0dba17..8e0db344f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -37,6 +37,9 @@ export class TSIndexSignature extends TypedAstNode { static createTSIndexSignature(param: Expression, typeAnnotation: TypeNode, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._CreateTSIndexSignature(global.context, passNode(param), passNode(typeAnnotation), readonly_arg)) } + static updateTSIndexSignature(original: TSIndexSignature, param: Expression, typeAnnotation: TypeNode, readonly_arg: boolean): TSIndexSignature { + return new TSIndexSignature(global.generatedEs2panda._UpdateTSIndexSignature(global.context, passNode(original), passNode(param), passNode(typeAnnotation), readonly_arg)) + } get paramConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSIndexSignatureParamConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index ee2f48f45..2290f4c9e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -35,6 +35,9 @@ export class TSIndexedAccessType extends TypeNode { 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 { + return new TSIndexedAccessType(global.generatedEs2panda._UpdateTSIndexedAccessType(global.context, passNode(original), passNode(objectType), passNode(indexType))) + } get objectTypeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSIndexedAccessTypeObjectTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index 2ab8dcc52..c31fe75f1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -36,6 +36,9 @@ export class TSInferType extends TypeNode { static createTSInferType(typeParam: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._CreateTSInferType(global.context, passNode(typeParam))) } + static updateTSInferType(original: TSInferType, typeParam: TSTypeParameter): TSInferType { + return new TSInferType(global.generatedEs2panda._UpdateTSInferType(global.context, passNode(original), passNode(typeParam))) + } get typeParamConst(): TSTypeParameter { return unpackNonNullableNode(global.generatedEs2panda._TSInferTypeTypeParamConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index ac7610a88..8b53601ed 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -35,6 +35,9 @@ export class TSInterfaceBody extends Expression { static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._CreateTSInterfaceBody(global.context, passNodeArray(body), bodyLen)) } + static updateTSInterfaceBody(original: TSInterfaceBody, body: readonly AstNode[], bodyLen: number): TSInterfaceBody { + return new TSInterfaceBody(global.generatedEs2panda._UpdateTSInterfaceBody(global.context, passNode(original), passNodeArray(body), bodyLen)) + } get bodyPtr(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._TSInterfaceBodyBodyPtr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index d2e2be74c..a0c422920 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -42,6 +42,9 @@ export class TSInterfaceDeclaration extends TypedStatement { static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode, typeParams: AstNode, body: AstNode, 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, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode, typeParams: AstNode, body: AstNode, 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 { return unpackNonNullableNode(global.generatedEs2panda._TSInterfaceDeclarationBody(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index fbbf2065d..64f92f191 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -36,6 +36,9 @@ export class TSInterfaceHeritage extends Expression { static createTSInterfaceHeritage(expr: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._CreateTSInterfaceHeritage(global.context, passNode(expr))) } + static updateTSInterfaceHeritage(original: TSInterfaceHeritage, expr: TypeNode): TSInterfaceHeritage { + return new TSInterfaceHeritage(global.generatedEs2panda._UpdateTSInterfaceHeritage(global.context, passNode(original), passNode(expr))) + } get expr(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSInterfaceHeritageExpr(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index 31f318547..8f17c2e20 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -36,6 +36,9 @@ export class TSIntersectionType extends TypeNode { static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._CreateTSIntersectionType(global.context, passNodeArray(types), typesLen)) } + static updateTSIntersectionType(original: TSIntersectionType, types: readonly Expression[], typesLen: number): TSIntersectionType { + return new TSIntersectionType(global.generatedEs2panda._UpdateTSIntersectionType(global.context, passNode(original), passNodeArray(types), typesLen)) + } get typesConst(): readonly Expression[] { return unpackNodeArray(global.generatedEs2panda._TSIntersectionTypeTypesConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index 480fd3f48..eed5e6bb2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -36,6 +36,9 @@ export class TSLiteralType extends TypeNode { static createTSLiteralType(literal: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._CreateTSLiteralType(global.context, passNode(literal))) } + static updateTSLiteralType(original: TSLiteralType, literal: Expression): TSLiteralType { + return new TSLiteralType(global.generatedEs2panda._UpdateTSLiteralType(global.context, passNode(original), passNode(literal))) + } get literalConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSLiteralTypeLiteralConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 1fe5e6529..f3cfa7e7e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -37,6 +37,9 @@ export class TSMappedType extends TypeNode { static createTSMappedType(typeParameter: TSTypeParameter, typeAnnotation: TypeNode, 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, typeParameter: TSTypeParameter, typeAnnotation: TypeNode, 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 { return unpackNonNullableNode(global.generatedEs2panda._TSMappedTypeTypeParameter(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index 63bbcd5e7..e3b7b441b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -36,6 +36,9 @@ export class TSNamedTupleMember extends TypeNode { static createTSNamedTupleMember(label: Expression, elementType: TypeNode, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._CreateTSNamedTupleMember(global.context, passNode(label), passNode(elementType), optional_arg)) } + static updateTSNamedTupleMember(original: TSNamedTupleMember, label: Expression, elementType: TypeNode, optional_arg: boolean): TSNamedTupleMember { + return new TSNamedTupleMember(global.generatedEs2panda._UpdateTSNamedTupleMember(global.context, passNode(original), passNode(label), passNode(elementType), optional_arg)) + } get labelConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSNamedTupleMemberLabelConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index c7a41a5b9..44bfec9a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -35,6 +35,9 @@ export class TSNeverKeyword extends TypeNode { static createTSNeverKeyword(): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._CreateTSNeverKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index 8482215fc..19c2f3aa8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -35,6 +35,9 @@ export class TSNonNullExpression extends Expression { static createTSNonNullExpression(expr: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._CreateTSNonNullExpression(global.context, passNode(expr))) } + static updateTSNonNullExpression(original: TSNonNullExpression, expr: Expression): TSNonNullExpression { + return new TSNonNullExpression(global.generatedEs2panda._UpdateTSNonNullExpression(global.context, passNode(original), passNode(expr))) + } get exprConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSNonNullExpressionExprConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index 5f46bbe04..fc4018ec6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -35,6 +35,9 @@ export class TSNullKeyword extends TypeNode { static createTSNullKeyword(): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._CreateTSNullKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 5e4ca1900..328750b7f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -35,6 +35,9 @@ export class TSNumberKeyword extends TypeNode { static createTSNumberKeyword(): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._CreateTSNumberKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index 196d428c9..ad0715082 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -35,6 +35,9 @@ export class TSObjectKeyword extends TypeNode { static createTSObjectKeyword(): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._CreateTSObjectKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index ac29fd421..bed1a4c3e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -36,6 +36,9 @@ export class TSParameterProperty extends Expression { static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression, 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, accessibility: Es2pandaAccessibilityOption, parameter: Expression, 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 { return global.generatedEs2panda._TSParameterPropertyAccessibilityConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index 2353059ae..2a5d2b5b1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -36,6 +36,9 @@ export class TSParenthesizedType extends TypeNode { static createTSParenthesizedType(type: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._CreateTSParenthesizedType(global.context, passNode(type))) } + static updateTSParenthesizedType(original: TSParenthesizedType, type: TypeNode): TSParenthesizedType { + return new TSParenthesizedType(global.generatedEs2panda._UpdateTSParenthesizedType(global.context, passNode(original), passNode(type))) + } get typeConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSParenthesizedTypeTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index 217f6bbaa..6ee049994 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -37,6 +37,9 @@ export class TSPropertySignature extends AnnotatedAstNode { static createTSPropertySignature(key: Expression, typeAnnotation: TypeNode, 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, key: Expression, typeAnnotation: TypeNode, 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 { return unpackNonNullableNode(global.generatedEs2panda._TSPropertySignatureKeyConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index 127450726..0286bc223 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -36,6 +36,9 @@ export class TSQualifiedName extends Expression { 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 { + return new TSQualifiedName(global.generatedEs2panda._UpdateTSQualifiedName(global.context, passNode(original), passNode(left), passNode(right))) + } get leftConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSQualifiedNameLeftConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index 2bf112d87..a59e8ef5f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -35,6 +35,9 @@ export class TSStringKeyword extends TypeNode { static createTSStringKeyword(): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._CreateTSStringKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index cfc74214a..dc3d3fa0e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -35,6 +35,9 @@ export class TSThisType extends TypeNode { static createTSThisType(): TSThisType { return new TSThisType(global.generatedEs2panda._CreateTSThisType(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index 95cd6bffe..6dc2af8cf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -35,6 +35,9 @@ export class TSTupleType extends TypeNode { static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._CreateTSTupleType(global.context, passNodeArray(elementTypes), elementTypesLen)) } + static updateTSTupleType(original: TSTupleType, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { + return new TSTupleType(global.generatedEs2panda._UpdateTSTupleType(global.context, passNode(original), passNodeArray(elementTypes), elementTypesLen)) + } get elementTypeConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._TSTupleTypeElementTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index 99ad78198..c5f26a92c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -40,6 +40,15 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { 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 { + return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration(global.context, passNode(original), passNode(id), passNode(typeParams), passNode(typeAnnotation))) + } + static create1TSTypeAliasDeclaration(id: Identifier): TSTypeAliasDeclaration { + return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration1(global.context, passNode(id))) + } + static update1TSTypeAliasDeclaration(original: TSTypeAliasDeclaration, id: Identifier): TSTypeAliasDeclaration { + return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration1(global.context, passNode(original), passNode(id))) + } get id(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSTypeAliasDeclarationId(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index 8e39d6e24..749439f96 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -37,6 +37,9 @@ export class TSTypeAssertion extends AnnotatedExpression { 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 { + return new TSTypeAssertion(global.generatedEs2panda._UpdateTSTypeAssertion(global.context, passNode(original), passNode(typeAnnotation), passNode(expression))) + } get getExpressionConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSTypeAssertionGetExpressionConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index 4a6d6712e..8b0b7aa55 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -35,6 +35,9 @@ export class TSTypeLiteral extends TypeNode { static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._CreateTSTypeLiteral(global.context, passNodeArray(members), membersLen)) } + static updateTSTypeLiteral(original: TSTypeLiteral, members: readonly AstNode[], membersLen: number): TSTypeLiteral { + return new TSTypeLiteral(global.generatedEs2panda._UpdateTSTypeLiteral(global.context, passNode(original), passNodeArray(members), membersLen)) + } get membersConst(): readonly AstNode[] { return unpackNodeArray(global.generatedEs2panda._TSTypeLiteralMembersConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index 81686ed28..28373b965 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -36,6 +36,9 @@ export class TSTypeOperator extends TypeNode { static createTSTypeOperator(type: TypeNode, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._CreateTSTypeOperator(global.context, passNode(type), operatorType)) } + static updateTSTypeOperator(original: TSTypeOperator, type: TypeNode, operatorType: Es2pandaTSOperatorType): TSTypeOperator { + return new TSTypeOperator(global.generatedEs2panda._UpdateTSTypeOperator(global.context, passNode(original), passNode(type), operatorType)) + } get typeConst(): TypeNode { return unpackNonNullableNode(global.generatedEs2panda._TSTypeOperatorTypeConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index cf6f6e1ed..a31d6167e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -28,6 +28,7 @@ import { import { Expression } from "./Expression" import { Identifier } from "./Identifier" import { TypeNode } from "./TypeNode" +import { Es2pandaModifierFlags } from "./../Es2pandaEnums" import { AnnotationUsage } from "./AnnotationUsage" export class TSTypeParameter extends Expression { constructor(pointer: KNativePointer) { @@ -38,6 +39,15 @@ export class TSTypeParameter extends Expression { 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 { + return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType))) + } + static create1TSTypeParameter(name: Identifier, constraint: TypeNode, defaultType: TypeNode, flags: Es2pandaModifierFlags): TSTypeParameter { + return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter1(global.context, passNode(name), passNode(constraint), passNode(defaultType), flags)) + } + static update1TSTypeParameter(original: TSTypeParameter, name: Identifier, constraint: TypeNode, defaultType: TypeNode, flags: Es2pandaModifierFlags): TSTypeParameter { + return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter1(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType), flags)) + } get nameConst(): Identifier { return unpackNonNullableNode(global.generatedEs2panda._TSTypeParameterNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 7eab9848d..ab91da693 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -36,6 +36,9 @@ export class TSTypeParameterDeclaration extends Expression { 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, 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[] { return unpackNodeArray(global.generatedEs2panda._TSTypeParameterDeclarationParamsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index 8be111f7a..c233f22b1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -36,6 +36,9 @@ export class TSTypeParameterInstantiation extends Expression { static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._CreateTSTypeParameterInstantiation(global.context, passNodeArray(params), paramsLen)) } + static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { + return new TSTypeParameterInstantiation(global.generatedEs2panda._UpdateTSTypeParameterInstantiation(global.context, passNode(original), passNodeArray(params), paramsLen)) + } get paramsConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._TSTypeParameterInstantiationParamsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index 82a90a16a..68f29257d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -36,6 +36,9 @@ export class TSTypePredicate extends TypeNode { static createTSTypePredicate(parameterName: Expression, typeAnnotation: TypeNode, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._CreateTSTypePredicate(global.context, passNode(parameterName), passNode(typeAnnotation), asserts)) } + static updateTSTypePredicate(original: TSTypePredicate, parameterName: Expression, typeAnnotation: TypeNode, asserts: boolean): TSTypePredicate { + return new TSTypePredicate(global.generatedEs2panda._UpdateTSTypePredicate(global.context, passNode(original), passNode(parameterName), passNode(typeAnnotation), asserts)) + } get parameterNameConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSTypePredicateParameterNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index 41f275d63..e5c121c92 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -36,6 +36,9 @@ export class TSTypeQuery extends TypeNode { static createTSTypeQuery(exprName: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._CreateTSTypeQuery(global.context, passNode(exprName))) } + static updateTSTypeQuery(original: TSTypeQuery, exprName: Expression): TSTypeQuery { + return new TSTypeQuery(global.generatedEs2panda._UpdateTSTypeQuery(global.context, passNode(original), passNode(exprName))) + } get exprNameConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TSTypeQueryExprNameConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index bccb5c595..f1efece70 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -37,6 +37,9 @@ export class TSTypeReference extends TypeNode { 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 { + return new TSTypeReference(global.generatedEs2panda._UpdateTSTypeReference(global.context, passNode(original), passNode(typeName), passNode(typeParams))) + } get typeParamsConst(): TSTypeParameterInstantiation { return unpackNonNullableNode(global.generatedEs2panda._TSTypeReferenceTypeParamsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 9017d5f33..8acaa8e7d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -35,6 +35,9 @@ export class TSUndefinedKeyword extends TypeNode { static createTSUndefinedKeyword(): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._CreateTSUndefinedKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index 31838cff8..24da482e1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -35,6 +35,9 @@ export class TSUnionType extends TypeNode { static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._CreateTSUnionType(global.context, passNodeArray(types), typesLen)) } + static updateTSUnionType(original: TSUnionType, types: readonly TypeNode[], typesLen: number): TSUnionType { + return new TSUnionType(global.generatedEs2panda._UpdateTSUnionType(global.context, passNode(original), passNodeArray(types), typesLen)) + } get typesConst(): readonly TypeNode[] { return unpackNodeArray(global.generatedEs2panda._TSUnionTypeTypesConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index 640aeb1d8..44050a537 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -35,6 +35,9 @@ export class TSUnknownKeyword extends TypeNode { static createTSUnknownKeyword(): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._CreateTSUnknownKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 8f0124ff6..6b6228c23 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -35,6 +35,9 @@ export class TSVoidKeyword extends TypeNode { static createTSVoidKeyword(): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._CreateTSVoidKeyword(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index 9813b23a9..5487ae10c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -37,6 +37,9 @@ export class TaggedTemplateExpression extends Expression { 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 { + return new TaggedTemplateExpression(global.generatedEs2panda._UpdateTaggedTemplateExpression(global.context, passNode(original), passNode(tag), passNode(quasi), passNode(typeParams))) + } get tagConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TaggedTemplateExpressionTagConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index fea49271a..773450a4a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -35,6 +35,15 @@ export class TemplateElement extends Expression { static createTemplateElement(): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement(global.context)) } + static updateTemplateElement(original: TemplateElement): TemplateElement { + return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement(global.context, passNode(original))) + } + static create1TemplateElement(raw: string, cooked: string): TemplateElement { + return new TemplateElement(global.generatedEs2panda._CreateTemplateElement1(global.context, raw, cooked)) + } + static update1TemplateElement(original: TemplateElement, raw: string, cooked: string): TemplateElement { + return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement1(global.context, passNode(original), raw, cooked)) + } get rawConst(): string { return global.generatedEs2panda._TemplateElementRawConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index d5e4403d6..6ad850b68 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -36,6 +36,9 @@ export class TemplateLiteral extends Expression { 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, 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[] { return unpackNodeArray(global.generatedEs2panda._TemplateLiteralQuasisConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 0b401a72f..383fb1d9c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -35,6 +35,9 @@ export class ThisExpression extends Expression { static createThisExpression(): ThisExpression { return new ThisExpression(global.generatedEs2panda._CreateThisExpression(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index 696a83527..1e28b83fd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -36,6 +36,9 @@ export class ThrowStatement extends Statement { static createThrowStatement(argument: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._CreateThrowStatement(global.context, passNode(argument))) } + static updateThrowStatement(original: ThrowStatement, argument: Expression): ThrowStatement { + return new ThrowStatement(global.generatedEs2panda._UpdateThrowStatement(global.context, passNode(original), passNode(argument))) + } get argumentConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._ThrowStatementArgumentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index fcf8e8cb5..1d8a81eba 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -35,6 +35,9 @@ export class TypeofExpression extends Expression { static createTypeofExpression(argument: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._CreateTypeofExpression(global.context, passNode(argument))) } + static updateTypeofExpression(original: TypeofExpression, argument: Expression): TypeofExpression { + return new TypeofExpression(global.generatedEs2panda._UpdateTypeofExpression(global.context, passNode(original), passNode(argument))) + } get argumentConst(): Expression { return unpackNonNullableNode(global.generatedEs2panda._TypeofExpressionArgumentConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index aac86e02a..9ecfaa432 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -36,6 +36,9 @@ export class UnaryExpression extends Expression { static createUnaryExpression(argument: Expression, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._CreateUnaryExpression(global.context, passNode(argument), unaryOperator)) } + static updateUnaryExpression(original: UnaryExpression, argument: Expression, unaryOperator: Es2pandaTokenType): UnaryExpression { + return new UnaryExpression(global.generatedEs2panda._UpdateUnaryExpression(global.context, passNode(original), passNode(argument), unaryOperator)) + } get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._UnaryExpressionOperatorTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index f386a8c2f..53d3e38bf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -35,6 +35,9 @@ export class UndefinedLiteral extends Literal { static createUndefinedLiteral(): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._CreateUndefinedLiteral(global.context)) } + 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 diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index 51fa99c10..1bb4c09ca 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -36,6 +36,9 @@ export class UpdateExpression extends Expression { static createUpdateExpression(argument: Expression, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._CreateUpdateExpression(global.context, passNode(argument), updateOperator, isPrefix)) } + static updateUpdateExpression(original: UpdateExpression, argument: Expression, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { + return new UpdateExpression(global.generatedEs2panda._UpdateUpdateExpression(global.context, passNode(original), passNode(argument), updateOperator, isPrefix)) + } get operatorTypeConst(): Es2pandaTokenType { return global.generatedEs2panda._UpdateExpressionOperatorTypeConst(global.context, this.peer) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index bd9acbd9f..a8e744cbe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -39,6 +39,9 @@ export class VariableDeclaration extends Statement { 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, 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[] { return unpackNodeArray(global.generatedEs2panda._VariableDeclarationDeclaratorsConst(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index a6a61f43c..3f25900f0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -37,6 +37,15 @@ export class VariableDeclarator extends TypedStatement { static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator(global.context, flag, passNode(ident))) } + static updateVariableDeclarator(original: VariableDeclarator, 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 { + return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator1(global.context, flag, passNode(ident), passNode(init))) + } + static update1VariableDeclarator(original: VariableDeclarator, 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 { return unpackNonNullableNode(global.generatedEs2panda._VariableDeclaratorInit(global.context, this.peer)) } diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index f829a016a..62f6bd9f3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -35,6 +35,9 @@ export class YieldExpression extends Expression { static createYieldExpression(argument: Expression, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._CreateYieldExpression(global.context, passNode(argument), isDelegate)) } + static updateYieldExpression(original: YieldExpression, argument: Expression, isDelegate: boolean): YieldExpression { + return new YieldExpression(global.generatedEs2panda._UpdateYieldExpression(global.context, passNode(original), passNode(argument), isDelegate)) + } get hasDelegateConst(): boolean { return global.generatedEs2panda._YieldExpressionHasDelegateConst(global.context, this.peer) } -- Gitee From 38191410681f58e885bd6bc7ef032a86d4cb9c4f Mon Sep 17 00:00:00 2001 From: Jiakai Shi <13494498+victors67@user.noreply.gitee.com> Date: Fri, 14 Feb 2025 14:22:13 +0800 Subject: [PATCH 35/40] shijiakai2@huawei.com builder lambda transformation Signed-off-by: Jiakai Shi --- .../plugins/src/builder-lambda-transformer.ts | 177 ++++++++++++------ .../plugins/src/checked-stage-plugin.ts | 10 +- .../plugins/src/struct-transformer.ts | 9 + arkoala-arkts/libarkts/plugins/tsconfig.json | 1 + 4 files changed, 137 insertions(+), 60 deletions(-) create mode 100644 arkoala-arkts/libarkts/plugins/src/struct-transformer.ts diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index 6be93bccd..5d4bfcb73 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -190,75 +190,134 @@ 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) - - if (!arkts.isCallExpression(node)) { - return node - } - - if (true - && arkts.isMemberExpression(node.parent) - && arkts.isIdentifier(node.parent.property) - && arkts.isCallExpression(node.parent.parent) +function builderLambdaBodyRewrite(node: arkts.AstNode): arkts.AstNode { + if (!arkts.isArrowFunctionExpression(node)) return node; + + const scriptFunc: arkts.ScriptFunction = node.scriptFunction; + if (!scriptFunc || !scriptFunc.body) return node; + + 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 { + 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/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts new file mode 100644 index 000000000..5a68537ca --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -0,0 +1,9 @@ +import * as arkts from "@koalaui/libarkts" +import { AbstractVisitor } from "./AbstractVisitor"; + +export class StructTransformer extends AbstractVisitor { + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + const node = this.visitEachChild(beforeChildren); + return node; + } +} diff --git a/arkoala-arkts/libarkts/plugins/tsconfig.json b/arkoala-arkts/libarkts/plugins/tsconfig.json index d0ce6f222..400772e07 100644 --- a/arkoala-arkts/libarkts/plugins/tsconfig.json +++ b/arkoala-arkts/libarkts/plugins/tsconfig.json @@ -14,5 +14,6 @@ "./src/print-visitor.ts", "./src/builder-lambda-transformer.ts", "./src/component-transformer.ts", + "./src/struct-transformer.ts" ] } -- Gitee From bae4b0384dab04864c864271a130fc6e07c0b9b4 Mon Sep 17 00:00:00 2001 From: Jiakai Shi <13494498+victors67@user.noreply.gitee.com> Date: Fri, 14 Feb 2025 18:29:10 +0800 Subject: [PATCH 36/40] shijiakai2@huawei.com transform build method in struct Signed-off-by: Jiakai Shi --- arkoala-arkts/libarkts/native/src/bridges.cc | 9 + .../libarkts/native/src/generated/bridges.cc | 65 +++++++ .../plugins/src/builder-lambda-transformer.ts | 4 +- .../plugins/src/component-transformer.ts | 4 +- .../plugins/src/struct-transformer.ts | 162 ++++++++++++++++++ .../libarkts/src/Es2pandaNativeModule.ts | 18 ++ .../src/arkts-api/factory/nodeFactory.ts | 4 + .../src/arkts-api/factory/nodeTests.ts | 21 +++ arkoala-arkts/libarkts/src/arkts-api/types.ts | 57 +++++- .../src/generated/Es2pandaNativeModule.ts | 12 ++ 10 files changed, 349 insertions(+), 7 deletions(-) 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/native/src/generated/bridges.cc b/arkoala-arkts/libarkts/native/src/generated/bridges.cc index 693b7e9e7..d3da03c0d 100644 --- a/arkoala-arkts/libarkts/native/src/generated/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/generated/bridges.cc @@ -11635,3 +11635,68 @@ KNativePointer impl_CreateFunctionDecl(KNativePointer context, KStringPtr& name, } KOALA_INTEROP_3(CreateFunctionDecl, KNativePointer, KNativePointer, KStringPtr, KNativePointer); +KNativePointer impl_CreateETSDynamicFunctionType1(KNativePointer context, KStringPtr& name) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + auto result = GetImpl()->CreateETSDynamicFunctionType1(_context, _name); + return result; +} +KOALA_INTEROP_2(CreateETSDynamicFunctionType1, KNativePointer, KNativePointer, KStringPtr); + +KNativePointer impl_CreateInterfaceDecl(KNativePointer context, KStringPtr& name) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + auto result = GetImpl()->CreateInterfaceDecl(_context, _name); + return result; +} +KOALA_INTEROP_2(CreateInterfaceDecl, KNativePointer, KNativePointer, KStringPtr); + +KNativePointer impl_CreateInterfaceDecl1(KNativePointer context, KStringPtr& name, KNativePointer declNode) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + const auto _declNode = reinterpret_cast(declNode); + auto result = GetImpl()->CreateInterfaceDecl1(_context, _name, _declNode); + return result; +} +KOALA_INTEROP_3(CreateInterfaceDecl1, KNativePointer, KNativePointer, KStringPtr, KNativePointer); + +KNativePointer impl_CreateFunctionDecl(KNativePointer context, KStringPtr& name, KNativePointer node) +{ + const auto _context = reinterpret_cast(context); + const auto _name = getStringCopy(name); + const auto _node = reinterpret_cast(node); + auto result = GetImpl()->CreateFunctionDecl(_context, _name, _node); + return result; +} +KOALA_INTEROP_3(CreateFunctionDecl, KNativePointer, KNativePointer, KStringPtr, KNativePointer); + +KBoolean impl_IsTSInterfaceDeclaration(KNativePointer ast) { + auto&& _ast_ = reinterpret_cast(ast); + auto&& _result_ = GetImpl()->IsTSInterfaceDeclaration(_ast_); + return _result_; +} +KOALA_INTEROP_1(IsTSInterfaceDeclaration, KBoolean, KNativePointer); + +KBoolean impl_IsAnnotationDeclaration(KNativePointer ast) { + auto&& _ast_ = reinterpret_cast(ast); + auto&& _result_ = GetImpl()->IsAnnotationDeclaration(_ast_); + return _result_; +} +KOALA_INTEROP_1(IsAnnotationDeclaration, KBoolean, KNativePointer); + +KBoolean impl_IsAnnotationUsage(KNativePointer ast) { + auto&& _ast_ = reinterpret_cast(ast); + auto&& _result_ = GetImpl()->IsAnnotationUsage(_ast_); + return _result_; +} +KOALA_INTEROP_1(IsAnnotationUsage, KBoolean, KNativePointer); + +KBoolean impl_IsClassProperty(KNativePointer ast) { + auto&& _ast_ = reinterpret_cast(ast); + auto&& _result_ = GetImpl()->IsClassProperty(_ast_); + return _result_; +} +KOALA_INTEROP_1(IsClassProperty, KBoolean, KNativePointer); diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index 5d4bfcb73..0b07ba4d5 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 ) diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index eb9dea774..984186e3e 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -85,10 +85,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 index 5a68537ca..85188596a 100644 --- a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -1,9 +1,171 @@ import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor"; +function isCustomComponentClass(node: arkts.ClassDeclaration): boolean { + // TODO: change this mock collection from the arkts.GlobalInfo + const structCollection: Set = new Set(["MyStateSample"]); + 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 + ); + + return arkts.factory.createParameterDeclaration(styleParam, undefined); +} + +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 + ); + + return arkts.factory.createParameterDeclaration(contentParam, undefined); +} + +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 + ); + + + // 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_PRIVATE, + 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/src/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts index e62809f69..6f50b715c 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") } @@ -551,6 +554,21 @@ 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") + } } 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..4dbf2fccd 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -46,6 +46,7 @@ import { TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, + UndefinedLiteral, VariableDeclaration, VariableDeclarator } from "../types" @@ -274,4 +275,7 @@ export const factory = { get updateInterfaceDeclaration() { return compose(TSInterfaceDeclaration.create) }, + 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 07750fe2f..c60bdc29f 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.generatedEs2panda._IsClassProperty(node.peer); +} + +export function isAnnotationUsage(node: AstNode): node is AnnotationUsageIr { + return global.generatedEs2panda._IsAnnotationUsage(node.peer); +} + +export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { + return global.generatedEs2panda._IsAnnotationDeclaration(node.peer); +} + +export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { + return global.generatedEs2panda._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..fcaf7aa5d 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -298,6 +298,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 +318,7 @@ export class ETSTypeReferencePart extends AstNode { ) } - // readonly typeName: Identifier + readonly typeName: Identifier } export class TSUnionType extends AstNode { @@ -409,6 +410,11 @@ export class Identifier extends AstNode { } } + setOptional(optional: boolean): Identifier { + global.generatedEs2panda._IdentifierSetOptional(global.context, this.peer, optional) + return this + } + protected override dumpMessage(): string { return ` ` } @@ -554,6 +560,12 @@ export class ScriptFunction extends AstNode { return new ScriptFunction(peer) } + setIdent(id: KPtr): ScriptFunction { + assertValidPeer(id, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); + global.generatedEs2panda._ScriptFunctionSetIdent(global.context, this.peer, id); + return this; + } + protected override dumpMessage(): string { const scriptFunctionFlags = global.generatedEs2panda._ScriptFunctionFlagsConst(global.context, this.peer) return ` ` @@ -933,10 +945,19 @@ 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.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.peer); + } + this.name = unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.scriptFunction.peer)) this.kind = global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer) } @@ -956,10 +977,16 @@ 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 scriptFunction: ScriptFunction readonly name: Identifier readonly kind: Es2pandaMethodDefinitionKind @@ -1225,4 +1252,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 + ): UndefinedLiteral { + return new UndefinedLiteral( + global.generatedEs2panda._CreateAnnotationDeclaration( + global.context, + passNode(expr) + ) + ) + } } diff --git a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts index 8d330b0ec..f68f57768 100644 --- a/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/generated/Es2pandaNativeModule.ts @@ -3625,4 +3625,16 @@ export class Es2pandaNativeModule { _CreateFunctionDecl(context: KNativePointer, name: KStringPtr, node: KNativePointer): KNativePointer { throw new Error("This methods was not overloaded by native module initialization") } + _IsTSInterfaceDeclaration(ast: KNativePointer): KBoolean { + throw new Error("This methods was not overloaded by native module initialization") + } + _IsAnnotationDeclaration(ast: KNativePointer): KBoolean { + throw new Error("This methods was not overloaded by native module initialization") + } + _IsAnnotationUsage(ast: KNativePointer): KBoolean { + throw new Error("This methods was not overloaded by native module initialization") + } + _IsClassProperty(ast: KNativePointer): KBoolean { + throw new Error("This methods was not overloaded by native module initialization") + } } \ No newline at end of file -- Gitee From 8b336b5267dd3a672ed8f201e7a3eacc5576a755 Mon Sep 17 00:00:00 2001 From: s00912778 Date: Mon, 17 Feb 2025 21:11:58 +0800 Subject: [PATCH 37/40] shijiakai2@huawei.com add memo annotation Signed-off-by: s00912778 --- arkoala-arkts/arkui/src/sts/arkui.sts | 2 +- arkoala-arkts/libarkts/native/src/bridges.cc | 83 +++++++++++++++++ .../libarkts/plugins/src/arkts-utils.ts | 11 +++ .../plugins/src/struct-transformer.ts | 14 ++- arkoala-arkts/libarkts/plugins/tsconfig.json | 3 +- .../libarkts/src/Es2pandaNativeModule.ts | 22 +++++ .../src/arkts-api/factory/nodeFactory.ts | 12 ++- arkoala-arkts/libarkts/src/arkts-api/types.ts | 90 +++++++++++++++++-- .../src/arkts-api/utilities/public.ts | 3 +- 9 files changed, 224 insertions(+), 16 deletions(-) create mode 100644 arkoala-arkts/libarkts/plugins/src/arkts-utils.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 1ee0b055d..34bdba3fe 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -144,6 +144,81 @@ KNativePointer impl_ScriptFunctionSetScope( } KOALA_INTEROP_3(ScriptFunctionSetScope, KNativePointer, KNativePointer, KNativePointer, KNativePointer) +KNativePointer impl_ScriptFunctionAnnotations(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()->ScriptFunctionAnnotations(context, node, ¶ms_len); + return new std::vector(annotations, annotations + params_len); +} +KOALA_INTEROP_3(ScriptFunctionAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) + +KNativePointer impl_ScriptFunctionSetAnnotations( + KNativePointer contextPtr, + KNativePointer astPtr, + KNativePointerArray annotations, + KUInt annotationsLen +) { + auto context = reinterpret_cast(contextPtr); + auto ast = reinterpret_cast(astPtr); + auto _annotations = reinterpret_cast(annotations); + auto _annotationsLen = static_cast(annotationsLen); + + GetImpl()->ScriptFunctionSetAnnotations(context, ast, _annotations, _annotationsLen); + return ast; +} +KOALA_INTEROP_4(ScriptFunctionSetAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt) + +KNativePointer impl_ClassPropertyAnnotations(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()->ClassPropertyAnnotations(context, node, ¶ms_len); + return new std::vector(annotations, annotations + params_len); +} +KOALA_INTEROP_3(ClassPropertyAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) + +KNativePointer impl_ClassPropertySetAnnotations( + KNativePointer contextPtr, + KNativePointer astPtr, + KNativePointerArray annotations, + KUInt annotationsLen +) { + auto context = reinterpret_cast(contextPtr); + auto ast = reinterpret_cast(astPtr); + auto _annotations = reinterpret_cast(annotations); + auto _annotationsLen = static_cast(annotationsLen); + + GetImpl()->ClassPropertySetAnnotations(context, ast, _annotations, _annotationsLen); + return ast; +} +KOALA_INTEROP_4(ClassPropertySetAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt) + +KNativePointer impl_ETSParameterExpressionAnnotations(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()->ETSParameterExpressionAnnotations(context, node, ¶ms_len); + return new std::vector(annotations, annotations + params_len); +} +KOALA_INTEROP_3(ETSParameterExpressionAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) + +KNativePointer impl_ETSParameterExpressionSetAnnotations( + KNativePointer contextPtr, + KNativePointer astPtr, + KNativePointerArray annotations, + KUInt annotationsLen +) { + auto context = reinterpret_cast(contextPtr); + auto ast = reinterpret_cast(astPtr); + auto _annotations = reinterpret_cast(annotations); + auto _annotationsLen = static_cast(annotationsLen); + + GetImpl()->ETSParameterExpressionSetAnnotations(context, ast, _annotations, _annotationsLen); + return ast; +} +KOALA_INTEROP_4(ETSParameterExpressionSetAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt) + KNativePointer impl_CreateAstDumper( KNativePointer contextPtr, KNativePointer nodePtr, @@ -284,3 +359,11 @@ KNativePointer impl_DeclarationFromIdentifier(KNativePointer context, KNativePoi return result; } KOALA_INTEROP_2(DeclarationFromIdentifier, KNativePointer, KNativePointer, KNativePointer) + +KNativePointer impl_CreateAnnotationUsageIr(KNativePointer contextPtr, KNativePointer nodePtr) { + auto context = reinterpret_cast(contextPtr); + auto node = reinterpret_cast(nodePtr); + + return GetImpl()->CreateAnnotationUsageIr(context, node); +} +KOALA_INTEROP_2(CreateAnnotationUsageIr, KNativePointer, KNativePointer, KNativePointer) 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..bc167c8f3 --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts @@ -0,0 +1,11 @@ +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; +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts index 85188596a..81750370f 100644 --- a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -1,5 +1,6 @@ import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor"; +import { annotation } from "./arkts-utils"; function isCustomComponentClass(node: arkts.ClassDeclaration): boolean { // TODO: change this mock collection from the arkts.GlobalInfo @@ -48,7 +49,10 @@ function createStyleArgInBuildMethod(className: string): arkts.ETSParameterExpre optionalStyleLambda ); - return arkts.factory.createParameterDeclaration(styleParam, undefined); + const param = arkts.factory.createParameterDeclaration(styleParam, undefined); + param.annotations = [annotation("memo")]; + + return param; } function createContentArgInBuildMethod(): arkts.ETSParameterExpression { @@ -66,7 +70,10 @@ function createContentArgInBuildMethod(): arkts.ETSParameterExpression { contentLambda ); - return arkts.factory.createParameterDeclaration(contentParam, undefined); + const param = arkts.factory.createParameterDeclaration(contentParam, undefined); + param.annotations = [annotation("memo")]; + + return param; } function createInitializerArgInBuildMethod(className: string): arkts.ETSParameterExpression { @@ -115,6 +122,7 @@ function transformBuildMethod( undefined ); + updateScriptFunction.annotations = [annotation("memo")]; // TODO: Currently, just return method itself. Remove this once createMethodDefinition is ready. return arkts.factory.createMethodDefinition( @@ -136,7 +144,7 @@ function tranformClassMembers(node: arkts.ClassDeclaration): arkts.ClassDeclarat arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_CONSTRUCTOR, member.name, arkts.factory.createFunctionExpression(member.scriptFunction), - arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PRIVATE, + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_CONSTRUCTOR, false ); } diff --git a/arkoala-arkts/libarkts/plugins/tsconfig.json b/arkoala-arkts/libarkts/plugins/tsconfig.json index 400772e07..a460c9048 100644 --- a/arkoala-arkts/libarkts/plugins/tsconfig.json +++ b/arkoala-arkts/libarkts/plugins/tsconfig.json @@ -14,6 +14,7 @@ "./src/print-visitor.ts", "./src/builder-lambda-transformer.ts", "./src/component-transformer.ts", - "./src/struct-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 6f50b715c..f3fe48606 100644 --- a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts @@ -167,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") } @@ -179,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") } @@ -194,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") } @@ -395,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") } @@ -569,6 +587,10 @@ export class Es2pandaNativeModule { _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 4dbf2fccd..71ab836ec 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -15,6 +15,7 @@ import { updateNodeByNode } from "../utilities/private" import { + AnnotationUsageIr, ArrowFunctionExpression, BinaryExpression, BlockStatement, @@ -277,5 +278,14 @@ export const factory = { }, 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/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index fcaf7aa5d..21acea01d 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, @@ -397,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)) ) @@ -415,6 +425,11 @@ export class Identifier extends AstNode { return this } + setAnnotationUsage(): Identifier { + global.generatedEs2panda._IdentifierSetAnnotationUsage(global.context, this.peer); + return this; + } + protected override dumpMessage(): string { return ` ` } @@ -560,9 +575,9 @@ export class ScriptFunction extends AstNode { return new ScriptFunction(peer) } - setIdent(id: KPtr): ScriptFunction { - assertValidPeer(id, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); - global.generatedEs2panda._ScriptFunctionSetIdent(global.context, this.peer, id); + setIdent(id: Identifier): ScriptFunction { + assertValidPeer(id.peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); + global.generatedEs2panda._ScriptFunctionSetIdent(global.context, this.peer, id.peer); return this; } @@ -608,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 { @@ -733,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 { @@ -955,7 +1004,7 @@ export class MethodDefinition extends AstNode { if (key) { assertValidPeer(key, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); const _name = unpackNonNullableNode(key); - this.scriptFunction = this.scriptFunction.setIdent(_name.peer); + this.scriptFunction = this.scriptFunction.setIdent(_name as Identifier); } this.name = unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.scriptFunction.peer)) @@ -1027,6 +1076,23 @@ 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 + ); + } } export class VariableDeclaration extends AstNode { @@ -1192,8 +1258,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[] 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)) { -- Gitee From 86973e183e1e262bf17f1d459c6c0b05da9cb296 Mon Sep 17 00:00:00 2001 From: s00912778 Date: Mon, 17 Feb 2025 22:02:19 +0800 Subject: [PATCH 38/40] shijiakai2@huawei.com add globalInfo to store struct information Signed-off-by: s00912778 --- .../libarkts/plugins/input/library.sts | 2 + arkoala-arkts/libarkts/plugins/input/main.sts | 2 +- .../plugins/src/component-transformer.ts | 1 + .../plugins/src/struct-transformer.ts | 3 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 4 +- .../libarkts/src/arkts-api/visitor.ts | 47 +++++++++++++++++++ arkoala-arkts/trivial/user/src/sts/hello.sts | 2 +- 7 files changed, 55 insertions(+), 6 deletions(-) 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/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index 984186e3e..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( diff --git a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts index 81750370f..0959ea80a 100644 --- a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -3,8 +3,7 @@ import { AbstractVisitor } from "./AbstractVisitor"; import { annotation } from "./arkts-utils"; function isCustomComponentClass(node: arkts.ClassDeclaration): boolean { - // TODO: change this mock collection from the arkts.GlobalInfo - const structCollection: Set = new Set(["MyStateSample"]); + const structCollection: Set = arkts.GlobalInfo.getInfoInstance().getStructCollection(); if (structCollection.has(node.definition.name.name)) { return true; } diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 21acea01d..87bdeb74a 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -1342,8 +1342,8 @@ export class AnnotationDeclaration extends AstNode { static create( expr: AstNode - ): UndefinedLiteral { - return new UndefinedLiteral( + ): AnnotationDeclaration { + return new AnnotationDeclaration ( global.generatedEs2panda._CreateAnnotationDeclaration( global.context, passNode(expr) diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 0e0121e9e..7642ef988 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 "../reexport-for-generated" 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 5e7aca7e327ab07a6ab3b0189fe0d3e851af69e0 Mon Sep 17 00:00:00 2001 From: s00912778 Date: Tue, 18 Feb 2025 09:22:49 +0800 Subject: [PATCH 39/40] shijiakai2@huawei.com add utils Signed-off-by: s00912778 --- .../libarkts/plugins/src/arkts-utils.ts | 19 ++++++++++++++++++- .../src/arkts-api/factory/nodeFactory.ts | 7 +++++++ arkoala-arkts/libarkts/src/arkts-api/types.ts | 8 ++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts index bc167c8f3..549790fd7 100644 --- a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts +++ b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts @@ -8,4 +8,21 @@ export function annotation(name: string): arkts.AnnotationUsageIr { ident.parent = annotation; return annotation; -} \ No newline at end of file +} + +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/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index 71ab836ec..778cb68cd 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -22,6 +22,7 @@ import { CallExpression, ClassDeclaration, ClassDefinition, + ClassProperty, ETSFunctionType, EtsImportDeclaration, ETSParameterExpression, @@ -240,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 }, diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 87bdeb74a..e9bd45e7a 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -997,6 +997,7 @@ export class MethodDefinition extends AstNode { 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); @@ -1036,6 +1037,7 @@ export class MethodDefinition extends AstNode { return global.generatedEs2panda._MethodDefinitionIsConstructorConst(global.context, this.peer); } + readonly kind: Es2pandaMethodDefinitionKind; readonly scriptFunction: ScriptFunction readonly name: Identifier readonly kind: Es2pandaMethodDefinitionKind @@ -1056,6 +1058,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( @@ -1093,6 +1096,8 @@ export class ClassProperty extends ClassElement { newAnnotations.length ); } + + readonly typeAnnotation: ETSTypeReference; } export class VariableDeclaration extends AstNode { @@ -1160,6 +1165,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( @@ -1170,6 +1176,8 @@ export class SuperExpression extends AstNode { ) ) } + + readonly id?: Identifier; } export class ImportSource extends ArktsObject { -- Gitee From 6c5fd7329d1096db55895ff4ba52a2fa8e51e2d6 Mon Sep 17 00:00:00 2001 From: s00912778 Date: Tue, 18 Feb 2025 10:06:20 +0800 Subject: [PATCH 40/40] shijiakai2@huawei.com update to latest master Signed-off-by: s00912778 --- arkoala-arkts/libarkts/native/src/bridges.cc | 83 ------------------- .../libarkts/native/src/generated/bridges.cc | 38 --------- .../plugins/src/builder-lambda-transformer.ts | 8 ++ arkoala-arkts/libarkts/src/arkts-api/types.ts | 1 - 4 files changed, 8 insertions(+), 122 deletions(-) diff --git a/arkoala-arkts/libarkts/native/src/bridges.cc b/arkoala-arkts/libarkts/native/src/bridges.cc index 34bdba3fe..1ee0b055d 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -144,81 +144,6 @@ KNativePointer impl_ScriptFunctionSetScope( } KOALA_INTEROP_3(ScriptFunctionSetScope, KNativePointer, KNativePointer, KNativePointer, KNativePointer) -KNativePointer impl_ScriptFunctionAnnotations(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()->ScriptFunctionAnnotations(context, node, ¶ms_len); - return new std::vector(annotations, annotations + params_len); -} -KOALA_INTEROP_3(ScriptFunctionAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) - -KNativePointer impl_ScriptFunctionSetAnnotations( - KNativePointer contextPtr, - KNativePointer astPtr, - KNativePointerArray annotations, - KUInt annotationsLen -) { - auto context = reinterpret_cast(contextPtr); - auto ast = reinterpret_cast(astPtr); - auto _annotations = reinterpret_cast(annotations); - auto _annotationsLen = static_cast(annotationsLen); - - GetImpl()->ScriptFunctionSetAnnotations(context, ast, _annotations, _annotationsLen); - return ast; -} -KOALA_INTEROP_4(ScriptFunctionSetAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt) - -KNativePointer impl_ClassPropertyAnnotations(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()->ClassPropertyAnnotations(context, node, ¶ms_len); - return new std::vector(annotations, annotations + params_len); -} -KOALA_INTEROP_3(ClassPropertyAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) - -KNativePointer impl_ClassPropertySetAnnotations( - KNativePointer contextPtr, - KNativePointer astPtr, - KNativePointerArray annotations, - KUInt annotationsLen -) { - auto context = reinterpret_cast(contextPtr); - auto ast = reinterpret_cast(astPtr); - auto _annotations = reinterpret_cast(annotations); - auto _annotationsLen = static_cast(annotationsLen); - - GetImpl()->ClassPropertySetAnnotations(context, ast, _annotations, _annotationsLen); - return ast; -} -KOALA_INTEROP_4(ClassPropertySetAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt) - -KNativePointer impl_ETSParameterExpressionAnnotations(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()->ETSParameterExpressionAnnotations(context, node, ¶ms_len); - return new std::vector(annotations, annotations + params_len); -} -KOALA_INTEROP_3(ETSParameterExpressionAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) - -KNativePointer impl_ETSParameterExpressionSetAnnotations( - KNativePointer contextPtr, - KNativePointer astPtr, - KNativePointerArray annotations, - KUInt annotationsLen -) { - auto context = reinterpret_cast(contextPtr); - auto ast = reinterpret_cast(astPtr); - auto _annotations = reinterpret_cast(annotations); - auto _annotationsLen = static_cast(annotationsLen); - - GetImpl()->ETSParameterExpressionSetAnnotations(context, ast, _annotations, _annotationsLen); - return ast; -} -KOALA_INTEROP_4(ETSParameterExpressionSetAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointerArray, KUInt) - KNativePointer impl_CreateAstDumper( KNativePointer contextPtr, KNativePointer nodePtr, @@ -359,11 +284,3 @@ KNativePointer impl_DeclarationFromIdentifier(KNativePointer context, KNativePoi return result; } KOALA_INTEROP_2(DeclarationFromIdentifier, KNativePointer, KNativePointer, KNativePointer) - -KNativePointer impl_CreateAnnotationUsageIr(KNativePointer contextPtr, KNativePointer nodePtr) { - auto context = reinterpret_cast(contextPtr); - auto node = reinterpret_cast(nodePtr); - - return GetImpl()->CreateAnnotationUsageIr(context, node); -} -KOALA_INTEROP_2(CreateAnnotationUsageIr, KNativePointer, KNativePointer, KNativePointer) diff --git a/arkoala-arkts/libarkts/native/src/generated/bridges.cc b/arkoala-arkts/libarkts/native/src/generated/bridges.cc index d3da03c0d..c6b90d29c 100644 --- a/arkoala-arkts/libarkts/native/src/generated/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/generated/bridges.cc @@ -11635,44 +11635,6 @@ KNativePointer impl_CreateFunctionDecl(KNativePointer context, KStringPtr& name, } KOALA_INTEROP_3(CreateFunctionDecl, KNativePointer, KNativePointer, KStringPtr, KNativePointer); -KNativePointer impl_CreateETSDynamicFunctionType1(KNativePointer context, KStringPtr& name) -{ - const auto _context = reinterpret_cast(context); - const auto _name = getStringCopy(name); - auto result = GetImpl()->CreateETSDynamicFunctionType1(_context, _name); - return result; -} -KOALA_INTEROP_2(CreateETSDynamicFunctionType1, KNativePointer, KNativePointer, KStringPtr); - -KNativePointer impl_CreateInterfaceDecl(KNativePointer context, KStringPtr& name) -{ - const auto _context = reinterpret_cast(context); - const auto _name = getStringCopy(name); - auto result = GetImpl()->CreateInterfaceDecl(_context, _name); - return result; -} -KOALA_INTEROP_2(CreateInterfaceDecl, KNativePointer, KNativePointer, KStringPtr); - -KNativePointer impl_CreateInterfaceDecl1(KNativePointer context, KStringPtr& name, KNativePointer declNode) -{ - const auto _context = reinterpret_cast(context); - const auto _name = getStringCopy(name); - const auto _declNode = reinterpret_cast(declNode); - auto result = GetImpl()->CreateInterfaceDecl1(_context, _name, _declNode); - return result; -} -KOALA_INTEROP_3(CreateInterfaceDecl1, KNativePointer, KNativePointer, KStringPtr, KNativePointer); - -KNativePointer impl_CreateFunctionDecl(KNativePointer context, KStringPtr& name, KNativePointer node) -{ - const auto _context = reinterpret_cast(context); - const auto _name = getStringCopy(name); - const auto _node = reinterpret_cast(node); - auto result = GetImpl()->CreateFunctionDecl(_context, _name, _node); - return result; -} -KOALA_INTEROP_3(CreateFunctionDecl, KNativePointer, KNativePointer, KStringPtr, KNativePointer); - KBoolean impl_IsTSInterfaceDeclaration(KNativePointer ast) { auto&& _ast_ = reinterpret_cast(ast); auto&& _result_ = GetImpl()->IsTSInterfaceDeclaration(_ast_); diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index 0b07ba4d5..e65728dba 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -311,6 +311,14 @@ function _getDeclForBuilderLambda(node: arkts.AstNode): arkts.AstNode | undefine } 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) diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index e9bd45e7a..a3168d27b 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -1040,7 +1040,6 @@ export class MethodDefinition extends AstNode { readonly kind: Es2pandaMethodDefinitionKind; readonly scriptFunction: ScriptFunction readonly name: Identifier - readonly kind: Es2pandaMethodDefinitionKind } export class ClassElement extends AstNode { -- Gitee